From b9e83d3a57a6a2dde5901938e5457d7df0a5e0b9 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期六, 18 十月 2025 13:25:27 +0800
Subject: [PATCH] 界面优化

---
 components/WorkOrder.vue |   61 +++++++++++++++---------------
 1 files changed, 31 insertions(+), 30 deletions(-)

diff --git a/components/WorkOrder.vue b/components/WorkOrder.vue
index 80b576d..90115c8 100644
--- a/components/WorkOrder.vue
+++ b/components/WorkOrder.vue
@@ -386,11 +386,12 @@
 					//this.productionDuration = (this.order.todayOnlineTime / 3600).toFixed(2) + "h";
 					this.todayFaultNum = this.order.todayFaultNum;
 					this.utilizationRate = this.order.jdl + '%';
-					let title = this.machineNo + '鍙锋満鍙� 宸ュ崟鍙�' + this.order.daa001 + ',褰撳墠鏁伴噰' + this.order.currentCjNum;
+					let title = this.machineNo + '鍙锋満鍙� 宸ュ崟鍙�' + this.order.daa001 + ',褰撳墠鏁伴噰' + this.order.currentCjNum; // 鏍囬涓娇鐢� currentCjNum
 					this.setTitle(title);
 				})
 			},
 			setTitle(title) {
+				// 淇敼椤甸潰鏍囬鐨勬柟娉曪紝uni-app涓彲浠ラ�氳繃api鐩存帴璁剧疆褰撳墠椤甸潰鐨勬爣棰�
 				uni.setNavigationBarTitle({
 					title: title
 				});
@@ -407,12 +408,12 @@
 						let latest = sjList[0];
 						this.lastInitialCheck = latest.fcheckDate;
 						this.initialConclusion = latest.fcheckResu;
-						this.initialInspector = latest.checkUser;
+						this.initialInspector = latest.fcheckBy; // 棣栨浜哄憳锛堝伐鍙�-濮撳悕锛�
 						this.initialCount = sjList.length;
 					} else if (sjList) {
 						this.lastInitialCheck = sjList.fcheckDate;
 						this.initialConclusion = sjList.fcheckResu;
-						this.initialInspector = sjList.checkUser;
+						this.initialInspector = sjList.fcheckBy; // 棣栨浜哄憳锛堝伐鍙�-濮撳悕锛�
 						this.initialCount = 1;
 					} else {
 						this.lastInitialCheck = '';
@@ -422,33 +423,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 = 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;
-                    }
-                })
-            }
+			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.fcheckBy; // 宸℃浜哄憳锛堝伐鍙�-濮撳悕锛�
+						this.patrolCount = latest.xjCount ?? xjList.length;
+					} else if (xjList) {
+						this.lastPatrolCheck = xjList.fcheckDate;
+						this.patrolConclusion = xjList.fcheckResu;
+						this.patrolInspector = xjList.fcheckBy; // 宸℃浜哄憳锛堝伐鍙�-濮撳悕锛�
+						this.patrolCount = xjList.xjCount ?? 1;
+					} else {
+						this.lastPatrolCheck = '';
+						this.patrolConclusion = '';
+						this.patrolInspector = '';
+						this.patrolCount = 0;
+					}
+				})
+			}
 		}
 	}
 </script>

--
Gitblit v1.9.3