瀏覽代碼

更换程序地址,app2.0手机流程指派审核人

长阳分支推送专用
ndbs 2 年之前
父節點
當前提交
6133218662
共有 2 個檔案被更改,包括 43 行新增3 行删除
  1. +40
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewWorkFlowApi.cs
  2. +3
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js

+ 40
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewWorkFlowApi.cs 查看文件

@@ -46,6 +46,9 @@ namespace Learun.Application.WebApi.Modules
Post["/revoke"] = RevokeFlow;

Post["/refer"] = ReferFlow;
Post["/instance"] = SaveInstanceForms;
Post["/auditors"] = SaveAuditors;

}
private NWFSchemeIBLL nWFSchemeIBLL = new NWFSchemeBLL();
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
@@ -379,6 +382,41 @@ namespace Learun.Application.WebApi.Modules
nWFProcessIBLL.ReferFlow(parameter.processId, parameter.taskId, userInfo);
return Success("确认成功");
}
/// <summary>
/// app保存实例
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
public Response SaveInstanceForms(dynamic _)
{
List<FormParam> param = this.GetReqData<List<FormParam>>();

foreach (var item in param)
{
formSchemeIBLL.SaveInstanceForm(item.schemeInfoId, item.processIdName, item.keyValue, item.formData);
}
return Success("保存成功!");
}
/// <summary>
/// app保存审核人
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
public Response SaveAuditors(dynamic _)
{
var param = this.GetReqData<flowParam>();
UserInfo userInfo = LoginUserInfo.Get();
try
{
nWFProcessIBLL.AuditFlow(param.operationCode, param.operationName, param.processId, param.taskId, param.des, param.auditors, param.stamp, param.signUrl, userInfo);
return Success("流程审批成功");
}
catch (System.Exception ex)
{

return Fail(ex.Message);
}
}

private class flowParam
{
@@ -443,6 +481,8 @@ namespace Learun.Application.WebApi.Modules
/// 签字图片信息
/// </summary>
public string signUrl { get; set; }

public string stamp { get; set; }
}

/// <summary>


+ 3
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js 查看文件

@@ -21,11 +21,11 @@ export default {
// "http://192.168.2.98:8088/"
// ],
"apiHost": [
// "http://cyzjzx.gnway.cc:30626/"//测试地址
// "http://cyzjzx.gnway.cc:29615/"//正式地址
// "http://cyzjzx.gnway.cc:31218/"//测试地址接口
// "http://cyzjzx.gnway.cc:29904/"//正式地址接口
"http://192.168.10.58:8012/"
],
// "webHost":"http://cyzjzx.gnway.cc:29618/",//测试地址
// "webHost":"http://cyzjzx.gnway.cc:30549/",//测试地址
//"webHost":"http://wxd3f.cyzjzx.com/",//正式地址
"webHost":"http://192.168.10.31:8087/",
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示


Loading…
取消
儲存