From 70de45c4f8f2a6df51519094f4b52a6c072f5b57 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Fri, 1 Jul 2022 15:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A1=E7=A0=81=E7=BC=96=E8=BE=91=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E5=9B=BD=E5=AE=B6=E5=BA=93=E8=AE=BE=E5=AE=9A=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E8=BE=93=E5=85=A5=E5=BA=8F=E5=88=97=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/warehouse/editCode.vue | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/src/views/warehouse/editCode.vue b/src/views/warehouse/editCode.vue index c7a7a04..9d0414d 100644 --- a/src/views/warehouse/editCode.vue +++ b/src/views/warehouse/editCode.vue @@ -64,7 +64,7 @@ - + @@ -125,6 +125,13 @@ export default { }, editData: null }, + + data() { + return { + xlhEnable: false, + }; + }, + methods: { saveCode() { if (this.editTye == 1) { @@ -144,26 +151,33 @@ export default { }); } - }, + } + , cancelDialog() { this.closeCodeDialog(); - }, + } + , findByCode() { let query = {udiCode: this.editData.code}; findByCode(query) .then((response) => { if (response.code === 20000) { - + if (response.data.scbssfbhxlh == "否") { + this.xlhEnable = true; + } } else { } this.loading = false; }); } - }, + } + , created() { + this.editData = JSON.parse(JSON.stringify(this.codeDetail)); - }, + this.findByCode(); + } }