Browse Source

物料代码带出

hella_online_20240829
wangyufei 3 months ago
parent
commit
44db8ab69f
  1. 5
      src/views/wms/basicDataManage/itemManage/bom/bom.data.ts
  2. 3
      src/views/wms/basicDataManage/itemManage/bom/index.vue

5
src/views/wms/basicDataManage/itemManage/bom/bom.data.ts

@ -82,6 +82,11 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
table: { table: {
width: 150 width: 150
},
form:{
componentProps:{
disabled: true,
}
} }
}, },
{ {

3
src/views/wms/basicDataManage/itemManage/bom/index.vue

@ -216,6 +216,9 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if('componentItemCode'==formField){
setV['componentUom'] = val[0]['uom']
}
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }

Loading…
Cancel
Save