From 295c9eb2c051406c89dcf975abe7eb9dd2a28c4b Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期四, 22 九月 2022 16:03:08 +0800 Subject: [PATCH] # --- pages/basics/orderPakin.vue | 37 ++++++++++++++++++++++++------------- 1 files changed, 24 insertions(+), 13 deletions(-) diff --git a/pages/basics/orderPakin.vue b/pages/basics/orderPakin.vue index 8eadd85..95aa25e 100644 --- a/pages/basics/orderPakin.vue +++ b/pages/basics/orderPakin.vue @@ -21,8 +21,7 @@ </view> <view class="square-content"> <view class="content-input"> - <input readonly="value" v-model="locNo" type="text" placeholder="鎵爜 / 杈撳叆" - > + <input readonly="value" v-model="locNo" type="text" placeholder="鎵爜 / 杈撳叆" > <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('locNo')"></uni-icons> </view> </view> @@ -40,7 +39,7 @@ <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.beBatch}}</text></view> + <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view> <view> <text style="width: 400rpx;">鏁伴噺锛歿{item.anfme}}</text> </view> @@ -62,7 +61,7 @@ </view> <view class="" style="position: relative;left: 50px;margin-bottom: 20px;"> <text style="display: inline-block;float: left;width: 50px;">鎵瑰彿锛�</text> - <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="beBatch"> + <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="batch"> </view> <view class="changeBox"> <view class="num-box"> @@ -105,7 +104,7 @@ matData: '', barcodeFocus:true, count: 0, - beBatch: '', + batch: '', @@ -131,10 +130,8 @@ }, analysis() { let that = this - console.log(this.orderNo); let str = that.orderNo.split(';') that.orderNo = str[0] - console.log(str[0]); uni.request({ url: that.commonUrl + '/mat/auth', data: { @@ -147,7 +144,7 @@ uni.vibrateShort(); let res = result.data if (res.code === 200 && res.data) { - res.data.beBatch = str[2] + res.data.batch = str[2] that.matData = res.data that.matnr = '' uni.navigateTo({ @@ -155,13 +152,11 @@ events: { // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� matList: function(data) { - console.log(data); that.matList.push(data.data) }, }, success: function(res) { // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� - console.log(that.matData); res.eventChannel.emit('matData', { data: that.matData }) }, }); @@ -172,6 +167,7 @@ }, revise(item,index) { this.count = this.matList[index].anfme + this.batch = this.matList[index].batch this.rowNum = index this.eject() }, @@ -185,7 +181,7 @@ }, confirm() { this.matList[this.rowNum].anfme = this.count - this.matList[this.rowNum].beBatch = this.beBatch + this.matList[this.rowNum].batch = this.batch this.$refs.revise.close() this.$forceUpdate() // 寮哄埗鍒锋柊 }, @@ -204,9 +200,8 @@ combParam['locNo'] = that.locNo combParam['orderNo'] = that.orderNo combParam['combMats'] = that.matList - console.log(JSON.stringify(combParam)); uni.request({ - url: that.commonUrl + '/mobile/mat/onSale/auth', + url: that.commonUrl + '/order/in', data: JSON.stringify(combParam), header: { 'token':uni.getStorageSync('token'),}, method:'POST', @@ -227,6 +222,12 @@ } } }) + }, + // 閲嶇疆 + resst() { + this.locNo = '' + this.orderNo = '' + this.matList = [] }, } } @@ -316,4 +317,14 @@ line-height: 50rpx; margin-top: 10rpx; } + .changeBox { + width: 400rpx; + height: 100rpx; + } + .num-box { + margin-left: 100rpx; + } + .revise-box-buttom{ + margin-left: 130rpx; + } </style> \ No newline at end of file -- Gitblit v1.9.1