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
82062fbb
Commit
82062fbb
authored
May 18, 2021
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存日志第三方单号改为盘点计划单号
parent
cbee27cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
TakeStockService.cs
Service/TakeStock/TakeStockService.cs
+4
-2
No files found.
Service/TakeStock/TakeStockService.cs
View file @
82062fbb
...
@@ -137,9 +137,10 @@ namespace Service.TakeStock
...
@@ -137,9 +137,10 @@ namespace Service.TakeStock
isSuccess
=
true
;
isSuccess
=
true
;
else
else
{
{
var
schedule
=
_scheduleRepository
.
Get
(
order
.
ScheduleId
);
var
client
=
_httpClientFactory
.
CreateClient
(
"WMS"
);
var
client
=
_httpClientFactory
.
CreateClient
(
"WMS"
);
//client.DefaultRequestHeaders.Add("Access-Control-Allow-Origin", "*");
//client.DefaultRequestHeaders.Add("Access-Control-Allow-Origin", "*");
string
data
=
JsonConvert
.
SerializeObject
(
new
{
Data
=
new
{
WarehouseCode
=
order
.
WarehouseCode
,
Sku
=
order
.
Sku
,
ExternalCode
=
order
.
Code
}
});
string
data
=
JsonConvert
.
SerializeObject
(
new
{
Data
=
new
{
WarehouseCode
=
order
.
WarehouseCode
,
Sku
=
order
.
Sku
,
ExternalCode
=
schedule
.
Code
}
});
HttpContent
content
=
new
StringContent
(
data
);
HttpContent
content
=
new
StringContent
(
data
);
content
.
Headers
.
ContentType
=
new
MediaTypeHeaderValue
(
"application/json"
);
content
.
Headers
.
ContentType
=
new
MediaTypeHeaderValue
(
"application/json"
);
var
response
=
await
client
.
PostAsync
(
"WMSStockService/FreezeStock"
,
content
);
var
response
=
await
client
.
PostAsync
(
"WMSStockService/FreezeStock"
,
content
);
...
@@ -334,9 +335,10 @@ namespace Service.TakeStock
...
@@ -334,9 +335,10 @@ namespace Service.TakeStock
isSuccess
=
true
;
isSuccess
=
true
;
else
else
{
{
var
schedule
=
_scheduleRepository
.
Get
(
order
.
ScheduleId
);
var
client
=
_httpClientFactory
.
CreateClient
(
"WMS"
);
var
client
=
_httpClientFactory
.
CreateClient
(
"WMS"
);
client
.
DefaultRequestHeaders
.
Add
(
"Access-Control-Allow-Origin"
,
"*"
);
client
.
DefaultRequestHeaders
.
Add
(
"Access-Control-Allow-Origin"
,
"*"
);
string
data
=
JsonConvert
.
SerializeObject
(
new
{
Data
=
new
{
WarehouseCode
=
order
.
WarehouseCode
,
Sku
=
order
.
Sku
,
ExternalCode
=
order
.
Code
}
});
string
data
=
JsonConvert
.
SerializeObject
(
new
{
Data
=
new
{
WarehouseCode
=
order
.
WarehouseCode
,
Sku
=
order
.
Sku
,
ExternalCode
=
schedule
.
Code
}
});
HttpContent
content
=
new
StringContent
(
data
);
HttpContent
content
=
new
StringContent
(
data
);
content
.
Headers
.
ContentType
=
new
MediaTypeHeaderValue
(
"application/json"
);
content
.
Headers
.
ContentType
=
new
MediaTypeHeaderValue
(
"application/json"
);
var
response
=
await
client
.
PostAsync
(
"WMSStockService/SyncAndEnabledStock"
,
content
);
var
response
=
await
client
.
PostAsync
(
"WMSStockService/SyncAndEnabledStock"
,
content
);
...
...
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