From a5bb1516d7bf336af708a0a434dd9f7d7152872f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 09 四月 2024 16:14:12 +0800
Subject: [PATCH] 纤度登记和纤度检验 2个标签切换请求数据的逻辑处理和+2个模块修改操作时增加对应的检验和登记id

---
 src/views/productManage/silkRegisterForm/addPage.vue |   38 +++++++++++++++++++++++++++-----------
 1 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/src/views/productManage/silkRegisterForm/addPage.vue b/src/views/productManage/silkRegisterForm/addPage.vue
index e3ca7de..b545291 100644
--- a/src/views/productManage/silkRegisterForm/addPage.vue
+++ b/src/views/productManage/silkRegisterForm/addPage.vue
@@ -162,7 +162,7 @@
               </el-row>
             </el-form-item>
             <el-form-item label="杞﹀彿" prop="position" class="form-item">
-              <el-input v-model="form.position" placeholder="璇疯緭鍏�">
+              <el-input v-model.number="form.position" placeholder="璇疯緭鍏�">
               </el-input>
             </el-form-item>
           </el-form>
@@ -195,7 +195,7 @@
           <!-- <CommonSearch :show-add="false" :show-download="false" :amount-view="false" :show-action-btn="false"
                         placeholder="璇疯緭鍏ュ叧閿瘝" @searchClick="onFilterSearch">
                         <template slot="leftButton"> -->
-          <el-button size="small" type="primary" @click="cancelClickTwo"
+          <el-button size="small" type="primary" @click="cancelClickOne"
             >鏀惧純</el-button
           >
           <el-button
@@ -316,11 +316,11 @@
                 show-overflow-tooltip
               >
               </el-table-column>
-              <el-table-column prop="valueRange" label="閲庣氦" width="120">
+              <el-table-column prop="finenessGradeye" label="閲庣氦" width="120">
               </el-table-column>
-              <el-table-column prop="unit" label="澶ч噹" show-overflow-tooltip>
+              <el-table-column prop="finenessGradebig" label="澶ч噹" show-overflow-tooltip>
               </el-table-column>
-              <el-table-column prop="valueRange" label="鐗归噹" width="120">
+              <el-table-column prop="finenessGradeSpecial" label="鐗归噹" width="120">
               </el-table-column>
               <el-table-column
                 prop="finenessGrade"
@@ -576,6 +576,7 @@
                 this.tableList.tableData = config.finenessList
                   ? config.finenessList
                   : [];
+                  this.tableData=this.tableList.tableData
               }
             }
           );
@@ -618,6 +619,15 @@
                 : [];
                 for(let i in arr){
                     let round=arr[i].finenessRoundingItems
+                    if(arr[i].finenessGrade){
+                        if(arr[i].finenessGrade.indexOf('閲庣氦')>-1){
+                            arr[i].finenessGradeye=arr[i].finenessGrade
+                        }else if(arr[i].finenessGrade.indexOf('澶ч噹')>-1){
+                            arr[i].finenessGradebig=arr[i].finenessGrade
+                        }else if(arr[i].finenessGrade.indexOf('鐗归噹')>-1){
+                            arr[i].finenessGradeSpecial=arr[i].finenessGrade
+                        }
+                    }
                     if(round){
                         for(let j in round){
                             arr[i][round[j].fineness]=round[j].quantity
@@ -789,10 +799,15 @@
             sum: "",
           },
         ];
+      }else{
+        this.form.measureFineness=''
+        this.form.twiceChange=''
+        this.form.cleanliness=''
+        this.form.purity=''
+        this.form.marketProcessOrderNumber=''
+        this.form.inspector=''
       }
     },
-    // 绾ゅ害妫�楠岃〃
-    cancelClickTwo() {},
     // 淇濆瓨
     saveClickOne(formName) {
       this.$refs[formName].validate((valid) => {
@@ -801,7 +816,7 @@
           // params.workshopGroup=Number(params.workshopGroup)
           this.isAddloading = true;
           if (this.activeName == "first") {
-            delete form.circle;
+            delete form.circleTwo;
             let finenessList = JSON.parse(
               JSON.stringify(this.tableList.tableData)
             );
@@ -852,6 +867,7 @@
                     message: "淇濆瓨鎴愬姛锛�",
                     type: "success",
                   });
+                  this.getDetailsData()
                 }
                 this.isAddloading = false;
               })
@@ -924,7 +940,7 @@
     .body-l {
       background-color: #fff;
       border-radius: 12px;
-      height: calc(100% - 180px - 20px);
+      height: calc(100% - 20px);
       width: calc(100% - 420px);
       float: left;
       overflow: hidden;
@@ -957,9 +973,9 @@
       }
 
       .list-view {
-        height: calc(100% - 0px);
+        height: calc(100% - 180px);
         min-height: 200px;
-        overflow: hidden;
+        overflow-y: auto;
       }
     }
 

--
Gitblit v1.8.0