Browse Source

普通看板按状态修改字体颜色

damon227 2 years ago
parent
commit
3ad1d7b7b1

+ 2 - 0
src/components/work-flow/node-edit.vue

@@ -82,6 +82,7 @@
             value-format="yyyy-MM-dd"
             type="date"
             :disabled="disabled || !isEdit"
+            style="width:100%"
         >
         </el-date-picker>
       </el-form-item>
@@ -235,6 +236,7 @@
                 value-format="yyyy-MM-dd"
                 type="date"
                 :disabled="disabled || !isEdit"
+                style="width:100%"
             >
             </el-date-picker>
           </el-form-item>

+ 24 - 1
src/views/modules/home/customer.vue

@@ -162,7 +162,7 @@
                 ref="contractProdTable"
                 :data="contractProdList"
                 height="100%"
-                row-class-name="custom-ranking-table-row"
+                :row-class-name="contractProdListAddClass"
                 style="width: 100%"
               >
                 <el-table-column type="index" label="序号"></el-table-column>
@@ -525,6 +525,17 @@ export default {
         }, 50)
       })
     },
+    contractProdListAddClass ({row, rowIndex}) {
+      if (row.warningState == '3') {
+        return 'custom-ranking-table-row overdue-row'
+      }
+
+      if (row.warningState === '2') {
+        return 'custom-ranking-table-row warning-row'
+      }
+
+      return 'custom-ranking-table-row'
+    },
     outboundRecordTableScroll () {
       this.$nextTick(() => {
         const divData = this.$refs.outboundRecordTable.bodyWrapper
@@ -589,6 +600,18 @@ body,
 .el-card__body {
   height: 100%;
 }
+
+.custom-ranking-table-row {
+  font-size: 8px;
+}
+
+.el-table .warning-row {
+  color:#FFD700;
+}
+
+.el-table .overdue-row {
+  color: #FF0000;
+}
 </style>
 <style scoped>
 .mod-home {

+ 2 - 1
src/views/modules/production/scheduling-mould-details.vue

@@ -219,7 +219,8 @@ export default {
             }
             productionPlanNodes.push({
               techNodeId: node.id,
-              operatorId: node.operatorId
+              operatorId: node.operatorId,
+              planCompletionTime: node.planCompletionTime
             })
           }