From 96a94a59c08f55712ba04eb413e7f61739f11f66 Mon Sep 17 00:00:00 2001 From: zhanghonglin <zhanghonglin@hnkhzn.com> Date: 星期二, 19 八月 2025 17:09:31 +0800 Subject: [PATCH] 定时一周自动清楚重量厚度,不合格背景红色提示、筛选功能 --- 项目代码/WCS/WIDESEAWCS_Client/src/extension/taskinfo/weight_hty.js | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/taskinfo/weight_hty.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/taskinfo/weight_hty.js" index 66fcbfc..012861e 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/taskinfo/weight_hty.js" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/taskinfo/weight_hty.js" @@ -17,7 +17,16 @@ methods: { //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� onInit() { - + //璁剧疆鏌愪釜鍗曞厓鏍艰儗鏅鑹� + this.columns.forEach((x) => { + if(x.field=="weight"){ + x.cellStyle = (row, rowIndex, columnIndex) => { + let qu=row.interval.split("-"); + if(row.weight<qu[0]||row.weight>qu[1]) + return { background: 'red'}; + }; + } + }); }, onInited() { //妗嗘灦鍒濆鍖栭厤缃悗 -- Gitblit v1.9.3