浏览代码

成分分配表发运明细列表调整

jbb 2 年之前
父节点
当前提交
7562579ccc

+ 1 - 1
src/views/reportForms/cost-allocation-table.vue

@@ -342,7 +342,7 @@ export default {
             var oneData = this.$refs.unitTabs.tabsAllData[0]
             this.$refs.unitTabs.fabData = oneData.syCostAllocationFabricList
             this.$refs.unitTabs.ingData = oneData.syCostAllocationIngredientList
-            this.$refs.unitTabs.shipData = oneData.syCostAllocationShipdetailList
+            this.$refs.unitTabs.shipData = oneData.SyCostAllocationShipdetail
 
             this.pagination = {
               total: res.result.total,

+ 3 - 2
src/views/reportForms/cost-allocation-table/tabs.vue

@@ -32,7 +32,7 @@
         <div style="margin:30px 0">
           <h6 class="table-title">辅料</h6>
           <a-table
-            rowKey="id"
+            rowKey="(item)=>item.id"
             :loading="loading"
             :columns="ingColumns"
             :data-source="ingData"
@@ -55,7 +55,7 @@
         <div>
           <h6 class="table-title">发运明细</h6>
           <a-table
-            rowKey="id"
+            rowKey="(item)=>item.id"
             :loading="loading"
             :columns="shipColumns"
             :data-source="shipData"
@@ -404,6 +404,7 @@ export default {
   created() {},
   methods: {
     tabsCallback(key) {
+      debugger
       this.activeKey = key
       // console.log('点击的是', this.activeKey)
       if (key == 0) {