Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms
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
wuhao
wms
Commits
ba2ea938
Commit
ba2ea938
authored
Jun 29, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
1857523c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
20 deletions
+37
-20
proxy.js
config/proxy.js
+1
-1
routes.js
config/routes.js
+32
-14
Index.jsx
src/pages/craft/Materiel/Index.jsx
+0
-4
fields.js
src/pages/system/Store/fields.js
+1
-1
doFetch.js
src/utils/doFetch.js
+3
-0
No files found.
config/proxy.js
View file @
ba2ea938
...
@@ -11,7 +11,7 @@ export default {
...
@@ -11,7 +11,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/"
:
{
"/wms/"
:
{
// 要代理的地址
// 要代理的地址
target
:
"http://192.168.40.
212
:18040/"
,
//39:18040 23/wms/ //60 翔
target
:
"http://192.168.40.
18
:18040/"
,
//39:18040 23/wms/ //60 翔
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
"^/wms"
:
""
,
"^/wms"
:
""
,
...
...
config/routes.js
View file @
ba2ea938
...
@@ -62,11 +62,7 @@ export default [
...
@@ -62,11 +62,7 @@ export default [
name
:
"工厂管理"
,
name
:
"工厂管理"
,
component
:
"./system/Parts"
,
component
:
"./system/Parts"
,
},
},
{
path
:
"/system/store"
,
name
:
"仓库管理"
,
component
:
"./system/Store"
,
},
// {
// {
// path: "/system/productionline",
// path: "/system/productionline",
// name: "产线管理",
// name: "产线管理",
...
@@ -106,11 +102,7 @@ export default [
...
@@ -106,11 +102,7 @@ export default [
name
:
"工艺路线"
,
name
:
"工艺路线"
,
component
:
"./craft/Gongyi"
,
component
:
"./craft/Gongyi"
,
},
},
{
path
:
"/craft/materiel"
,
name
:
"物料管理"
,
component
:
"./craft/Materiel"
,
},
{
{
path
:
"/craft/gather"
,
path
:
"/craft/gather"
,
name
:
"采集站点"
,
name
:
"采集站点"
,
...
@@ -141,12 +133,12 @@ export default [
...
@@ -141,12 +133,12 @@ export default [
component
:
"./platform/Specialset"
,
component
:
"./platform/Specialset"
,
},
},
{
{
path
:
"/platform/
sendset
"
,
path
:
"/platform/
msgoption
"
,
name
:
"推送配置"
,
name
:
"推送配置"
,
component
:
"./platform/Sendset"
,
component
:
"./platform/Sendset"
,
},
},
{
{
path
:
"/platform/
sendlist
"
,
path
:
"/platform/
msgrecord
"
,
name
:
"推送记录"
,
name
:
"推送记录"
,
component
:
"./platform/Sendlist"
,
component
:
"./platform/Sendlist"
,
},
},
...
@@ -167,12 +159,36 @@ export default [
...
@@ -167,12 +159,36 @@ export default [
component
:
"./platform/Labeltemplate"
,
component
:
"./platform/Labeltemplate"
,
},
},
{
{
path
:
'/platform/provide'
,
component
:
"./404"
,
},
],
},
{
path
:
"/store"
,
name
:
"仓库基础数据"
,
icon
:
"desktop"
,
routes
:
[
{
path
:
"/store"
,
redirect
:
"/store/materiel"
,
},
{
path
:
"/store/material"
,
name
:
"物料管理"
,
component
:
"./craft/Materiel"
,
},
{
path
:
"/store/position"
,
name
:
"仓库管理"
,
component
:
"./system/Store"
,
},
{
path
:
'/store/supplier'
,
name
:
'供应商管理'
,
name
:
'供应商管理'
,
component
:
'./platform/Provide'
,
component
:
'./platform/Provide'
,
},
},
{
{
path
:
'/
platform/custom
'
,
path
:
'/
store/customer
'
,
name
:
'客户管理'
,
name
:
'客户管理'
,
component
:
'./platform/Custom'
,
component
:
'./platform/Custom'
,
},
},
...
@@ -181,6 +197,8 @@ export default [
...
@@ -181,6 +197,8 @@ export default [
},
},
],
],
},
},
{
{
path
:
"/schedule"
,
path
:
"/schedule"
,
name
:
"排班设置"
,
name
:
"排班设置"
,
...
...
src/pages/craft/Materiel/Index.jsx
View file @
ba2ea938
...
@@ -5,15 +5,11 @@ import getPrem from "@/utils/getPrem"; //权限判断fn
...
@@ -5,15 +5,11 @@ import getPrem from "@/utils/getPrem"; //权限判断fn
import
{
useRequest
}
from
"umi"
;
import
{
useRequest
}
from
"umi"
;
import
defaultFields
from
"./fields"
;
import
defaultFields
from
"./fields"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
DrawInitForm
from
"@/components/DrawInitForm"
;
import
Details
from
"@/components/Details"
;
import
Details
from
"@/components/Details"
;
import
{
materielDetail
}
from
"@/utils/detailTotalCard"
;
import
{
materielDetail
}
from
"@/utils/detailTotalCard"
;
import
InitForm
from
"@/components/InitForm"
;
import
InitForm
from
"@/components/InitForm"
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
Coltext
from
"@/components/Coltext"
;
import
RenderItemType
from
"@/components/RenderItemType"
;
import
TreeRender
from
'@/components/TreeRender'
import
TreeRender
from
'@/components/TreeRender'
import
{
set
}
from
"lodash"
;
import
{
useEffect
}
from
"react"
;
import
{
useEffect
}
from
"react"
;
const
initState
=
{
const
initState
=
{
...
...
src/pages/system/Store/fields.js
View file @
ba2ea938
...
@@ -7,7 +7,7 @@ export default {
...
@@ -7,7 +7,7 @@ export default {
"name"
:
[
"name"
:
[
"storeCode"
"storeCode"
],
],
"required"
:
tru
e
"required"
:
fals
e
},
},
"storeName"
:
{
"storeName"
:
{
"value"
:
null
,
"value"
:
null
,
...
...
src/utils/doFetch.js
View file @
ba2ea938
...
@@ -8,6 +8,9 @@ export async function postFetch({ url, params }) {
...
@@ -8,6 +8,9 @@ export async function postFetch({ url, params }) {
});
});
}
}
export
async
function
doFetch
({
url
,
params
})
{
export
async
function
doFetch
({
url
,
params
})
{
if
(
!
url
){
return
}
return
request
(
"/wms"
+
url
,
{
return
request
(
"/wms"
+
url
,
{
method
:
"POST"
,
method
:
"POST"
,
data
:
params
,
data
:
params
,
...
...
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