From d1e90a6eca8b870a0e419bc4dae4363d209236ec Mon Sep 17 00:00:00 2001
From: houjie <714924425@qq.com>
Date: 星期一, 21 八月 2023 17:45:59 +0800
Subject: [PATCH] 备品信息:左树有表布局处理

---
 src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue b/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
index b4b0363..f422f8c 100644
--- a/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
+++ b/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
@@ -70,6 +70,7 @@
           :columns='sparesScrapDetailTable.columns'
           :dataSource='sparesScrapDetailTable.dataSource'
           :maxHeight='300'
+          @valueChange="changeAuxiliaryQuantity"
           :disabled='formDisabled'
           :rowNumber='true'
           :rowSelection='true'
@@ -551,6 +552,13 @@
       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.scrapAuxiliaryQuantity=Math.abs(target.row.conversionRatio*target.row.scrapMainQuantity)
+      }
     }
   }
 }

--
Gitblit v1.9.3