From 4651d74b7bed7ff82fb09727967a6b580fd65ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Mon, 5 Sep 2022 14:21:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E7=A8=8B=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=94=AE?= =?UTF-8?q?=E5=90=8E=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=AE=A1=E9=87=8F=E5=8D=95=E4=BD=8D=20=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=A7=84=E6=A0=BC=E6=B7=BB=E5=8A=A0=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/home/orderCenter/ApplyAfterSale.vue | 1 + manager/src/views/goods-unit/index.vue | 6 +++ manager/src/views/goods/goods-manage/spec.vue | 5 +++ manager/src/views/logistics/index.vue | 36 ++++++++------- manager/src/views/seller/shop/shopDetail.vue | 42 +++++++++++++---- .../department-manage/departmentManage.vue | 45 ++++++++++++------- .../after-order/reurnGoodsOrderDetail.vue | 1 + 7 files changed, 96 insertions(+), 40 deletions(-) diff --git a/buyer/src/pages/home/orderCenter/ApplyAfterSale.vue b/buyer/src/pages/home/orderCenter/ApplyAfterSale.vue index 91911629..7dc84ccb 100644 --- a/buyer/src/pages/home/orderCenter/ApplyAfterSale.vue +++ b/buyer/src/pages/home/orderCenter/ApplyAfterSale.vue @@ -165,6 +165,7 @@ export default { let params = Object.assign(this.info, this.form) params.images = this.uploadList.toString() params.orderItemSn = this.$route.query.sn + params.reason = this.reasonList.find(item => item.id == params.reason).reason applyAfterSale(params).then(res => { if (res.success) { this.$Message.success('售后申请提交成功,请到售后订单查看!') diff --git a/manager/src/views/goods-unit/index.vue b/manager/src/views/goods-unit/index.vue index 57f1131d..b55c1245 100644 --- a/manager/src/views/goods-unit/index.vue +++ b/manager/src/views/goods-unit/index.vue @@ -220,6 +220,12 @@ export default { this.submitLoading = true; if (this.modalTitle == "添加") { + + if(this.data.find(item=>item.name == this.form.name)){ + this.$Message.error('请勿添加重复计量单位!') + this.submitLoading = false + return + } // 添加 避免编辑后传入id等数据 记得删除 delete this.form.id; addGoodsUnit(this.form).then((res) => { diff --git a/manager/src/views/goods/goods-manage/spec.vue b/manager/src/views/goods/goods-manage/spec.vue index 267e0a37..ce331a27 100644 --- a/manager/src/views/goods/goods-manage/spec.vue +++ b/manager/src/views/goods/goods-manage/spec.vue @@ -264,6 +264,11 @@ export default { if (valid) { this.submitLoading = true; if (this.modalType === 0) { + if(this.data.find(item=>item.specName == this.form.specName)){ + this.$Message.error('请勿添加重复规格名称!') + this.submitLoading = false + return + } // 添加 避免编辑后传入id等数据 delete this.form.id; insertSpec(this.form).then((res) => { diff --git a/manager/src/views/logistics/index.vue b/manager/src/views/logistics/index.vue index 79a49592..65eee380 100644 --- a/manager/src/views/logistics/index.vue +++ b/manager/src/views/logistics/index.vue @@ -13,7 +13,7 @@ > - +

diff --git a/manager/src/views/sys/department-manage/departmentManage.vue b/manager/src/views/sys/department-manage/departmentManage.vue index afc2e4ec..f497b4f3 100644 --- a/manager/src/views/sys/department-manage/departmentManage.vue +++ b/manager/src/views/sys/department-manage/departmentManage.vue @@ -1,4 +1,3 @@ -