From dc1ff9ba4391bbe67f37ed19da89ae34e679b32c Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Fri, 1 Nov 2024 16:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=80=97=E6=9D=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/yskApi/shop-user.js | 1 + pageConsumables/addsupplier.vue | 15 +++++++++++-- pageConsumables/outbound.vue | 16 ++++++++------ pageConsumables/warehouseEntry.vue | 34 +++++++++++++----------------- 4 files changed, 38 insertions(+), 28 deletions(-) diff --git a/http/yskApi/shop-user.js b/http/yskApi/shop-user.js index 0467ffb..4434d93 100644 --- a/http/yskApi/shop-user.js +++ b/http/yskApi/shop-user.js @@ -41,6 +41,7 @@ export function queryAllShopInfo(params) { method: "get", params: { shopId: uni.getStorageSync('shopId'), + isVip:1, ...params } }); diff --git a/pageConsumables/addsupplier.vue b/pageConsumables/addsupplier.vue index 41ed2df..42027d2 100644 --- a/pageConsumables/addsupplier.vue +++ b/pageConsumables/addsupplier.vue @@ -63,8 +63,9 @@ }, }) const currentInstance = getCurrentInstance() + function sumbit() { - if(!datas.form.purveyorName||!datas.form.purveyorTelephone||!datas.form.address){ + if (!datas.form.purveyorName || !datas.form.purveyorTelephone || !datas.form.address) { currentInstance.ctx.$refs.uToastRef.show({ message: "请填写必填项", type: 'default', @@ -72,7 +73,16 @@ return } tbShopPurveyorpost(datas.form).then(res => { - go.back() + currentInstance.ctx.$refs.uToastRef.show({ + message: "添加成功", + type: 'default', + }) + setTimeout(() => { + // go.to('PAGES_SUPPLIER')pageConsumables/supplier + // uni.redirectTo({url: '/pageConsumables/supplier'}) + go.back() + // uni.redirectTo({url: '/pageConsumables/supplier'}) + }, 1000) }) } @@ -140,6 +150,7 @@ .bottombutton { margin-top: 84rpx; padding: 0 24rpx; + >button { width: 530rpx; height: 80rpx; diff --git a/pageConsumables/outbound.vue b/pageConsumables/outbound.vue index 0a4a77e..30e7274 100644 --- a/pageConsumables/outbound.vue +++ b/pageConsumables/outbound.vue @@ -57,27 +57,29 @@ --> - + 供应商 - - {{datas.status[nowStatusIndex]}} - + + {{datas.status[nowStatusIndex]}} + 新增 + - + - - + 供应商 - - {{datas.status[nowStatusIndex]}} - + + {{datas.status[nowStatusIndex]}} + - + 新增 - - - - {{item}} - - - - + + + - + @@ -159,6 +154,7 @@ res.content.forEach(ele => { datas.status.push(ele.purveyorName) }) + console.log(datas.status, '调试121') }) } @@ -168,7 +164,7 @@ let nowStatusIndex = ref(0) function changeNowStatusIndex(i) { - nowStatusIndex.value = i + nowStatusIndex.value = i.detail.value showStatus.value = false } @@ -187,7 +183,7 @@ }) return } - if(!datas.list[nowStatusIndex.value]){ + if (!datas.list[nowStatusIndex.value]) { refs.ctx.$refs.uToastRef.show({ type: 'default', message: "供应商不能为空",