|
|
@ -230,6 +230,11 @@ const clearSearchInput = (field)=>{ |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
const defaultReasonCodeRequisition = ref(true) |
|
|
|
const setDefaultrReasonCodeRequisition = ()=>{ |
|
|
|
formRef.value.setDefaultBlurValue('reasonCodeRequisition','SC99') |
|
|
|
defaultReasonCodeRequisition.value = false |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(async () => { |
|
|
@ -324,6 +329,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.setValues(setV) |
|
|
|
if(formField == 'costCenterCode'){ |
|
|
|
if(defaultReasonCodeRequisition.value){ |
|
|
|
setDefaultrReasonCodeRequisition() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@ -641,6 +651,12 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
}) |
|
|
|
} |
|
|
|
formRef.value.open(type, row) |
|
|
|
if(type == 'create'){ |
|
|
|
nextTick(()=>{ |
|
|
|
defaultReasonCodeRequisition.value = true |
|
|
|
formRef.value.setDefaultBlurValue('costCenterCode','DEFC') |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 批量打印--生产退料 |
|
|
|