Browse Source

面料损耗表行样式

jbb 2 years ago
parent
commit
54050135d4
1 changed files with 5 additions and 0 deletions
  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 {