ソースを参照

面料损耗表行样式

jbb 2 年 前
コミット
54050135d4
1 ファイル変更5 行追加0 行削除
  1. 5 0
      src/views/reportForms/fabric-loss-table.vue

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

@@ -113,6 +113,7 @@
           :data-source="fabricLoss.fabricPoOrderList"
           bordered
           :pagination="false"
+          :rowClassName="setRowClassName"
         >
           <template slot="omcVenAbbName" slot-scope="text, record, index">
               <div v-for="(item,index) in record.omcVenAbbNameArray" :key="index">
@@ -919,6 +920,10 @@ export default {
         }
       })
     },
+    //行样式
+    setRowClassName(record) {
+      return(record.iquantityLeft!==0&&record.fabricPoOrderOutList.length == 0) ? "inputRowStyl" : "inputRowSty2";//赋予点击行样式
+    },
     // 【采购数量】单元格 弹框
     purchaseQuantityCustomCell(record) {
       return {