From 2ba045658a9e6a1a28cf0bdf1a751395ad283c62 Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期五, 12 九月 2025 18:00:30 +0800
Subject: [PATCH] iqc提交检验时,会判断是否要提交异常处置单
---
pages/QC/SJ/List.vue | 32 ++++++++++++++++++++++++++------
1 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/pages/QC/SJ/List.vue b/pages/QC/SJ/List.vue
index 0360664..6a25c8b 100644
--- a/pages/QC/SJ/List.vue
+++ b/pages/QC/SJ/List.vue
@@ -35,9 +35,15 @@
<view v-if="item.urgent == 1" class="badge urgent">鎬ユ枡</view>
<view v-if="item.isFirst == 1" class="badge normal">棣栨</view>
<view class="card-title">妫�楠屽崟鍙�: {{ item.billNo }}</view>
- <view :class="{'status-pending': current === 0, 'status-assigned': current === 0 && item.statusUser, 'status-pass': current === 1 && item.result === '鍚堟牸', 'status-fail': current === 1 && item.result === '涓嶅悎鏍�'}"
+ <view :class="{
+ 'status-pending': !item.result && current === 0,
+ 'status-assigned': current === 0 && item.statusUser && !item.result,
+ 'status-pass': item.result === '鍚堟牸',
+ 'status-fail': item.result === '涓嶅悎鏍�',
+ 'status-submitted': !item.result && current === 1
+ }"
class="status">
- {{ current === 0 ? (item.statusUser ? '宸插垎閰�' : '鏈彁浜�') : (item.result ? item.result : '宸叉彁浜�') }}
+ {{ current === 0 ? (item.result ? item.result : '鏈彁浜�') : (item.result ? item.result : '宸叉彁浜�') }}
</view>
</view>
@@ -189,9 +195,18 @@
this.init();
},
navigateToDetail(item) {
- uni.navigateTo({
- url: 'Add?id=' + item.id + '&billNo=' + item.billNo
- });
+ if (this.current === 1) {
+ uni.navigateTo({
+ url: 'Add?id=' + item.id + '&billNo=' + item.billNo+
+ '¤t=B'
+ });
+ }else{
+ uni.navigateTo({
+ url: 'Add?id=' + item.id + '&billNo=' + item.billNo+
+ '¤t=A'
+ });
+ }
+
}
},
/**
@@ -460,7 +475,12 @@
}
.status-fail {
- background: linear-gradient(135deg, #e74c3c, #c0392b);
+ background: linear-gradient(135deg, #3498db, #2980b9);
+ color: white;
+}
+
+.status-submitted {
+ background: linear-gradient(135deg, #95a5a6, #7f8c8d);
color: white;
}
--
Gitblit v1.9.3