Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
4353497f
Commit
4353497f
authored
May 31, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户管理-编辑用户名,车辆申请预定-提车分公司、还车分公司
parent
acb5c235
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
104 additions
and
17 deletions
+104
-17
index.vue
src/views/admin/user/index.vue
+3
-12
index.vue
src/views/vehicle/vehicleInfo/index.vue
+101
-5
No files found.
src/views/admin/user/index.vue
View file @
4353497f
...
@@ -43,8 +43,9 @@
...
@@ -43,8 +43,9 @@
<el-input
v-model=
"form.name"
placeholder=
"请输入姓名"
></el-input>
<el-input
v-model=
"form.name"
placeholder=
"请输入姓名"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"账户"
prop=
"username"
>
<el-form-item
label=
"账户"
prop=
"username"
>
<el-input
v-if=
"dialogStatus == 'create'"
v-model=
"form.username"
placeholder=
"请输入账户"
></el-input>
<!--v-if="dialogStatus == 'create'"-->
<el-input
v-else
v-model=
"form.username"
placeholder=
"请输入账户"
readonly
></el-input>
<el-input
v-model=
"form.username"
placeholder=
"请输入账户"
></el-input>
<!--<el-input v-else v-model="form.username" placeholder="请输入账户" readonly></el-input>-->
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"dialogStatus == 'create'"
label=
"密码"
placeholder=
"请输入密码"
prop=
"password"
>
<el-form-item
v-if=
"dialogStatus == 'create'"
label=
"密码"
placeholder=
"请输入密码"
prop=
"password"
>
<el-input
type=
"password"
v-model=
"form.password"
></el-input>
<el-input
type=
"password"
v-model=
"form.password"
></el-input>
...
@@ -413,16 +414,6 @@ export default {
...
@@ -413,16 +414,6 @@ export default {
};
};
},
},
update
(
formName
)
{
update
(
formName
)
{
if
(
!
this
.
form
.
state2
||
this
.
form
.
state2
==
"全部"
){
this
.
form
.
companyId
=
undefined
;
// this.$notify({
// title: '失败',
// message: '请选择分公司',
// type: 'warning',
// duration: 2000
// });
// return;
}
const
set
=
this
.
$refs
;
const
set
=
this
.
$refs
;
set
[
formName
].
validate
(
valid
=>
{
set
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
...
src/views/vehicle/vehicleInfo/index.vue
View file @
4353497f
...
@@ -562,10 +562,30 @@
...
@@ -562,10 +562,30 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"提车分公司"
prop=
"liftCompany"
>
<el-form-item
label=
"提车分公司"
prop=
"liftCompany"
>
<el-select
class=
"filter-item"
v-model
.
number=
"form4Apply.liftCompany"
placeholder=
"请选择提车分公司"
>
<el-autocomplete
<el-option
:key=
"undefined"
label=
"无"
:value=
"undefined"
></el-option>
class=
"inline-input"
<el-option
v-for=
"item in allCompanies"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
v-model=
"form4Apply.state3"
</el-select>
:fetch-suggestions=
"querySearch"
placeholder=
"请输入内容"
@
select=
"handleSelect3"
></el-autocomplete>
<!--<el-select class="filter-item" v-model.number="form4Apply.liftCompany" placeholder="请选择提车分公司">-->
<!--<el-option :key="undefined" label="无" :value="undefined"></el-option>-->
<!--<el-option v-for="item in allCompanies" :key="item.id" :label="item.name" :value="item.id"></el-option>-->
<!--</el-select>-->
</el-form-item>
<el-form-item
label=
"还车分公司"
prop=
"retCompany"
>
<el-autocomplete
class=
"inline-input"
v-model=
"form4Apply.state4"
:fetch-suggestions=
"querySearch"
placeholder=
"请输入内容"
@
select=
"handleSelect4"
></el-autocomplete>
<!--<el-select class="filter-item" v-model.number="form4Apply.retCompany" placeholder="请选择提车分公司">-->
<!--<el-option :key="undefined" label="无" :value="undefined"></el-option>-->
<!--<el-option v-for="item in allCompanies" :key="item.id" :label="item.name" :value="item.id"></el-option>-->
<!--</el-select>-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"目的地"
prop=
"destination"
>
<el-form-item
label=
"目的地"
prop=
"destination"
>
<el-input
v-model=
"form4Apply.destination"
placeholder=
"请输入目的地"
></el-input>
<el-input
v-model=
"form4Apply.destination"
placeholder=
"请输入目的地"
></el-input>
...
@@ -903,6 +923,9 @@
...
@@ -903,6 +923,9 @@
bookEndDate
:
undefined
,
bookEndDate
:
undefined
,
vehicle
:
undefined
,
vehicle
:
undefined
,
liftAddr
:
undefined
,
liftAddr
:
undefined
,
state3
:
''
,
retCompany
:
undefined
,
state4
:
''
,
liftCompany
:
undefined
,
liftCompany
:
undefined
,
destination
:
undefined
,
destination
:
undefined
,
selectedAccItem
:
undefined
,
selectedAccItem
:
undefined
,
...
@@ -989,6 +1012,7 @@
...
@@ -989,6 +1012,7 @@
}
}
callback
();
callback
();
},
},
required
:
true
,
trigger
:
'blur'
trigger
:
'blur'
}
}
],
],
...
@@ -1000,6 +1024,14 @@
...
@@ -1000,6 +1024,14 @@
type
:
'integer'
type
:
'integer'
}
}
],
],
retCompany
:
[
{
required
:
true
,
message
:
'请选择还车分公司'
,
trigger
:
'blur'
,
type
:
'integer'
}
],
destination
:
[
destination
:
[
{
{
min
:
0
,
min
:
0
,
...
@@ -1339,6 +1371,28 @@
...
@@ -1339,6 +1371,28 @@
}
}
console
.
log
(
item
);
console
.
log
(
item
);
},
},
/**
* 提车分公司
* */
handleSelect3
(
item
){
debugger
if
(
item
.
value
==
"全部"
){
this
.
form4Apply
.
liftCompany
=
undefined
;
}
else
{
this
.
form4Apply
.
liftCompany
=
item
.
id
;
}
console
.
log
(
item
);
},
/**
* 还车分公司
* */
handleSelect4
(
item
){
if
(
item
.
value
==
"全部"
){
this
.
form4Apply
.
retCompany
=
undefined
;
}
else
{
this
.
form4Apply
.
retCompany
=
item
.
id
;
}
console
.
log
(
item
);
},
handleSelect1
(
item
){
handleSelect1
(
item
){
if
(
item
.
value
==
"全部"
){
if
(
item
.
value
==
"全部"
){
this
.
form
.
subordinateBranch
=
undefined
;
this
.
form
.
subordinateBranch
=
undefined
;
...
@@ -1781,8 +1835,23 @@
...
@@ -1781,8 +1835,23 @@
this
.
dialogStatus
=
'update'
;
this
.
dialogStatus
=
'update'
;
});
});
},
},
/**
* 操作-申请预定
* */
handleApply
(
row
)
{
handleApply
(
row
)
{
this
.
resetTemp4Apply
();
this
.
resetTemp4Apply
();
let
that
=
this
;
let
selectArry
=
[];
this
.
allCompaniesArr
.
map
(
function
(
item
){
item
.
value
=
item
.
name
;
selectArry
.
push
(
item
);
});
this
.
form4Apply
.
liftCompany
=
row
.
subordinateBranch
;
selectArry
.
map
(
function
(
iitem
)
{
if
(
row
.
subordinateBranch
==
iitem
.
id
){
that
.
form4Apply
.
state3
=
iitem
.
name
;
}
});
this
.
form4Apply
.
vehicle
=
row
.
id
;
this
.
form4Apply
.
vehicle
=
row
.
id
;
getBookedInfoIn2Month
(
row
.
id
)
getBookedInfoIn2Month
(
row
.
id
)
.
then
(
response
=>
{
.
then
(
response
=>
{
...
@@ -1886,7 +1955,31 @@
...
@@ -1886,7 +1955,31 @@
}
}
});
});
},
},
apply
(
formName
)
{
/**
* 申请预定-确定
* @param formName
*/
apply
(
formName
)
{
debugger
if
(
!
this
.
form4Apply
.
state3
||
this
.
form4Apply
.
state3
==
"全部"
){
this
.
form4Apply
.
liftCompany
=
undefined
;
this
.
$notify
({
title
:
'失败'
,
message
:
'请选择提车分公司'
,
type
:
'warning'
,
duration
:
2000
});
return
;
}
if
(
!
this
.
form4Apply
.
state4
||
this
.
form4Apply
.
state4
==
"全部"
){
this
.
form4Apply
.
retCompany
=
undefined
;
this
.
$notify
({
title
:
'失败'
,
message
:
'请选择还车分公司'
,
type
:
'warning'
,
duration
:
2000
});
return
;
}
const
set
=
this
.
$refs
;
const
set
=
this
.
$refs
;
set
[
formName
].
validate
(
valid
=>
{
set
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
@@ -1936,6 +2029,9 @@
...
@@ -1936,6 +2029,9 @@
this
.
form4Apply
=
{
this
.
form4Apply
=
{
bookStartDate
:
undefined
,
bookStartDate
:
undefined
,
bookEndDate
:
undefined
,
bookEndDate
:
undefined
,
state3
:
''
,
state4
:
''
,
retCompany
:
undefined
,
vehicle
:
undefined
,
vehicle
:
undefined
,
selectedAccItem
:
undefined
,
selectedAccItem
:
undefined
,
liftCompany
:
undefined
,
liftCompany
:
undefined
,
...
...
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