From f4bcf01171297bc16db79e543eda36a36957279b Mon Sep 17 00:00:00 2001 From: CD配唱片 <CD配唱片> Date: 星期日, 27 四月 2025 15:39:08 +0800 Subject: [PATCH] 提交标准工序的表格工厂展示字段修正 --- src/views/basicData/standardProcess/index.vue | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/basicData/standardProcess/index.vue b/src/views/basicData/standardProcess/index.vue index 69b9544..be5582f 100644 --- a/src/views/basicData/standardProcess/index.vue +++ b/src/views/basicData/standardProcess/index.vue @@ -299,6 +299,7 @@ addStandardProcess, updateStandardProcess, } from "@/api/basicData/standardProcess"; +import { listAll_plant } from "@/api/basicData/plant"; import HxlhTable from "@/components/HxlhTable/index.vue"; import { getToken } from "@/utils/auth.js"; import { ref } from "vue"; @@ -309,8 +310,9 @@ const page = ref({ total: 0, current: 1, - size: 10 + size: 10, }); +const plantList = ref([]); const standardProcessList = ref([]); const open = ref(false); const loading = ref(true); @@ -385,6 +387,15 @@ field: "plant", width: 150, align: "center", + formatter: ({ cellValue, row, column }) => { + if (cellValue) { + for (let i = 0; i < plantList.value.length; i++) { + if (cellValue === plantList.value[i].plantCode) { + return plantList.value[i].plantName; + } + } + } + }, }, { title: "杞﹂棿", @@ -621,6 +632,11 @@ const handleFileUploadProgress = (event, file, fileList) => { upload.isUploading = true; }; - +onMounted(async () => { + /** 鏌ヨ宸ュ巶鍒楄〃 */ + const response = await listAll_plant({}); + plantList.value = response.data; + loading.value = false; +}); getList(); </script> -- Gitblit v1.9.3