From b46c7cd24031ca5ef73daf02d57273b6d6f8181d Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Thu, 27 Mar 2025 11:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=94=B6=E8=B4=A7=E5=8D=95?= =?UTF-8?q?=E3=80=81=E4=B8=8A=E6=9E=B6=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/views/storage/receivingGoods/index.vue | 2 +- yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/yxt-as-ui/src/views/storage/receivingGoods/index.vue b/yxt-as-ui/src/views/storage/receivingGoods/index.vue index 601fcb516f..843477b1b3 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/index.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/index.vue @@ -382,7 +382,7 @@ export default { return } this.viewState = 5 - this.$refs['upShelfAdd'].showEdit(this.selectionList[0]) + this.$refs['upShelfAdd'].showEdit({ sid: this.selectionList[0].sid }) }, toEdit(row) { this.viewState = 3 diff --git a/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue b/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue index 4689636e37..0302030622 100644 --- a/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue +++ b/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue @@ -199,19 +199,12 @@ export default { this.submitdisabled = false this.$emit('doback') }, - showAdd() { - this.title = '【新增】' - this.getAllOrgper() - this.$nextTick(() => { - this.$refs['form_obj'].clearValidate() - }) - }, showEdit(row) { this.$nextTick(() => { this.$refs['form_obj'].clearValidate() }) this.getAllOrgper() - this.title = '【修改】' + this.title = '【新增】' req.init({ sid: row.sid }).then(resp => { if (resp.success) { this.formobj = resp.data