Browse Source

Merge branch 'dev' of http://192.168.1.41:3000/maixinrong/Calculation into dev

MaiXinRong 4 years ago
parent
commit
964872717b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/service/advance.js

+ 4 - 1
app/service/advance.js

@@ -105,7 +105,10 @@ module.exports = app => {
             const { ctx } = this;
             const uid = ctx.session.sessionUser.accountId;
             const tid = ctx.tender.id;
-            let latestOrder = await this.getLastestAdvance(tid, type);
+            let latestOrder = await this.getLastestAdvance(tid, type, true);
+            if (latestOrder && latestOrder.status === auditConst.status.uncheck) {
+                return '';
+            }
             if (!latestOrder) {
                 latestOrder = {
                     order: 1,