From aad9bab143364b614d469535c97596b2d43b04cf Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期一, 29 九月 2025 10:21:20 +0800
Subject: [PATCH] 下拉框选择状态

---
 pages/index.vue |   55 +++++++++++++++++++++++++++++--------------------------
 1 files changed, 29 insertions(+), 26 deletions(-)

diff --git a/pages/index.vue b/pages/index.vue
index b889857..9bfcdd5 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -46,15 +46,14 @@
 							<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> -->
+								@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" />
 							</view>
 						</view>
 
 						<view class="form-row">
 							<view>
-								<label
-									style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px;">绗竴姝ラ�夋嫨宸ュ崟:</label>
+								<label style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px;">绗竴姝ラ�夋嫨宸ュ崟:</label>
 								<button class="print-btn" @click="isShowTab">閫夋嫨宸ュ崟</button>
 							</view>
 						</view>
@@ -137,7 +136,7 @@
 			</view>
 			<view v-if="currentTab === 0" class="tab-content">
 				<WorkOrder :orderId="orderId" :orderNo="selectedOrder" :machineNo="machineNo"
-					:deviceNumber="machineName" />
+						   :deviceNumber="machineName" />
 			</view>
 			<view v-if="currentTab === 1" class="tab-content">
 				<!--        &lt;!&ndash; 璋冪敤 WorkOrderStatus 缁勪欢 &ndash;&gt;-->
@@ -168,20 +167,20 @@
 		</scroll-view>
 
 
+		<!-- 寮圭獥涓嬫媺妗嗗彧鏄剧ず宸ュ崟鐘舵�� -->
 		<view v-if="isShow" class="overlay">
 			<view class="popup">
-				<!--绛涢�夊伐鍗曠姸鎬�-->
 				<view class="form-row">
 					<view>
 						<label style="float: left;margin-top: 18px;">閫夋嫨宸ュ崟鐘舵��:</label>
 						<superwei-combox :candidates="engineeringNoMapList" placeholder="璇烽�夋嫨" v-model="engineeringNo"
-							@select="onEngineeringNoChange" class="picker"
-							style="padding: 7px 46px;width: 650px;"></superwei-combox>
+										 @select="onEngineeringNoChange" class="picker"
+										 style="padding: 7px 46px;width: 650px;"></superwei-combox>
 					</view>
 				</view>
 				<view class="section card">
 					<uni-table ref="table" type="selection" border stripe emptyText="鏆傛棤鏇村鏁版嵁"
-						@selection-change="selectionChange">
+							   @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>
@@ -647,11 +646,16 @@
 
 				this.engineeringNo = null;
 				this.tableData = [];
-                // 绛涢�夊伐鍗曠姸鎬�
-				this.GetWomdaasByEngineeringNo();
-				this.getWomdaa();
+                // 涓嬫媺妗嗗彧鏄剧ず宸ュ崟鐘舵��
+                this.engineeringNoMapList = ['寰呭紑宸�', '鏈紑宸�', '瀹屽伐', '鏆傚仠'];
+                // 榛樿鏄剧ず鍏ㄩ儴宸ュ崟
+                this.getWomdaa();
 			},
-
+            // 涓嬫媺妗嗛�変腑鍚庯紝鎸夌姸鎬佺瓫閫夊伐鍗�
+            onEngineeringNoChange(status) {
+                this.engineeringNo = status;
+                this.getWomdaaByStatus();
+            },
 			getWomdaa() {
 
 				let editDate = this.formatDate(new Date());
@@ -660,27 +664,26 @@
 					url: "/Womdaa/GetWomdaasByMachine",
 					data: {
 						machineNo: this.machineNo,
-						//engineeringNo: this.engineeringNo,
 						editDate: editDate
 					}
 				}).then(res => {
 					this.tableData = res.data.tbBillList;
 				})
 			},
-            // 绛涢�夊伐鍗曠姸鎬�
-			GetWomdaasByEngineeringNo() {
-
-				this.$post({
-					url: "/Womdaa/GetWomdaasByEngineeringNo",
-					data: {
-						machineNo: this.machineNo,
-						orderStatus: ['寰呭紑宸�', '鏈紑宸�', '瀹屽伐', '鏆傚仠'] // 鏂板鐘舵�佺瓫閫夋潯浠�
-					}
-				}).then(res => {
-                    this.engineeringNoList = res.data.tbBillList;
-                    // 鐩存帴鏄犲皠锛屼笉鍒嗙粍
-                    this.engineeringNoMapList = this.engineeringNoList.map(s => s.moldId + ":" + s.moldName + ":" + s.moldModel);
+            // 鎸夊伐鍗曠姸鎬佺瓫閫夊伐鍗�
+            getWomdaaByStatus() {
+                let editDate = this.formatDate(new Date());
+                this.$post({
+                    url: "/Womdaa/GetWomdaasByEngineeringNo",
+                    data: {
+                        machineNo: this.machineNo,
+                        orderStatus: [this.engineeringNo], // 鍙紶閫変腑鐨勭姸鎬�
+                        editDate: editDate
+                    }
+                }).then(res => {
+                    this.tableData = res.data.tbBillList;
                 });
+            },
 			},
 			toDetail(item) {
 				this.orderId = item.id;

--
Gitblit v1.9.3