From b1e6790c16a69989098b284e40409cddf11c567a Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 14 Jul 2022 09:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=93=81=E7=BB=84=E6=A1=B6=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../storage/settings/ChengPinBarrelPrint.vue | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/pages/xinrui/storage/settings/ChengPinBarrelPrint.vue b/src/pages/xinrui/storage/settings/ChengPinBarrelPrint.vue index fd5dca3..cd72b84 100644 --- a/src/pages/xinrui/storage/settings/ChengPinBarrelPrint.vue +++ b/src/pages/xinrui/storage/settings/ChengPinBarrelPrint.vue @@ -17,13 +17,13 @@
- +
批次
- +
@@ -104,7 +104,8 @@ export default { qtyunitName: '', disabled1: false, disabled2: false, - materialId: '' + materialId: '', + disabled3: JSON.stringify(this.$store.getters.materObj1) !== '{}' } }, beforeRouteLeave (to, from, next) { @@ -119,7 +120,7 @@ export default { this.val2 = this.$store.getters.materObj1.material_code this.materialId = this.$store.getters.materObj1.material_id this.val3 = this.$store.getters.materObj1.pcsn - this.val4 = '50.000' + this.val4 = Number(this.$store.getters.materObj1.standard_weight).toFixed(3) + '' } if (JSON.stringify(this.$store.getters.materObj) !== '{}') { this.val2 = this.$store.getters.materObj.material_code @@ -173,9 +174,11 @@ export default { }, /** 物料查询 */ async searchList () { - this.$router.push({ - path: '/MaterInfoSearchRadio' - }) + if (JSON.stringify(this.$store.getters.materObj1) === '{}') { + this.$router.push({ + path: '/MaterInfoSearchRadio' + }) + } }, /** 根据桶查询 */ async _endProductqueryInfoBybucket () { @@ -197,10 +200,12 @@ export default { }, /** 清空 */ clearUp () { - this.val1 = '' - this.val2 = '' this.$store.dispatch('materObj', '') - this.val3 = '' + this.val1 = '' + if (JSON.stringify(this.$store.getters.materObj1) === '{}') { + this.val2 = '' + this.val3 = '' + } this.val4 = '' this.val5 = '' this.val6 = ''