Jelajahi Sumber

面孙表申请

fenghaifu 2 tahun lalu
induk
melakukan
fab99dc3ff
1 mengubah file dengan 18 tambahan dan 0 penghapusan
  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 }"
         @change="handleTableChange"
       >
+      <span slot="action" slot-scope="text, record">
+          <a @click="handleApply(record)">发起申请</a>
+          
+        </span>
       </a-table>
     </a-card>
 
@@ -190,6 +194,13 @@ export default {
           className: 'replacecolor',
         },
         { title: '制单人', width: 120, dataIndex: 'makingPeople', ellipsis: true,className: 'replacecolor' },
+         {
+            title: '操作',
+            dataIndex: 'action',
+            scopedSlots: { customRender: 'action' },
+            align: 'center',
+            width: 80
+          }
 
       ],
       fabricLossesData: [],
@@ -243,6 +254,13 @@ export default {
       this.queryParam.pageNo = pagination.current
       this.getCostList()
     },
+    handleApply(record){
+      var data = {
+        type:"面损表",
+        ccode:record.ccode,
+      };
+      window.parent.postMessage({msg:"startApply", data:data}, "*");
+    },
   },
   computed: {},
   mounted() {}