From 74e98e5e0d58bb20cf9c12d58df96e578b9a8c67 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 10 四月 2024 18:53:47 +0800
Subject: [PATCH] +新增表单和设备弹框页面的数据关联问题处理

---
 src/views/productManage/productRegisterForm/addProductRegisterPage.vue |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/views/productManage/productRegisterForm/addProductRegisterPage.vue b/src/views/productManage/productRegisterForm/addProductRegisterPage.vue
index bddc310..10b98b7 100644
--- a/src/views/productManage/productRegisterForm/addProductRegisterPage.vue
+++ b/src/views/productManage/productRegisterForm/addProductRegisterPage.vue
@@ -653,7 +653,6 @@
       }
     },
     changeTableInput(form){
-      debugger
       let string=''
       for(let i in this.tableData){
         if(this.tableData[i].carNumber==form.carNumber){
@@ -800,7 +799,7 @@
     saveClickOne(formName) {
       this.$refs[formName].validate((valid) => {
         if (valid) {
-          let form = JSON.parse(JSON.stringify(this.form));
+          let form = JSON.parse(JSON.stringify(this.ruleForm));
           // params.workshopGroup=Number(params.workshopGroup)
           this.isAddloading = true;
           delete form.circleTwo;
@@ -815,8 +814,8 @@
             ...form,
           };
           // 缂栬緫
-          if (this.inspectID) {
-            params.ID = this.form.ID ? this.form.ID : Number(this.inspectID);
+          if (this.productRegisterId) {
+            params.id = this.ruleForm.id ? this.ruleForm.id : Number(this.productRegisterId);
           }
           saveYieldRegister(params)
             .then((res) => {

--
Gitblit v1.8.0