Просмотр исходного кода

成本分配表-事故单=单号点击

jbb 2 лет назад
Родитель
Сommit
8ce778491f
1 измененных файлов с 13 добавлено и 11 удалено
  1. 13 11
      src/views/reportForms/cost-allocation-table.vue

+ 13 - 11
src/views/reportForms/cost-allocation-table.vue

@@ -198,8 +198,8 @@
           :scroll="{ }"
         >
           <!-- 事故单 -->
-          <span slot="accidentNum" slot-scope="text">
-            <a>{{ text }}</a>
+          <span slot="accidentNum" slot-scope="text,record">
+            <a :href="'http://www.myfitt.cn:18086/#/IncidentTicketModalDetail?id='+record.id">{{ text }}</a>
           </span>
         </a-table>
       </div>
@@ -355,11 +355,11 @@ export default {
             this.detailsPlanNum.outdata = ( this.detailsPlanNum.outdata==''&&! this.detailsPlanNum.outdata)?'':moment( this.detailsPlanNum.outdata).format('YYYY-MM-DD')
             this.accidentListData = res.result.syCostAllocationAccidentList //事故单
             this.accidentCalculation(this.accidentListData)
-            var accidentNum = 0
-            this.accidentListData.map(item =>{
-              item.id = accidentNum + 1
-              accidentNum += 1
-            })
+            // var accidentNum = 0
+            // this.accidentListData.map(item =>{
+            //   item.id = accidentNum + 1
+            //   accidentNum += 1
+            // })
             this.costPayData = res.result.syCostAllocationCostpayList //支出费用
             var num = 0
             this.costPayData.map(item =>{
@@ -662,10 +662,12 @@ export default {
       return {
         on: {
           click: event => {
-            console.log('this:', this)
-            // 调用【面料损耗表】中的【事故单】弹框
-            this.$refs.accidentListModal.accidentListModVis = true
-            this.$refs.accidentListModal.accidentList = record
+            
+// this.$router.push({path:'http://localhost:3000/#/IncidentTicketModalDetail'})
+            // console.log('this:', this)
+            // // 调用【面料损耗表】中的【事故单】弹框
+            // this.$refs.accidentListModal.accidentListModVis = true
+            // this.$refs.accidentListModal.accidentList = record
             
           }
         }