|
|
@@ -1,5 +1,5 @@
|
|
|
<% include ./sub_menu.ejs %>
|
|
|
-<div class="panel-content">
|
|
|
+<div class="panel-content<%= inspection.flow_version === 1 && !inspection.readOnly ? ' quality-inspection-need-pending' : '' %>">
|
|
|
<div class="panel-title">
|
|
|
<div class="title-main d-flex justify-content-between">
|
|
|
<% include ./sub_mini_menu.ejs %>
|
|
|
@@ -81,7 +81,7 @@
|
|
|
<% if (inspection.flow_version === 1) { %>
|
|
|
<tr>
|
|
|
<th class="text-center" width="150">是否整改</th>
|
|
|
- <td>
|
|
|
+ <td class="quality-inspection-need-options">
|
|
|
<% [1, 0].forEach(value => { %>
|
|
|
<label class="mr-3 mb-0"><input type="radio" name="quality-need-rectification" value="<%= value %>" <%= inspection.need_rectification === value ? 'checked' : '' %> <%= inspection.readOnly ? 'disabled' : '' %>> <%= value ? '是' : '否' %></label>
|
|
|
<% }); %>
|
|
|
@@ -518,6 +518,8 @@
|
|
|
const fileList = JSON.parse(unescape('<%- escape(JSON.stringify(fileList)) %>')) || [];
|
|
|
const whiteList = JSON.parse('<%- JSON.stringify(whiteList) %>');
|
|
|
const deleteFilePermission = <%- deleteFilePermission %>;
|
|
|
+ // 在页面解析完成前恢复草稿,避免先展示数据库默认选项及其流程。
|
|
|
+ if (inspection.flow_version === 1) showQualityInspectionNeed(qualityInspectionNeedDraft());
|
|
|
</script>
|
|
|
<% if(!inspection.readOnly) { %>
|
|
|
<script>
|