From 6841dd88d840ad8310b1809c99df36a0e789aa2e Mon Sep 17 00:00:00 2001
From: whycq <123456>
Date: 星期日, 24 四月 2022 11:37:35 +0800
Subject: [PATCH] #

---
 pages/basics/checkout.vue |   72 ++++++++++++++++++++++++++++++------
 1 files changed, 60 insertions(+), 12 deletions(-)

diff --git a/pages/basics/checkout.vue b/pages/basics/checkout.vue
index 26730c1..289f168 100644
--- a/pages/basics/checkout.vue
+++ b/pages/basics/checkout.vue
@@ -1,7 +1,19 @@
 <template>
 	<view >
 		<scroll-view scroll-y catch:touchmove="touchmove">
-			<view class="pak-seach-box">
+			<view class="square-2">
+				<view class="square-title">
+					<view class="title-sign"><view class="sign"></view></view>
+					<view class="title-text"><text>鎵樼洏鏉$爜</text></view>
+				</view>
+				<view class="square-content">
+					<view class="content-input">
+						<input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="8" @input="findBarcode()">
+						<uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
+					</view>
+				</view>
+			</view>
+			<!-- <view class="pak-seach-box">
 				<view class="box-top">
 					<view class="color-block-blue"></view>
 					<text class="title">鎵樼洏鏉$爜</text>
@@ -12,8 +24,25 @@
 						<uni-icons type="closeempty" size="20" color="#a5a5a5" @click="removeBarcode()"></uni-icons>
 					</view>
 				</view>
+			</view> -->
+			
+			<view class="square-2">
+				<view class="square-title">
+					<view class="title-sign"><view class="sign"></view></view>
+					<view class="title-text"><text>璐у搧鏉$爜</text></view>
+				</view>
+				<view class="square-content">
+					<view class="content-combox">
+						<uni-combox  emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="绔欏彴鍙�"></uni-combox>
+					</view>
+					<view class="content-input-combox">
+						<input type="text" v-model="matnr" placeholder="鎵爜 / 杈撳叆" @input="findMat()">
+						<uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
+					</view>
+				</view>
 			</view>
-			<view class="pak-seach-box">
+			
+			<!-- <view class="pak-seach-box">
 				<view class="box-top">
 					<view class="color-block-blue"></view>
 					<text class="title">璐у搧鏉$爜</text>
@@ -24,17 +53,22 @@
 						<uni-icons type="closeempty" size="20" color="#a5a5a5" @click="removeMatnr()"></uni-icons>
 					</view>
 				</view>
-				<button class="cu-btn bg-blue" @click="selectMat()">+鎻愬彇</button>
-			</view>
-			<view class="pak-data-box">
-				<view class="box-top">
-					<view class="color-block-blue"></view>
-					<text class="title">鍟嗗搧鍒楄〃</text>
+				<view class="combox">
+					<uni-combox  emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="绔欏彴鍙�"></uni-combox>
+				</view>
+			</view> -->
+			<view class="square-1">
+				<view class="square-title">
+					<view class="title-sign"><view class="sign"></view></view>
+					<view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
 				</view>
 			</view>
-			<view class="pak-data-box"  v-show="matList.length === 0">
-				<view style="text-align: center;">鏆傛棤鏇村鏁版嵁</view>
+			<view class="square-none" v-show="matList.length === 0">
+				<view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
 			</view>
+			<!-- <view class="pak-data-box"  v-show="matList.length === 0">
+				<view style="text-align: center;">鏆傛棤鏇村鏁版嵁</view>
+			</view> -->
 			<checkbox-group @change="checkbox">
 				<view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
 					<view class="data-list-left">
@@ -71,7 +105,9 @@
 				pick:'hide',
 				matnr:'',
 				matList:[],
-				result: ''
+				result: '',
+				staNoList:[],
+				staNo:'',
 			}
 		},
 		mounted(){
@@ -79,6 +115,7 @@
 			this.baseIP = UIP;
 			const UPORT = uni.getStorageSync('UPORT');
 			this.basePORT = UPORT
+			this.getOutBound();
 		},
 		methods: {
 			resst() {
@@ -168,6 +205,7 @@
 				uni.request({
 				    url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/query/auth',
 				    data: {
+						staNo:that.staNo,
 						matnr:that.matnr
 				    },
 				    header: {
@@ -221,6 +259,10 @@
 					},
 				});
 			}, // getOutBound
+			getCheckDetl() {   // 鑾峰彇鍑哄簱鍙h揣鐗╀俊鎭�
+				let that = this
+				
+			}, // getCheckDetl
 			change(e) {
 				console.log('褰撳墠妯″紡锛�' + e.type + ',鐘舵�侊細' + e.show);
 			},
@@ -291,7 +333,7 @@
 	}
 	.box-buttom {
 		display: inline-block;
-		background-color: #ededed;
+		background-color: #f0f0f0;
 		width: 65%;
 		height: 60rpx;
 		border-radius: 20rpx;
@@ -309,6 +351,12 @@
 		margin-top: 5rpx;
 		margin-right: 10rpx;
 	}
+	.combox {
+		position: fixed;
+		display: inline-block;
+		width: 28%;
+		float: right;
+	}
 	/* .pak-seach-box input {
 		background-color: #ededed;
 		border: 1rpx solid #d8d8d8;

--
Gitblit v1.9.1