|
|
@ -441,6 +441,11 @@ const clearInput = (field, row, index) => { |
|
|
|
console.log(row) |
|
|
|
} |
|
|
|
} |
|
|
|
const defaultReasonCodeRequisition = ref(true) |
|
|
|
const setDefaultrReasonCodeRequisition = ()=>{ |
|
|
|
formRef.value.setDefaultBlurValue('reasonCodeRequisition','SC99') |
|
|
|
defaultReasonCodeRequisition.value = false |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) |
|
|
@ -523,6 +528,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
//成本中心代码 |
|
|
|
//成本中心类型 |
|
|
|
setV['costCenterType'] = val[0]['costcentreType'] |
|
|
|
if(!formRef.formModel['reasonCodeRequisition']&&defaultReasonCodeRequisition.value){ |
|
|
|
setDefaultrReasonCodeRequisition() |
|
|
|
} |
|
|
|
}else if(formField == 'productionLineCode'){ |
|
|
|
tableData.value = [] |
|
|
|
}else if(formField === 'reasonCodeRequisition'){ |
|
|
@ -796,9 +804,12 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
}) |
|
|
|
} |
|
|
|
formRef.value.open(type, row) |
|
|
|
nextTick(()=>{ |
|
|
|
formRef.value.setDefaultBlurValue('costCenterCode','DEFC') |
|
|
|
}) |
|
|
|
if(type == 'create'){ |
|
|
|
nextTick(()=>{ |
|
|
|
defaultReasonCodeRequisition.value = true |
|
|
|
formRef.value.setDefaultBlurValue('costCenterCode','DEFC') |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|