|
|
@ -413,19 +413,19 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
if (formField == 'fromLocationCode') { |
|
|
|
if(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){ |
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.push({ |
|
|
|
key: 'warehouseCode', |
|
|
|
value: val[0]["code"], |
|
|
|
isMainValue: false |
|
|
|
}) |
|
|
|
} else { |
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => { |
|
|
|
if (item.key == 'warehouseCode') { |
|
|
|
item.value = val[0]["code"] |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
// if(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){ |
|
|
|
// InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.push({ |
|
|
|
// key: 'warehouseCode', |
|
|
|
// value: val[0]["code"], |
|
|
|
// isMainValue: false |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => { |
|
|
|
// if (item.key == 'warehouseCode') { |
|
|
|
// item.value = val[0]["code"] |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// } |
|
|
|
if(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => (item.key == 'locationCode')) == undefined){ |
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.push({ |
|
|
|
key: 'locationCode', |
|
|
|