Procházet zdrojové kódy

森语-事故处理单

jbb před 2 roky
rodič
revize
23ed353fa9

+ 6 - 0
src/views/oa/IncidentTicketList.vue

@@ -213,6 +213,12 @@ import moment from 'moment'
             customRender: (t) => ellipsis(t,30),
             width:400,  
           },
+          {
+            title:'U8生成运费发票号',
+            align:"center",
+            dataIndex: 'u8Invoices',
+            width:150,
+          },
           {
             title:'质量事故单主题',
             align:"center",

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

@@ -187,7 +187,7 @@
             
           <!-- 汇率 -->
           <span slot="exchangeRate" slot-scope="text, record, index">
-                  <a-input placeholder="请输入" v-model="record.exchangeRate" @change="changeExchangeRate(record)"/>
+                  <a-input placeholder="请输入" v-model="record.exchangeRate" @change="changeExchangeRate(record,index)"/>
           </span>
            <!-- 实际事故金额 -->
            <span slot="practicalSum" slot-scope="text, record, index">
@@ -199,7 +199,7 @@
           </span>
           <!-- 账套号 -->
           <span slot="zhanghaoId" slot-scope="text, record, index">
-            <a-select v-model="record.zhanghaoId" @change="handleChange(record)" style="width: 100%;">
+            <a-select v-model="record.zhanghaoId" @change="handleChange(record,index)" style="width: 100%;">
             <a-select-option value="101">101</a-select-option>
             <a-select-option value="102">102</a-select-option>
             <a-select-option value="103">103</a-select-option>
@@ -513,19 +513,23 @@
       })
       },
       // 改变账套号
-      handleChange(record){
+      handleChange(record,index){
+        if(index==0){
         this.incidentTicketChildrenTable.dataSource.map(item=>{
           item.zhanghaoId = record.zhanghaoId
         })
+      }
       },
       changepracticalSum(record){
         record.practicalSum = Number(record.practicalSum).toFixed(2)
         this.$forceUpdate()
       },
-      changeExchangeRate(record){
+      changeExchangeRate(record,index){
+        if(index == 0){
         this.incidentTicketChildrenTable.dataSource.map(item=>{
           item.exchangeRate = record.exchangeRate
         })
+      }
       },
        //关闭
        handleCancel(){