From 118bf43a7c1eba04fceec77218dd4d2f53d3c42a Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期日, 29 一月 2023 15:42:21 +0800 Subject: [PATCH] # --- pages/basics/piking.vue | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/pages/basics/piking.vue b/pages/basics/piking.vue index 0270321..2d585fb 100644 --- a/pages/basics/piking.vue +++ b/pages/basics/piking.vue @@ -40,6 +40,7 @@ <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.specs}}</text></view> <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view> <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view> <view> @@ -61,8 +62,7 @@ </view> </view> </scroll-view> - <y-pop> - </y-pop> + <view> <!-- 淇敼鏁伴噺 --> <uni-popup ref="revise" @change="change"> @@ -140,6 +140,15 @@ for(var i = 0; i < res.data.length;i++){ that.matList.push(res.data[i]) } + } else if (res.code == 403) { + uni.showToast({title: res.msg, icon: "none", position: 'top'}) + setTimeout(() => { + uni.reLaunch({ + url: '../login/login' + }); + }, 1000); + } else { + uni.showToast({title: res.msg, icon: "none",position: 'top'}) } } @@ -160,6 +169,8 @@ let res = result.data if (res.code === 200) { uni.showToast({title: res.msg, icon: "none", position: 'top'}) + that.matList = [] + that.barcode = '' } else if (res.code == 403) { uni.showToast({title: res.msg, icon: "none", position: 'top'}) setTimeout(() => { @@ -311,7 +322,7 @@ }, resst() { this.matList = [] - this.staNo = '' + this.barcode = '' }, adjust() { let that = this @@ -445,7 +456,7 @@ } .data-list { border-bottom: 1px solid #d8d8d8; - height: 180rpx; + height: 230rpx; margin: 15rpx; border-radius: 20rpx; } @@ -469,8 +480,8 @@ display: inline-block; float: right; width: 200rpx; - height: 180rpx; - line-height: 180rpx; + height: 230rpx; + line-height: 230rpx; } .data-list-right label { display: inline-block; -- Gitblit v1.9.1