Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
e1491841
Commit
e1491841
authored
Jul 07, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购
parent
1c5838e7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
185 additions
and
24 deletions
+185
-24
RB_Procurement.cs
Mall.Model/Entity/Property/RB_Procurement.cs
+9
-0
RB_Procurement_Detail_Extend.cs
Mall.Model/Extend/Property/RB_Procurement_Detail_Extend.cs
+4
-0
RB_Procurement_Extend.cs
Mall.Model/Extend/Property/RB_Procurement_Extend.cs
+4
-0
PropertyModule.cs
Mall.Module.Property/PropertyModule.cs
+143
-19
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+3
-0
PropertyController.cs
Mall.WebApi/Controllers/Property/PropertyController.cs
+13
-2
appsettings.json
Mall.WebApi/appsettings.json
+9
-3
No files found.
Mall.Model/Entity/Property/RB_Procurement.cs
View file @
e1491841
...
@@ -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
Mall.Model/Extend/Property/RB_Procurement_Detail_Extend.cs
View file @
e1491841
...
@@ -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
Mall.Model/Extend/Property/RB_Procurement_Extend.cs
View file @
e1491841
...
@@ -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
Mall.Module.Property/PropertyModule.cs
View file @
e1491841
This diff is collapsed.
Click to expand it.
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
e1491841
...
@@ -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
)
...
...
Mall.WebApi/Controllers/Property/PropertyController.cs
View file @
e1491841
...
@@ -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"
);
}
}
...
...
Mall.WebApi/appsettings.json
View file @
e1491841
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment