From 08fce1f03f21b9bba84f30a8f4d2179afc5d95c7 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 31 八月 2022 15:03:29 +0800
Subject: [PATCH] #

---
 pages/basics/offLines.vue |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 52 insertions(+), 4 deletions(-)

diff --git a/pages/basics/offLines.vue b/pages/basics/offLines.vue
index b16073d..8b20d8e 100644
--- a/pages/basics/offLines.vue
+++ b/pages/basics/offLines.vue
@@ -8,7 +8,7 @@
 			</view>
 			<view class="square-content">
 				<view class="content-input">
-					<input type="text" v-model="yyds" placeholder="鎵爜 / 杈撳叆" @input="find" :focus="focus">
+					<input type="text" v-model="matnr" placeholder="鎵爜 / 杈撳叆" @input="find" :focus="focus">
 					<uni-icons type="closeempty" size="20" color="#dadada"></uni-icons>
 				</view>
 			</view>
@@ -21,11 +21,41 @@
 			</view>
 			<view class="square-content">
 				<view class="content-input">
-					<input type="text" v-model="yyds" placeholder="鎵爜 / 杈撳叆" @input="find" :focus="focus">
+					<input type="text" v-model="locno" placeholder="鎵爜 / 杈撳叆" @input="find" :focus="focus">
 					<uni-icons type="closeempty" size="20" color="#dadada"></uni-icons>
 				</view>
 			</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="square-none" v-show="matList.length == 0">
+			<view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
+		</view>
+		
+		<checkbox-group>
+			<view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
+				<view class="data-list-left">
+					<view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
+					<view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
+					<view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
+					<view>
+						<text style="width: 400rpx;">鏁伴噺锛歿{item.anfme}}</text>
+					</view>
+				</view>
+				<view class="data-list-right">
+					<label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
+					<label><uni-icons type="trash" size="25" color="#a5a5a5" @click="removeItem(item,index)"></uni-icons></label>
+				</view>
+			</view>
+		</checkbox-group>
+		
 		<!-- 搴曢儴鎸夐挳 -->
 		<view class="footer flex justify-around">
 			<!-- <label class="label-btn" style="width: 170rpx;">
@@ -48,11 +78,29 @@
 
 <script>
 	 export default {
-		 data() {
+		data() {
 		 	return {
-				yyds:'',
+				matnr: '',
+				locno: '',
+				matList: [],
 				focus:true
 			}
+		},
+		methods: {
+			comb() {
+				let that = this
+				var offSaleParam = {}
+				offSaleParam['locNo'] = 'NA002'
+				offSaleParam['matnr'] = 'YJ2022081808312309'
+				uni.request({
+					url:'http://localhost:8081/lywms/mobile/mat/offSale/auth',
+					data:JSON.stringify(offSaleParam),
+					method:'POST',
+					success(result) {
+						console.log(result);
+					}
+				})
+			}
 		}
 	 }
 </script>

--
Gitblit v1.9.1