소스 검색

成本分配表-辅料tab-合计行取消序号

jbb 2 년 전
부모
커밋
ead923ec12
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      src/views/reportForms/cost-allocation-table.vue
  2. 7 1
      src/views/reportForms/cost-allocation-table/tabs.vue

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

@@ -435,7 +435,6 @@ export default {
          average += item.exportUnitPrice
        })
        this.detailsPlanNum.shortvalue = Number(this.detailsPlanNum.shortseveral*average).toFixed(2)
-
        var shipQuantityAll =0,
         exportUnitPriceALll = 0,
         exportPriceAll =0,

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

@@ -262,7 +262,13 @@ export default {
           dataIndex: 'index',
           key: 'index',
           fixed: 'left',
-          customRender: (text, record, index) => `${index + 1}`,
+          customRender: (text, record, index) =>{
+            if(record.goodsName!=='合计'){
+              return index + 1
+            }else{
+              return ''
+            }
+          },
           className: 'replacecolor'
         },
         { title: '货物名称', width: 200, dataIndex: 'goodsName', fixed: 'left', className: 'replacecolor' },