Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xin
max_android_panel
Commits
84ac3198
Commit
84ac3198
authored
Sep 20, 2018
by
Zhang Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test domain
parent
b8296cba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
client/actions/barcodeCommon.js
+3
-3
client/actions/common.js
+4
-4
client/actions/replenish.js
+1
-1
client/env/development.js
+2
-1
No files found.
client/actions/barcodeCommon.js
View file @
84ac3198
import
fetch
from
'isomorphic-fetch'
import
fetch
from
'isomorphic-fetch'
import
getTaskList
from
'./common'
import
getTaskList
from
'./common'
import
barcodeActionType
from
'../actiontype/barcodeCommon'
import
barcodeActionType
from
'../actiontype/barcodeCommon'
import
{
wrongQrcode
,
emptyErrorInfo
}
from
'./replenish'
import
replenishAction
from
'./replenish'
let
domain
=
ENV
.
domain
;
let
domain
=
ENV
.
domain
;
// const changeStatus = (data)=>{
// const changeStatus = (data)=>{
...
@@ -48,7 +48,7 @@ const getBarCodeProductInfo = (data)=>{
...
@@ -48,7 +48,7 @@ const getBarCodeProductInfo = (data)=>{
}).
then
((
response
)
=>
response
.
json
())
}).
then
((
response
)
=>
response
.
json
())
.
then
((
json
)
=>
{
.
then
((
json
)
=>
{
if
(
json
.
meta
.
success
&&
json
.
data
){
if
(
json
.
meta
.
success
&&
json
.
data
){
dispatch
(
emptyErrorInfo
());
dispatch
(
replenishAction
.
emptyErrorInfo
());
//补货清空错误数据
dispatch
(
saveProductInfo
(
json
.
data
))
dispatch
(
saveProductInfo
(
json
.
data
))
}
else
{
}
else
{
switch
(
taskInfo
.
currentTaskNum
){
switch
(
taskInfo
.
currentTaskNum
){
...
@@ -57,7 +57,7 @@ const getBarCodeProductInfo = (data)=>{
...
@@ -57,7 +57,7 @@ const getBarCodeProductInfo = (data)=>{
break
;
break
;
case
4
:
case
4
:
//补货任务
//补货任务
dispatch
(
wrongQrcode
(
json
));
dispatch
(
replenishAction
.
wrongQrcode
(
json
));
break
;
break
;
}
}
}
}
...
...
client/actions/common.js
View file @
84ac3198
import
fetch
from
'isomorphic-fetch'
;
import
fetch
from
'isomorphic-fetch'
;
import
actionType
from
'../actiontype/common'
import
actionType
from
'../actiontype/common'
import
{
addErrorInfo
}
from
'./uploadError'
import
{
addErrorInfo
}
from
'./uploadError'
let
domain
=
ENV
.
domain
;
let
domain
1
=
ENV
.
domain
;
//
domain = 'http://192.168.10.128:8080/web/'
let
domain
=
'http://192.168.10.128:8080/web/'
let
myHeaders
=
new
Headers
({
let
myHeaders
=
new
Headers
({
// 'Access-Control-Allow-Origin': '*',
// 'Access-Control-Allow-Origin': '*',
...
@@ -41,7 +41,7 @@ const getTaskInfo = (data)=>{
...
@@ -41,7 +41,7 @@ const getTaskInfo = (data)=>{
const
getStoreInfo
=
(
storeId
)
=>
{
const
getStoreInfo
=
(
storeId
)
=>
{
return
(
dispatch
)
=>
{
return
(
dispatch
)
=>
{
let
bodyData
=
{
storeId
};
let
bodyData
=
{
storeId
};
fetch
(
domain
+
'pad_warehouse/getMachineData.action'
,{
fetch
(
domain
1
+
'pad_warehouse/getMachineData.action'
,{
// credentials : 'include',
// credentials : 'include',
method
:
'POST'
,
method
:
'POST'
,
mode
:
'cors'
,
mode
:
'cors'
,
...
@@ -87,7 +87,7 @@ const getInfoByBarcode = (data)=>{
...
@@ -87,7 +87,7 @@ const getInfoByBarcode = (data)=>{
const
getUserinfo
=
(
employeeId
,
storeId
)
=>
{
const
getUserinfo
=
(
employeeId
,
storeId
)
=>
{
let
bodyData
=
Object
.
assign
({},{
employeeId
,
storeId
})
let
bodyData
=
Object
.
assign
({},{
employeeId
,
storeId
})
return
(
dispatch
)
=>
{
return
(
dispatch
)
=>
{
fetch
(
domain
+
'machine_pad/get_alowed_task.action'
,{
fetch
(
domain
1
+
'machine_pad/get_alowed_task.action'
,{
// credentials : 'include',
// credentials : 'include',
method
:
'POST'
,
method
:
'POST'
,
mode
:
'cors'
,
mode
:
'cors'
,
...
...
client/actions/replenish.js
View file @
84ac3198
...
@@ -22,4 +22,4 @@ const emptyErrorInfo = ()=>{
...
@@ -22,4 +22,4 @@ const emptyErrorInfo = ()=>{
}
}
}
}
export
{
wrongQrcode
,
emptyErrorInfo
}
export
default
{
wrongQrcode
,
emptyErrorInfo
}
client/env/development.js
View file @
84ac3198
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
* Created by ruibing on 16/11/2.
* Created by ruibing on 16/11/2.
*/
*/
module
.
exports
=
{
module
.
exports
=
{
domain
:
'http://
preprod.mjitech.com
/web/'
,
domain
:
'http://
192.168.10.169:7788
/web/'
,
uploadImg
:
'https://preprod.mjitech.com/static/uploadTrouble'
uploadImg
:
'https://preprod.mjitech.com/static/uploadTrouble'
}
}
\ No newline at end of file
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