Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TakeStock
Overview
Overview
Details
Activity
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
pengjinyang
TakeStock
Commits
b289b803
Commit
b289b803
authored
Jun 19, 2021
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增作废单类型
parent
3d0c20af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
TakeStockSchedule.cs
Domain/TakeStock/TakeStockSchedule.cs
+6
-1
TakeStockService.cs
Service/TakeStock/TakeStockService.cs
+8
-1
No files found.
Domain/TakeStock/TakeStockSchedule.cs
View file @
b289b803
...
...
@@ -155,7 +155,12 @@ namespace Domain.TakeStock
/// 退货业务
/// </summary>
[
Description
(
"退货业务"
)]
ReturnGoods
=
3
ReturnGoods
=
3
,
/// <summary>
/// 库存作废
/// </summary>
[
Description
(
"库存作废"
)]
Voidgoods
=
4
}
/// <summary>
...
...
Service/TakeStock/TakeStockService.cs
View file @
b289b803
...
...
@@ -838,6 +838,13 @@ namespace Service.TakeStock
result
.
Message
=
"选中的计划单存在不符合需要审核的数据!"
;
return
result
;
}
var
voidgoodsCount
=
findSchedules
.
Count
(
x
=>
x
.
TakeStockType
==
TakeStockType
.
Voidgoods
);
var
auditUserNames
=
"赵鹏,姚晓婷"
;
if
(
voidgoodsCount
>
0
&&
!
auditUserNames
.
Contains
(
inputDto
.
AuditUserName
))
{
result
.
Message
=
$"作废单请找
{
auditUserNames
}
审核!"
;
return
result
;
}
if
(
inputDto
.
State
==
TSScheduleState
.
审核不通过
)
{
foreach
(
var
item
in
findSchedules
)
...
...
@@ -877,7 +884,7 @@ namespace Service.TakeStock
else
{
var
orders
=
_orderRepository
.
GetAllList
(
o
=>
!
o
.
IsDeleted
&&
o
.
State
!=
TSOrderState
.
取消
&&
o
.
State
!=
TSOrderState
.
完成
&&
o
.
ScheduleId
==
findSchedule
.
Id
);
var
requestData
=
new
RequestDto
<
List
<
ModifStockInputDto
>>
{
Data
=
orders
.
Select
(
x
=>
new
ModifStockInputDto
{
Sku
=
x
.
Sku
,
Quantity
=
x
.
AfterQuantity
.
Value
,
WarehouseCode
=
findSchedule
.
WarehouseCode
,
ExternalCode
=
findSchedule
.
Code
,
CheduleCreationTime
=
findSchedule
.
CreationTime
,
SysSerialNumber
=
findSchedule
.
SysSerialNumber
}).
ToList
()
};
var
requestData
=
new
RequestDto
<
List
<
ModifStockInputDto
>>
{
Data
=
orders
.
Select
(
x
=>
new
ModifStockInputDto
{
Sku
=
x
.
Sku
,
Quantity
=
x
.
AfterQuantity
.
Value
,
WarehouseCode
=
findSchedule
.
WarehouseCode
,
ExternalCode
=
findSchedule
.
Code
,
CheduleCreationTime
=
findSchedule
.
CreationTime
,
SysSerialNumber
=
findSchedule
.
SysSerialNumber
}).
ToList
()
};
var
response
=
await
PostData
<
WMSResponseDto
<
string
>,
RequestDto
<
List
<
ModifStockInputDto
>>>(
requestData
,
"WMSStockService/BatchModifAndEnabled"
);
if
(
response
.
IsSuccess
)
{
...
...
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