From 4933d95524abb076b16ff10585460e119634f4d1 Mon Sep 17 00:00:00 2001
From: whycq <123456>
Date: 星期一, 16 五月 2022 14:53:48 +0800
Subject: [PATCH] #

---
 pages/basics/outPakin.vue |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/pages/basics/outPakin.vue b/pages/basics/outPakin.vue
index 9a60db3..795c19b 100644
--- a/pages/basics/outPakin.vue
+++ b/pages/basics/outPakin.vue
@@ -21,7 +21,7 @@
 				</view>
 				<view class="square-content">
 					<view class="content-input">
-						<input v-model="matnr" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()"
+						<input v-model="matnrId" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()"
 						:focus="focus" @focus="focuss" >
 						<!-- @focus="focuss" -->
 						<uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
@@ -77,7 +77,7 @@
 				type: 'center',
 				searchBox: 'hide',
 				pick:'hide',
-				matnr:'',
+				matnrId:'',
 				// matList:[{matnr:'1101842-10000',batch:'22047515999'}],
 				matList:[],
 				result: '',
@@ -108,7 +108,7 @@
 			resst() {
 				this.matList = []
 				this.barcode = ''
-				this.matnr = ''
+				this.matnrId = ''
 				uni.vibrateShort();
 			},
 			removeBarcode() {
@@ -125,7 +125,7 @@
 				this.$nextTick(function() {
 					this.focus = true;
 				});
-				this.matnr = ''
+				this.matnrId = ''
 				uni.vibrateShort();
 			},
 			remove(item,index) {
@@ -185,13 +185,14 @@
 			
 			findMat() {
 				let that = this
-				let str = that.matnr.split('-')
-				that.matnr = str[0]+'-'+str[1]
+				let str = that.matnrId.split('-')
+				let matnr = str[0]+'-'+str[1]
+				// that.matnr = str[0]+'-'+str[1]
 				uni.showLoading();
 				uni.request({
 				    url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth',
 				    data: {
-						matnr:that.matnr
+						matnr:matnr
 				    },
 				    header: {
 						'token':uni.getStorageSync('token')
@@ -228,7 +229,7 @@
 								// uni.hideKeyboard();
 								that.matList.unshift(res.data)
 							}
-							that.matnr = ''
+							that.matnrId = ''
 							that.listLen = that.matList.length;
 							uni.hideLoading();
 						} else if (res.code == 403) {

--
Gitblit v1.9.1