|
@ -233,9 +233,11 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
// 明细查询页赋值 |
|
|
// 明细查询页赋值 |
|
|
|
|
|
|
|
|
if (formField == 'purchaseReceiptRecordNumber') { |
|
|
if (formField == 'asnNumber') { |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
//搜索记录单号--回显数据 |
|
|
//搜索记录单号--回显数据 |
|
|
|
|
|
row['purchaseReceiptRecordNumber'] = val[0]['number'] |
|
|
|
|
|
row['asnNumber'] = val[0]['asnNumber'] |
|
|
row['supplierCode'] = val[0]['supplierCode'] |
|
|
row['supplierCode'] = val[0]['supplierCode'] |
|
|
row['poNumber'] = val[0]['poNumber'] |
|
|
row['poNumber'] = val[0]['poNumber'] |
|
|
row['poLine'] = val[0]['poLine'] |
|
|
row['poLine'] = val[0]['poLine'] |
|
@ -308,18 +310,24 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
if (formField == 'supplierCode') { |
|
|
if (formField == 'supplierCode') { |
|
|
console.log('formModelformModel',formRef.formModel) |
|
|
console.log('formModelformModel',formRef.formModel) |
|
|
if( formRef.formModel['supplierCode'] != val[0]['code']){ |
|
|
if( formRef.formModel['supplierCode'] != val[0]['code']){ |
|
|
setV['purchaseReceiptRecordNumber'] = '' |
|
|
setV['asnNumber'] = '' |
|
|
setV['q2Number'] = '' |
|
|
setV['q2Number'] = '' |
|
|
tableData.value = [] |
|
|
tableData.value = [] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (formField == 'asnNumber') { |
|
|
|
|
|
if( formRef.formModel['asnNumber'] != val[0]['asnNumber']){ |
|
|
|
|
|
setV['q2Number'] = '' |
|
|
|
|
|
tableData.value = [] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
if (formField == 'q2Number') { |
|
|
if (formField == 'q2Number') { |
|
|
setV['q2Number'] = val[0]['number'] |
|
|
setV['q2Number'] = val[0]['number'] |
|
|
} |
|
|
} |
|
|
if (formField == 'purchaseReceiptRecordNumber') { |
|
|
if (formField == 'asnNumber') { |
|
|
// isShowButton.value = false |
|
|
// isShowButton.value = false |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
setV['purchaseReceiptRecordNumber'] = val[0]['number'] |
|
|
setV['purchaseReceiptRecordNumber'] = val[0]['number'] |
|
@ -611,7 +619,7 @@ const openForm = async (type: string, row?: number) => { |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.isSearchList = true |
|
|
item.componentProps.isSearchList = true |
|
|
} |
|
|
} |
|
|
if (item.field == 'purchaseReceiptRecordNumber') { |
|
|
if (item.field == 'asnNumber') { |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.isSearchList = true |
|
|
item.componentProps.isSearchList = true |
|
|
} |
|
|
} |
|
@ -623,7 +631,7 @@ const openForm = async (type: string, row?: number) => { |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.isSearchList = false |
|
|
item.componentProps.isSearchList = false |
|
|
} |
|
|
} |
|
|
if (item.field == 'purchaseReceiptRecordNumber') { |
|
|
if (item.field == 'asnNumber') { |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.isSearchList = false |
|
|
item.componentProps.isSearchList = false |
|
|
} |
|
|
} |
|
@ -891,7 +899,7 @@ const tableSelectionDelete = (selection) => { |
|
|
}) |
|
|
}) |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV['purchaseReceiptRecordNumber'] = '' |
|
|
setV['asnNumber'] = '' |
|
|
setV['supplierCode'] = '' |
|
|
setV['supplierCode'] = '' |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
}) |
|
|
}) |
|
|