From bc5b6c286860d9684d776a775d8f6f8b0a64c98d Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 9 Aug 2023 14:11:57 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=9A=84cell-class-name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/pms/blenderOrder/config.js | 8 +- src/views/modules/pms/blenderOrder/index.vue | 10 +- .../components/ListViewWithHead.vue | 10 +- src/views/modules/pms/blenderPress/config.js | 97 +++++++++++++------ src/views/modules/pms/blenderPress/index.vue | 13 ++- src/views/modules/pms/order/index.vue | 43 +++++--- src/views/modules/pms/pressOrder/config.js | 26 ++++- src/views/modules/pms/pressOrder/index.vue | 10 +- 8 files changed, 161 insertions(+), 56 deletions(-) diff --git a/src/views/modules/pms/blenderOrder/config.js b/src/views/modules/pms/blenderOrder/config.js index 08d0d18..941ea1c 100644 --- a/src/views/modules/pms/blenderOrder/config.js +++ b/src/views/modules/pms/blenderOrder/config.js @@ -305,7 +305,13 @@ export default function () { return { dialogConfigs, tableConfig: { - table: null, // 此处可省略,el-table 上的配置项 + table: { + "cell-class-name": ({ row, column, rowIndex, columnIndex }) => { + if ("statusDictValue" in row && row.statusDictValue == "2") { + return "cell-in-production"; + } + }, + }, column: tableProps, // el-column-item 上的配置项 }, headFormConfigs: { diff --git a/src/views/modules/pms/blenderOrder/index.vue b/src/views/modules/pms/blenderOrder/index.vue index de8ab96..83d9b95 100644 --- a/src/views/modules/pms/blenderOrder/index.vue +++ b/src/views/modules/pms/blenderOrder/index.vue @@ -1,5 +1,6 @@