From 9c3c2f300a972d3ec5bbeb051baf165ee5737a7e Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 6 Sep 2024 15:28:15 +0800 Subject: [PATCH] =?UTF-8?q?HL-5891=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=EF=BC=8C=E4=BE=9B=E5=BA=94=E5=95=86=E7=89=A9=E6=96=99=EF=BC=8C?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8F=8A=E7=BB=B4=E6=8A=A4=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BE=9B=E5=BA=94=E5=95=86=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=92=8C=E7=89=A9=E6=96=99=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierManage/supplieritem/index.vue | 6 +++++ .../supplieritem/supplieritem.data.ts | 26 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue b/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue index 38854bac7..b15b79a46 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue +++ b/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) }) } diff --git a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts index 200a5484d..d1c0fe5b7 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts @@ -56,6 +56,19 @@ export const Supplieritem = useCrudSchemas(reactive([ } } }, + { + label: '供应商名称', + field: 'supplierName', + isForm:true, + form:{ + componentProps:{ + disabled: true + } + }, + table: { + width: 180 + } + }, { label: '物料代码', field: 'itemCode', @@ -90,6 +103,19 @@ export const Supplieritem = useCrudSchemas(reactive([ } } }, + { + label: '物料名称', + field: 'itemName', + isForm:true, + form:{ + componentProps:{ + disabled: true + } + }, + table: { + width: 180 + } + }, { label: '供应商物料代码', field: 'supplierItemCode',