Browse Source

森语-质量事故单

jbb 2 years ago
parent
commit
f215bdc659
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/oa/modules/IncidentTicketModal.vue

+ 8 - 2
src/views/oa/modules/IncidentTicketModal.vue

@@ -179,7 +179,7 @@
             
           <!-- 汇率 -->
           <span slot="exchangeRate" slot-scope="text, record, index">
-                  <a-input placeholder="请输入" v-model="record.exchangeRate" />
+                  <a-input placeholder="请输入" v-model="record.exchangeRate" @change="changeExchangeRate(record)"/>
           </span>
            <!-- 实际事故金额 -->
            <span slot="practicalSum" slot-scope="text, record, index">
@@ -509,7 +509,13 @@
         })
       },
       changepracticalSum(record){
-        record = Number(record.practicalSum)
+        record.practicalSum = Number(record.practicalSum).toFixed(2)
+        this.$forceUpdate()
+      },
+      changeExchangeRate(record){
+        this.incidentTicketChildrenTable.dataSource.map(item=>{
+          item.exchangeRate = record.exchangeRate
+        })
       },
        //关闭
        handleCancel(){