Browse Source

HL-6386原因代码默认SC99,成本中心默认DEFC

hella_online_20241107
yufei_wang 3 weeks ago
parent
commit
adcac0a5cd
  1. 16
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue
  2. 2
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts

16
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -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')
})
}
}
// --退

2
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts

@ -892,7 +892,7 @@ export const ProductionscrapRequestMain = useCrudSchemas(
table: {
width: 150
},
isForm:false,
isForm:true,
isTable:false,
isTableForm:false,
form: {

Loading…
Cancel
Save