Browse Source

字段名恢复

jbb 2 years ago
parent
commit
58ad2f9303
1 changed files with 11 additions and 2 deletions
  1. 11 2
      src/views/reportForms/fabric-loss-table.vue

+ 11 - 2
src/views/reportForms/fabric-loss-table.vue

@@ -108,6 +108,11 @@
           bordered
           :pagination="false"
         >
+          <template slot="omcVenAbbName" slot-scope="text, record, index">
+              <div v-for="(item,index) in record.omcVenAbbName" :key="index">
+                {{item}}
+              </div>
+          </template>
           <!-- 采购数量 弹框-->
           <span slot="purchaseQuantity" slot-scope="text">
             <a>{{ text }}</a>
@@ -391,7 +396,7 @@ export default {
       // 采购订单 表头
       purchaseOrderColumns: [
         { title: '货物名称', width: 180, dataIndex: 'cinvName', className: 'replacecolor', align:'left'},
-        { title: '订单号', width: 80, dataIndex: 'cbatch', className: 'replacecolor' },
+        { title: '号', width: 80, dataIndex: 'cbatch', className: 'replacecolor' },
         { title: '计划数量', dataIndex: 'iquantity', width: 80, className: 'replacecolor' },
         {
           title: '采购数量',
@@ -404,7 +409,7 @@ export default {
 
         { title: '采购供应商', dataIndex: 'cvenAbbName', width: 100, className: 'replacecolor' },
         { title: '分配数量', dataIndex: 'iquantityOut', width: 80, className: 'replacecolor' },
-        { title: '委外供应商', dataIndex: 'omcVenAbbName', width: 100, className: 'replacecolor' },
+        { title: '委外供应商', dataIndex: 'omcVenAbbName', width: 100, className: 'replacecolor',scopedSlots: { customRender: 'omcVenAbbName' }, },
         {
           title: '余纱',
           dataIndex: 'iquantityLeft',
@@ -637,6 +642,10 @@ export default {
               else
                 this.costInvoiceIngredientColumns = this.costInvoiceIngredientColumnsAll;
               this.fabricLoss = res.result;
+              this.fabricLoss.fabricPoOrderList.map(item => {
+                item.omcVenAbbName = item.omcVenAbbName ? (item.omcVenAbbName.split(",")) : ''
+                debugger
+              })
             }else{
               this.fabricLoss = {fabricPoOrderList:[],fabricOMOrderList1:[],fabricOMOrderList2:[],fabricCostAssistList:[],fabricCostClothList:[],fabricCostClothesList:[],fabricCostInvoiceList:[],fabricExpensesList:[]};
               this.$message.info(res.message);