|
@@ -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)) {
|