合并跳过审批人

This commit is contained in:
caoqianming 2019-12-02 23:58:01 +08:00
parent 18190d1100
commit d06de9eb39
1 changed files with 1 additions and 1 deletions

View File

@ -4631,7 +4631,7 @@ def apioperation(req):
obj.zyzt['splc'][1]['sprs'] = [spr1] #作业部门审批人
if spr2:
obj.zyzt['splc'][2]['sprs'] = [spr2] #属地部门审批人
while nextindex<len(obj.zyzt['splc']):
while nextindex<len(obj.zyzt['splc']) and (nextindex-1)!=0:
nextsplc = obj.zyzt['splc'][nextindex]
if userid in nextsplc['sprs']:#本人可审批直接跳过
Operspxq.objects.create(oper=obj,jdmc=nextsplc['jdmc'],spr=spruser,checked=1,spbm=spruser.ubelongpart)