From ceac6282e0bc2d9777ddfe53ea06a372f0c5dcbb Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Mon, 22 Jul 2024 10:36:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=95=B0=E6=8D=AE=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../baseInfo/warehouses/goodsShelves/goodsShelvesAdd.vue | 7 +++++-- .../baseInfo/warehouses/warehouseArea/warehouseAreaAdd.vue | 7 +++++-- src/views/goods/category/categoryAdd.vue | 7 +++++-- src/views/goods/goods/goodsAdd.vue | 5 ++++- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/views/baseInfo/warehouses/goodsShelves/goodsShelvesAdd.vue b/src/views/baseInfo/warehouses/goodsShelves/goodsShelvesAdd.vue index 0358c19..4c6771d 100644 --- a/src/views/baseInfo/warehouses/goodsShelves/goodsShelvesAdd.vue +++ b/src/views/baseInfo/warehouses/goodsShelves/goodsShelvesAdd.vue @@ -78,7 +78,7 @@ } }, created() { - this.initData() + }, methods: { initData() { @@ -144,8 +144,11 @@ } this.$emit('doback') }, - showAdd() {}, + showAdd() { + this.initData() + }, showEdit(row) { + this.initData() req.initGoodsShelves(row.sid) .then(resp => { if (resp.success) { diff --git a/src/views/baseInfo/warehouses/warehouseArea/warehouseAreaAdd.vue b/src/views/baseInfo/warehouses/warehouseArea/warehouseAreaAdd.vue index 55c5b21..686bfe2 100644 --- a/src/views/baseInfo/warehouses/warehouseArea/warehouseAreaAdd.vue +++ b/src/views/baseInfo/warehouses/warehouseArea/warehouseAreaAdd.vue @@ -90,7 +90,7 @@ } }, created() { - this.initData() + }, methods: { initData() { @@ -171,8 +171,11 @@ } this.$emit('doback') }, - showAdd() {}, + showAdd() { + this.initData() + }, showEdit(row) { + this.initData() req.initWarehousearea(row.sid) .then(resp => { if (resp.success) { diff --git a/src/views/goods/category/categoryAdd.vue b/src/views/goods/category/categoryAdd.vue index f927b83..3451952 100644 --- a/src/views/goods/category/categoryAdd.vue +++ b/src/views/goods/category/categoryAdd.vue @@ -204,7 +204,7 @@ } }, created() { - this.initData() + }, methods: { initData() { @@ -307,8 +307,11 @@ } this.$emit('doback') }, - showAdd() {}, + showAdd() { + this.initData() + }, showEdit(row) { + this.initData() req.initTypes(row.sid) .then(resp => { if (resp.success) { diff --git a/src/views/goods/goods/goodsAdd.vue b/src/views/goods/goods/goodsAdd.vue index 14e2237..9ee5899 100644 --- a/src/views/goods/goods/goodsAdd.vue +++ b/src/views/goods/goods/goodsAdd.vue @@ -850,7 +850,7 @@ } }, created() { - this.initData() + }, methods: { initData() { @@ -880,6 +880,7 @@ this.hideUploadBtn = this.imgList.length != 0 console.log('this.hideUploadBtn', this.hideUploadBtn) + }, saveOrUpdate() { @@ -934,6 +935,7 @@ this.$emit('doback') }, showAdd() { + this.initData() this.$nextTick(() => { this.$refs['form_obj'].clearValidate() }) @@ -946,6 +948,7 @@ return index + 1 }, showEdit(row) { + this.initData() this.$nextTick(() => { this.$refs['form_obj'].clearValidate() })