Browse Source

发料申请 自动获取计量单位

master
陈薪名 10 months ago
parent
commit
d9fc3ea4bb
  1. 14
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  2. 6
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

14
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -104,7 +104,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] if (formField == 'itemCode') {
row['itemCode'] = val[0]['code']
row['uom'] = val[0]['uom']
} else {
row[formField] = val[0][searchField]
}
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
@ -120,7 +125,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] if (formField == 'itemCode') {
setV['itemCode'] = val[0]['code']
setV['uom'] = val[0]['uom']
} else {
setV[formField] = val[0][searchField]
}
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }

6
src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

@ -693,6 +693,12 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
tableForm:{ tableForm:{
type: 'Select', type: 'Select',
disabled: true
},
form: {
componentProps: {
disabled: true
}
} }
}, },
{ {

Loading…
Cancel
Save