From 2c75eece8ea416574746c922da164d5e448be551 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 22 三月 2024 08:04:20 +0800
Subject: [PATCH] #

---
 pages/phyz/order/orderList.vue |   99 ++++++++-----------------------------------------
 1 files changed, 17 insertions(+), 82 deletions(-)

diff --git a/pages/phyz/order/orderList.vue b/pages/phyz/order/orderList.vue
index a74fbfc..fc0bce1 100644
--- a/pages/phyz/order/orderList.vue
+++ b/pages/phyz/order/orderList.vue
@@ -25,6 +25,12 @@
 			</view>
 		</view>
 		<view style="height: 100rpx;"></view>
+		
+		<!-- 搴曢儴鎿嶄綔鎸夐挳 -->
+		<view class="buttom">
+			<button size="mini" @click="reset('warn')">閲嶇疆</button>
+			<button size="mini" type="primary" @click="combConfirm('warn')">缁勬墭</button>
+		</view>
 	</view>
 </template>
 
@@ -38,86 +44,7 @@
 				matFocus: true,
 				matnr: '',
 				checck: true,
-				dataList: [
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931255',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z',
-						checked: true
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931241',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931225',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931241',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931241',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931241',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931241',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931241',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931241',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931241',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-					{
-						orderNo: 'cg0931241',
-						matnr: 'cg0931241',
-						maktx: '浣犲ソ',
-						anfme: 10,
-						specs: '10-z'
-					},
-				],
+				dataList: [],
 				oldDataList: [],
 				newDataList: [],
 				allCheck: false,
@@ -133,13 +60,18 @@
 			eventChannel.on('item', function(data) {
 				console.log(data);
 				that.orderId = data.item.orderId 
+				uni.setNavigationBarTitle({
+					title: data.item.orderNo
+				})
 				
 			})
 		},
 		onShow() {
 			this.baseUrl = uni.getStorageSync('baseUrl');
 			this.token = uni.getStorageSync('token');
-			this.oldDataList = [...this.dataList]
+			if (this.dataList.length > 0) {
+				this.oldDataList = [...this.dataList]
+			}
 			this.getOrderDetl(this.orderId)
 		},
 		methods: {
@@ -160,6 +92,7 @@
 						console.log(res);
 						if (res.code === 200) {
 							_this.dataList = res.data.records
+							_this.oldDataList = [..._this.dataList]
 						} 
 					}
 				})
@@ -167,7 +100,9 @@
 			matInput() {
 				let count = 0
 				let sign = 0
-				this.dataList = [...this.oldDataList]
+				if (this.oldDataList.length > 0) {
+					this.dataList = [...this.oldDataList]
+				}
 				this.newDataList = []
 				for (let k in this.dataList) {
 					if (!this.dataList[k].matnr.includes(this.matnr)) {

--
Gitblit v1.9.1