ソースを参照

面料损耗调整

fenghaifu 2 年 前
コミット
70482b57e9
1 ファイル変更19 行追加1 行削除
  1. 19 1
      src/views/reportForms/fabric-loss-table.vue

+ 19 - 1
src/views/reportForms/fabric-loss-table.vue

@@ -391,7 +391,25 @@ 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',
+          customRender:function(text,record,index){
+            if (text == null || text == undefined){
+              return "";
+            }
+            if (text.indexOf(",")>-1){
+              const arr = text.split(',');
+              return (<div>
+              {
+                arr.map(t=>{
+                  return (<li>{t}</li>)
+                })
+              }
+              </div>)
+            }else{
+              return text;
+            }
+          }
+        },
         { title: '计划数量', dataIndex: 'iquantity', width: 80, className: 'replacecolor' },
         {
           title: '采购数量',