Browse Source

0412 新看板

master
ruanqi 2 years ago
parent
commit
1ae2f83c0f
  1. 20
      src/views/modules/board/thisWeekShipmentBoard.vue
  2. 41
      src/views/modules/production/liuhuaProductView.vue

20
src/views/modules/board/thisWeekShipmentBoard.vue

@ -132,15 +132,20 @@
}
},
tableRowClassName ({row, rowIndex}) {
if ( new Date(row.planShipDate) <new Date()) {
return 'false-row'
if(row.remark!=null&&row.remark!==''){
if (row.remark.indexOf('急')===0) {
return 'error-row'
}
}
if (row.finishedFlag == '2') {
if (new Date(row.enteredDate)>new Date(this.dayjs().add(-1,'day'))) {
return 'success-row'
}
if (row.finishedFlag == '3') {
return 'error-row'
if ( new Date(row.planShipDate) <new Date(this.dayjs().format('YYYY-MM-DD').replace('-', '/'))) {
return 'false-row'
}
// if (row.finishedFlag == '2') {
// return 'success-row'
// }
return ''
},
search () {
@ -217,13 +222,14 @@
}
.boardDel .el-table .success-row {
background: #1bb61b;
color: #f2f6fc;
}
.boardDel .el-table .error-row {
background: #e5b655;
background: #ffc800;
color: #f2f6fc;
}
.boardDel .el-table .false-row {
background-color: orangered;
background-color: #ff0000;
color: #f2f6fc;
}
</style>

41
src/views/modules/production/liuhuaProductView.vue

@ -191,6 +191,23 @@
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "liuhuaView",
tableName: this.$route.meta.title,
columnProp: "firstReportDate",
columnLabel: "首次报工日期",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "liuhuaView",
tableName: this.$route.meta.title,
@ -228,8 +245,8 @@
}, {
tableId: "liuhuaView",
tableName: this.$route.meta.title,
columnProp: "xiubianWancheng",
columnLabel: "修边完成率",
columnProp: "liuhuaWancheng",
columnLabel: "硫化完成率",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -245,8 +262,8 @@
}, {
tableId: "liuhuaView",
tableName: this.$route.meta.title,
columnProp: "hongkaoWancheng",
columnLabel: "烘烤完成率",
columnProp: "xiubianWancheng",
columnLabel: "修边完成率",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -262,8 +279,8 @@
}, {
tableId: "liuhuaView",
tableName: this.$route.meta.title,
columnProp: "jiagongWancheng",
columnLabel: "加工完成率",
columnProp: "hongkaoWancheng",
columnLabel: "烘烤完成率",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -279,8 +296,8 @@
}, {
tableId: "liuhuaView",
tableName: this.$route.meta.title,
columnProp: "jianyanWancheng",
columnLabel: "检验完成率",
columnProp: "jiagongWancheng",
columnLabel: "加工完成率",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -296,8 +313,8 @@
}, {
tableId: "liuhuaView",
tableName: this.$route.meta.title,
columnProp: "baozhuangWancheng",
columnLabel: "包装完成率",
columnProp: "jianyanWancheng",
columnLabel: "检验完成率",
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -313,8 +330,8 @@
}, {
tableId: "liuhuaView",
tableName: this.$route.meta.title,
columnProp: "liuhuaWancheng",
columnLabel: "完成率",
columnProp: "baozhuangWancheng",
columnLabel: "包装完成率",
columnHidden: false,
columnImage: false,
columnSortable: false,

Loading…
Cancel
Save