From ca51c6068364c5c76c97b4ebad08eabe9f398604 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 30 四月 2026 13:25:01 +0800
Subject: [PATCH] 部件类型传processType
---
src/views/qualityManagement/processInspection/index.vue | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/views/qualityManagement/processInspection/index.vue b/src/views/qualityManagement/processInspection/index.vue
index cbeab71..5d38055 100644
--- a/src/views/qualityManagement/processInspection/index.vue
+++ b/src/views/qualityManagement/processInspection/index.vue
@@ -2,11 +2,11 @@
<div class="app-container">
<div class="search_form">
<div>
- <span class="search_title">宸ュ簭锛�</span>
+ <span class="search_title">閮ㄤ欢绫诲瀷锛�</span>
<el-input
v-model="searchForm.process"
style="width: 240px"
- placeholder="璇疯緭鍏ュ伐搴忔悳绱�"
+ placeholder="璇疯緭鍏ラ儴浠剁被鍨嬫悳绱�"
@change="handleQuery"
clearable
:prefix-icon="Search"
@@ -101,9 +101,14 @@
width: 120
},
{
- label: "宸ュ簭",
+ label: "閮ㄤ欢绫诲瀷",
prop: "process",
- width: 230
+ width: 230,
+ formatData: (params) => {
+ const dictItems = product_process_type?.value || []
+ const hit = dictItems.find(i => String(i.value) === String(params))
+ return hit?.label || params
+ }
},
{
label: "妫�楠屽憳",
@@ -245,6 +250,8 @@
const inspectionFormDia = ref()
const { proxy } = getCurrentInstance()
const userStore = useUserStore()
+// 閮ㄤ欢绫诲瀷瀛楀吀锛坴alue -> label锛�
+const { product_process_type } = proxy.useDict('product_process_type')
const changeDaterange = (value) => {
searchForm.value.entryDateStart = undefined;
searchForm.value.entryDateEnd = undefined;
@@ -269,7 +276,8 @@
tableLoading.value = true;
const params = { ...searchForm.value, ...page };
params.entryDate = undefined
- qualityInspectListPage({...params, inspectType: 1}).then(res => {
+ params.processType = params.process
+ qualityInspectListPage({ ...params, inspectType: 1 }).then(res => {
tableLoading.value = false;
tableData.value = res.data.records
page.total = res.data.total;
--
Gitblit v1.9.3