From 185abfacfe79bd4a9c8e455512e3491aa41fbd88 Mon Sep 17 00:00:00 2001
From: houjie <714924425@qq.com>
Date: 星期一, 21 八月 2023 17:42:25 +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