From ddab693f389b648157c8b48c7fcbdefc92561dd2 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期五, 05 七月 2024 19:55:22 +0800 Subject: [PATCH] 老PCS替换代码优化,工业大屏优化,PDA功能优化 --- 代码管理/太重PDA/pages/unpacking/unpacking.vue | 31 ++++++++++++++++++++++++------- 1 files changed, 24 insertions(+), 7 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/unpacking/unpacking.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/unpacking/unpacking.vue" index 8b64e6d..7f6f8d5 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/unpacking/unpacking.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/unpacking/unpacking.vue" @@ -12,7 +12,7 @@ class="login__info__item__input tn-flex tn-flex-direction-row tn-flex-nowrap tn-flex-col-center tn-flex-row-left"> <view class="login__info__item__input__content"> <input maxlength="500" v-model="barcode" focus="true" placeholder-class="input-placeholder" - @input="barcodeInput" placeholder="璇锋壂鎻忔渶搴曚笅鐨勮溅杞彿" /> + @input="barcodeInput" placeholder="璇锋壂鎻忚溅杞彿" /> </view> </view> <!-- <view @@ -35,10 +35,10 @@ </view> --> <view class="login__info__item__button tn-cool-bg-color-7--reverse" @tap="submitCheek()" hover-class="tn-hover" :hover-stay-time="150">淇℃伅鏍稿</view> - <view :class="istrue?'isnone':'isnonone'"> + <!--<view :class="istrue?'isnone':'isnonone'"> <view class="login__info__item__button tn-cool-bg-color-7--reverse" @tap="submitTransfer()" hover-class="tn-hover" :hover-stay-time="150" style="margin-top: 0px;">鍏ョ紦瀛樻灦</view> - </view> + </view>--> </view> </view> </template> @@ -100,9 +100,25 @@ }, ///鏉$爜 barcodeInput: function(e) { - this.barcode = e.detail.value; - console.log(this.barcode); - console.log(uni.getStorageSync('jo_user')); + //this.from_address = e.detail.value; + this.$u.post("/api/Towms/GetStation", { + MainData: { + barcode: this.barcode, + //to_address:this.to_address, + //creator: uni.getStorageSync('jo_user').userName + } + }).then(res => { + if (res.status) { + this.barcode = res.code; + //this.istrue = false; + //this.$t.message.toast(res.code); + } else { + this.istrue = true; + this.$t.message.toast(res.message); + } + }).catch(err => { + + }) }, //缂撳瓨鏋剁紪鍙� cacheConfirm(e) { @@ -139,8 +155,9 @@ } }).then(res => { if (res.status) { + this.barcode = '', this.istrue = false; - this.$t.message.toast('鏍¢獙鎴愬姛'); + this.$t.message.toast('绉诲簱澶栧崗,璇风瓑寰匒GV鍙栬揣'); } else { this.istrue = true; this.$t.message.toast(res.message); -- Gitblit v1.9.3