king
2024-10-25 f9455c981f94d5fd89103b1d332baefd039bebb2
src/utils/utils-custom.js
@@ -4127,11 +4127,11 @@
          begin
              /* 工作流默认sql(或签) */
              set @retmsg =''
              select @retmsg='X' from s_my_works_flow_role where works_flow_id=@ID@ and works_flow_code=@works_flow_code@ and deleted=0 and userid =@userid@
              select @retmsg='X' from s_my_works_flow_role where works_flow_id=@ID@ and works_flow_code=@works_flow_code@ and deleted=0 and userid =@userid@ and works_flow_detail_id =@works_flow_detail_id@
              if @retmsg =''
              begin
                  select @retmsg='X' from s_my_works_flow_role where works_flow_id=@ID@ and works_flow_code=@works_flow_code@ and userid=@userid@
                  select @retmsg='X' from s_my_works_flow_role where works_flow_id=@ID@ and works_flow_code=@works_flow_code@ and userid=@userid@ and works_flow_detail_id =@works_flow_detail_id@
                  if @retmsg !=''
                  begin
@@ -4141,18 +4141,31 @@
                  if @dataM@ !='' 
                  begin
                      set @retmsg =''
                      select @retmsg='X' from s_my_works_flow_role where works_flow_id=@ID@ and works_flow_code=@works_flow_code@ and deleted=0
                    set @retmsg =''
                    select @retmsg='X' from s_my_works_flow_role where works_flow_id=@ID@ and works_flow_code=@works_flow_code@ and deleted=0 and works_flow_detail_id =@works_flow_detail_id@
                      if @retmsg != ''
                    if @retmsg != ''
                    begin
                        goto goto_mk
                    end
                  end
                  else
                  begin
                      set @retmsg =''
                      select @retmsg=userid from s_my_works_flow_role where works_flow_id=@id@ and works_flow_code=@works_flow_code@ and deleted=0 and works_flow_detail_id =@works_flow_detail_id@
                      if @retmsg !=''
                      begin
                          goto goto_mk
                          select @retmsg=workerCode+workerName from BD_workers where id=@retmsg
                          select @retmsg='页面数据已更新,或没有当前单据的审批权限,请联系'+@retmsg+'操作'
                          goto aaa
                      end
                  end
                  select @retmsg='页面数据已更新,或没有当前单据的审批权限'
                  goto aaa 
              end
              end
              goto_mk: