Просмотр исходного кода

项目概况,金额单位问题

MaiXinRong 2 недель назад
Родитель
Сommit
07e1287f64
2 измененных файлов с 7 добавлено и 7 удалено
  1. 1 1
      app/controller/spss_controller.js
  2. 6 6
      app/view/sub_proj/info.ejs

+ 1 - 1
app/controller/spss_controller.js

@@ -172,7 +172,7 @@ module.exports = app => {
         async _loadStagesTpData(info, tender, stages, preStage, endStage) {
             if (preStage) {
                 info.pre_contract_tp = this.ctx.helper.sum([preStage.contract_tp, preStage.pre_contract_tp, preStage.contract_pc_tp]);
-                info.pre_contract_tp = this.ctx.helper.sum([preStage.qc_tp, preStage.pre_qc_tp, preStage.qc_pc_tp]);
+                info.pre_qc_tp = this.ctx.helper.sum([preStage.qc_tp, preStage.pre_qc_tp, preStage.qc_pc_tp]);
                 info.pre_yf_tp = this.ctx.helper.add(preStage.yf_tp, preStage.pre_yf_tp);
                 info.pre_sf_tp = this.ctx.helper.add(preStage.sf_tp, preStage.pre_sf_tp);
             }

+ 6 - 6
app/view/sub_proj/info.ejs

@@ -301,9 +301,9 @@
                                     <div class="input-group">
                                         <input type="text" class="form-control form-control-sm" name="zb_tp" value="<%- info.zb_tp %>" org="<%- info.zb_tp %>" maxlength="50" onblur="changeInfo(this, true)" <% if (readOnly) { %>readOnly<% } %>>
                                         <div class="input-group-append">
-                                            <select class="input-group-text p-0" name="pf_tp_unit" style="font-size:0.75rem" value="<%- info.pf_tp_unit %>" org="<%- info.pf_tp_unit%>" onchange="changeInfo(this)" <% if (readOnly) { %>readOnly<% } %>>
-                                                <option value="元" <%if (info.pf_tp_unit === '元') { %>selected<% } %>>元</option>
-                                                <option value="万元" <%if (info.pf_tp_unit === '万元') { %>selected<% } %>>万元</option>
+                                            <select class="input-group-text p-0" name="pf_tp_unit" style="font-size:0.75rem" value="<%- info.zb_tp_unit %>" org="<%- info.zb_tp_unit%>" onchange="changeInfo(this)" <% if (readOnly) { %>readOnly<% } %>>
+                                                <option value="元" <%if (info.zb_tp_unit === '元') { %>selected<% } %>>元</option>
+                                                <option value="万元" <%if (info.zb_tp_unit === '万元') { %>selected<% } %>>万元</option>
                                             </select>
                                         </div>
                                     </div>
@@ -369,9 +369,9 @@
                                     <div class="input-group">
                                         <input type="text" class="form-control form-control-sm" name="jg_tp" value="<%- info.jg_tp %>" org="<%- info.jg_tp %>" maxlength="50" onblur="changeInfo(this, true)" <% if (readOnly) { %>readOnly<% } %>>
                                         <div class="input-group-append">
-                                            <select class="input-group-text p-0" name="pf_tp_unit" style="font-size:0.75rem" value="<%- info.pf_tp_unit %>" org="<%- info.pf_tp_unit%>" onchange="changeInfo(this)" <% if (readOnly) { %>readOnly<% } %>>
-                                                <option value="元" <%if (info.pf_tp_unit === '元') { %>selected<% } %>>元</option>
-                                                <option value="万元" <%if (info.pf_tp_unit === '万元') { %>selected<% } %>>万元</option>
+                                            <select class="input-group-text p-0" name="pf_tp_unit" style="font-size:0.75rem" value="<%- info.jg_tp_unit %>" org="<%- info.jg_tp_unit%>" onchange="changeInfo(this)" <% if (readOnly) { %>readOnly<% } %>>
+                                                <option value="元" <%if (info.jg_tp_unit === '元') { %>selected<% } %>>元</option>
+                                                <option value="万元" <%if (info.jg_tp_unit === '万元') { %>selected<% } %>>万元</option>
                                             </select>
                                         </div>
                                     </div>