Browse Source

HL-5891基础数据,供应商物料,列表及维护界面增加供应商名称和物料名称

hella_online_20240911
yufei_wang 2 months ago
parent
commit
9c3c2f300a
  1. 6
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
  2. 26
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

6
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -69,6 +69,7 @@ import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'Supplieritem' })
const message = useMessage() //
@ -224,6 +225,11 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
if(formField == 'supplierCode'){
setV['supplierName'] = val[0]['name']
}else if(formField == 'itemCode'){
setV['itemName'] = val[0]['name']
}
formRef.setValues(setV)
})
}

26
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -56,6 +56,19 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '供应商名称',
field: 'supplierName',
isForm:true,
form:{
componentProps:{
disabled: true
}
},
table: {
width: 180
}
},
{
label: '物料代码',
field: 'itemCode',
@ -90,6 +103,19 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '物料名称',
field: 'itemName',
isForm:true,
form:{
componentProps:{
disabled: true
}
},
table: {
width: 180
}
},
{
label: '供应商物料代码',
field: 'supplierItemCode',

Loading…
Cancel
Save