Bläddra i källkod

修复台账修订无法打开bug

laiguoran 3 år sedan
förälder
incheckning
ba2a9999f0
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/controller/revise_controller.js

+ 1 - 1
app/controller/revise_controller.js

@@ -66,7 +66,7 @@ module.exports = app => {
                 if (changeLedgerList.length > 0 || changePosList.length > 0) {
                     // 判断审批中的变更令是否有调用了新增部位,有则无法新增修订,都没有则可新增修订
                     for (const c of changeList) {
-                        const caList = await ctx.service.changeAuditList.getList(c.cid);
+                        const caList = await ctx.service.changeAuditList.getList(c.cid, 0);
                         const gclIdList = ctx.helper._.uniq(ctx.helper._.map(caList, 'gcl_id'));
                         for (const gcl of gclIdList) {
                             if (gcl && (ctx.helper._.findIndex(changeLedgerList, { id: gcl }) !== -1 || ctx.helper._.findIndex(changePosList, { lid: gcl }) !== -1)) {