From 92ad157ba8dc47ca334abfa0c3100aa2bbf9a208 Mon Sep 17 00:00:00 2001
From: cwchen <1048842385@qq.com>
Date: Mon, 11 Nov 2024 17:17:54 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=B4=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
js/demandPlan/child/delivery_batch_list.js | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/js/demandPlan/child/delivery_batch_list.js b/js/demandPlan/child/delivery_batch_list.js
index 9b76d34..449cff6 100644
--- a/js/demandPlan/child/delivery_batch_list.js
+++ b/js/demandPlan/child/delivery_batch_list.js
@@ -153,7 +153,8 @@ function initTable() {
title: "序号",
align: "center",
templet: function (d) {
- return d.LAY_NUM;
+ let color = d.needType === '2' ? '#f56c6c' : '#262626';
+ return '' + d.LAY_NUM + ''
},
},
{
@@ -162,6 +163,10 @@ function initTable() {
title: "物机类型 ",
unresize: true,
align: "center",
+ templet: function (d) {
+ let color = d.needType === '2' ? '#f56c6c' : '#262626';
+ return '' + d.type + ''
+ },
},
{
field: "name",
@@ -169,6 +174,10 @@ function initTable() {
title: "物机名称",
unresize: true,
align: "center",
+ templet: function (d) {
+ let color = d.needType === '2' ? '#f56c6c' : '#262626';
+ return '' + d.name + ''
+ },
},
{
field: "module",
@@ -176,6 +185,10 @@ function initTable() {
width: '10%',
unresize: true,
align: "center",
+ templet: function (d) {
+ let color = d.needType === '2' ? '#f56c6c' : '#262626';
+ return '' + d.module + ''
+ },
},
{
field: "unit",
@@ -183,6 +196,10 @@ function initTable() {
width: '10%',
unresize: true,
align: "center",
+ templet: function (d) {
+ let color = d.needType === '2' ? '#f56c6c' : '#262626';
+ return '' + d.unit + ''
+ },
},
{
field: "needNum",
@@ -335,7 +352,7 @@ function viewFile(obj) {
]
}
});
- }else{
+ } else {
// 调用公司的预览文件的服务
}
}