Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xoadoPlatform
Project
Overview
Details
Activity
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
yaohui
xoadoPlatform
Commits
70f2f7c1
Commit
70f2f7c1
authored
Apr 21, 2022
by
吕海涛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.xoado.com/yaohui/xoadoPlatform
parents
fbd14052
946ac068
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
105 additions
and
51 deletions
+105
-51
App.vue
src/App.vue
+0
-5
index.js
src/router/index.js
+1
-1
index.vue
src/views/maintenance/merchant/index.vue
+20
-17
index.vue
src/views/maintenance/toBeSent/index.vue
+83
-27
regionManage.vue
src/views/platform/regionManage.vue
+1
-1
No files found.
src/App.vue
View file @
70f2f7c1
...
@@ -27,8 +27,6 @@ export default {
...
@@ -27,8 +27,6 @@ export default {
axios
.
defaults
.
headers
.
XOADOAPPACCESSCODE
=
sessionStorage
.
getItem
(
'code'
)
axios
.
defaults
.
headers
.
XOADOAPPACCESSCODE
=
sessionStorage
.
getItem
(
'code'
)
await
this
.
$store
.
dispatch
(
'user/PlatformCode'
)
await
this
.
$store
.
dispatch
(
'user/PlatformCode'
)
await
this
.
mustFun
();
await
this
.
mustFun
();
/** 测试环境需要解注 */
// await this.getEnvironment();
},
},
mounted
()
{
mounted
()
{
console
.
log
(
process
.
env
.
VUE_APP_BASE_API5
)
console
.
log
(
process
.
env
.
VUE_APP_BASE_API5
)
...
@@ -41,9 +39,6 @@ export default {
...
@@ -41,9 +39,6 @@ export default {
clearInterval
(
this
.
timerToken
)
clearInterval
(
this
.
timerToken
)
},
},
methods
:
{
methods
:
{
getEnvironment
()
{
sessionStorage
.
setItem
(
'test'
,
'0'
);
},
reload
()
{
reload
()
{
this
.
isRouterAlive
=
false
this
.
isRouterAlive
=
false
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
...
...
src/router/index.js
View file @
70f2f7c1
...
@@ -384,7 +384,7 @@ export const routes = [{
...
@@ -384,7 +384,7 @@ export const routes = [{
name
:
'toBeSent'
,
name
:
'toBeSent'
,
component
:
()
=>
component
:
()
=>
import
(
'@/views/maintenance/toBeSent/index.vue'
),
import
(
'@/views/maintenance/toBeSent/index.vue'
),
meta
:
{
title
:
'待派订单'
,
icon
:
'el-icon-s-home'
}
meta
:
{
title
:
'
调度
待派订单'
,
icon
:
'el-icon-s-home'
}
},
},
{
{
path
:
'merchant'
,
path
:
'merchant'
,
...
...
src/views/maintenance/merchant/index.vue
View file @
70f2f7c1
...
@@ -8,22 +8,22 @@
...
@@ -8,22 +8,22 @@
</el-row>
</el-row>
<div
style=
"margin-top: 10px; display: inline-block"
>
<div
style=
"margin-top: 10px; display: inline-block"
>
<div
style=
"display: flex; align-items: center"
>
<div
style=
"display: flex; align-items: center"
>
<div
style=
"margin-right: 10px; display: flex; align-items: center"
>
<!--
<div
style=
"margin-right: 10px; display: flex; align-items: center"
>
--
>
<span
style=
"white-space: nowrap; margin-right: 10px"
>
<!--
<span
style=
"white-space: nowrap; margin-right: 10px"
>
--
>
品牌:
<!-- 品牌:-->
</span
>
<!--
</span>
--
>
<el-select
v-model=
"platformInfo"
placeholder=
"请选择"
style=
"width: 200px;"
>
<!--
<el-select
v-model=
"platformInfo"
placeholder=
"请选择"
style=
"width: 200px;"
>
--
>
<el-option
<!--
<el-option-->
v-for=
"item in brandLists"
<!-- v-for="item in brandLists"-->
:key=
"item.value"
<!-- :key="item.value"-->
:label=
"item.brandName"
<!-- :label="item.brandName"-->
:value=
"JSON.stringify(item)"
<!-- :value="JSON.stringify(item)"-->
>
<!-- >--
>
</el-option
>
<!--
</el-option>
--
>
</el-select
>
<!--
</el-select>
--
>
</div
>
<!--
</div>
--
>
<el-input
v-model=
"orderId"
placeholder=
"请输入
内容
"
style=
"width: 300px"
></el-input>
<el-input
v-model=
"orderId"
placeholder=
"请输入
商户订单号
"
style=
"width: 300px"
></el-input>
<el-button
<el-button
type=
"primary"
type=
"primary"
...
@@ -79,14 +79,14 @@
...
@@ -79,14 +79,14 @@
<
script
>
<
script
>
import
{
paymentRecordApi
}
from
"@/port/maintenance"
;
import
{
paymentRecordApi
}
from
"@/port/maintenance"
;
//20210301095247903_1H2wew42w7T2w
export
default
{
export
default
{
name
:
"index"
,
name
:
"index"
,
data
()
{
data
()
{
return
{
return
{
platformList
:
[],
platformList
:
[],
platformInfo
:
''
,
platformInfo
:
''
,
orderId
:
'
20210301095247903_1H2wew42w7T2w
'
,
orderId
:
''
,
isShow
:
false
,
isShow
:
false
,
data
:
[]
data
:
[]
}
}
...
@@ -112,10 +112,13 @@ export default {
...
@@ -112,10 +112,13 @@ export default {
paymentId
:
''
,
paymentId
:
''
,
status
:
''
status
:
''
}
}
this
.
data
=
[];
paymentRecordApi
(
params
)
paymentRecordApi
(
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
this
.
data
=
res
.
data
;
this
.
data
=
res
.
data
;
}
else
{
this
.
$message
.
error
(
res
.
msg
)
}
}
})
})
},
},
...
...
src/views/maintenance/toBeSent/index.vue
View file @
70f2f7c1
...
@@ -41,9 +41,28 @@
...
@@ -41,9 +41,28 @@
<el-row
type=
"flex"
justify=
"space-between"
>
<el-row
type=
"flex"
justify=
"space-between"
>
<div
class=
"title-left"
style=
"padding-left: 10px; font-weight: 800"
>
<div
class=
"title-left"
style=
"padding-left: 10px; font-weight: 800"
>
订单详情
订单详情
<span
v-if=
"isShow"
style=
"margin-left: 10px;font-size: 14px;font-weight: normal;"
>
{{
<span
v-if=
"isShow"
:style=
"
{
'background-color': dataSource.orderReserveType == 1 ? 'rgba(55, 153, 255, 0.6)' : 'rgba(255, 102, 51, 0.6)',
'color':dataSource.orderReserveType == 1 ? '#3399FF' : '#FF6633'
}"
style="margin-left: 10px;font-size: 14px;font-weight: normal;padding: 2px 5px;border-radius: 5px;">
{{
dataSource
.
orderReserveType
==
1
?
"实时"
:
"预约"
dataSource
.
orderReserveType
==
1
?
"实时"
:
"预约"
}}
</span>
}}
</span>
<span
v-if=
"isShow"
style=
"
background-color: rgba(128, 128, 255, 0.6);
color: #8080FF;
margin-left: 10px;
font-size: 14px;
font-weight: normal;
padding: 2px 5px;
border-radius: 5px;
"
>
{{
getCarName
(
JSON
.
parse
(
dataSource
.
chooseVehicleType
).
type
)
}}
</span>
</div>
</div>
<el-button
v-if=
"isShow"
type=
"danger"
style=
"padding: 0 20px;"
@
click=
"del"
>
删除
</el-button>
<el-button
v-if=
"isShow"
type=
"danger"
style=
"padding: 0 20px;"
@
click=
"del"
>
删除
</el-button>
</el-row>
</el-row>
...
@@ -84,6 +103,18 @@
...
@@ -84,6 +103,18 @@
</li>
</li>
<li>
<li>
<div>
<div>
<span
v-if=
"dataSource.startAddress"
>
用车时间:
{{
dataSource
.
appointmentTime
|
formatDates
}}
</span
>
</div>
<div>
<span
v-if=
"dataSource.endAddress"
>
下单时间:
{{
dataSource
.
createTime
|
formatDates
}}
</span
>
</div>
</li>
<li>
<div>
<span
<span
>
订单价格:
{{
>
订单价格:
{{
(
!!
dataSource
.
trealMoney
&&
dataSource
.
runType
!=
6
)
(
!!
dataSource
.
trealMoney
&&
dataSource
.
runType
!=
6
)
...
@@ -111,6 +142,16 @@
...
@@ -111,6 +142,16 @@
:msg=
"dataSource.passengerMobile"
:msg=
"dataSource.passengerMobile"
/>
/>
</div>
</div>
<div>
<span>
乘车人数:
{{
dataSource
.
vehicleInfo
?
JSON
.
parse
(
dataSource
.
vehicleInfo
).
vehicleObj
.
seats
:
'/'
}}
</span
>
</div>
</li>
<li>
<div
<div
v-if=
"
v-if=
"
dataSource.otherInfo &&
dataSource.otherInfo &&
...
@@ -130,30 +171,7 @@
...
@@ -130,30 +171,7 @@
/>
/>
</div>
</div>
<div
v-else-if=
"dataSource.runType!=6"
><span>
航班号:/
</span></div>
<div
v-else-if=
"dataSource.runType!=6"
><span>
航班号:/
</span></div>
</li>
<div><span>
备注:
{{
dataSource
.
orderMemo
?
dataSource
.
orderMemo
:
'/'
}}
</span></div>
<li>
<div
v-if=
"dataSource.waybillId"
>
<span>
运单编号:
{{
dataSource
.
waybillId
}}
</span>
<CopyIcon
:msg=
"dataSource.waybillId"
/>
</div>
<div
v-if=
"dataSource.orderSource == 10 && dataSource.otherInfo != null"
>
<span>
携程单号:
{{
dataSource
.
otherInfo
?
dataSource
.
otherInfo
.
masterOrderId
:
''
}}
</span>
<CopyIcon
:msg=
"dataSource.otherInfo ? dataSource.otherInfo.masterOrderId : ''"
/>
</div>
</li>
<li>
<div>
<span
v-if=
"dataSource.tpaymentStatus == 2 || dataSource.tpaymentStatus == 4"
>
预估金额:
{{
dataSource
.
estimateMoney
}}
元
</span>
<span
v-if=
"dataSource.tpaymentStatus == 1 || dataSource.tpaymentStatus == 3"
>
应付金额:
{{
dataSource
.
trealMoney
}}
元
</span>
</div>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -166,6 +184,8 @@
...
@@ -166,6 +184,8 @@
import
{
getOrderInfoApi
,
delDispatchDataApi
}
from
"@/port/maintenance"
;
import
{
getOrderInfoApi
,
delDispatchDataApi
}
from
"@/port/maintenance"
;
import
judgeType
from
"@/mixins/judgeType"
;
import
judgeType
from
"@/mixins/judgeType"
;
import
CopyIcon
from
"@/views/components/CopyIcon"
;
import
CopyIcon
from
"@/views/components/CopyIcon"
;
import
{
modelsQuery
}
from
"@/port/carModel/carModel"
;
import
{
formatDate
}
from
"@/utils/formatDate"
;
export
default
{
export
default
{
name
:
"index"
,
name
:
"index"
,
...
@@ -179,9 +199,17 @@ export default {
...
@@ -179,9 +199,17 @@ export default {
platformInfo
:
''
,
platformInfo
:
''
,
orderId
:
''
,
orderId
:
''
,
dataSource
:
{},
dataSource
:
{},
isShow
:
false
isShow
:
false
,
modelsData
:
[]
}
}
},
},
filters
:
{
formatDates
(
time
)
{
let
date
=
new
Date
(
time
);
console
.
log
(
new
Date
(
time
));
return
formatDate
(
date
,
"yyyy-MM-dd hh:mm:ss"
);
},
},
computed
:
{
computed
:
{
brandLists
()
{
brandLists
()
{
let
brandList
=
this
.
$store
.
getters
.
brandList
;
let
brandList
=
this
.
$store
.
getters
.
brandList
;
...
@@ -196,7 +224,35 @@ export default {
...
@@ -196,7 +224,35 @@ export default {
return
brandList
;
return
brandList
;
}
}
},
},
methods
:
{
created
()
{
this
.
getModelsCar
();
},
methods
:
{
// 查询基础车型
getModelsCar
()
{
let
params
=
{
type
:
''
,
pageVo
:{
page
:
1
,
rows
:
9999
}
}
modelsQuery
(
params
)
.
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
this
.
modelsData
=
res
.
data
.
content
;
}
})
.
catch
(()
=>
{
})
},
getCarName
(
id
)
{
for
(
let
i
=
0
;
i
<
this
.
modelsData
.
length
;
i
++
)
{
if
(
this
.
modelsData
[
i
].
vehicleFlag
==
id
)
{
return
this
.
modelsData
[
i
].
vehicleName
;
}
}
},
searchInfo
()
{
searchInfo
()
{
getOrderInfoApi
(
JSON
.
parse
(
this
.
platformInfo
).
brandUrl
,
[
this
.
orderId
])
getOrderInfoApi
(
JSON
.
parse
(
this
.
platformInfo
).
brandUrl
,
[
this
.
orderId
])
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
...
src/views/platform/regionManage.vue
View file @
70f2f7c1
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"120"
v-if=
"$store.state.user.roleType != 2"
>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"120"
v-if=
"$store.state.user.roleType != 2"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handledbClick"
>
<el-button
type=
"text"
@
click=
"handledbClick
(scope.row)
"
>
查看产品
查看产品
</el-button>
</el-button>
</
template
>
</
template
>
...
...
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