From f29627ec7bee0fe77411cbcd49b8b5a971c32b01 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期一, 20 十月 2025 11:20:53 +0800
Subject: [PATCH] 下拉框显示完工工单状态
---
pages/index.vue | 45 +++++++++++++++++++++++----------------------
1 files changed, 23 insertions(+), 22 deletions(-)
diff --git a/pages/index.vue b/pages/index.vue
index 660a916..0cf47f2 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -12,13 +12,13 @@
璋冩満閫佹
</view>
<view class="tab-item" :class="{ active: currentTab === 2 }" @click="changeTab(2)">
- 鎹㈡ā
+ 鍒�鍏风鐞�
+ </view>
+ <view class="tab-item" :class="{ active: currentTab === 4 }" @click="changeTab(4)">
+ 鐢熶骇鎶ュ伐
</view>
<view class="tab-item" :class="{ active: currentTab === 1 }" @click="changeTab(1)">
寮�宸ュ畬宸�
- </view>
- <view class="tab-item" :class="{ active: currentTab === 4 }" @click="changeTab(4)">
- 鎵撶爜鎶ュ伐
</view>
<view class="tab-item" :class="{ active: currentTab === 5 }" @click="changeTab(5)">
e-SOP
@@ -39,7 +39,7 @@
<button class="refresh-btn" @click="refresh">鍒锋柊</button>
</view>
<view>
- <h4>涓�骞呮ā鍏峰悓鏃跺紑宸ュ涓伐鍗曡缃�</h4>
+ <h4>涓�鍙版満鍙板彧鑳介�夋嫨涓�鏉″伐鍗曪紙澶氶�夐粯璁や负鏈�鍚庝竴鏉★級</h4>
</view>
<view class="section top-section">
<view class="form-row">
@@ -127,8 +127,7 @@
<view>
<text style="color: red;">
- 璇存槑:鍒濆鐘舵�佹槸锛屾寜娉ㄥ鏈烘煡鍑烘墍鏈夌殑鏈畬宸ョ殑宸ュ崟銆傜敤閫夋嫨妗嗘爣璇嗘満鍣ㄨ寮�宸ョ殑宸ュ崟.
- 鍙互鍚屾椂寮�宸ュ涓伐鍗曪紝浣嗗繀椤绘ā鍏锋槸涓�濂椼�傞�夋嫨瀹屾垚锛岀偣鍑讳繚瀛橀�夋嫨銆傜郴缁熶繚鐣欓�変腑鐨勫伐鍗曘��
+ 璇存槑:鍙兘鍚屾椂寮�宸ヤ竴涓伐鍗曘�傞�夋嫨瀹屾垚锛岀偣鍑讳繚瀛橀�夋嫨銆傜郴缁熶繚鐣欓�変腑鐨勫伐鍗曘��
濡傛灉瑕侀噸閫夛紝鐐瑰嚮娓呯┖閲嶉�夊姛鑳姐��
</text>
</view>
@@ -277,6 +276,9 @@
return {
orderStatus: '', // 榛樿鍏ㄩ儴
currentTab: 7,
+
+ productCode: '', // 浜у搧缂栫爜
+ productSpec: '', // 浜у搧瑙勬牸
machineList: [],
@@ -467,14 +469,14 @@
return;
}
- let firstValue = data[0]["moldId"]; // 鑾峰彇绗竴涓璞$殑鎸囧畾灞炴�у��
+ //let firstValue = data[0]["moldId"]; // 鑾峰彇绗竴涓璞$殑鎸囧畾灞炴�у��
- // 浣跨敤 every 鏂规硶妫�鏌ユ墍鏈夊璞$殑璇ュ睘鎬у�兼槸鍚︿竴鑷�
- let flag = data.every(item => item["moldId"] === firstValue);
- if (!flag) {
- this.$showMessage("閫夊彇鐨�" + data.length + "涓伐鍗曚腑鐨勬ā鍏风紪鍙蜂笉涓�鑷�");
- return;
- }
+ //// 浣跨敤 every 鏂规硶妫�鏌ユ墍鏈夊璞$殑璇ュ睘鎬у�兼槸鍚︿竴鑷�
+ //let flag = data.every(item => item["moldId"] === firstValue);
+ //if (!flag) {
+ // this.$showMessage("閫夊彇鐨�" + data.length + "涓伐鍗曚腑鐨勬ā鍏风紪鍙蜂笉涓�鑷�");
+ // return;
+ //}
let orderSelect = [];
@@ -499,7 +501,8 @@
if (res.data.tbBillList) {
this.getWomdaaIsShow();
uni.showToast({
- title: '灏嗘敞濉戞満寮�鍚堟ā鏁版竻0',
+ title: '淇濆瓨宸ュ崟鎴愬姛',
+ //title: '灏嗘敞濉戞満寮�鍚堟ā鏁版竻0',
//灏嗗�艰缃负 success 鎴栬�呯洿鎺ヤ笉鐢ㄥ啓icon杩欎釜鍙傛暟
icon: 'success',
//鏄剧ず鎸佺画鏃堕棿涓� 5绉�
@@ -567,12 +570,8 @@
return `${year}-${month}-${day}`; // 杩斿洖鏍煎紡鍖栧悗鐨勫瓧绗︿覆
},
selectionChange(e) {
- // 鍙繚鐣欐渶鍚庝竴涓�変腑鐨勫伐鍗�
- if (Array.isArray(e.detail.index)) {
- this.selectedIndexs = [e.detail.index[e.detail.index.length - 1]];
- } else {
- this.selectedIndexs = [e.detail.index];
- }
+ // 鍗曢�夌洿鎺ヨ祴鍊�
+ this.selectedIndexs = [e.detail.index];
},
selectedItems() {
@@ -655,7 +654,7 @@
this.engineeringNo = null;
this.tableData = [];
// 涓嬫媺妗嗗彧鏄剧ず宸ュ崟鐘舵��
- this.engineeringNoMapList = ['寰呭紑宸�', '鏈紑宸�', '瀹屽伐', '鏆傚仠'];
+ this.engineeringNoMapList = ['寰呭紑宸�', '鏈紑宸�', '寮�宸�', '鏆傚仠','瀹屽伐'];
// 榛樿鏄剧ず鍏ㄩ儴宸ュ崟
this.getWomdaa();
},
@@ -695,6 +694,8 @@
toDetail(item) {
this.orderId = item.id;
this.selectedOrder = item.daa001;
+ this.productCode = item.daa002; // 浜у搧缂栫爜
+ this.productSpec = item.daa004; // 浜у搧瑙勬牸
this.currentTab = 0;
}
},
--
Gitblit v1.9.3