Browse Source

面孙表申请

fenghaifu 2 years ago
parent
commit
fab99dc3ff
1 changed files with 18 additions and 0 deletions
  1. 18 0
      src/views/cost-allocation-total/fabricLossesSummary.vue

+ 18 - 0
src/views/cost-allocation-total/fabricLossesSummary.vue

@@ -93,6 +93,10 @@
         :scroll="{ x: 1500 }"
         :scroll="{ x: 1500 }"
         @change="handleTableChange"
         @change="handleTableChange"
       >
       >
+      <span slot="action" slot-scope="text, record">
+          <a @click="handleApply(record)">发起申请</a>
+          
+        </span>
       </a-table>
       </a-table>
     </a-card>
     </a-card>
 
 
@@ -190,6 +194,13 @@ export default {
           className: 'replacecolor',
           className: 'replacecolor',
         },
         },
         { title: '制单人', width: 120, dataIndex: 'makingPeople', ellipsis: true,className: 'replacecolor' },
         { title: '制单人', width: 120, dataIndex: 'makingPeople', ellipsis: true,className: 'replacecolor' },
+         {
+            title: '操作',
+            dataIndex: 'action',
+            scopedSlots: { customRender: 'action' },
+            align: 'center',
+            width: 80
+          }
 
 
       ],
       ],
       fabricLossesData: [],
       fabricLossesData: [],
@@ -243,6 +254,13 @@ export default {
       this.queryParam.pageNo = pagination.current
       this.queryParam.pageNo = pagination.current
       this.getCostList()
       this.getCostList()
     },
     },
+    handleApply(record){
+      var data = {
+        type:"面损表",
+        ccode:record.ccode,
+      };
+      window.parent.postMessage({msg:"startApply", data:data}, "*");
+    },
   },
   },
   computed: {},
   computed: {},
   mounted() {}
   mounted() {}