Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
9159f233
Commit
9159f233
authored
May 09, 2021
by
季圣华
Browse files
给仓库模块增加负责人下拉框
parent
7b9f6ca5
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/api/api.js
View file @
9159f233
...
...
@@ -16,9 +16,7 @@ const queryall = (params)=>getAction("/sys/role/queryall",params);
//用户管理
const
addUser
=
(
params
)
=>
postAction
(
"
/user/addUser
"
,
params
);
const
editUser
=
(
params
)
=>
putAction
(
"
/user/updateUser
"
,
params
);
const
queryUserRole
=
(
params
)
=>
getAction
(
"
/sys/user/queryUserRole
"
,
params
);
const
getUserList
=
(
params
)
=>
getAction
(
"
/sys/user/list
"
,
params
);
const
frozenBatch
=
(
params
)
=>
putAction
(
"
/sys/user/frozenBatch
"
,
params
);
const
getUserList
=
(
params
)
=>
getAction
(
"
/user/getUserList
"
,
params
);
//验证用户是否存在
const
checkOnlyUser
=
(
params
)
=>
getAction
(
"
/sys/user/checkOnlyUser
"
,
params
);
//改变密码
...
...
@@ -173,10 +171,8 @@ export {
findUserRole
,
addUser
,
editUser
,
queryUserRole
,
getUserList
,
queryall
,
frozenBatch
,
checkOnlyUser
,
changePassword
,
getPermissionList
,
...
...
jshERP-web/src/views/system/modules/DepotModal.vue
View file @
9159f233
...
...
@@ -24,7 +24,11 @@
<a-input
placeholder=
"请输入搬运费"
v-decorator.trim=
"[ 'truckage' ]"
suffix=
"元"
/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"负责人"
>
<a-input
placeholder=
"请输入负责人"
v-decorator.trim=
"[ 'principalName' ]"
/>
<a-select
placeholder=
"选择负责人"
v-decorator=
"[ 'principal' ]"
:dropdownMatchSelectWidth=
"false"
>
<a-select-option
v-for=
"(item,index) in userList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
userName
}}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"排序"
>
<a-input
placeholder=
"请输入排序"
v-decorator.trim=
"[ 'sort' ]"
/>
...
...
@@ -38,7 +42,7 @@
</
template
>
<
script
>
import
pick
from
'
lodash.pick
'
import
{
addDepot
,
editDepot
,
checkDepot
}
from
'
@/api/api
'
import
{
addDepot
,
editDepot
,
checkDepot
,
getUserList
}
from
'
@/api/api
'
export
default
{
name
:
"
DepotModal
"
,
data
()
{
...
...
@@ -46,6 +50,7 @@
title
:
"
操作
"
,
visible
:
false
,
model
:
{},
userList
:
[],
labelCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
...
...
@@ -67,6 +72,7 @@
}
},
created
()
{
this
.
initUser
()
},
methods
:
{
add
()
{
...
...
@@ -78,7 +84,7 @@
this
.
visible
=
true
;
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
name
'
,
'
address
'
,
'
warehousing
'
,
'
truckage
'
,
'
principal
Name
'
,
'
sort
'
,
'
remark
'
))
'
name
'
,
'
address
'
,
'
warehousing
'
,
'
truckage
'
,
'
principal
'
,
'
sort
'
,
'
remark
'
))
});
},
close
()
{
...
...
@@ -130,6 +136,13 @@
callback
(
res
.
data
);
}
});
},
initUser
()
{
getUserList
({}).
then
((
res
)
=>
{
if
(
res
)
{
this
.
userList
=
res
;
}
});
}
}
}
...
...
Write
Preview
Supports
Markdown
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