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() })