From 6d5eb3f44aa8297544074534540b02661dcea6c7 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 21 十一月 2024 13:11:37 +0800
Subject: [PATCH] Merge remote-tracking branch 'supervisionVue/hc-procheck-1121' into lsf-dataproduct-1024
---
src/views/fysp/check/ProCheckProxy.js | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/src/views/fysp/check/ProCheckProxy.js b/src/views/fysp/check/ProCheckProxy.js
index 6487082..bebef21 100644
--- a/src/views/fysp/check/ProCheckProxy.js
+++ b/src/views/fysp/check/ProCheckProxy.js
@@ -16,8 +16,12 @@
const status = {
//闂鏁伴噺
proNum: proList.length,
+ // 闂瀹℃牳鏁�
+ proCheckedNum: 0,
//鏁存敼鏁伴噺
changeNum: 0,
+ //鏁存敼瀹℃牳鏁伴噺
+ changeCheckedNum: 0,
//寰呭鏍告暟閲�
uncheckNum: 0,
//宸插鏍搁�氳繃鏁伴噺
@@ -43,6 +47,13 @@
)
status.uncheckNum++
else status.passNum++
+
+ if (p.extension3 == proStatus.pass) {
+ status.proCheckedNum++
+ }
+ if (p.extension3 == proStatus.change_pass) {
+ status.changeCheckedNum++
+ }
status.changePer =
String(
@@ -142,5 +153,27 @@
break
}
return { status: status, action: action }
+ },
+
+ /**
+ * 闂鎾ゅ洖鍚庣姸鎬佸彉鎹�
+ * @param {String} s 褰撳墠闂鐘舵��
+ * @returns 涓嬩竴涓棶棰樼姸鎬�
+ */
+ proBeforeStatus(s) {
+ let status, action
+ switch (s) {
+ case proStatus.fail:
+ case proStatus.pass:
+ status = proStatus.unCheck
+ action = 4
+ break
+ case proStatus.change_fail:
+ case proStatus.change_pass:
+ status = proStatus.change_unCheck
+ action = 5
+ break
+ }
+ return { status: status, action: action }
}
}
--
Gitblit v1.9.3