Bladeren bron

面料损耗表开票成本增加序号列

jbb 2 jaren geleden
bovenliggende
commit
5d703ffc47
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 7 0
      src/views/reportForms/fabric-loss-table.vue

+ 7 - 0
src/views/reportForms/fabric-loss-table.vue

@@ -522,6 +522,7 @@ export default {
 
       // 开票成本-面料 表头
       costInvoiceFabricColumns: [
+        { title: '序号', width: 80, dataIndex: 'index', className: 'replacecolor' },
         {
           title: '发票号码',
           width: 120,
@@ -543,6 +544,7 @@ export default {
       costInvoiceClothesColumns:[],
       // 开票成本-成衣 表头无美元
       costInvoiceClothesColumnsM1:[
+        { title: '序号', width: 80, dataIndex: 'index', className: 'replacecolor' },
         { title: '发票号码', width: 120, dataIndex: 'cpbvcode', className: 'replacecolor' },
         { title: '委外供应商', width: 120, dataIndex: 'cvenAbbName', className: 'replacecolor' },
         { title: '成衣加工费(人民币)', width: 120, dataIndex: 'isum', className: 'replacecolor' },
@@ -561,6 +563,7 @@ export default {
       ],
       // 开票成本-成衣 表头
       costInvoiceClothesColumnsAll: [
+        { title: '序号', width: 80, dataIndex: 'index', className: 'replacecolor' },
         { title: '发票号码', width: 120, dataIndex: 'cpbvcode', className: 'replacecolor' },
         { title: '委外供应商', width: 120, dataIndex: 'cvenAbbName', className: 'replacecolor' },
         { title: '成衣加工费(人民币)', width: 120, dataIndex: 'isum', className: 'replacecolor' },
@@ -582,6 +585,7 @@ export default {
 
       costInvoiceIngredientColumns:[],
       costInvoiceIngredientColumnsM1:[
+        { title: '序号', width: 80, dataIndex: 'index', className: 'replacecolor' },
         { title: '账套号', width: 80, dataIndex: 'caccount', className: 'replacecolor' },
         { title: '订单号', width: 140, dataIndex: 'cpoid', className: 'replacecolor' },
         { title: '供应商', width: 120, dataIndex: 'cvenAbbName', className: 'replacecolor' },
@@ -685,6 +689,9 @@ export default {
               else
                 this.costInvoiceIngredientColumns = this.costInvoiceIngredientColumnsAll;
               this.fabricLoss = res.result;
+              this.fabricLoss.fabricCostClothesList.map((item,index) => {item.index = index +1})
+              this.fabricLoss.fabricCostClothList.map((item,index) => {item.index = index +1})
+              this.fabricLoss.fabricCostAssistList.map((item,index) => {item.index = index +1})
               this.fabricLoss.fabricPoOrderList.map(item => {
                 item.omcVenAbbName = item.omcVenAbbName ? (item.omcVenAbbName.split(",")) : ''
               })