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
8be78a9e
Commit
8be78a9e
authored
Oct 12, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建订单优化
parent
967f4ad0
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2154 additions
and
1898 deletions
+2154
-1898
index.js
src/api/base_info/branch_company/index.js
+17
-1
rentOrderDetailModal.vue
src/views/order/modal/rentOrderDetailModal.vue
+352
-258
index.vue
src/views/order/rentVehicleInfo/index.vue
+0
-1
summitPopup.vue
src/views/summit/model/summitPopup.vue
+98
-33
index.vue
src/views/vehicle/bookRecord/index.vue
+1687
-1605
No files found.
src/api/base_info/branch_company/index.js
View file @
8be78a9e
...
...
@@ -155,7 +155,22 @@ export function stockSearchPage(query) {
});
}
// 修改订单还车公司
export
function
updateEndCompany
(
params
)
{
return
fetch
({
url
:
'/api/order/baseOrder/updateEndCompany'
,
method
:
'post'
,
data
:
params
});
}
// 修改预定订单还车公司
export
function
updateById
(
params
)
{
return
fetch
({
url
:
'/vehicle/vehicleInfo/bookRecord/updateById'
,
method
:
'post'
,
data
:
params
});
}
export
function
delObj
(
id
)
{
return
fetch
({
url
:
'/vehicle/branchCompany/'
+
id
,
...
...
@@ -184,6 +199,7 @@ export function getDetail(id) {
method
:
'get'
})
}
/**
* 获取所有公司信息
* @returns {null|*}
...
...
src/views/order/modal/rentOrderDetailModal.vue
View file @
8be78a9e
This diff is collapsed.
Click to expand it.
src/views/order/rentVehicleInfo/index.vue
View file @
8be78a9e
...
...
@@ -697,7 +697,6 @@ export default {
});
},
handleOrderDetail
(
row
)
{
debugger
this
.
form
=
row
;
if
(
this
.
form
.
status
==
2
)
{
this
.
form
.
ststusName
=
"取消"
;
...
...
src/views/summit/model/summitPopup.vue
View file @
8be78a9e
...
...
@@ -165,12 +165,21 @@
<el-form-item
label=
"峰会流程:"
>
<el-row
class=
"height"
v-for=
"(item, index) in processJson"
:key=
"index"
>
<el-col
:span=
"6"
>
<el-date-picker
<
!--
<
el-date-picker
v-model=
"item.time"
type=
"datetime"
format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择时间"
></el-date-picker>
></el-date-picker>
-->
<el-time-select
v-model=
"item.time"
:picker-options=
"
{
start: '06:00',
step: '00:15',
end: '23:59'
}"
placeholder="选择/输入时间"
>
</el-time-select>
</el-col>
<el-col
:span=
"8"
>
<el-input
class=
"content"
v-model=
"item.content"
placeholder=
"请输入内容"
></el-input>
...
...
@@ -256,6 +265,7 @@ export default {
longitude
:
undefined
,
latitude
:
undefined
,
state
:
'默认'
,
status
:
0
,
rid
:
undefined
,
content
:
''
,
// 峰会主题
contentFirm
:
''
,
...
...
@@ -303,12 +313,12 @@ export default {
getOne
(
this
.
popupRow
.
id
).
then
(
res
=>
{
res
.
data
.
state
=
this
.
getState
(
res
.
data
.
status
)
this
.
form
=
res
.
data
this
.
form
.
bmCloseTime
=
Number
(
res
.
data
.
bmCloseTime
)
let
introduce
=
this
.
form
.
vehicleImgs
.
split
(
','
);
introduce
.
forEach
(
element
=>
{
this
.
fileList2
.
push
({
name
:
'峰会介绍'
,
url
:
element
})
});
this
.
form
=
res
.
data
this
.
form
.
bmCloseTime
=
Number
(
res
.
data
.
bmCloseTime
)
let
introduce
=
this
.
form
.
vehicleImgs
.
split
(
','
)
introduce
.
forEach
(
element
=>
{
this
.
fileList2
.
push
({
name
:
'峰会介绍'
,
url
:
element
})
})
if
(
res
.
data
.
processJson
)
{
this
.
processJson
=
JSON
.
parse
(
res
.
data
.
processJson
)
}
...
...
@@ -378,7 +388,7 @@ export default {
},
addTag
()
{
const
t
=
{
time
:
undefined
,
time
:
null
,
content
:
''
}
this
.
processJson
.
push
(
t
)
...
...
@@ -388,43 +398,98 @@ export default {
*
* */
update1
()
{
this
.
dataProcessing
()
update
(
this
.
form
).
then
(
res
=>
{
this
.
responseResult
(
res
)
})
if
(
!
this
.
form
.
title
)
{
this
.
$notify
({
title
:
'失败'
,
message
:
'标题不能为空'
,
type
:
'error'
,
duration
:
2000
})
return
false
}
else
if
(
!
this
.
form
.
startTime
)
{
this
.
$notify
({
title
:
'失败'
,
message
:
'开始时间不能为空'
,
type
:
'error'
,
duration
:
2000
})
}
else
if
(
!
this
.
form
.
endTime
)
{
this
.
$notify
({
title
:
'失败'
,
message
:
'结束时间不能为空'
,
type
:
'error'
,
duration
:
2000
})
}
else
if
(
!
this
.
form
.
bmCloseTime
)
{
this
.
$notify
({
title
:
'失败'
,
message
:
'报名截止时间不能为空'
,
type
:
'error'
,
duration
:
2000
})
}
else
{
typeof
(
this
.
form
.
endTime
)
==
'number'
?
this
.
form
.
endTime
=
this
.
form
.
endTime
:
this
.
form
.
endTime
=
this
.
form
.
endTime
.
getTime
();
typeof
(
this
.
form
.
startTime
)
==
'number'
?
this
.
form
.
startTime
=
this
.
form
.
startTime
:
this
.
form
.
startTime
=
this
.
form
.
startTime
.
getTime
();
typeof
(
this
.
form
.
bmCloseTime
)
==
'number'
?
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
:
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
();
let
pic
=
[]
if
(
!!
this
.
form
.
vehicleImgs
)
{
this
.
form
.
vehicleImgs
.
forEach
(
element
=>
{
pic
.
push
(
element
.
url
)
})
this
.
form
.
vehicleImgs
=
pic
.
join
(
','
)
}
this
.
form
.
processJson
=
this
.
processJson
update
(
this
.
form
).
then
(
res
=>
{
this
.
responseResult
(
res
)
})
this
.
dataProcessing
()
}
},
create
(
formName
)
{
if
(
!
this
.
form
.
title
||
!
this
.
form
.
startTime
||
!
this
.
form
.
endTime
)
{
create
()
{
if
(
!
this
.
form
.
title
)
{
this
.
$notify
({
title
:
'失败'
,
message
:
'
必填项
不能为空'
,
message
:
'
标题
不能为空'
,
type
:
'error'
,
duration
:
2000
})
return
false
}
else
if
(
!
this
.
form
.
startTime
)
{
this
.
$notify
({
title
:
'失败'
,
message
:
'开始时间不能为空'
,
type
:
'error'
,
duration
:
2000
})
}
else
if
(
!
this
.
form
.
endTime
)
{
this
.
$notify
({
title
:
'失败'
,
message
:
'结束时间不能为空'
,
type
:
'error'
,
duration
:
2000
})
}
else
if
(
!
this
.
form
.
bmCloseTime
)
{
this
.
$notify
({
title
:
'失败'
,
message
:
'报名截止时间不能为空'
,
type
:
'error'
,
duration
:
2000
})
}
else
{
this
.
form
.
endTime
=
this
.
form
.
endTime
.
getTime
()
this
.
form
.
startTime
=
this
.
form
.
startTime
.
getTime
()
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
()
let
pic
=
[]
this
.
form
.
vehicleImgs
.
forEach
(
element
=>
{
pic
.
push
(
element
.
url
)
})
this
.
form
.
vehicleImgs
=
pic
.
join
(
','
)
let
demo
=
[]
this
.
processJson
.
forEach
(
element
=>
{
demo
.
push
({
time
:
formatDate
(
element
.
time
,
'yyyy-MM-dd hh'
)
+
':00:00'
,
content
:
element
.
content
if
(
!!
this
.
form
.
vehicleImgs
)
{
this
.
form
.
vehicleImgs
.
forEach
(
element
=>
{
pic
.
push
(
element
.
url
)
})
})
this
.
form
.
processJson
=
demo
this
.
form
.
vehicleImgs
=
pic
.
join
(
','
)
}
this
.
form
.
processJson
=
this
.
processJson
add
(
this
.
form
).
then
(
res
=>
{
this
.
responseResult
(
res
)
...
...
src/views/vehicle/bookRecord/index.vue
View file @
8be78a9e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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