From 53a5e405996b4b22e5667011d601ef7f9fb99269 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Thu, 8 Aug 2024 09:09:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3):=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E7=89=88?= =?UTF-8?q?1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sparePartsApplication/addForm.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/pages/sparePartsApplication/addForm.vue b/src/pages/sparePartsApplication/addForm.vue index c45ce53..ff06973 100644 --- a/src/pages/sparePartsApplication/addForm.vue +++ b/src/pages/sparePartsApplication/addForm.vue @@ -5,6 +5,18 @@ + + + + + {{form.costCenterName}} + + + {{`请选择类型`}} + + + + @@ -161,6 +173,7 @@ qty: '' }) const deviceMoldType = ref([])//设备列表 + const costCenterDept = ref([])//成本中心映射部门 const updataKey = ref(0) // 触发提交表单 function submit() { @@ -236,6 +249,10 @@ if (field.value == 'deviceNumber') { form1.value.deviceName = e[0].label } + if (field.value == 'costCenter') { + form.value[field.value] = e[0].value + form.value.costCenterName = e[0].label + } getApplyDeviceList() singleColumnShow.value = false @@ -324,6 +341,7 @@ form.value.subList = form.value.subList }; deviceMoldType.value = await dictApi.getDict('device_mold_type') + costCenterDept.value = await dictApi.getDict('center_subject_map_dept'); await getApplySparePartsList() })