手动增加加急件,打印提醒

This commit is contained in:
liushuai
2020-02-05 12:14:18 +08:00
parent bf69da3d5b
commit a1b1feb81e
6 changed files with 71 additions and 23 deletions

View File

@@ -63,7 +63,7 @@
<el-card>
<el-tabs type="border-card" @tab-click="selectPart">
<el-tab-pane label="基本件">
<el-table :data="tableData1" border size="mini" style="width: 100%" height="300px" @selection-change="handleSelectionChange">
<el-table :data="tableData1" :row-class-name="tableRowClassName1" border size="mini" style="width: 100%" height="300px" @selection-change="handleSelectionChange">
<el-table-column align="center" width="50" type="selection"/>
<el-table-column label="零件名称" align="center" width="120px">
<template slot-scope="scope">
@@ -852,6 +852,11 @@ export default {
return 'adopt'
}
},
tableRowClassName1({ row }) {
if (row.是否加急件 === 1) {
return 'isUrgentItem'
}
},
machineChange() {
this.groupNumberValue = ''
this.groupNumber = []
@@ -1524,4 +1529,7 @@ export default {
.el-table .adopt{
background: limegreen;
}
.el-table .isUrgentItem{
background: #ff7575;
}
</style>