|
@ -59,6 +59,7 @@ |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
@ -256,9 +257,9 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { |
|
|
if (fromInventoryStatus.value) { |
|
|
if (fromInventoryStatus.value) { |
|
|
item.tableForm.searchCondition = [ |
|
|
item.tableForm.searchCondition = [ |
|
|
{ |
|
|
{ |
|
|
key:'fromWarehouseCode', |
|
|
key:'fromLocationCode', |
|
|
value:'fromWarehouseCode', |
|
|
value:'fromLocationCode', |
|
|
message: '请选择从仓库代码!', |
|
|
message: '请选择从库位代码!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -276,9 +277,9 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { |
|
|
} else if (fromInventoryStatus.value == null) { |
|
|
} else if (fromInventoryStatus.value == null) { |
|
|
item.tableForm.searchCondition = [ |
|
|
item.tableForm.searchCondition = [ |
|
|
{ |
|
|
{ |
|
|
key:'fromWarehouseCode', |
|
|
key:'fromLocationCode', |
|
|
value:'fromWarehouseCode', |
|
|
value:'fromLocationCode', |
|
|
message: '请选择从仓库代码!', |
|
|
message: '请选择从库位代码!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -421,21 +422,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
if (formField == 'fromWarehouseCode') { |
|
|
if (formField == 'fromLocationCode') { |
|
|
if(InventorymoveRequestDetail?.allSchemas?.tableFormColumns?.find(item => (item.field == 'itemCode'))?.tableForm?.searchCondition?.find(item => (item.key == 'warehouseCode')) == undefined){ |
|
|
|
|
|
InventorymoveRequestDetail?.allSchemas?.tableFormColumns?.find(item => (item.field == 'itemCode'))?.tableForm?.searchCondition?.push({ |
|
|
|
|
|
key: 'warehouseCode', |
|
|
|
|
|
value: val[0]["code"], |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'itemCode')).tableForm.searchCondition.find(item => { |
|
|
|
|
|
if (item.key == 'warehouseCode') { |
|
|
|
|
|
item.value = val[0]["code"] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tableData.value = [] |
|
|
tableData.value = [] |
|
|
} |
|
|
} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
@ -814,7 +801,11 @@ const submitForm = async (formType, submitData) => { |
|
|
formRef.value.formLoading = false |
|
|
formRef.value.formLoading = false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
const clearSearchInput=(field) => { |
|
|
|
|
|
if (field=='fromLocationCode') { |
|
|
|
|
|
tableData.value = [] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
/** 导入 */ |
|
|
/** 导入 */ |
|
|
const importFormRef = ref() |
|
|
const importFormRef = ref() |
|
|
const handleImport = () => { |
|
|
const handleImport = () => { |
|
|