From cc32dc8d26f71497ce7f7e43930ec03035e6fe90 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期三, 20 十一月 2024 14:23:14 +0800 Subject: [PATCH] # --- pages/pakin/WarehouseIn.vue | 49 +++++++++++++++---------------------------------- 1 files changed, 15 insertions(+), 34 deletions(-) diff --git a/pages/pakin/WarehouseIn.vue b/pages/pakin/WarehouseIn.vue index fba7b8c..ed23e47 100644 --- a/pages/pakin/WarehouseIn.vue +++ b/pages/pakin/WarehouseIn.vue @@ -101,7 +101,7 @@ <view class="popup-item"> <view class="popup-item-left">鏁伴噺:</view> <view class="popup-item-right" style="border: none;justify-content: center;"> - <uni-number-box :value="count" :step='0.01' :max="9999999" color="#747474" @change="changeValue" /> + <uni-number-box :value="count" :step='1' :max="9999999" color="#747474" @change="changeValue" /> </view> </view> <view class="btn"> @@ -206,27 +206,19 @@ } uni.request({ url: that.baseUrl + '/waitPakin/forBarcode/auth', - data: { - barcode: that.barcode - }, - header: { - 'token': uni.getStorageSync('token') - }, + data: { barcode: that.barcode }, + header: { 'token': uni.getStorageSync('token') }, success(result) { var res = result.data if (res.code === 200) { that.dataList = res.data; } else if (res.code == 403) { - that.messageText = res.msg - that.messageToggle('error') + uni.showToast({ title: res.msg, icon: "error", position: 'center' }) setTimeout(() => { - uni.reLaunch({ - url: '../login/login' - }); + uni.reLaunch({ url: '../login/login' }); }, 1000); } else { - that.messageText = res.msg - that.messageToggle('error') + uni.showToast({ title: res.msg, icon: "error", position: 'center' }) } } }); @@ -382,8 +374,7 @@ }, // 纭绉婚櫎 removeConfirm() { - this.messageText = "绉婚櫎鎴愬姛" - this.messageToggle('success') + uni.showToast({ title: "绉婚櫎鎴愬姛", icon: "success", position: 'center' }) this.dataList.splice(this.removeNum, 1) }, // 鍙栨秷绉婚櫎 @@ -395,8 +386,7 @@ this.dataList[this.rowNum].batch = this.batch this.dataList[this.rowNum].weight = this.weight this.matnr = '' - this.messageText = "淇敼鎴愬姛" - this.messageToggle('success') + uni.showToast({ title: "淇敼鎴愬姛", icon: "success", position: 'center' }) this.$refs.revise.close() }, reviseClose() { @@ -419,8 +409,7 @@ let that = this; if (that.dataList.length === 0) { - this.messageText = "鎵樼洏鐮佺粍鎵樻暟鎹湁璇�" - this.messageToggle('error') + uni.showToast({ title: "鎵樼洏鐮佺粍鎵樻暟鎹湁璇�", icon: "error", position: 'center' }) return; } uni.request({ @@ -429,26 +418,19 @@ barcode: that.barcode, locNo: that.locNo }, - header: { - 'token': uni.getStorageSync('token') - }, + header: { 'token': uni.getStorageSync('token') }, success(result) { var res = result.data if (res.code === 200) { that.resst(); - that.messageText = "涓婃灦鎴愬姛" - that.messageToggle('success') + uni.showToast({ title: "涓婃灦鎴愬姛", icon: "success", position: 'center' }) } else if (res.code == 403) { - that.messageText = res.msg - that.messageToggle('error') + uni.showToast({ title: res.msg, icon: "error", position: 'center' }) setTimeout(() => { - uni.reLaunch({ - url: '../login/login' - }); + uni.reLaunch({ url: '../login/login' }); }, 1000); } else { - that.messageText = res.msg - that.messageToggle('error') + uni.showToast({ title: res.msg, icon: "error", position: 'center' }) } } }); @@ -462,8 +444,7 @@ // 纭閲嶇疆 resetConfirm() { this.dataList = [] - this.messageText = "閲嶇疆瀹屾垚" - this.messageToggle('success') + uni.showToast({ title: "閲嶇疆瀹屾垚", icon: "success", position: 'center' }) }, // 鍙栨秷閲嶇疆 resetClose() { -- Gitblit v1.9.1