Browse Source

修改采购、报账bug

娄底高职分支
hwh2023 1 year ago
parent
commit
443a8b1c89
2 changed files with 10 additions and 10 deletions
  1. +8
    -8
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchasePrintApi.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js

+ 8
- 8
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchasePrintApi.cs View File

@@ -17,14 +17,14 @@ namespace Learun.Application.WebApi
/// </summary>
public class PurchasePrintApi : BaseApi
{
private Purchase_PrintIBLL purchaseworkIBLL = new Purchase_PrintBLL();
private Purchase_PrintIBLL PurchaseprintIBLL = new Purchase_PrintBLL();
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();

/// <summary>
/// 注册接口
/// <summary>
public PurchasePrintApi()
: base("/learun/adms/purchasework")
: base("/learun/adms/Purchaseprint")
{
Get["/pagelist"] = GetPageList;
Get["/form"] = GetForm;
@@ -43,7 +43,7 @@ namespace Learun.Application.WebApi
public Response GetPageList(dynamic _)
{
ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = purchaseworkIBLL.GetPageList(parameter.pagination, parameter.queryJson);
var data = PurchaseprintIBLL.GetPageList(parameter.pagination, parameter.queryJson);
var jsonData = new
{
rows = data,
@@ -61,8 +61,8 @@ namespace Learun.Application.WebApi
public Response GetForm(dynamic _)
{
string keyValue = this.GetReqData();
var Purchase_PrintData = purchaseworkIBLL.GetPurchase_PrintEntity(keyValue);
var Purchase_Print_DetailsData = purchaseworkIBLL.GetPurchase_Print_DetailsList(Purchase_PrintData.Id);
var Purchase_PrintData = PurchaseprintIBLL.GetPurchase_PrintEntity(keyValue);
var Purchase_Print_DetailsData = PurchaseprintIBLL.GetPurchase_Print_DetailsList(Purchase_PrintData.Id);
var jsonData = new
{
Purchase_Print = Purchase_PrintData,
@@ -100,7 +100,7 @@ namespace Learun.Application.WebApi
public Response DeleteForm(dynamic _)
{
string keyValue = this.GetReqData();
purchaseworkIBLL.DeleteEntity(keyValue);
PurchaseprintIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
@@ -115,7 +115,7 @@ namespace Learun.Application.WebApi
List<Purchase_Print_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Print_DetailsEntity>>();
//var code = entity.EnCode;

purchaseworkIBLL.SaveEntity(parameter.keyValue, entity, detailList);
PurchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList);
return Success("保存成功!");
}
/// <summary>
@@ -127,7 +127,7 @@ namespace Learun.Application.WebApi
{
string keyValue = this.GetReqData();
var processId = Guid.NewGuid().ToString();
purchaseworkIBLL.ModifyStatus(keyValue, 1, processId);
PurchaseprintIBLL.ModifyStatus(keyValue, 1, processId);
UserInfo userInfo = LoginUserInfo.Get();
nWFProcessIBLL.CreateFlow("2-3", processId, "", 1, "", userInfo);
return Success("提交成功!");


+ 2
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js View File

@@ -18,10 +18,10 @@ export default {
"apiHost": [
// "http://fwh.ldyesz.edu.cn:9000/",//H5打包
//"http://192.168.10.245:8000/",//app打包
"http://192.168.10.122:8002/",
"http://192.168.10.245:8000/",
],
// "webHost": "http://10.10.4.45:8000/",
"webHost": "http://192.168.10.122:8001/",
"webHost": "http://192.168.10.245:8009/",
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示
"devAccount": [{
username: "system",


Loading…
Cancel
Save