ソースを参照

修复删除非本人创建标段bug

ellisran 1 年間 前
コミット
147627fe98
2 ファイル変更2 行追加1 行削除
  1. 1 1
      app/public/js/setting_manage.js
  2. 1 0
      app/service/tender_cache.js

+ 1 - 1
app/public/js/setting_manage.js

@@ -644,7 +644,7 @@ const tenderListSpec = (function(){
             html.push('</div>');
             html.push('<div class="btn-group-table" tid="' + node.id + '">');
             html.push('<a href="javascript:void(0);" name="edit" class="mr-1"><i class="fa fa-pencil fa-fw"></i></a>');
-            const hasStage = node.progress ? node.stage_count > 0 : !!node.lastStage;
+            const hasStage = node.progress ? (node.stage_count > 0 ? true : node.stage_status !== 0) : !!node.lastStage;
             if (!hasStage) {
                 html.push('<a href="javascript:void(0);" name="del" class="mr-1"><i class="fa fa-trash-o fa-fw text-danger"></i></a>');
             } else {

+ 1 - 0
app/service/tender_cache.js

@@ -41,6 +41,7 @@ module.exports = app => {
                 tender.pre_flow = cache.ledger_flow_pre_info ? JSON.parse(cache.ledger_flow_pre_info) : null;
                 tender.stage_tp = {};
                 tender.stage_count = 0;
+                tender.stage_status = cache.stage_status;
                 tender.progress = {
                     title: '台账',
                     status: auditConst.ledger.tiStatusString[cache.ledger_status],