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
835fb822
Commit
835fb822
authored
Jun 30, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
d6e35f85
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
34 deletions
+26
-34
proxy.js
config/proxy.js
+1
-1
global.less
src/global.less
+3
-0
fields.jsx
src/pages/system/Staff/fields.jsx
+6
-5
index.jsx
src/pages/user/Login/index.jsx
+15
-27
system.js
src/services/system.js
+1
-1
No files found.
config/proxy.js
View file @
835fb822
...
...
@@ -11,7 +11,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/"
:
{
// 要代理的地址
target
:
"http://192.168.40.
18
:18040/"
,
//39:18040 23/wms/ //60 翔
target
:
"http://192.168.40.
212
:18040/"
,
//39:18040 23/wms/ //60 翔
changeOrigin
:
true
,
pathRewrite
:
{
"^/wms"
:
""
,
...
...
src/global.less
View file @
835fb822
...
...
@@ -323,3 +323,6 @@ table {
.ant-pro-table-list-toolbar{
overflow: hidden !important;
}
.ant-select-selector{
overflow: hidden !important;
}
\ No newline at end of file
src/pages/system/Staff/fields.jsx
View file @
835fb822
...
...
@@ -7,6 +7,7 @@ import {
departmentTree
,
roleSelect
,
}
from
"@/services/system"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
export
default
{
accountName
:
{
value
:
null
,
...
...
@@ -62,12 +63,12 @@ export default {
required
:
false
,
belinked
:
{
options
:
{
database
:
storeselectionBox
,
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-auth/sysStore/selectionBox"
,
params
:
{
...
params
}
})
,
params
:
{
factoryIdList
:
"linked"
}
},
},
},
linked
:
true
,
multiple
:
true
,
},
roleIdList
:
{
...
...
src/pages/user/Login/index.jsx
View file @
835fb822
...
...
@@ -284,6 +284,12 @@ const Login = () => {
</
Button
>
}
}
}
onValuesChange=
{
async
(
values
)
=>
{
if
(
Object
.
keys
(
values
)[
0
]
==
"factoryIdList"
)
{
formRef
.
current
.
setFieldsValue
({
storeIdList
:
[]
});
}
}
}
title=
{
<
span
style=
{
{
color
:
"#fff"
}
}
>
WMS
</
span
>
}
subTitle=
{
<
span
style=
{
{
color
:
"rgba(255,255,255,0.6)"
}
}
>
...
...
@@ -453,38 +459,21 @@ const Login = () => {
]
}
/>
</
Col
>
<
Col
span=
{
8
}
>
<
ProFormSelect
<
ProFormDependency
name=
{
[
"factoryIdList"
]
}
>
{
({
factoryIdList
})
=>
{
return
<
ProFormSelect
fieldProps=
{
{
mode
:
"multiple"
,
maxTagCount
:
1
maxTagCount
:
1
,
}
}
name=
"storeIdList"
label=
{
<
b
>
负责仓库
</
b
>
}
placeholder=
{
"请选择负责仓库"
}
request=
{
async
()
=>
{
let
res
=
await
storeselectionBoxAll
({});
return
res
?.
data
?.
dataList
??
[]
}
}
rules=
{
[
{
required
:
false
,
message
:
"请选择负责仓库!"
,
}
]
}
/>
{
/* <ProFormDependency name={["factoryId"]}>
{
({ factoryId }) => {
return <ProFormSelect
name="storeIdList"
label={<b>负责仓库</b>}
placeholder={"请选择负责仓库"}
params={{ factoryId }}
params=
{
{
factoryIdList
}
}
request=
{
async
(
params
)
=>
{
let res = await storeselectionBoxAll(
{}
);
let
res
=
await
storeselectionBoxAll
(
params
);
return
res
?.
data
?.
dataList
??
[]
}
}
rules=
{
[
...
...
@@ -498,8 +487,7 @@ const Login = () => {
}
</ProFormDependency> */
}
</
ProFormDependency
>
</
Col
>
<
Col
span=
{
8
}
>
...
...
src/services/system.js
View file @
835fb822
...
...
@@ -31,7 +31,7 @@ export async function shopSelect(params) {
}
//仓库下拉
export
async
function
storeselectionBoxAll
(
params
)
{
return
request
(
`/wms/ngic-auth/sysStore/selectionBox
All
`
,
{
return
request
(
`/wms/ngic-auth/sysStore/selectionBox`
,
{
method
:
"POST"
,
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