|
@@ -185,7 +185,7 @@
|
|
|
stack: '计划',
|
|
|
data:[<% if (scheduleStage.length > 0) { %>
|
|
|
<% for (const ss of scheduleStage) { %>
|
|
|
- '<%- ss.plan_tp %>',
|
|
|
+ '<%- ss.plan_tp ? ss.plan_tp : 0 %>',
|
|
|
<% } %>
|
|
|
<% } %>]
|
|
|
},
|
|
@@ -196,7 +196,7 @@
|
|
|
stack: '实际',
|
|
|
data:[<% if (scheduleStage.length > 0) { %>
|
|
|
<% for (const ss of scheduleStage) { %>
|
|
|
- '<%- ss.tp %>',
|
|
|
+ '<%- ss.tp ? ss.tp : 0 %>',
|
|
|
<% } %>
|
|
|
<% } %>]
|
|
|
},
|
|
@@ -207,7 +207,7 @@
|
|
|
yAxisIndex: 1,
|
|
|
data:[<% if (scheduleMonth.length > 0) { %>
|
|
|
<% for (const ss of scheduleStage) { %>
|
|
|
- '<%- ctx.helper.round(ctx.helper.div(ss.tp, schedule.total_tp)*100, 2) %>',
|
|
|
+ '<%- ss.tp ? ctx.helper.round(ctx.helper.div(ss.tp, schedule.total_tp)*100, 2) : 0 %>',
|
|
|
<% } %>
|
|
|
<% } %>]
|
|
|
},
|
|
@@ -276,7 +276,7 @@
|
|
|
stack: '计划',
|
|
|
data:[<% if (scheduleMonth.length > 0) { %>
|
|
|
<% for (const sm of scheduleMonth) { %>
|
|
|
- '<%- sm.plan_tp %>',
|
|
|
+ '<%- sm.plan_tp ? sm.plan_tp : 0 %>',
|
|
|
<% } %>
|
|
|
<% } %>]
|
|
|
},
|
|
@@ -287,7 +287,7 @@
|
|
|
stack: '实际',
|
|
|
data:[<% if (scheduleMonth.length > 0) { %>
|
|
|
<% for (const sm of scheduleMonth) { %>
|
|
|
- '<%- sm.sj_tp %>',
|
|
|
+ '<%- sm.sj_tp ? sm.sj_tp : 0 %>',
|
|
|
<% } %>
|
|
|
<% } %>]
|
|
|
},
|
|
@@ -298,7 +298,7 @@
|
|
|
yAxisIndex: 1,
|
|
|
data:[<% if (scheduleMonth.length > 0) { %>
|
|
|
<% for (const sm of scheduleMonth) { %>
|
|
|
- '<%- ctx.helper.round(ctx.helper.div(sm.sj_tp, schedule.total_tp)*100, 2) %>',
|
|
|
+ '<%- sm.sj_tp ? ctx.helper.round(ctx.helper.div(sm.sj_tp, schedule.total_tp)*100, 2) : 0 %>',
|
|
|
<% } %>
|
|
|
<% } %>]
|
|
|
},
|