Explorar el Código

组装看板设置

callm hace 7 meses
padre
commit
eaaaf8f94b
Se han modificado 1 ficheros con 4 adiciones y 9 borrados
  1. 4 9
      src/views/zz/bottom1.vue

+ 4 - 9
src/views/zz/bottom1.vue

@@ -82,14 +82,9 @@ export default {
         console.error('数据处理失败:', error)
       }
     },
-
     formatRowData(item) {
-      const hasRemark1 = item.v_remark1 && item.v_remark1.trim() !== ""
-      const isProcessing = item.v_blstatus === '加工中'
-
-      const rowClass = hasRemark1 ? 'colorRed' :
-          isProcessing ? 'colorRemind' : 'colorGrass'
-
+      const rowClass = item.v_remark1 && item.v_remark1 !== "" ? 'colorRed' :
+          item.v_blstatus == '加工中' ? 'colorRemind' : item.v_blstatus == '已完成'?'colorGrass':'colorY';
       return [
         this.createCell(item.v_licode, rowClass),
         this.createCell(item.v_sacode, rowClass),
@@ -100,9 +95,9 @@ export default {
         this.createCell(item.v_planoutqty, rowClass),
         this.createCell(item.v_madeqty, rowClass),
         this.createCell(item.v_madejd, rowClass),
-        this.createCell(item.v_remark, hasRemark1 ? 'colorRed' : 'colorRemind'),
+        this.createCell(item.v_remark, rowClass),
         this.createCell(item.v_remark1, rowClass),
-        this.createCell(item.v_yc, hasRemark1 ? 'colorRed' : 'colorRemind')
+        this.createCell(item.v_yc, rowClass)
       ]
     },