From 35a6571ff25e5da94784d228d6bb73df768013d7 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期四, 11 四月 2024 19:51:31 +0800
Subject: [PATCH] #

---
 pages/phyz/orderOut/orderOutSelect.vue |   26 +++++++-
 pages/phyz/orderOut/orderList.vue      |  127 ++++++++++++++++++++++++++++++++++++++++++
 pages.json                             |    9 +++
 3 files changed, 159 insertions(+), 3 deletions(-)

diff --git a/pages.json b/pages.json
index d260d25..1657e46 100644
--- a/pages.json
+++ b/pages.json
@@ -596,6 +596,15 @@
             }
             
         }
+        ,{
+            "path" : "pages/phyz/orderOut/orderList",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "寰呭嚭鍒楄〃",
+                "enablePullDownRefresh": false
+            }
+            
+        }
     ],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
diff --git a/pages/phyz/orderOut/orderList.vue b/pages/phyz/orderOut/orderList.vue
new file mode 100644
index 0000000..15fbd79
--- /dev/null
+++ b/pages/phyz/orderOut/orderList.vue
@@ -0,0 +1,127 @@
+<template>
+	<view>
+		<view class="list list-font-color" :class="orderDetl.color" v-for="(orderDetl,index) in dataList" :key="index">
+			<view class="list-left" style="display: flex;flex-direction: column;">
+				<!-- 涓� -->
+				<view>
+					<view class="detl-threeCode">{{orderDetl.threeCode}}</view>
+					<view class="detl-locNo">{{orderDetl.locNo}}</view>
+				</view>
+				<!-- 涓� -->
+				<view style="display: flex;">
+					<view style="flex: 1;">
+						<view>涓诲崟鍙凤細{{orderDetl.orderNo}}</view>
+						<view>缂栧彿锛歿{orderDetl.matnr}}</view>
+						<view>鍚嶇О锛歿{orderDetl.maktx}}</view>
+						<view>搴撳瓨鏁伴噺锛歿{orderDetl.anfme}}</view>
+					</view>
+					<view class="out-btn">
+						<view>鍑哄簱</view>
+					</view>
+				</view>
+				<!-- 涓� -->
+			</view>
+			<!-- <view class="list-right" @click="goToLocDetl(orderDetl)">
+				<uni-icons type="right" size="25"  color="#fff"></uni-icons>
+			</view> -->
+		</view>
+		<!-- 鍨珮 -->
+		<view style="height: 340rpx;text-align: center;color: #b9b9b9;">
+			- 宸茬粡鍒板簳浜� -
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				baseUrl: '',
+				token: '',
+				dataList: [],
+				count: 0,
+				index: 0,
+				barcode: '',
+				agvDevp: '',
+			}
+		},
+		onShow() {
+			let _this = this
+			this.baseUrl = uni.getStorageSync('baseUrl');
+			this.token = uni.getStorageSync('token');
+			// const eventChannel = this.$scope.eventChannel; // 鍏煎APP-NVUE
+			const eventChannel = this.getOpenerEventChannel();
+			// 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
+			eventChannel.on('item', function(data) {
+				console.log(data.item);
+				_this.getLocDetl(data.item.orderNo,data.item.threeCode,data.item.matnr)
+			})
+		},
+		methods: {
+			getLocDetl(orderNo,threeCode,matnr) {
+				let _this = this
+				uni.request({
+					url: `${_this.baseUrl}/agvMobile/query/locDetl/v1`,
+					header: { 'token': uni.getStorageSync('token') },
+					data: {
+						orderNo: orderNo,
+						threeCode: threeCode ,
+						matnr: matnr
+					},
+					method: 'POST',
+					success(res) {
+						res = res.data
+						console.log(res);
+						if (res.code === 200) {
+							for (let k of res.data) {
+								if (k.anfme > k.qty && k.qty == 0) {
+									k['color'] = 'order-sts-start'
+								} else if (k.anfme > k.qty && k.qty != 0) {
+									k['color'] = 'order-sts-working'
+								} else {
+									k['color'] = 'order-sts-end'
+								}
+							}
+							_this.dataList = res.data
+						}
+					}
+				})
+			}
+		}
+	}
+</script>
+
+<style>
+	@import url('../../../static/css/common/order.css');
+	.list-font-color {
+		color: #fff;
+		/* background-color: #33bb44; */
+	}
+	.order-sts-start {
+		background-color: #3eb689;
+	}
+	.order-sts-working {
+		background-color: #ff9d46;
+	}
+	.order-sts-end {
+		background-color: #ff7356;
+	}
+	.detl-threeCode {
+		font-size: 28px;
+		font-weight: bold;
+	}
+	.detl-locNo {
+		font-size: 20px;
+		font-weight: bold;
+	}
+	.out-btn {
+		background-color: #3e82ff;
+		height: 120rpx;
+		width: 120rpx;
+		line-height: 120rpx;
+		text-align: center;
+		border-radius: 50%;
+		margin-left: 20rpx;
+		margin-right: 20rpx;
+	}
+</style>
diff --git a/pages/phyz/orderOut/orderOutSelect.vue b/pages/phyz/orderOut/orderOutSelect.vue
index 557a56d..124e94a 100644
--- a/pages/phyz/orderOut/orderOutSelect.vue
+++ b/pages/phyz/orderOut/orderOutSelect.vue
@@ -20,7 +20,7 @@
 				<view>璁㈠崟鏁伴噺锛歿{orderDetl.anfme}}</view>
 				<view>宸插嚭鏁伴噺锛歿{orderDetl.qty}}</view>
 			</view>
-			<view class="list-right" @click="addItem(index)">
+			<view class="list-right" @click="goToLocDetl(orderDetl)">
 				<uni-icons type="right" size="25"  color="#fff"></uni-icons>
 			</view>
 		</view>
@@ -35,7 +35,7 @@
 				涓诲崟鍙�
 			</view>
 			<uni-search-bar v-model="searchValue2" style="width: 100%;"
-				maxlength="500" ancel="cancel" @confirm="searchValueInput2()" @clear="clear" placeholder="杈撳叆 / 鎵弿 璁㈠崟鍙�">
+				maxlength="500" ancel="cancel" @confirm="searchValueInput2()" @clear="clear2" placeholder="杈撳叆 / 鎵弿 璁㈠崟鍙�">
 			</uni-search-bar>
 		</view>
 	</view>
@@ -77,7 +77,7 @@
 				
 				_this.data.limit = limit
 				uni.request({
-					url: `${_this.baseUrl}/orderDetl/pakout/list/authV2`,
+					url: `${_this.baseUrl}/orderDetl/pakout/list/authV3`,
 					header: {'token': uni.getStorageSync('token')},
 					data: _this.data,
 					method: 'GET',
@@ -125,6 +125,26 @@
 				}
 				
 			},
+			clear2() {
+				this.searchValue2 = ''
+				this.getOrderDetlList(this.searchValue1,'',999999)
+			},
+			goToLocDetl(item) {
+				let _this = this
+				uni.navigateTo({
+					url: './orderList',
+					success(res) {
+						res.eventChannel.emit('item', {
+							item: item
+						})
+					},
+					events: {
+						acceptDataFromOpenedPage: function(data) {
+							console.log(data);
+						}
+					}
+				})
+			}
 			
 		}
 	}

--
Gitblit v1.9.1