|
@ -61,6 +61,7 @@ |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
@clearInput="clearInput" |
|
|
@clearInput="clearInput" |
|
|
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
@ -142,12 +143,14 @@ InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{ |
|
|
{ |
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, // 使用自定义拼接条件 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
key: 'businessType', |
|
|
key: 'businessType', |
|
|
value: businessType.value, |
|
|
value: businessType.value, |
|
|
isMainValue: false |
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, // 使用自定义拼接条件 |
|
|
},{ |
|
|
},{ |
|
|
key: 'isIn', |
|
|
key: 'isIn', |
|
|
value: 'out', |
|
|
value: 'out', |
|
@ -213,13 +216,17 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { |
|
|
{ |
|
|
{ |
|
|
key: 'businessType', |
|
|
key: 'businessType', |
|
|
value: businessType.value , |
|
|
value: businessType.value , |
|
|
isMainValue: false |
|
|
action: '==', // 查询拼接条件 |
|
|
|
|
|
isSearch: true, // 使用自定义拼接条件 |
|
|
|
|
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 |
|
|
}] |
|
|
}] |
|
|
item.form.componentProps.searchCondition = [ |
|
|
item.form.componentProps.searchCondition = [ |
|
|
{ |
|
|
{ |
|
|
key: 'businessType', |
|
|
key: 'businessType', |
|
|
value: businessType.value, |
|
|
value: businessType.value, |
|
|
isMainValue: false |
|
|
action: '==', // 查询拼接条件 |
|
|
|
|
|
isSearch: true, // 使用自定义拼接条件 |
|
|
|
|
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
} else if (fromInventoryStatus.value == null) { |
|
|
} else if (fromInventoryStatus.value == null) { |
|
@ -227,13 +234,17 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { |
|
|
{ |
|
|
{ |
|
|
key: 'businessType', |
|
|
key: 'businessType', |
|
|
value: businessType.value , |
|
|
value: businessType.value , |
|
|
isMainValue: false |
|
|
action: '==', // 查询拼接条件 |
|
|
|
|
|
isSearch: true, // 使用自定义拼接条件 |
|
|
|
|
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 |
|
|
}] |
|
|
}] |
|
|
item.form.componentProps.searchCondition = [ |
|
|
item.form.componentProps.searchCondition = [ |
|
|
{ |
|
|
{ |
|
|
key: 'businessType', |
|
|
key: 'businessType', |
|
|
value: businessType.value, |
|
|
value: businessType.value, |
|
|
isMainValue: false |
|
|
action: '==', // 查询拼接条件 |
|
|
|
|
|
isSearch: true, // 使用自定义拼接条件 |
|
|
|
|
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 |
|
|
}] |
|
|
}] |
|
|
} else { |
|
|
} else { |
|
|
delete item.tableForm.searchCondition |
|
|
delete item.tableForm.searchCondition |
|
@ -314,6 +325,15 @@ const clearInput = (field, row, index) => { |
|
|
row['supplierName'] = '' |
|
|
row['supplierName'] = '' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
const clearSearchInput=(field) => { |
|
|
|
|
|
if (field=='fromLocationCode') { |
|
|
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => { |
|
|
|
|
|
if (item.key == 'locationCode') { |
|
|
|
|
|
item.value = '' |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
const fromManagementPrecision = ref('') |
|
|
const fromManagementPrecision = ref('') |
|
|
const toManagementPrecision = ref('') |
|
|
const toManagementPrecision = ref('') |
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
@ -392,20 +412,35 @@ 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 == 'fromBatch')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){ |
|
|
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({ |
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.push({ |
|
|
key: 'warehouseCode', |
|
|
key: 'warehouseCode', |
|
|
value: val[0]["code"], |
|
|
value: val[0]["code"], |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => { |
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => { |
|
|
if (item.key == 'warehouseCode') { |
|
|
if (item.key == 'warehouseCode') { |
|
|
item.value = val[0]["code"] |
|
|
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', |
|
|
|
|
|
value: val[0]["code"], |
|
|
|
|
|
action: '==', // 查询拼接条件 |
|
|
|
|
|
isSearch: true, // 使用自定义拼接条件 |
|
|
|
|
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => { |
|
|
|
|
|
if (item.key == 'locationCode') { |
|
|
|
|
|
item.value = val[0]["code"] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|