From 385d6897f53224770393de44520a15ec79a4b286 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期六, 18 十月 2025 11:21:57 +0800
Subject: [PATCH] BUG修复
---
components/WorkOrder.vue | 54 +++++++++++++++++++++++++++---------------------------
1 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/components/WorkOrder.vue b/components/WorkOrder.vue
index 0d841b9..80b576d 100644
--- a/components/WorkOrder.vue
+++ b/components/WorkOrder.vue
@@ -422,33 +422,33 @@
}
})
},
- getXJByOrder() {
- this.$post({
- url: "/MesQaItemsDetect02/FindXJByOrderNo",
- data: {
- orderNo: this.orderNo
- }
- }).then(res => {
- let xjList = res.data.tbBillList;
- if (Array.isArray(xjList) && xjList.length > 0) {
- let latest = xjList[0];
- this.lastPatrolCheck = latest.fcheckDate;
- this.patrolConclusion = latest.fcheckResu;
- this.patrolInspector = latest.checkUser;
- this.patrolCount = xjList.length;
- } else if (xjList) {
- this.lastPatrolCheck = xjList.fcheckDate;
- this.patrolConclusion = xjList.fcheckResu;
- this.patrolInspector = xjList.checkUser;
- this.patrolCount = 1;
- } else {
- this.lastPatrolCheck = '';
- this.patrolConclusion = '';
- this.patrolInspector = '';
- this.patrolCount = 0;
- }
- })
- }
+ getXJByOrder() {
+ this.$post({
+ url: "/MesQaItemsDetect02/FindXJByOrderNo",
+ data: {
+ orderNo: this.orderNo
+ }
+ }).then(res => {
+ let xjList = res.data.tbBillList;
+ if (Array.isArray(xjList) && xjList.length > 0) {
+ let latest = xjList[0];
+ this.lastPatrolCheck = latest.fcheckDate;
+ this.patrolConclusion = latest.fcheckResu;
+ this.patrolInspector = latest.checkUser;
+ this.patrolCount = latest.xjCount ?? xjList.length;
+ } else if (xjList) {
+ this.lastPatrolCheck = xjList.fcheckDate;
+ this.patrolConclusion = xjList.fcheckResu;
+ this.patrolInspector = xjList.checkUser;
+ this.patrolCount = xjList.xjCount ?? 1;
+ } else {
+ this.lastPatrolCheck = '';
+ this.patrolConclusion = '';
+ this.patrolInspector = '';
+ this.patrolCount = 0;
+ }
+ })
+ }
}
}
</script>
--
Gitblit v1.9.3