|
@ -233,6 +233,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
|
|
|
if(formField == 'costCenterCode'){ |
|
|
|
|
|
setV['costcentreCode'] = val[0]['costcentreCode'] |
|
|
|
|
|
setV['costCenterType'] = val[0]['costcentreType'] |
|
|
|
|
|
} |
|
|
|
|
|
if(formField == 'reasonCodeRequisition'){ |
|
|
|
|
|
setV['reasonCodeRequisition'] = val[0]['code'] |
|
|
|
|
|
} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
tableData.value = [] // 重置明细数据 |
|
|
tableData.value = [] // 重置明细数据 |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|