فهرست منبع

变更立项和申请修改

laiguoran 3 سال پیش
والد
کامیت
31370787cb
3فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 2 2
      app/service/change_apply_audit.js
  2. 2 2
      app/service/change_project_audit.js
  3. 1 1
      app/view/change/project_modal.ejs

+ 2 - 2
app/service/change_apply_audit.js

@@ -510,8 +510,8 @@ module.exports = app => {
                 };
                 };
                 newAuditors.push(na);
                 newAuditors.push(na);
             }
             }
-            const result = await transaction.insert(this.tableName, newAuditors);
-            return result.affectedRows === auditors.length;
+            const result = newAuditors.length > 0 ? await transaction.insert(this.tableName, newAuditors) : null;
+            return result ? result.affectedRows === auditors.length : true;
         }
         }
 
 
         async getAllAuditors(tenderId) {
         async getAllAuditors(tenderId) {

+ 2 - 2
app/service/change_project_audit.js

@@ -562,8 +562,8 @@ module.exports = app => {
                 };
                 };
                 newAuditors.push(na);
                 newAuditors.push(na);
             }
             }
-            const result = await transaction.insert(this.tableName, newAuditors);
-            return result.affectedRows === auditors.length;
+            const result = newAuditors.length > 0 ? await transaction.insert(this.tableName, newAuditors) : null;
+            return result ? result.affectedRows === auditors.length : true;
         }
         }
 
 
         async getAllAuditors(tenderId) {
         async getAllAuditors(tenderId) {

+ 1 - 1
app/view/change/project_modal.ejs

@@ -71,7 +71,7 @@
     <div class="modal-dialog" role="document">
     <div class="modal-dialog" role="document">
         <div class="modal-content">
         <div class="modal-content">
             <div class="modal-header">
             <div class="modal-header">
-                <h5 class="modal-title">编号设置</h5>
+                <h5 class="modal-title"><% if (tender.user_id === uid) { %>变更建议<% } else { %>变更意向<% } %>编号设置</h5>
             </div>
             </div>
             <div class="modal-body">
             <div class="modal-body">
                 <ul class="nav nav-tabs mb-3" role="tablist">
                 <ul class="nav nav-tabs mb-3" role="tablist">