diff --git a/pages/admin/orderList/index.vue b/pages/admin/orderList/index.vue index 56ac315..e28c771 100644 --- a/pages/admin/orderList/index.vue +++ b/pages/admin/orderList/index.vue @@ -47,7 +47,7 @@ - + diff --git a/pages/margin/margin.vue b/pages/margin/margin.vue index 05135bd..7e48a2a 100644 --- a/pages/margin/margin.vue +++ b/pages/margin/margin.vue @@ -13,7 +13,7 @@ {{merchant_Data.unpaid_margin}} - 缴纳店铺账户 + 缴纳押金账户 {{merchant_Data.mer_name}} diff --git a/pages/nongKe/gather/select_warehouse.vue b/pages/nongKe/gather/select_warehouse.vue index 6f76815..4b5d0bf 100644 --- a/pages/nongKe/gather/select_warehouse.vue +++ b/pages/nongKe/gather/select_warehouse.vue @@ -158,7 +158,7 @@ 取消 - 确定 + 确定 @@ -171,7 +171,7 @@ - + @@ -238,6 +238,7 @@ searchGoodsShow: false, searchGoodsName: '', showModel: false, + showModelCode: '', goods: [ // { // "id": 35, @@ -567,15 +568,27 @@ }, }) }, + isStartsWith6Or06(str) { + const regex = /^(6|06)/; + return regex.test(str); + }, async seachBarCode(code) { if(code.length<12){ return Toast('条形码长度不正确, 请重试!') } + this.showModelCode = code; + console.log('扫码的值', code); + if(!this.isStartsWith6Or06(code)) { + Toast('暂不支持进口商品!'); + this.$u.sleep(1200).then(()=>{ + this.showModel = true; + }) + return ; + } uni.showLoading({ title: '加载中', mask: true }) - console.log('扫码的值', code); await seachBarCodeAPI({ code: code, mer_id: this.mer_id @@ -590,9 +603,7 @@ }); } else { if (res.data.list.length < 1) { - uni.navigateTo({ - url: `/pages/product/addGoods/index?mer_id=${this.mer_id}&code=${code}` - }) + this.showModel = true; return } this.goods = JSON.parse(JSON.stringify(res.data.list)); @@ -603,7 +614,10 @@ } }).catch((err) => { console.log('错误', err); - Toast('加载出错') + Toast(err); + this.$u.sleep(1200).then(()=>{ + this.showModel = true; + }) }) }, @@ -620,6 +634,17 @@ console.log(res.tempFilePaths[0]); } }) + }, + navToAdd(){ + let url; + if(this.showModelCode) url = `/pages/product/addGoods/index?mer_id=${this.mer_id}&code=${this.showModelCode}`; + else url = `/pages/product/addGoods/index?mer_id=${this.mer_id}`; + uni.navigateTo({ + url:url, + success:()=> { + this.showModel = false; + } + }) } }, onPullDownRefresh() { diff --git a/pages/product/list/index.vue b/pages/product/list/index.vue index c53cbb8..106fdfd 100644 --- a/pages/product/list/index.vue +++ b/pages/product/list/index.vue @@ -21,7 +21,7 @@ 在售商品 - @@ -34,7 +34,7 @@ 回收站 - + --> @@ -42,11 +42,6 @@ 店铺分类 - - - - - @@ -54,13 +49,6 @@ 运费模板 - - - 规格模板 - @@ -69,6 +57,17 @@ +