From 11939aa712c013aad41c08dece5c979fd821ffcb Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期六, 22 十一月 2025 15:28:46 +0800
Subject: [PATCH] 调试

---
 pages/index.vue |  165 ++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 109 insertions(+), 56 deletions(-)

diff --git a/pages/index.vue b/pages/index.vue
index 736b2e4..b8eded8 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -18,8 +18,8 @@
 				鐢熶骇鎶ュ伐
 			</view>
 			<view class="tab-item" :class="{ active: currentTab === 1 }" @click="changeTab(1)">
-		        寮�宸ュ畬宸�
-	        </view> 
+				寮�宸ュ畬宸�
+			</view>
 			<view class="tab-item" :class="{ active: currentTab === 5 }" @click="changeTab(5)">
 				e-SOP
 			</view>
@@ -30,8 +30,8 @@
 				璁惧鐐规
 			</view>
 			<!-- <view class="tab-item" :class="{ active: currentTab === 8 }" @click="changeTab(8)">
-		鎵撳嵃鏈鸿缃�
-	</view> -->
+			鎵撳嵃鏈鸿缃�
+		</view> -->
 
 		</view>
 		<view class="font"></view>
@@ -45,12 +45,13 @@
 						<h4>涓�鍙版満鍙板彧鑳介�夋嫨涓�鏉″伐鍗曪紙澶氶�夐粯璁や负鏈�鍚庝竴鏉★級</h4>
 					</view>
 					<view class="section top-section">
+						<!--鏄剧ず褰撳墠鏈哄彴-->
 						<view class="form-row">
 							<view>
-								<!-- <label style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px">绗竴姝ラ�夋嫨鏈哄彴:</label> -->
-								<!-- <superwei-combox :candidates="machineList" placeholder="璇烽�夋嫨" v-model="machineName"
-								@select="onMachineChange" class="picker"></superwei-combox> -->
-								<input v-model="machineName" disabled="true" type="text" style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px" />
+								<input v-model="machineName"
+									   disabled="true"
+									   type="text"
+									   class="machine-name-box" />
 							</view>
 						</view>
 
@@ -130,9 +131,9 @@
 
 					<view>
 						<!--<text style="color: red;">
-							璇存槑:鍙兘鍚屾椂寮�宸ヤ竴涓伐鍗曘�傞�夋嫨瀹屾垚锛岀偣鍑讳繚瀛橀�夋嫨銆傜郴缁熶繚鐣欓�変腑鐨勫伐鍗曘��
-							濡傛灉瑕侀噸閫夛紝鐐瑰嚮娓呯┖閲嶉�夊姛鑳姐��
-						</text>-->
+						璇存槑:鍙兘鍚屾椂寮�宸ヤ竴涓伐鍗曘�傞�夋嫨瀹屾垚锛岀偣鍑讳繚瀛橀�夋嫨銆傜郴缁熶繚鐣欓�変腑鐨勫伐鍗曘��
+						濡傛灉瑕侀噸閫夛紝鐐瑰嚮娓呯┖閲嶉�夊姛鑳姐��
+					</text>-->
 					</view>
 				</view>
 			</view>
@@ -179,12 +180,9 @@
 				<view class="form-row">
 					<view style="display: flex; align-items: center;">
 						<label style="float: left;margin-top: 18px;">鐐瑰嚮鎸夐挳绛涢�夊伐鍗曠姸鎬�:</label>
-						<select v-model="engineeringNo" class="picker" style="padding: 7px 46px;width: 300px;">
-							<option v-for="item in engineeringNoMapList" :key="item.label" :value="item.label">{{ item.label }}</option>
-						</select>
-						<select v-if="engineeringNo === '鍏朵粬'" v-model="engineeringNoSub" class="picker" style="padding: 7px 46px;width: 300px;">
-							<option v-for="sub in engineeringNoMapList.find(i=>i.label==='鍏朵粬').children" :key="sub" :value="sub">{{ sub }}</option>
-						</select>
+						<superwei-combox :candidates="engineeringNoMapList" placeholder="璇烽�夋嫨" v-model="engineeringNo"
+										 @select="onEngineeringNoChange" class="picker"
+										 style="padding: 7px 46px;width: 650px;"></superwei-combox>
 						<span style="margin-left: 20px; color: #ff6600; font-size: 18px;">澶氶�夋椂鍙繚鐣欐渶鍚庝竴鏉″伐鍗�</span>
 					</view>
 				</view>
@@ -194,21 +192,26 @@
 
 						<view class="section card">
 							<uni-table ref="table" type="selection" border stripe emptyText="鏆傛棤鏇村鏁版嵁"
-									   @selection-change="selectionChange">
+									   class="large-selection-table" @selection-change="selectionChange">
 								<uni-tr>
-									<uni-th align="center" class="th" style="color: #FFFFFF">宸ュ簭</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF">宸ュ崟鍙�</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF">浜у搧缂栫爜</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF">浜у搧鍚嶇О</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF">瑙勬牸</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">宸茬敓浜ф暟閲�</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">鏈敓浜ф暟閲�</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">娲惧伐鏁伴噺</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">宸ュ崟鏁伴噺</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">宸ュ崟鐘舵��</uni-th>
-									<uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">鎶ュ伐浜�</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">宸ュ簭</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 120px;">宸ュ崟鍙�</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 120px;">浜у搧缂栫爜</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 260px;">浜у搧鍚嶇О</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 260px;">瑙勬牸</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 80px;">宸茬敓浜ф暟閲�</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 80px;">鏈敓浜ф暟閲�</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 80px;">娲惧伐鏁伴噺</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 80px;">宸ュ崟鏁伴噺</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">宸ュ崟鐘舵��</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">鎶ュ伐浜�</uni-th>
+									<uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">閫夋嫨</uni-th>
 								</uni-tr>
-								<uni-tr v-for="(item, index) in tableData" :key="index">
+								<uni-tr v-for="(item, index) in tableData"
+										:key="index"
+										:class="{'row-selected': selectedIndexs.includes(index)}"
+										@click="onRowClick(index)"
+										style="cursor: pointer;">
 									<uni-td align="center">
 										<input class="form-input" disabled="true" type="text" v-model="item.procName" /><!--宸ュ簭-->
 									</uni-td>
@@ -298,12 +301,8 @@
 				machine: [],
 
 				engineeringNoList: [],
-                engineeringNoMapList: [
-                    { label: '鍏朵粬', children: ['寰呭紑宸�', '鏈紑宸�', '寮�宸�', '鏆傚仠'] },
-                    { label: '瀹屽伐', children: [] }
-                ],
-                engineeringNo: '', // 褰撳墠閫変腑椤�
-                engineeringNoSub: '', // 閫変腑鐨勨�滃叾浠栤�濆瓙椤�
+				engineeringNoMapList: [],
+				engineeringNo: '',
 
 				machineNo: '',
 				machineName: '',
@@ -345,6 +344,9 @@
 			this.refresh();
 		},
 		methods: {
+            onRowClick(index) {
+                this.selectedIndexs = [index]; // 鍗曢��
+            },
 			checkForUpdate() {
 				this.$post({
 					url: "/DevMachine/getAppUpgradeInfo",
@@ -415,25 +417,25 @@
 			getPrintInfo() {
 				var mac = "";
 				
-				//mac = "74:24:ca:4f:b7:9b";
-				//this.$post({
-				//	url: "/DevMachine/GetDevMachineByPdaMac",
-				//	data: {
-				//		pdaMac: mac,
-				//	}
-				//}).then(res => {
-				//	let devMachine = res.data.tbBillList;
-				//	this.machineNo = devMachine.machineNo;
-    //                this.machineName = "璋冭瘯妯″紡锛�" + this.machineNo + "鍙烽娇杞満"
+				mac = "74:24:ca:4f:b7:9b";
+				this.$post({
+					url: "/DevMachine/GetDevMachineByPdaMac",
+					data: {
+						pdaMac: mac,
+					}
+				}).then(res => {
+					let devMachine = res.data.tbBillList;
+					this.machineNo = devMachine.machineNo;
+                    this.machineName = "璋冭瘯妯″紡锛�" + this.machineNo + "鍙烽娇杞満"
 
-				//	uni.setStorageSync('machineNo', this.machineNo);
-				//	uni.setStorageSync('printMac', devMachine.printMac);
+					uni.setStorageSync('machineNo', this.machineNo);
+					uni.setStorageSync('printMac', devMachine.printMac);
 
-				//	console.log(devMachine.printMac);
+					console.log(devMachine.printMac);
 
-				//	this.getWomdaaIsShow();
-				//});
-				//return;
+					this.getWomdaaIsShow();
+				});
+				return;
 				
 				
 	 			if (plus.os.name == "Android") {
@@ -685,9 +687,16 @@
                 }
 
                 this.isShow = true;
-                this.engineeringNo = '鍏朵粬';
-                this.engineeringNoSub = '寰呭紑宸�';
+                // 榛樿閫変腑鈥滃緟寮�宸モ��
+                this.engineeringNo = '寰呭紑宸ャ�佹湭寮�宸ャ�佹殏鍋�';
                 this.tableData = [];
+                // 涓嬫媺妗嗗彧鏄剧ず鍚堝苟鍚庣殑鐘舵�佸拰鍏跺畠鐘舵��
+                this.engineeringNoMapList = [
+                    '寰呭紑宸ャ�佹湭寮�宸ャ�佹殏鍋�',
+                    '寮�宸�',
+                    '瀹屽伐'
+                ];
+                // 榛樿鏄剧ず鈥滃緟寮�宸モ�濆伐鍗�
                 this.getWomdaaByStatus();
             },
             // 涓嬫媺妗嗛�変腑鍚庯紝鎸夌姸鎬佺瓫閫夊伐鍗�
@@ -712,12 +721,17 @@
             // 鎸夊伐鍗曠姸鎬佺瓫閫夊伐鍗�
             getWomdaaByStatus() {
                 let editDate = this.formatDate(new Date());
-                let status = this.engineeringNo === '鍏朵粬' ? this.engineeringNoSub : this.engineeringNo;
+                let statusArr = [];
+                if (this.engineeringNo === '寰呭紑宸ャ�佹湭寮�宸ャ�佹殏鍋�') {
+                    statusArr = ['寰呭紑宸�', '鏈紑宸�', '鏆傚仠'];
+                } else {
+                    statusArr = [this.engineeringNo];
+                }
                 this.$post({
                     url: "/Womdaa/GetWomdaasByEngineeringNo",
                     data: {
                         machineNo: this.machineNo,
-                        orderStatus: [status], // 鍙紶閫変腑鐨勭姸鎬�
+                        orderStatus: statusArr,
                         editDate: editDate
                     }
                 }).then(res => {
@@ -737,6 +751,19 @@
 </script>
 
 <style lang="scss">
+
+    :deep(.checkbox),
+    :deep(.checkbox__inner) {
+        padding: 10px !important;
+        width: 44px !important;
+        min-width: 44px !important;
+        box-sizing: border-box;
+    }
+
+    .row-selected {
+        background-color: #e0f3ff !important;
+    }
+
 	.font {
 		background-color: #666666;
 		height: 30px;
@@ -999,6 +1026,24 @@
 		border-radius: 0.8vw;
 	}
 
+    .machine-name-box {
+        border: 2px solid #e53935; /* 绾㈣壊杈规 */
+        border-radius: 8px;
+        font-family: fantasy;
+        font-size: 33px;
+        margin-top: 20px;
+        padding: 15px 48px; /* 涓婁笅20px锛屽乏鍙�48px锛屽鍔犲唴杈硅窛 */
+        width: 500px; /* 鏇村锛屼繚璇佸唴瀹瑰畬鏁存樉绀� */
+        height: 70px; /* 澧炲姞楂樺害 */
+        box-sizing: border-box;
+        background: #fff;
+        color: #222;
+        font-weight: bold;
+        text-align: left;
+        display: block;
+    }
+
+
 	@media screen and (max-width: 1920px) {
 		.tab-item {
 			font-size: 1.6vw;
@@ -1014,6 +1059,14 @@
 		}
 	}
 
+    .uni-td, .uni-th, td, th {
+        word-break: break-all;
+        white-space: normal;
+        /* 鍙�夛細璁剧疆鏈�澶у搴︼紝闃叉鎾戠牬琛ㄦ牸 */
+        max-width: 180px;
+        overflow-wrap: break-word;
+    }
+
 	/* 閽堝1280x800鐨勫钩鏉夸娇鐢ㄥ獟浣撴煡璇㈣繘琛岄�傞厤 */
 	@media screen and (min-width: 1280px) and (max-width: 1920px) {
 		.right-side {

--
Gitblit v1.9.3