diff --git a/wms/qd/src/views/wms/md/materiallabel/index.vue b/wms/qd/src/views/wms/md/materiallabel/index.vue index b4d4aee..5c4f31a 100644 --- a/wms/qd/src/views/wms/md/materiallabel/index.vue +++ b/wms/qd/src/views/wms/md/materiallabel/index.vue @@ -103,7 +103,7 @@ /> - + @@ -121,6 +121,7 @@ :data="crud.data" size="small" style="width: 100%;" + :cell-style="cellStyle" @selection-change="crud.selectionChangeHandler" > @@ -128,12 +129,13 @@ + - + @@ -323,6 +325,13 @@ export default { // LODOP.PREVIEW()// 预览 // LODOP.PREVIEWA()// 打印 LODOP.PRINT()// 打印 + }, + cellStyle({ row, column, rowIndex, columnIndex }) { + if (columnIndex === 5 && row.color) { // 指定列号 改变某列的背景色 + return 'background:' + row.color + } else { + return '' + } } } }