From 5d6f0896533dfa7d91a227036cf51bd072d6ccbf Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 11 四月 2024 17:27:38 +0800
Subject: [PATCH] 关闭弹框再开启的时候赋值之前的回数,车号,片数的逻辑处理
---
src/views/productManage/productRegisterForm/addProductRegisterPage.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/productManage/productRegisterForm/addProductRegisterPage.vue b/src/views/productManage/productRegisterForm/addProductRegisterPage.vue
index 8ecc54c..a49e07b 100644
--- a/src/views/productManage/productRegisterForm/addProductRegisterPage.vue
+++ b/src/views/productManage/productRegisterForm/addProductRegisterPage.vue
@@ -907,8 +907,8 @@
// 浠櫒杩炴帴寮圭獥
deviceConnectClick() {
if (this.isDeviceConnectStatus) {
- this.$refs.addProductDialog.proForm.pieceNumber=1
- this.$refs.addProductDialog.proForm.pieces=1
+ this.$refs.addProductDialog.proForm.pieceNumber= this.$refs.addProductDialog.proForm.pieceNumber||1
+ this.$refs.addProductDialog.proForm.pieces= this.$refs.addProductDialog.proForm.pieces||1
this.$forceUpdate();
this.$refs.addProductDialog.editDialogVisible = true;
}
--
Gitblit v1.8.0