From ee79f53fd9385b087ebd7a93af638d91a9825d10 Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期三, 23 八月 2023 18:04:35 +0800
Subject: [PATCH] lnl,设备台账导入功能+页面字段调整

---
 src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue b/src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue
index 1e8fda8..29ded9d 100644
--- a/src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue
+++ b/src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue
@@ -181,7 +181,7 @@
           },
 
           {
-            title: '涓诲崟浣�',
+            title: '鍗曚綅',
             key: 'mainUnitIdName',
             type: JVXETypes.normal,
             align:'center',
@@ -190,7 +190,7 @@
             defaultValue: ''
           },
           {
-            title: '涓诲崟浣�',
+            title: '鍗曚綅',
             key: 'mainUnitId',
             type: JVXETypes.hidden,
             align:'center',
@@ -198,7 +198,7 @@
             placeholder: '璇疯緭鍏�${title}',
             defaultValue: ''
           },
-          {
+         /*  {
             title: '杈呭崟浣�',
             key: 'auxiliaryUnitIdName',
             align:'center',
@@ -215,7 +215,7 @@
             width: '200px',
             placeholder: '璇疯緭鍏�${title}',
             defaultValue: ''
-          },
+          }, */
           {
             title: '涓绘暟閲�',
             key: 'mainQuantity',
@@ -224,17 +224,19 @@
             width: '200px',
             placeholder: '璇疯緭鍏�${title}',
             defaultValue: 0,
-            formatter({ cellValue, row, column }) {
-
+/*             Function({cellValue, row, column}){
+              console.log(cellValue)
+              console.log(row)
+              console.log(column)
               if (cellValue != null) {
                 let conversionRatio = row.conversionRatio
-
+                console.log(conversionRatio)
                 row.auxiliaryQuantity = Math.abs(cellValue * conversionRatio)
 
               }
+              console.log(cellValue)
               return cellValue
-
-            },
+            }, */
             validateRules: [
               {
                 required: true,
@@ -252,7 +254,7 @@
             ]
           },
 
-          {
+         /*  {
             title: '杈呮暟閲�',
             key: 'auxiliaryQuantity',
             type: JVXETypes.normal,
@@ -260,7 +262,7 @@
             align:'center',
             placeholder: '璇疯緭鍏�${title}',
             defaultValue: 0
-          },
+          }, */
           {
             title: '澶囦欢id',
             key: 'sparePartId',
@@ -394,8 +396,6 @@
             auxiliaryUnitId: data[i].auxiliaryUnitId,
             mainUnitIdName: data[i].mainUnitId_dictText,
             auxiliaryUnitIdName: data[i].auxiliaryUnitId_dictText,
-            mainQuantity: data[i].mainQuantity,
-            auxiliaryQuantity: data[i].auxiliaryQuantity,
             requirementTime: data[i].requirementTime,
             conversionRatio: data[i].conversionRatio
 
@@ -458,7 +458,14 @@
       this.visible = false
       this.$emit('close')
       this.$refs.form.clearValidate()
-    }
+    },
+/*     changeAuxiliaryQuantity(target){
+      console.log(target.columnIndex)
+      let num=target.columnIndex
+      if (target.columnIndex ===num){
+        target.row.auxiliaryQuantity=Math.abs(target.row.conversionRatio*target.row.mainQuantity)
+      }
+    } */
   }
 }
 </script>

--
Gitblit v1.9.3