From cae70531775662bfa788ff65d52274b404eb1c40 Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期四, 19 三月 2026 16:49:55 +0800
Subject: [PATCH] fix(生产报表): 调整审核状态列位置和操作按钮逻辑
---
src/views/productionManagement/productionReporting/index.vue | 45 ++++++++++++++++++++++-----------------------
1 files changed, 22 insertions(+), 23 deletions(-)
diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index f06131a..fbdc3c1 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -218,6 +218,20 @@
prop: "process",
width: 120,
},
+ {
+ label: "瀹℃牳鐘舵��",
+ prop: "auditStatus",
+ width: 120,
+ dataType: "tag",
+ formatData: val => {
+ const statusMap = { 0: "鏈鏍�", 1: "閫氳繃", 2: "涓嶉�氳繃" };
+ return statusMap[val] ?? "鏈煡";
+ },
+ formatType: val => {
+ const typeMap = { 0: "info", 1: "success", 2: "danger" };
+ return typeMap[val] ?? "";
+ },
+ },
{
label: "宸ュ崟缂栧彿",
prop: "workOrderNo",
@@ -259,20 +273,6 @@
width: 120,
},
{
- label: "瀹℃牳鐘舵��",
- prop: "auditStatus",
- width: 120,
- dataType: "tag",
- formatData: val => {
- const statusMap = { 0: "鏈鏍�", 1: "閫氳繃", 2: "涓嶉�氳繃" };
- return statusMap[val] ?? "鏈煡";
- },
- formatType: val => {
- const typeMap = { 0: "info", 1: "success", 2: "danger" };
- return typeMap[val] ?? "";
- },
- },
- {
label: "鍒涘缓鏃堕棿",
prop: "createTime",
width: 120,
@@ -292,21 +292,20 @@
},
},
{
- name:"瀹℃牳",
- // 榛勮壊
- color: "#E6A23C",
- clickFun: row => {
- handleAudit(row);
- },
- showHide: row => Number(row?.auditStatus) === 0, // 浠呭綋鏈鏍告椂鏄剧ず瀹℃牳鎸夐挳
- },
- {
name: "鍒犻櫎",
type: "danger",
clickFun: row => {
deleteReport(row);
},
},
+ {
+ name:"瀹℃牳",
+ color: "#E6A23C",
+ clickFun: row => {
+ handleAudit(row);
+ },
+ disabled: row => Number(row?.auditStatus) !== 0, // 宸插鏍告椂绂佺敤瀹℃牳鎸夐挳
+ },
],
},
]);
--
Gitblit v1.9.3