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(); + } }