From 315c1f19324fc3a09274fd33870a0ae6f044444f Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期三, 12 十一月 2025 15:08:41 +0800
Subject: [PATCH] 修改颜色

---
 components/machine.vue |  142 ++++++++++++++++++++++++++++++++++-------------
 1 files changed, 102 insertions(+), 40 deletions(-)

diff --git a/components/machine.vue b/components/machine.vue
index beeb5c5..b8e1cd2 100644
--- a/components/machine.vue
+++ b/components/machine.vue
@@ -157,7 +157,6 @@
 			},
 			// 淇濆瓨骞剁敓鏁堬紝灏嗘椂闂寸瓑淇℃伅鎻愪氦鍒板悗绔�
 			// 鍙樻洿锛氳繑鍥� Promise锛涙垚鍔熷悗灞�閮ㄥ埛鏂帮紙璋冪敤 findByOrderId锛夎�屼笉鏄暣椤� reload
-            // 淇濆瓨骞剁敓鏁堬紝灏嗘椂闂寸瓑淇℃伅鎻愪氦鍒板悗绔�
             save() {
                 if (!this.statusForm.id) {
                     this.$showMessage("id涓虹┖锛屼笉鍏佽鎺ㄩ��");
@@ -177,6 +176,9 @@
                 }).then(res => {
                     if (res && res.data && res.data.tbBillList) {
                         this.$showMessage("鍛煎彨鎴愬姛");
+
+                        // 鍏抽敭淇敼锛氭竻绌� flag 鐨勫��
+                        this.flag = -1; // 鎴栬�呮牴鎹笟鍔¢渶姹傝缃负鍏朵粬鍒濆鍊�
 
                         // 鏂规1锛氫娇鐢╱ni-app鐨勯〉闈㈠埛鏂版柟娉�
                         // 鏂规硶1锛氳Е鍙戜笅鎷夊埛鏂帮紙濡傛灉椤甸潰鏀寔锛�
@@ -255,12 +257,20 @@
 				})
 			}
 		},
-		mounted() {
-			// 椤甸潰鍔犺浇鏃讹紝鍚姩瀹氭椂鍣紝姣忛殧5鍒嗛挓鑷姩淇濆瓨锛堝綋鍓嶇ず渚嬩娇鐢� 30s锛屽彲鏀瑰洖 5 鍒嗛挓锛�
-			this.autoSaveTimer = setInterval(() => {
-				this.save(); // 鐩存帴璋冪敤宸叉湁鐨勪繚瀛樻柟娉曪紙save 宸茶繑鍥� Promise锛�
-			}, 1 * 30 * 1000); // 30绉�
-		},
+        mounted() {
+            // 椤甸潰鍔犺浇鏃讹紝鍚姩瀹氭椂鍣紝姣忛殧30绉掕嚜鍔ㄤ繚瀛�
+            this.autoSaveTimer = setInterval(() => {
+                // 1. 宸ュ崟涓哄紑宸ョ姸鎬佷笉鑷姩淇濆瓨
+                if (this.statusForm && this.statusForm.status === '寮�宸�') {
+                    return;
+                }
+                // 2. 閫佹鏃堕棿涓虹┖涔熶笉鑷姩淇濆瓨
+                if (!this.maShoutTime) {
+                    return;
+                }
+                this.save(); // 婊¤冻鏉′欢鎵嶈嚜鍔ㄤ繚瀛�
+            }, 1 * 30 * 1000); // 30绉�
+        },
 		beforeDestroy() {
 			// 椤甸潰鍗歌浇鏃舵竻鐞嗗畾鏃跺櫒
 			clearInterval(this.autoSaveTimer);
@@ -271,7 +281,7 @@
 <style scoped>
 	/* 椤甸潰鏁翠綋甯冨眬 */
 	.page {
-		padding: 2vh;
+		padding: 8px;
 		display: flex;
 		flex-direction: column;
 		justify-content: space-between;
@@ -282,54 +292,56 @@
 	/* 鍙充笂瑙掑埛鏂版寜閽� */
 	.top-right {
 		position: absolute;
-		top: 10px;
-		right: 50px;
+		top: 8px;
+		right: 40px;
+		width: 200px;
 		z-index: 1000;
 	}
 
 	.refresh-btn {
-		padding: 10px;
+		padding: 8px 16px;
 		background-color: #00A2E9;
 		color: white;
 		border: none;
-		font-size: 1.5vw;
+		font-size: 16px;
 		border-radius: 5px;
 	}
 
 	label {
-		margin-right: 1vw;
-		font-size: 1.6vw;
-	}
-
-	input {
-		padding: 1vh;
-		font-size: 1.5vw;
-		border: 1px solid #ccc;
-		width: 100%;
-		margin-top: 1vh;
-		box-sizing: border-box;
+		margin-right: 10px;
+		font-size: 16px;
 	}
 
 	/* 涓棿鐘舵�侀儴鍒嗗竷灞� */
 	.middle-section {
 		display: flex;
 		flex-direction: column;
-		margin-bottom: 4vh;
+		margin-bottom: 8px;
 	}
 
 	.item {
 		display: flex;
 		flex-direction: row;
-		align-items: flex-start;
-		margin-bottom: 2vh;
+		align-items: center;
+		margin-bottom: 10px;
+		gap: 10px;
+	}
+
+	.item h4 {
+		font-size: 14px;
+		line-height: 1.4;
+		margin: 0;
+		padding: 5px 0;
 	}
 
 	button {
-		width: 100%;
-		padding: 1.5vh;
-		font-size: 1.5vw;
+		width: 50%;
+		flex-shrink: 0;
+		padding: 10px;
+		font-size: 16px;
 		border: none;
 		text-align: center;
+		min-height: 40px;
 	}
 
 	.btn-disabled {
@@ -343,36 +355,86 @@
 	}
 
 	input {
-		margin-top: 10px;
-		padding: 10px;
-		font-size: 14px;
+		margin-top: 0;
+		padding: 8px;
+		font-size: 15px;
 		border: 1px solid #ccc;
-		width: 100%;
+		width: 50%;
+		flex-grow: 1;
+		box-sizing: border-box;
 	}
 
 	/* 搴曢儴淇濆瓨/鍙栨秷鎸夐挳甯冨眬 */
 	.bottom-section {
 		display: flex;
 		justify-content: space-between;
-		margin-top: 4vh;
+		margin-top: 10px;
+		padding-top: 10px;
 	}
 
 	.save-btn,
 	.cancel-btn {
 		width: 48%;
-		padding: 1.5vh;
+		padding: 12px;
 		background-color: #00A2E9;
 		color: white;
-		font-size: 1.6vw;
+		font-size: 18px;
 		border: none;
 		text-align: center;
+		min-height: 45px;
 	}
 
 	.txt-inp {
-		height: 8vh;
-		padding: 1vh;
-		font-size: 1.5vw;
-		width: 100%;
+		height: 40px;
+		padding: 8px;
+		font-size: 15px;
+		width: 50%;
+		flex-grow: 1;
 		box-sizing: border-box;
+		margin-top: 0;
+	}
+
+	/* 閽堝1280*717灞忓箷鐨勭壒瀹氫紭鍖� */
+	@media screen and (max-width: 1280px) and (max-height: 800px) {
+		.page {
+			padding: 6px;
+		}
+
+		.middle-section {
+			margin-bottom: 6px;
+		}
+
+		.item {
+			margin-bottom: 8px;
+		}
+
+		.item h4 {
+			font-size: 13px;
+			padding: 3px 0;
+		}
+
+		button {
+			padding: 8px;
+			font-size: 15px;
+			min-height: 38px;
+		}
+
+		.txt-inp {
+			height: 38px;
+			padding: 6px;
+			font-size: 14px;
+		}
+
+		.bottom-section {
+			margin-top: 8px;
+			padding-top: 8px;
+		}
+
+		.save-btn,
+		.cancel-btn {
+			padding: 10px;
+			font-size: 17px;
+			min-height: 42px;
+		}
 	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3