Commit e1491841 authored by liudong1993's avatar liudong1993

采购

parent 1c5838e7
...@@ -129,5 +129,14 @@ namespace Mall.Model.Entity.Property ...@@ -129,5 +129,14 @@ namespace Mall.Model.Entity.Property
/// 财务单据id /// 财务单据id
/// </summary> /// </summary>
public int? FinanceId { get; set; } public int? FinanceId { get; set; }
/// <summary>
/// 供应商id
/// </summary>
public int? SupplierId { get; set; }
/// <summary>
/// 供应商名称
/// </summary>
public string SupplierName { get; set; }
} }
} }
\ No newline at end of file
...@@ -29,5 +29,9 @@ namespace Mall.Model.Extend.Property ...@@ -29,5 +29,9 @@ namespace Mall.Model.Extend.Property
/// /틔id /// /틔id
/// </summary> /// </summary>
public int GoodsId { get; set; } public int GoodsId { get; set; }
/// <summary>
/// 구鬧
/// </summary>
public string GoodsRemark { get; set; }
} }
} }
\ No newline at end of file
...@@ -40,5 +40,9 @@ namespace Mall.Model.Extend.Property ...@@ -40,5 +40,9 @@ namespace Mall.Model.Extend.Property
/// 明细列表 /// 明细列表
/// </summary> /// </summary>
public List<RB_Procurement_Detail_Extend> DetailList { get; set; } public List<RB_Procurement_Detail_Extend> DetailList { get; set; }
/// <summary>
/// 账户类型
/// </summary>
public int IsPublic { get; set; }
} }
} }
\ No newline at end of file
This diff is collapsed.
...@@ -63,6 +63,9 @@ namespace Mall.Repository.Product ...@@ -63,6 +63,9 @@ namespace Mall.Repository.Product
if (dmodel.IsProxy > 0) { if (dmodel.IsProxy > 0) {
where += $@" and g.{nameof(RB_Goods_Extend.IsProxy)}={dmodel.IsProxy}"; where += $@" and g.{nameof(RB_Goods_Extend.IsProxy)}={dmodel.IsProxy}";
} }
if (dmodel.SupplierId > 0) {
where += $@" and g.{nameof(RB_Goods_Extend.SupplierId)}={dmodel.SupplierId}";
}
string orderBy = " g.CreateDate desc"; string orderBy = " g.CreateDate desc";
if (dmodel.OrderBy == 1) if (dmodel.OrderBy == 1)
......
...@@ -43,6 +43,8 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -43,6 +43,8 @@ namespace Mall.WebApi.Controllers.MallBase
} }
demodel.RB_Group_Id = requestParm.ERPGroupId; demodel.RB_Group_Id = requestParm.ERPGroupId;
demodel.TenantId = requestParm.TenantId;
demodel.MallBaseId = requestParm.MallBaseId;
var list = propertyModule.GetProcurementPageList(pagelist.pageIndex, pagelist.pageSize, demodel, out long count); var list = propertyModule.GetProcurementPageList(pagelist.pageIndex, pagelist.pageSize, demodel, out long count);
pagelist.count = Convert.ToInt32(count); pagelist.count = Convert.ToInt32(count);
pagelist.pageData = list.Select(x => new pagelist.pageData = list.Select(x => new
...@@ -92,7 +94,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -92,7 +94,7 @@ namespace Mall.WebApi.Controllers.MallBase
return ApiResult.ParamIsNull("请传递参数"); return ApiResult.ParamIsNull("请传递参数");
} }
var model = propertyModule.GetProcurementInfo(ProcurementId, requestParm.TenantId, requestParm.MallBaseId); var model = propertyModule.GetProcurementInfo(ProcurementId, requestParm.TenantId, requestParm.MallBaseId, requestParm.ERPGroupId);
return ApiResult.Success("",new { return ApiResult.Success("",new {
model.Id, model.Id,
model.WareHouseId, model.WareHouseId,
...@@ -171,10 +173,19 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -171,10 +173,19 @@ namespace Mall.WebApi.Controllers.MallBase
{ {
return ApiResult.ParamIsNull("请传递参数"); return ApiResult.ParamIsNull("请传递参数");
} }
if (requestParm.ERPGroupId <= 0)
{
return ApiResult.ParamIsNull("请传递参数");
}
if (requestParm.EmpId <= 0) { if (requestParm.EmpId <= 0) {
return ApiResult.ParamIsNull("请传递参数"); return ApiResult.ParamIsNull("请传递参数");
} }
if (demodel.IsPublic < 0) {
return ApiResult.ParamIsNull("请选择账户类型");
}
if ((demodel.SupplierId ?? 0) <= 0) {
return ApiResult.ParamIsNull("请传递供应商");
}
if ((demodel.WareHouseId ?? 0) <= 0) { if ((demodel.WareHouseId ?? 0) <= 0) {
return ApiResult.ParamIsNull("请传递仓库id"); return ApiResult.ParamIsNull("请传递仓库id");
} }
......
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
"ExpendBranchId": 49, //财务支出创建人公司 "ExpendBranchId": 49, //财务支出创建人公司
"ExpendDepartment": 331, "ExpendDepartment": 331,
"RebornDMC": "reborn_dmc", "RebornDMC": "reborn_dmc",
"IncomeFinanceApi": "http://192.168.2.16:8083/api/Mall/InsertFinanceBatchForMallIn", "IncomeFinanceApi": "http://testapi.oytour.com/api/Mall/InsertFinanceBatchForMallIn",
"PaymentFinanceApi": "http://192.168.2.16:8083/api/Mall/InsertFinanceBatchForMallOut", "PaymentFinanceApi": "http://testapi.oytour.com/api/Mall/InsertFinanceBatchForMallOut",
"FinanceKey": "FinanceMallInsertToERPViitto2020", "FinanceKey": "FinanceMallInsertToERPViitto2020",
"SettlementRate": "0.60", "SettlementRate": "0.60",
//"RedisSetting": { //"RedisSetting": {
...@@ -65,7 +65,13 @@ ...@@ -65,7 +65,13 @@
"TenantId": 1, "TenantId": 1,
"MallBaseId": 1, "MallBaseId": 1,
"RemitTypeId": 10, "RemitTypeId": 10,
"RemitAccountId": 3012 "RemitAccountId": 3012,
"ProcurementCTId": 224, //以下采购
"ProcurementFWId": 127,
"ProcurementDirector": 1756,
"ProcurementBranchId": 49,
"ProcurementDepartment": 331,
"ProcurementCurrencyId": 1
}, },
"InitializeImages": { "InitializeImages": {
"GradeEntranceImage": "1234566778" "GradeEntranceImage": "1234566778"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment