From e4dc67055ea0c21e72815054c044b56a76ec625e Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 17 四月 2024 13:08:36 +0800
Subject: [PATCH] #

---
 pages/pakin/goodsUp.vue |   37 +++++++++++++++++++++++++++++++------
 1 files changed, 31 insertions(+), 6 deletions(-)

diff --git a/pages/pakin/goodsUp.vue b/pages/pakin/goodsUp.vue
index 28c7c01..9ff7c83 100644
--- a/pages/pakin/goodsUp.vue
+++ b/pages/pakin/goodsUp.vue
@@ -10,6 +10,10 @@
 				<uni-combox :candidates="orderNoList" placeholder="璇烽�夋嫨鏉ユ簮鍦�"  v-model="origin"></uni-combox>
 			</view> -->
 			<view class="item">
+				<view class="code-decs">璐т富:</view>
+				<uni-combox :candidates="ownerList" placeholder="璇烽�夋嫨璐т富"  v-model="owner"></uni-combox>
+			</view>
+			<view class="item">
 				<view class="code-decs">搴撲綅鐮�:</view>
 				<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="locNo" >
 			</view>
@@ -52,7 +56,7 @@
 						<view class="left-item">{{item.batch}}</view>
 					</view>
 					<view class="list-left-item">
-						<view class="desc">鍏枻锛�</view>
+						<view class="desc">鍏枻(鏁伴噺)锛�</view>
 						<view class="left-item">{{item.anfme}}</view>
 					</view>
 				</view>
@@ -158,7 +162,9 @@
 				locNo:'',
 				orderNoList: [],
 				code:'',
-				origin:''
+				origin:'',
+				ownerList: [],
+				owner: ''
 
 			}
 		},
@@ -169,6 +175,7 @@
 			this.baseUrl = uni.getStorageSync('baseUrl');
 			this.token = uni.getStorageSync('token');
 			this.getOrderNoList()
+			this.getOwnerList()
 		},
 		methods: {
 			findCode(){
@@ -189,10 +196,25 @@
 					method: 'POST',
 					success(res) {
 						res = res.data
-						console.log(res);
 						for (var i = 0; i < res.data.length; i++) {
 							that.orderNoList.push(res.data[i])
 						}
+					}
+				})
+			},
+			getOwnerList(){
+				let that = this
+				uni.request({
+					url: this.baseUrl + '/locOwnerQuery/auth',
+					header: {
+						'token':uni.getStorageSync('token')
+					},
+					method: 'POST',
+					success(res) {
+						res = res.data
+						res.data.forEach((item,index) => {
+							that.ownerList.push(item.value)
+						})
 					}
 				})
 			},
@@ -207,7 +229,6 @@
 					data: {orderNo: that.orderNo},
 					method:'GET',
 					success(res) {
-						console.log(res);
 						res = res.data
 						if(res.code === 200){
 							for(var i = 0; i < res.data.length;i++){
@@ -283,7 +304,10 @@
 											const day = now.getDate();
 											data.data.batch = (""+year+month+day)
 										}
-										that.checkMat(data.data)
+										for(let i = 0; i < data.data.count; i++) {
+											// that.checkMat(data.data)
+											that.dataList.unshift(data.data.mat)
+										}
 									},
 								},
 							});
@@ -482,7 +506,8 @@
 						locNo:that.locNo,
 						// code:that.code,
 						// origin:that.origin,
-						combMats: that.dataList
+						combMats: that.dataList,
+						owner: that.owner
 					}),
 					method: 'POST',
 					header: {

--
Gitblit v1.9.1