Browse Source

成本分配表-面料shet-转入成本弹窗数据源修改

jbb 1 year ago
parent
commit
1eca32ee58
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/reportForms/cost-allocation-table/tabs.vue

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

@@ -8,7 +8,6 @@
         <div :class="[(fabData.length==0?'noprint': '')]">
           <h6 class="table-title">面料</h6>
           <a-table
-            rowKey="(item)=>item.id"
             :loading="loading"
             :columns="fabColumns"
             :data-source="fabData"
@@ -699,6 +698,7 @@ export default {
             console.log( this.mList,this.fList)
             this.$refs.fabInQuaModal.fabInQuaModVis = true
             this.$refs.fabInQuaModal.record = record
+           
             record.syTransfers.map(item=>{
               if(item.unitCost){
                  item.unitCost =  Number(item.unitCost).toFixed(3)
@@ -707,7 +707,7 @@ export default {
             this.$refs.fabInQuaModal.data = record.syTransfers
             if(this.mList.length!==0){
               this.mList.map(item=>{
-                if(item.goodsName == record.goodsName){
+                if(item.goodsName == record.goodsName && item.syTransfers.length!==0){
                   this.$refs.fabInQuaModal.data = item.syTransfers
                 }
               })