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
c3b3202c
Commit
c3b3202c
authored
Apr 15, 2022
by
weix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化所有品牌查询
parent
af44f136
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
614 additions
and
375 deletions
+614
-375
judgeType.js
src/mixins/judgeType.js
+33
-0
complaint.js
src/port/complaint/complaint.js
+1
-1
priceConfiguration.js
src/port/priceConfiguration/priceConfiguration.js
+4
-4
productNum.js
src/port/productNum/productNum.js
+2
-2
productSetupNew.js
src/port/productSetupNew/productSetupNew.js
+1
-1
regionManage.js
src/port/region/regionManage.js
+1
-1
regionTitle.js
src/port/region/regionTitle.js
+1
-1
set-request.js
src/port/set-request.js
+10
-11
index.vue
src/views/DepartmentInformation/index.vue
+0
-1
complaintDetail.vue
src/views/business/complaintList/complaintDetail.vue
+1
-1
index.vue
src/views/business/complaintList/index.vue
+124
-67
index.vue
src/views/business/orderManagement/index.vue
+49
-7
index.vue
src/views/business/waybillManagement/index.vue
+46
-8
BasicsCartype.vue
src/views/configure/BasicsCartype.vue
+1
-1
addDialog.vue
...views/configure/componenets/platformCarType/addDialog.vue
+2
-3
platformCarType.vue
src/views/configure/platformCarType.vue
+253
-236
passDetail.vue
src/views/disposition/passDetail.vue
+0
-1
passRotation.vue
src/views/disposition/passRotation.vue
+0
-1
productNum.vue
src/views/platform/components/productNum.vue
+2
-2
index.vue
src/views/platform/components/publicProductTitle/index.vue
+1
-1
settingInfo.vue
src/views/platform/components/settingInfo.vue
+26
-12
regionDetail.vue
src/views/platform/regionDetail.vue
+7
-6
regionManage.vue
src/views/platform/regionManage.vue
+49
-7
No files found.
src/mixins/judgeType.js
View file @
c3b3202c
...
...
@@ -168,6 +168,39 @@ export default {
default
:
}
},
orderSourcesSpecialNew
(
orderSource
)
{
let
type
=
Number
(
orderSource
)
switch
(
type
)
{
case
1
:
return
'小多出行'
case
2
:
return
'美团打车'
case
3
:
return
'航旅纵横'
case
5
:
return
'滴滴出行'
case
6
:
return
'品牌自营'
case
8
:
return
'高德打车'
case
9
:
return
'同程艺龙'
case
10
:
return
'携程旅游'
case
11
:
return
'飞猪旅行'
default
:
}
},
orderStatusText
(
status
)
{
status
=
Number
(
status
)
switch
(
status
)
{
...
...
src/port/complaint/complaint.js
View file @
c3b3202c
import
{
postblob
}
from
"@/request/http"
;
export
function
exportComplaint
(
data
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/export/complaint'
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/export/complaint'
;
return
postblob
(
url
,
data
);
}
src/port/priceConfiguration/priceConfiguration.js
View file @
c3b3202c
...
...
@@ -2,22 +2,22 @@ import {get, post, put} from '@/request/http'
// 获取计价规则 http://192.168.0.251:8181/brand/setting/price/new/{getproductsetting}/{vehicletype}
export
function
priceNewApi
(
data
,
getproductsetting
,
vehicletype
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/setting/price/new/
${
getproductsetting
}
/
${
vehicletype
}
`
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/setting/price/new/
${
getproductsetting
}
/
${
vehicletype
}
`
;
return
get
(
url
,
data
)
}
//newPrice/setting/QueryByMore
export
function
settingQueryByMoreApi
(
data
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/newPrice/setting/QueryByMore'
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/newPrice/setting/QueryByMore'
;
return
post
(
url
,
data
)
}
export
function
carpoolingPriceNewApi
(
data
,
getproductsetting
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/setting/price/new/carpooling/
${
getproductsetting
}
`
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/setting/price/new/carpooling/
${
getproductsetting
}
`
;
return
get
(
url
,
data
)
}
export
function
settingPriceNewApi
(
data
,
getproductsetting
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/setting/price/new/date/
${
getproductsetting
}
`
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/setting/price/new/date/
${
getproductsetting
}
`
;
return
get
(
url
,
data
)
}
src/port/productNum/productNum.js
View file @
c3b3202c
...
...
@@ -2,12 +2,12 @@ import {get, post, deletes} from '@/request/http'
//
export
function
tripProductApi
(
data
=
{},
id
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/tripProduct/'
+
id
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/tripProduct/'
+
id
;
return
get
(
url
,
data
)
}
//
export
function
tripProducDetailtApi
(
data
=
{},
id
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/tripProduct/detail/
${
id
}
`
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/tripProduct/detail/
${
id
}
`
;
return
get
(
url
,
data
)
}
src/port/productSetupNew/productSetupNew.js
View file @
c3b3202c
...
...
@@ -2,7 +2,7 @@ import {get, post, put} from '@/request/http'
// 产品操作记录
export
function
tripProductLogApi
(
data
,
id
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/tripProduct/log/'
+
id
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/tripProduct/log/'
+
id
;
return
get
(
url
,
data
)
}
...
...
src/port/region/regionManage.js
View file @
c3b3202c
import
{
put
,
get
,
post
,
deletes
}
from
'@/request/http'
// 获取列表
export
function
getRegionManageList
(
data
=
{},
u
,
platformId
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/area/V2/condition'
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/area/V2/condition'
;
return
get
(
url
,
data
,
platformId
)
}
//虚拟号配置查询列表
...
...
src/port/region/regionTitle.js
View file @
c3b3202c
...
...
@@ -2,6 +2,6 @@ import {get} from '@/request/http'
// 根据开通区域查询详情 /xoadoAreaOpen/count/all
export
function
getDetailApi
(
data
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/xoadoAreaOpen/count/all'
;
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
'/xoadoAreaOpen/count/all'
;
return
get
(
url
,
data
)
}
src/port/set-request.js
View file @
c3b3202c
...
...
@@ -263,7 +263,7 @@ export function getAllOpenArea(platformId) {
/* 查询平台所有运力 */
export
function
getAllTransport
(
data
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
targetBaseUrl
)
+
'/transport'
const
url
=
(
u
?
u
:
targetBaseUrl
)
+
'/transport'
return
get
(
url
,
data
)
}
...
...
@@ -275,7 +275,7 @@ export function getAllAreaProducts(data) {
/* 查询当前区域开通的所有产品(按条件查询)(新) */
export
function
getAllTripProduct
(
data
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
targetBaseUrl
)
+
'/tripProduct/list'
const
url
=
(
u
?
u
:
targetBaseUrl
)
+
'/tripProduct/list'
return
post
(
url
,
data
)
}
...
...
@@ -395,19 +395,19 @@ export function getYunCubicProductData1(data) {
/* 多条件查询订单列表 */
export
function
getAllOrderList
(
data
,
u
,
platformId
)
{
const
url
=
(
u
?
u
+
'/brand'
:
targetBaseUrl
)
+
'/xoado/order/query'
const
url
=
(
u
?
u
:
targetBaseUrl
)
+
'/xoado/order/query'
return
post
(
url
,
data
,
platformId
)
}
/* 多条件查询订单列表 */
export
function
getThisorderInfo
(
data
,
u
,
platformId
)
{
const
url
=
(
u
?
u
+
'/brand'
:
targetBaseUrl
)
+
'/xoado/order/select'
const
url
=
(
u
?
u
:
targetBaseUrl
)
+
'/xoado/order/select'
return
post
(
url
,
data
,
platformId
)
}
/* 多条件导出订单列表 */
export
function
exportAllOrderList
(
data
,
u
,
platformId
)
{
const
url
=
(
u
?
u
+
'/brand'
:
targetBaseUrl
)
+
'/xoado/order/export'
const
url
=
(
u
?
u
:
targetBaseUrl
)
+
'/xoado/order/export'
return
postblob
(
url
,
data
,
platformId
)
}
...
...
@@ -437,7 +437,7 @@ export function seachDividedInto(data) {
/* 投诉列表查询 */
export
function
getAllcomplainList
(
data
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
targetBaseUrl
)
+
'/complaint/condition'
const
url
=
(
u
?
u
:
targetBaseUrl
)
+
'/complaint/condition'
return
post
(
url
,
data
)
}
...
...
@@ -497,7 +497,7 @@ export function getTransportListForProductId(productId) {
/* 用户操作日志接口信息 */
export
function
userLog
(
data
,
u
,
platformId
)
{
const
url
=
(
u
?
u
+
'/brand'
:
targetBaseUrl
)
+
'/operate/log'
const
url
=
(
u
?
u
:
targetBaseUrl
)
+
'/operate/log'
return
post
(
url
,
data
,
platformId
)
}
...
...
@@ -623,7 +623,7 @@ export function SeachfenceInfo(data) {
/* 计算器计价 */
export
function
calculatorPrice
(
data
,
platformId
,
u
)
{
const
url
=
(
u
?
u
+
'/brand'
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/xoadoTripProduct/calculator/
${
platformId
}
`
const
url
=
(
u
?
u
:
process
.
env
.
VUE_APP_BASE_API5
)
+
`/xoadoTripProduct/calculator/
${
platformId
}
`
return
post
(
url
,
data
)
}
...
...
@@ -1123,7 +1123,7 @@ export function exportCycleBills(data = {}) {
/* 客诉管理---查询客诉 */
export
function
getComplaintById
(
id
,
u
,
platformId
)
{
const
url
=
(
u
?
u
+
'/brand'
:
targetBaseUrl
)
+
`/complaint?complaintId=
${
id
}
`
const
url
=
(
u
?
u
:
targetBaseUrl
)
+
`/complaint?complaintId=
${
id
}
`
return
get
(
url
,
platformId
)
}
...
...
@@ -1170,4 +1170,4 @@ export function PutvoicePage(data) {
export
function
updateMobilenoCaptCha
(
data
)
{
const
url
=
process
.
env
.
VUE_APP_BASE_API6
+
`/driver/updateMobile/noCaptCha`
return
put
(
url
,
data
)
}
\ No newline at end of file
}
src/views/DepartmentInformation/index.vue
View file @
c3b3202c
...
...
@@ -539,7 +539,6 @@ export default {
this
.
getData
(
this
.
billState
,
this
.
page
,
this
.
month
,
this
.
rows
,
this
.
sort
);
},
handleCurrentChange
(
page
)
{
debugger
this
.
page
=
page
;
this
.
getData
(
this
.
billState
,
this
.
page
,
this
.
month
,
this
.
rows
,
this
.
sort
);
},
...
...
src/views/business/complaintList/complaintDetail.vue
View file @
c3b3202c
...
...
@@ -59,7 +59,7 @@
<el-card
style=
"min-height: 200px;max-height: calc(100vh - 280px);overflow-y: auto;"
>
<el-row
class=
"top-title"
>
<span
style=
"font-size: 18px;font-weight: 800;"
>
控
制
诉信息
控诉信息
</span>
<el-tag
size=
"mini"
effect=
"plain"
style=
"margin-left: 7px;"
>
{{
complainCategoryText
(
complaintInfo
.
complaintLabel
)
}}
...
...
src/views/business/complaintList/index.vue
View file @
c3b3202c
<
template
>
<
el-card
style=
"padding-left: 5px;border-radius: 5px;position:relative;background-color: #ffffff;"
>
<el-row
style=
"background-color: #ffffff;padding: 10px 0
10px 0
;"
>
<
div
style=
"padding-left: 5px;border-radius: 5px;position:relative;background-color: #ffffff;"
>
<el-row
style=
"background-color: #ffffff;padding: 10px 0
0 20px
;"
>
<el-radio-group
v-model=
"form.platformId"
@
change=
"changePlatform"
>
<el-radio-button
v-for=
"(item, index) in
platformList
"
v-for=
"(item, index) in
brandLists
"
:label=
"item.id"
:key=
"'platformId'+index"
>
...
...
@@ -11,75 +11,78 @@
</el-radio-button>
</el-radio-group>
</el-row>
<el-tabs
v-model=
"form.runType"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tabs
style=
"padding-left: 20px;"
v-model=
"form.runType"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tab-pane
style=
"padding:
5px
10px;"
style=
"padding:
0
10px;"
v-for=
"(item, index) in tabs"
:key=
"index"
:label=
"item.label"
:name=
"item.runType"
>
</el-tab-pane>
</el-tabs>
<el-form
:inline=
"true"
v-model=
"form"
>
<el-row
class=
"row-d"
>
<el-col
:span=
"8"
>
<el-input
style=
"max-width: 300px;"
placeholder=
"请输入手机号/运单编号/订单编号"
v-model=
"form.orderInfo"
></el-input>
</el-col>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.localTransportId"
:selectName=
"'承接运力:'"
:type=
"'transportIds'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
<el-col
:span=
"8"
style=
"font-size: 14px;"
>
控诉时间:
<el-date-picker
style=
"max-width: 225px;margin-left: 11px;"
v-model=
"form.dateTime"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-col>
</el-row>
<el-row
class=
"row-d"
>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.complainCategory"
:selectName=
"'控诉类别:'"
:type=
"'complainCategory'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.complainWay"
:selectName=
"'控诉方式:'"
:type=
"'complainWay'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.orderSourceListNew"
:selectName=
"'订单来源:'"
:type=
"'orderSourceList'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
</el-row>
<el-row
class=
"row-d"
>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.processingStatus"
:selectName=
"'处理状态:'"
:type=
"'processingStatus'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
<el-col
:span=
"8"
>
<el-button
style=
"padding: 8px 20px;"
type=
"primary"
@
click=
"searchByInfo"
>
查询
</el-button>
<el-button
style=
"padding: 8px 20px;"
type=
"primary"
@
click=
"exportB"
>
批量导出excel
</el-button>
</el-col>
</el-row>
</el-form>
<itemList
ref=
"itemList"
:searchInfo=
"form"
></itemList>
</el-card>
<el-card
shadow=
"never"
>
<el-form
:inline=
"true"
v-model=
"form"
>
<el-row
class=
"row-d"
>
<el-col
:span=
"8"
>
<el-input
style=
"max-width: 300px;"
placeholder=
"请输入手机号/运单编号/订单编号"
v-model=
"form.orderInfo"
></el-input>
</el-col>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.localTransportId"
:selectName=
"'承接运力:'"
:type=
"'transportIds'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
<el-col
:span=
"8"
style=
"font-size: 14px;"
>
控诉时间:
<el-date-picker
style=
"max-width: 225px;margin-left: 11px;"
v-model=
"form.dateTime"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-col>
</el-row>
<el-row
class=
"row-d"
>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.complainCategory"
:selectName=
"'控诉类别:'"
:type=
"'complainCategory'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.complainWay"
:selectName=
"'控诉方式:'"
:type=
"'complainWay'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.orderSourceListNew"
:selectName=
"'订单来源:'"
:type=
"'orderSourceList'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
</el-row>
<el-row
class=
"row-d"
>
<el-col
:span=
"8"
>
<Selects
:options=
"dataSource.processingStatus"
:selectName=
"'处理状态:'"
:type=
"'processingStatus'"
@
changeList=
"handlechangeList"
></Selects>
</el-col>
<el-col
:span=
"8"
>
<el-button
style=
"padding: 8px 20px;"
type=
"primary"
@
click=
"searchByInfo"
>
查询
</el-button>
<el-button
style=
"padding: 8px 20px;"
type=
"primary"
@
click=
"exportB"
>
批量导出excel
</el-button>
</el-col>
</el-row>
</el-form>
<itemList
ref=
"itemList"
:searchInfo=
"form"
></itemList>
</el-card>
</div>
</
template
>
<
script
>
...
...
@@ -91,6 +94,7 @@ import itemList from "./components/item"
import
{
platformInfosList
}
from
"@/port/platfrom/setting"
;
import
{
getAllTransport
}
from
"@/port/set-request"
;
import
dataSource
from
"@/libs/screen"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
name
:
"index"
,
...
...
@@ -98,6 +102,37 @@ export default {
itemList
,
Selects
},
computed
:
{
...
mapGetters
([
'platformId'
]),
brandLists
()
{
let
brandList
=
this
.
$store
.
getters
.
brandList
;
if
(
brandList
.
length
===
0
)
{
return
new
Promise
(()
=>
{
this
.
$store
.
dispatch
(
'business/getBrandList'
)
})
brandList
=
this
.
$store
.
getters
.
brandList
;
}
brandList
=
brandList
.
filter
(
item
=>
{
return
item
.
brandUrl
})
brandList
=
brandList
.
map
(
item
=>
{
return
{
id
:
JSON
.
stringify
(
item
),
name
:
item
.
brandName
}
})
return
brandList
;
}
},
watch
:
{
async
brandLists
(
v
){
if
(
v
.
length
>
0
)
{
this
.
getPlatformInfo
();
this
.
getTransport
();
}
}
},
mixins
:
[
JudgeType
],
data
()
{
return
{
...
...
@@ -125,9 +160,19 @@ export default {
}
},
created
()
{
this
.
getPlatformFun
();
// this.getPlatformFun();
if
(
this
.
brandLists
.
length
>
0
)
{
this
.
getPlatformInfo
();
this
.
getTransport
();
}
},
methods
:
{
getPlatformInfo
()
{
this
.
dataSource
.
localOrgId
=
this
.
brandLists
;
this
.
form
.
platformId
=
this
.
brandLists
.
length
>
0
?
this
.
brandLists
[
0
].
id
:
''
;
this
.
brandUrl
=
this
.
brandLists
.
length
>
0
?
JSON
.
parse
(
this
.
brandLists
[
0
].
id
).
brandUrl
:
''
;
this
.
plat
=
this
.
brandLists
.
length
>
0
?
JSON
.
parse
(
this
.
brandLists
[
0
].
id
).
platformId
:
''
;
},
getPlatformFun
()
{
platformInfosList
({}).
then
(
res
=>
{
if
(
res
.
status
==
200
)
{
...
...
@@ -150,7 +195,8 @@ export default {
})
},
changePlatform
()
{
changePlatform
(
v
)
{
this
.
form
.
platformId
=
v
;
this
.
form
.
brandUrl
=
JSON
.
parse
(
this
.
form
.
platformId
).
brandUrl
;
this
.
dataSource
.
localTransportId
=
[];
this
.
getTransport
();
...
...
@@ -224,6 +270,17 @@ export default {
<
style
scoped
lang=
"scss"
>
.EnterpriseInformation
{
::v-deep
{
.el-tabs__header
{
margin
:
0
;
}
.el-tabs--card
>
.el-tabs__header
{
border-bottom
:
none
;
}
}
}
.row-d
{
.el-col
{
padding
:
5px
10px
;
...
...
src/views/business/orderManagement/index.vue
View file @
c3b3202c
...
...
@@ -3,7 +3,7 @@
<el-row
style=
"background-color: #ffffff;padding: 10px 0 0 20px;"
>
<el-radio-group
v-model=
"platform"
@
change=
"changePlatform"
>
<el-radio-button
v-for=
"(item, index) in
platformList
"
v-for=
"(item, index) in
brandLists
"
:label=
"item.value"
:key=
"'platformId'+index"
>
...
...
@@ -168,6 +168,7 @@ import {
import
JudgeType
from
'@/mixins/judgeType'
import
{
Loading
}
from
'element-ui'
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
name
:
"index"
,
...
...
@@ -479,6 +480,29 @@ export default {
},
}
},
computed
:
{
...
mapGetters
([
'platformId'
]),
brandLists
()
{
let
brandList
=
this
.
$store
.
getters
.
brandList
;
if
(
brandList
.
length
===
0
)
{
return
new
Promise
(()
=>
{
this
.
$store
.
dispatch
(
'business/getBrandList'
)
})
brandList
=
this
.
$store
.
getters
.
brandList
;
}
brandList
=
brandList
.
filter
(
item
=>
{
return
item
.
brandUrl
})
brandList
=
brandList
.
map
(
item
=>
{
return
{
value
:
JSON
.
stringify
(
item
),
label
:
item
.
brandName
}
})
return
brandList
;
}
},
watch
:
{
TableHeight
(
val
)
{
// 为了避免频繁触发resize函数导致页面卡顿,使用定时器
...
...
@@ -494,6 +518,15 @@ export default {
},
500
)
}
},
async
brandLists
(
v
){
if
(
v
.
length
>
0
)
{
this
.
getPlatformInfo
();
await
this
.
getOpenAreaListFun
()
await
this
.
getTransport
()
await
this
.
getOrderHeaders
()
await
this
.
getData
();
}
}
// config: {
// handler(newVal,oldVal){
// console.log(newVal)
...
...
@@ -508,13 +541,21 @@ export default {
const
start
=
new
Date
();
start
.
setTime
(
start
.
getTime
()
+
8.64e7
-
3600
*
1000
*
24
*
7
);
this
.
selectResult
.
placeOrderTimeList
=
[
new
Date
(
start
.
toDateString
()).
getTime
(),
new
Date
(
end
.
toDateString
()).
getTime
()
+
8.64e7
-
1000
];
await
this
.
getAllPlatform
()
await
this
.
getOpenAreaListFun
()
await
this
.
getTransport
()
await
this
.
getOrderHeaders
()
await
this
.
getData
()
// await this.getAllPlatform()
if
(
this
.
brandLists
.
length
>
0
)
{
this
.
getPlatformInfo
();
await
this
.
getOpenAreaListFun
()
await
this
.
getTransport
()
await
this
.
getOrderHeaders
()
await
this
.
getData
()
}
},
methods
:
{
getPlatformInfo
()
{
this
.
platform
=
this
.
brandLists
.
length
>
0
?
this
.
brandLists
[
0
].
value
:
''
;
this
.
brandUrl
=
this
.
brandLists
.
length
>
0
?
JSON
.
parse
(
this
.
brandLists
[
0
].
value
).
brandUrl
:
''
;
this
.
plat
=
this
.
brandLists
.
length
>
0
?
JSON
.
parse
(
this
.
brandLists
[
0
].
value
).
platformId
:
''
;
},
async
getTransport
()
{
let
json
=
{
...
...
@@ -537,10 +578,11 @@ export default {
}
})
},
async
changePlatform
()
{
async
changePlatform
(
v
)
{
// 切换品牌
this
.
OperationalData
=
[];
this
.
dataSource
.
localTransportId
=
[];
this
.
platform
=
v
;
this
.
brandUrl
=
JSON
.
parse
(
this
.
platform
).
brandUrl
;
this
.
plat
=
JSON
.
parse
(
this
.
platform
).
platformId
;
await
this
.
getOpenAreaListFun
();
...
...
src/views/business/waybillManagement/index.vue
View file @
c3b3202c
...
...
@@ -12,7 +12,7 @@
<el-row
style=
"background-color: #ffffff;padding: 10px 0 0 20px;"
>
<el-radio-group
v-model=
"platformId"
@
change=
"changePlatform"
>
<el-radio-button
v-for=
"(item, index) in
platformList
"
v-for=
"(item, index) in
brandLists
"
:label=
"item.value"
:key=
"'platformId'+index"
>
...
...
@@ -202,7 +202,37 @@ export default {
Table
},
computed
:
{
...
mapGetters
([
'transportId'
])
...
mapGetters
([
'transportId'
]),
brandLists
()
{
let
brandList
=
this
.
$store
.
getters
.
brandList
;
if
(
brandList
.
length
===
0
)
{
return
new
Promise
(()
=>
{
this
.
$store
.
dispatch
(
'business/getBrandList'
)
})
brandList
=
this
.
$store
.
getters
.
brandList
;
}
brandList
=
brandList
.
filter
(
item
=>
{
return
item
.
brandUrl
})
brandList
=
brandList
.
map
(
item
=>
{
return
{
value
:
JSON
.
stringify
(
item
),
label
:
item
.
brandName
}
})
return
brandList
;
}
},
watch
:
{
async
brandLists
(
v
){
if
(
v
.
length
>
0
)
{
this
.
getPlatformInfo
();
await
this
.
getOpenAreaListFun
()
await
this
.
getTransport
()
await
this
.
getOrderHeaders
()
}
}
},
mixins
:
[
JudgeType
],
data
()
{
...
...
@@ -677,9 +707,6 @@ export default {
}
},
async
created
()
{
await
this
.
getAllPlatform
()
await
this
.
getOpenAreaListFun
()
await
this
.
getTransport
()
this
.
selectResult
.
areaCodeList
=
[]
// this.selectResult.orderSourceList = []
this
.
selectResult
.
runTypeList
=
[
this
.
runTypeList
]
...
...
@@ -691,11 +718,21 @@ export default {
this
.
selectResult
.
weybillFlag
=
'createTime'
this
.
selectResult
.
order
=
'desc'
// this.getAllData()
await
this
.
getOrderHeaders
()
// await this.getAllPlatform()
if
(
this
.
brandLists
.
length
>
0
)
{
this
.
getPlatformInfo
();
await
this
.
getOpenAreaListFun
()
await
this
.
getTransport
()
await
this
.
getOrderHeaders
()
}
},
methods
:
{
getPlatformInfo
()
{
this
.
platformId
=
this
.
brandLists
.
length
>
0
?
this
.
brandLists
[
0
].
value
:
''
;
this
.
brandUrl
=
this
.
brandLists
.
length
>
0
?
JSON
.
parse
(
this
.
brandLists
[
0
].
value
).
brandUrl
:
''
;
this
.
plat
=
this
.
brandLists
.
length
>
0
?
JSON
.
parse
(
this
.
brandLists
[
0
].
value
).
platformId
:
''
;
},
async
getTransport
()
{
let
json
=
{
platformId
:
JSON
.
parse
(
this
.
platformId
).
platformId
,
page
:
1
,
...
...
@@ -716,8 +753,9 @@ export default {
}
})
},
async
changePlatform
()
{
async
changePlatform
(
v
)
{
// 切换品牌
this
.
platformId
=
v
;
this
.
OperationalData
=
[];
this
.
dataSource
.
localTransportId
=
[];
this
.
brandUrl
=
JSON
.
parse
(
this
.
platformId
).
brandUrl
;
...
...
src/views/configure/BasicsCartype.vue
View file @
c3b3202c
...
...
@@ -26,7 +26,7 @@
<el-col
style=
"display: flex; align-items: center; justify-content: end"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"$refs.addDialog.showDialog(
{})"> 添加
品牌
类型
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"$refs.addDialog.showDialog(
{})"> 添加
基础
类型
</el-button>
</el-col>
</el-row>
</el-form>
...
...
src/views/configure/componenets/platformCarType/addDialog.vue
View file @
c3b3202c
...
...
@@ -19,8 +19,8 @@
<el-select
v-model=
"form.platform"
@
change=
"changePlatform"
>
<el-option
v-for=
"(item, index) in platformList"
:label=
"item.
label
"
:value=
"item.
value
"
:label=
"item.
brandName
"
:value=
"item.
platformId
"
:key=
"'polygon' + index"
>
</el-option>
...
...
@@ -290,7 +290,6 @@ export default {
let
range
=
row
.
rangeOfApplication
.
filter
(
item
=>
{
return
item
!=
row
.
typeItem
})
debugger
this
.
form
=
{
id
:
row
.
id
,
platform
:
row
.
platformId
,
...
...
src/views/configure/platformCarType.vue
View file @
c3b3202c
<
template
xmlns=
"http://www.w3.org/1999/html"
>
<div>
<el-form
class=
"form-row"
>
<el-row
type=
"flex"
>
<el-col>
<el-form-item>
<el-input
v-model=
"form.CarModelName"
size=
"mini"
style=
"max-width: 260px"
suffix-icon=
"el-icon-search"
placeholder=
"请输入车型名称"
>
</el-input>
</el-form-item>
</el-col>
<div>
<el-form
class=
"form-row"
>
<el-row
type=
"flex"
>
<el-col>
<el-form-item>
<el-input
v-model=
"form.CarModelName"
size=
"mini"
style=
"max-width: 260px"
suffix-icon=
"el-icon-search"
placeholder=
"请输入车型名称"
>
</el-input>
</el-form-item>
</el-col>
<el-col>
<el-form-item
label=
"品牌名称:"
>
<el-select
v-model=
"form.platformListInfo"
placeholder=
"请选择"
size=
"mini"
>
<el-option
v-for=
"item in platformList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col>
<el-form-item>
<Selects
:options=
"dataSource.carTypeList"
sizeType=
"mini"
:selectName=
"'车辆类别:'"
:type=
"'carTypeList'"
@
changeList=
"handlechangeList"
></Selects>
</el-form-item>
</el-col>
<el-col
style=
"display: flex; align-items: center; justify-content: end"
<el-col>
<el-form-item
label=
"品牌名称:"
>
<el-select
v-model=
"form.platformListInfo"
placeholder=
"请选择"
size=
"mini"
>
<el-option
v-for=
"item in brandLists"
:key=
"item.platformId"
:label=
"item.brandName"
:value=
"item.platformId"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col>
<el-form-item>
<Selects
:options=
"dataSource.carTypeList"
sizeType=
"mini"
:selectName=
"'车辆类别:'"
:type=
"'carTypeList'"
@
changeList=
"handlechangeList"
></Selects>
</el-form-item>
</el-col>
<el-col
style=
"display: flex; align-items: center; justify-content: end"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"searchInfo"
>
查询
</el-button
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"() => $refs.addDialog.showDialog(
{})"
>
添加品牌类型
</el-button>
</el-col>
</el-row>
</el-form>
<el-table
stripe
:data=
"data"
border
style=
"margin-top: 10px"
:header-cell-style=
"tableHeaderColor"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"searchInfo"
>
查询
</el-button
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"() => $refs.addDialog.showDialog(
{})"
>
添加品牌类型
</el-button>
</el-col>
</el-row>
</el-form>
<el-table
stripe
:data=
"data"
border
style=
"margin-top: 10px"
:header-cell-style=
"tableHeaderColor"
>
<el-table-column
label=
"序号"
align=
"center"
type=
"index"
width=
"50"
>
</el-table-column>
<el-table-column
label=
"品牌名称"
align=
"center"
prop=
"platformName"
>
</el-table-column>
<el-table-column
label=
"车型类别"
align=
"center"
prop=
"type"
>
<template
slot-scope=
"
{ row }">
{{
carTypeListText
(
row
.
carType
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"图标"
align=
"center"
prop=
"imgUrl"
>
<
template
slot-scope=
"scope"
>
<el-avatar
shape=
"square"
:size=
"80"
:src=
"scope.row.imgUrl"
>
<div>
暂无图片
</div>
</el-avatar>
</
template
>
</el-table-column>
<el-table-column
label=
"车型名称"
align=
"center"
prop=
"typeName"
>
</el-table-column>
<el-table-column
label=
"车型标识"
align=
"center"
prop=
"typeItem"
>
</el-table-column>
<el-table-column
label=
"车型定义"
align=
"center"
prop=
"typeContent"
>
</el-table-column>
<el-table-column
label=
"可接单车型"
align=
"center"
prop=
"runTypes"
>
<
template
slot-scope=
"scope"
>
<el-table-column
label=
"序号"
align=
"center"
type=
"index"
width=
"50"
>
</el-table-column>
<el-table-column
label=
"品牌名称"
align=
"center"
prop=
"platformName"
>
</el-table-column>
<el-table-column
label=
"车型类别"
align=
"center"
prop=
"type"
>
<template
slot-scope=
"
{ row }">
{{
carTypeListText
(
row
.
carType
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"图标"
align=
"center"
prop=
"imgUrl"
>
<
template
slot-scope=
"scope"
>
<el-avatar
shape=
"square"
:size=
"80"
:src=
"scope.row.imgUrl"
>
<div>
暂无图片
</div>
</el-avatar>
</
template
>
</el-table-column>
<el-table-column
label=
"车型名称"
align=
"center"
prop=
"typeName"
>
</el-table-column>
<el-table-column
label=
"车型标识"
align=
"center"
prop=
"typeItem"
>
</el-table-column>
<el-table-column
label=
"车型定义"
align=
"center"
prop=
"typeContent"
>
</el-table-column>
<el-table-column
label=
"可接单车型"
align=
"center"
prop=
"runTypes"
>
<
template
slot-scope=
"scope"
>
<span
v-for=
"(item, index) in scope.row.rangeOfApplicationName"
:key=
"'runTypes' + index"
v-for=
"(item, index) in scope.row.rangeOfApplicationName"
:key=
"'runTypes' + index"
>
{{
index
===
0
?
item
:
"、"
+
item
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"small"
type=
"text"
@
click=
"() => $refs.addDialog.showDialog(scope.row)"
>
编辑
</el-button>
<el-button
size=
"small"
type=
"text"
style=
"color: red"
@
click=
"delRow(scope.row.id)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination"
v-if=
"total > 10"
>
<el-pagination
background
layout=
"prev, pager, next, jumper, total"
:total=
"total"
:current-page=
"page"
@
current-change=
"current_change"
>
</el-pagination>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"small"
type=
"text"
@
click=
"() => $refs.addDialog.showDialog(scope.row)"
>
编辑
</el-button>
<el-button
size=
"small"
type=
"text"
style=
"color: red"
@
click=
"delRow(scope.row.id)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination"
v-if=
"total > 10"
>
<el-pagination
background
layout=
"prev, pager, next, jumper, total"
:total=
"total"
:current-page=
"page"
@
current-change=
"current_change"
>
</el-pagination>
</div>
<addDialog
ref=
"addDialog"
:platformList=
"brandLists"
@
reLoadTable=
"reLoadTable"
></addDialog>
</div>
<addDialog
ref=
"addDialog"
:platformList=
"platformList"
@
reLoadTable=
"reLoadTable"
></addDialog>
</div>
</template>
<
script
>
import
{
carTypeQuery
,
carTypeDelete
}
from
"@/port/carModel/carModel"
;
import
{
getplatformList
}
from
"@/port/set-request"
;
import
{
carTypeQuery
,
carTypeDelete
}
from
"@/port/carModel/carModel"
;
import
{
getplatformList
}
from
"@/port/set-request"
;
import
addDialog
from
"./componenets/platformCarType/addDialog"
;
import
dataSource
from
"@/libs/screen"
;
import
JudgeType
from
"@/mixins/judgeType"
;
import
Selects
from
"@/components/Selects"
;
export
default
{
name
:
"CarModel"
,
mixins
:
[
JudgeType
],
components
:
{
addDialog
,
Selects
,
},
data
()
{
return
{
dataSource
:
dataSource
,
tableLoading
:
true
,
data
:
[],
platformList
:
[],
total
:
0
,
form
:
{
CarModelName
:
""
,
carTypeList
:
[
1
,
2
,
3
],
platformListInfo
:
""
,
},
page
:
1
,
size
:
10
,
};
},
async
created
()
{
await
this
.
listInit
();
this
.
initTable
();
},
methods
:
{
delRow
(
id
)
{
this
.
$confirm
(
"删除后不可撤回,确定删除品牌车型"
,
"删除提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
carTypeDelete
({},
id
).
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
initTable
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
})
.
catch
(()
=>
{});
},
reLoadTable
()
{
this
.
initTable
();
},
searchInfo
()
{
this
.
page
=
1
;
this
.
initTable
();
},
current_change
(
page
)
{
this
.
page
=
page
;
this
.
initTable
();
},
handlechangeList
(
val
)
{
let
source
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
let
data
=
this
.
filftersFun
(
source
.
data
);
this
.
form
.
carTypeList
=
data
;
name
:
"CarModel"
,
mixins
:
[
JudgeType
],
components
:
{
addDialog
,
Selects
,
},
async
listInit
()
{
await
getplatformList
().
then
((
res
)
=>
{
if
(
res
.
status
==
200
)
{
res
.
data
.
forEach
((
element
)
=>
{
if
(
element
.
brandUrl
)
{
this
.
platformList
.
push
(
{
value
:
element
.
platformId
,
label
:
element
.
name
,
})
;
computed
:
{
brandLists
()
{
let
brandList
=
this
.
$store
.
getters
.
brandList
;
if
(
brandList
.
length
===
0
)
{
return
new
Promise
(()
=>
{
this
.
$store
.
dispatch
(
'business/getBrandList'
)
})
brandList
=
this
.
$store
.
getters
.
brandList
;
}
});
this
.
form
.
platformListInfo
=
this
.
platformList
[
0
].
value
;
this
.
form
.
platformListInfo
=
brandList
.
length
>
0
?
brandList
[
0
].
platformId
:
''
;
this
.
initTable
();
return
brandList
;
}
});
},
initTable
()
{
let
params
=
{
carTypes
:
this
.
form
.
carTypeList
,
platformId
:
this
.
form
.
platformListInfo
,
typeItem
:
""
,
typeName
:
this
.
form
.
CarModelName
,
pageVo
:
{
page
:
this
.
page
,
rows
:
this
.
size
,
data
()
{
return
{
dataSource
:
dataSource
,
tableLoading
:
true
,
data
:
[],
platformList
:
[],
total
:
0
,
form
:
{
CarModelName
:
""
,
carTypeList
:
[
1
,
2
,
3
],
platformListInfo
:
""
,
},
page
:
1
,
size
:
10
,
};
},
async
created
()
{
// await this.listInit();
},
methods
:
{
delRow
(
id
)
{
this
.
$confirm
(
"删除后不可撤回,确定删除品牌车型"
,
"删除提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
carTypeDelete
({},
id
).
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
initTable
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
})
.
catch
(()
=>
{
});
},
reLoadTable
()
{
this
.
initTable
();
},
searchInfo
()
{
this
.
page
=
1
;
this
.
initTable
();
},
};
current_change
(
page
)
{
this
.
page
=
page
;
this
.
initTable
();
},
handlechangeList
(
val
)
{
let
source
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
let
data
=
this
.
filftersFun
(
source
.
data
);
this
.
form
.
carTypeList
=
data
;
},
async
listInit
()
{
await
getplatformList
().
then
((
res
)
=>
{
if
(
res
.
status
==
200
)
{
res
.
data
.
forEach
((
element
)
=>
{
if
(
element
.
brandUrl
)
{
this
.
platformList
.
push
({
value
:
element
.
platformId
,
label
:
element
.
brandName
,
});
}
});
this
.
form
.
platformListInfo
=
this
.
platformList
[
0
].
value
;
}
});
},
initTable
()
{
let
params
=
{
carTypes
:
this
.
form
.
carTypeList
,
platformId
:
this
.
form
.
platformListInfo
,
typeItem
:
""
,
typeName
:
this
.
form
.
CarModelName
,
pageVo
:
{
page
:
this
.
page
,
rows
:
this
.
size
,
},
};
this
.
tableLoading
=
true
;
this
.
tableLoading
=
true
;
carTypeQuery
(
params
)
.
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
this
.
data
=
res
.
data
.
content
;
this
.
total
=
res
.
data
.
total
;
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
this
.
tableLoading
=
false
;
})
.
catch
(()
=>
{
this
.
tableLoading
=
false
;
});
},
// table变色,头
tableHeaderColor
({
row
,
column
,
rowIndex
,
columnIndex
})
{
return
{
"background-color"
:
"#0099ff"
,
color
:
"#ffffff"
};
carTypeQuery
(
params
)
.
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
this
.
data
=
res
.
data
.
content
;
this
.
total
=
res
.
data
.
total
;
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
this
.
tableLoading
=
false
;
})
.
catch
(()
=>
{
this
.
tableLoading
=
false
;
});
},
// table变色,头
tableHeaderColor
({
row
,
column
,
rowIndex
,
columnIndex
})
{
return
{
"background-color"
:
"#0099ff"
,
color
:
"#ffffff"
};
},
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
::v-deep
.form-row
{
.el-form-item
{
margin-bottom
:
0
!
important
;
}
.el-form-item
{
margin-bottom
:
0
!
important
;
}
}
.pagination
{
margin-top
:
16px
;
text-align
:
right
;
margin-top
:
16px
;
text-align
:
right
;
}
</
style
>
src/views/disposition/passDetail.vue
View file @
c3b3202c
...
...
@@ -750,7 +750,6 @@ export default {
// pageJumpUrl: this.ruleForm.pageJumpFlag == 1 ? this.ruleForm.pageJumpUrl : this.ruleForm.insideJumpUrl,
// pageJumpText: this.ruleForm.pageJumpText,
// };
debugger
let
json
=
{
"platformId"
:
this
.
$store
.
getters
.
platformId
,
// (平台ID)
"displayPage"
:
this
.
selectResult
.
pageLocation
,
// (展示页面)
...
...
src/views/disposition/passRotation.vue
View file @
c3b3202c
...
...
@@ -256,7 +256,6 @@ export default {
*弹窗开关切换
* **/
async
operatingStatuct
(
val
)
{
debugger
let
{
data
,
status
}
=
await
upOrDown
({},
val
.
advertId
,
val
.
isOnline
);
if
(
status
==
200
)
{
this
.
$message
.
success
(
"操作成功"
);
...
...
src/views/platform/components/productNum.vue
View file @
c3b3202c
...
...
@@ -24,7 +24,7 @@
<el-col
:span=
"8"
>
<!--
<Selects
:options=
"dataSource.orderChannelList"
:selectName=
"'适用渠道:'"
:type=
"'applyChannelList'"
--
>
<!-- @changeList="handlechangeList" class="right-distance">
</Selects>
-->
<Selects
v-if=
"ylD.length > 0"
:options=
"ylD"
:selectName=
"'授权运力:'"
:type=
"'ylType'"
<Selects
:options=
"ylD"
:selectName=
"'授权运力:'"
:type=
"'ylType'"
@
changeList=
"handlechangeList"
class=
"right-distance"
></Selects>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -165,7 +165,7 @@ export default {
async
created
()
{
this
.
ylD
=
this
.
ylData
// await this.getAllChannelListFun()
await
this
.
getAllData
()
//
await this.getAllData()
},
methods
:
{
searchAll
()
{
...
...
src/views/platform/components/publicProductTitle/index.vue
View file @
c3b3202c
...
...
@@ -32,7 +32,7 @@
<el-tag
class=
"tag-div"
type=
"info"
>
{{
reserveTypeText
(
$store
.
getters
.
productJJInfo
.
reserveType
)
}}
</el-tag>
<el-tag
class=
"tag-div"
type=
"warning"
>
{{
intercityTypeText
(
$store
.
getters
.
productJJInfo
.
intercityType
)
}}
</el-tag>
<el-tag
class=
"tag-div"
v-for=
"item in $store.getters.productJJInfo.applyChannel"
:key=
"item"
type=
"danger"
>
{{
orderSourcesSpecial
(
item
)
}}
{{
orderSourcesSpecial
New
(
item
)
}}
</el-tag>
</el-row>
</el-col>
...
...
src/views/platform/components/settingInfo.vue
View file @
c3b3202c
...
...
@@ -45,7 +45,7 @@
<el-form-item
label=
"品牌名称:"
prop=
"platformId"
v-if=
"!$route.query.hasOwnProperty('platformId')"
>
<el-select
v-model=
"form.platformId"
size=
"mini"
>
<el-option
v-for=
"(item, index) in brandList"
v-for=
"(item, index) in brandList
s
"
:label=
"item.brandName"
:value=
"item.platformId"
:key=
"'platformId'+index"
...
...
@@ -170,6 +170,20 @@ export default {
brandList
:
[]
}
},
computed
:
{
brandLists
()
{
let
brandList
=
this
.
$store
.
getters
.
brandList
;
if
(
brandList
.
length
===
0
)
{
return
new
Promise
(()
=>
{
this
.
$store
.
dispatch
(
'business/getBrandList'
)
})
brandList
=
this
.
$store
.
getters
.
brandList
;
}
brandList
=
brandList
.
filter
(
item
=>
{
return
item
.
brandUrl
})
return
brandList
;
}
},
created
()
{
// 获取配置项
this
.
getPlatformConfig
();
...
...
@@ -241,17 +255,17 @@ export default {
}
})
platformInfosList
()
.
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
this
.
brandList
=
res
.
data
.
filter
(
item
=>
{
return
item
.
brandUrl
});
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
})
.
catch
(()
=>
{
})
//
platformInfosList()
//
.then((res) => {
//
if(res.status === 200) {
//
this.brandList = res.data.filter(item => {return item.brandUrl});
//
}else {
//
this.$message.error(res.msg);
//
}
//
})
//
.catch(() => {
//
//
})
},
getInfo
()
{
getPlatformInfo
({},
this
.
$route
.
query
.
platformId
)
...
...
src/views/platform/regionDetail.vue
View file @
c3b3202c
...
...
@@ -12,10 +12,11 @@
style=
"font-size: 12px;color: #3399FF;background: #e9f0f8;margin-left: 10px;"
>
{{
company
+
' 丨 '
+
location
}}
</span>
<span
style=
"font-size: 12px;color: #FF6600;background: #f8e6db;margin-left: 10px;"
>
{{
manage
}}
</span>
<span
v-for=
"(item, index) in manage"
:key=
"'manage'+index"
style=
"font-size: 12px;color: #FF6600;background: #f8e6db;margin-left: 10px;"
>
{{
item
.
managerName
+
' '
+
item
.
phoneNumber
}}
</span>
<!--
<i
style=
"color: #539af3;margin-left: 10px;font-size: 12px;cursor: pointer;"
@
click=
"clickEdit"
class=
"el-icon-edit"
></i>
-->
</el-row>
<el-row
style=
"font-size: 14px;"
>
...
...
@@ -117,9 +118,9 @@ export default {
.
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
this
.
regName
=
res
.
data
.
areaInfo
.
operateName
;
this
.
company
=
res
.
data
.
areaInfo
.
o
rganize
Name
;
this
.
company
=
res
.
data
.
areaInfo
.
o
perateCompany
Name
;
this
.
location
=
res
.
data
.
areaInfo
.
operateAreaName
;
this
.
manage
=
res
.
data
.
areaInfo
.
managerName
+
' '
+
res
.
data
.
areaInfo
.
managerPhone
;
this
.
manage
=
res
.
data
.
areaInfo
.
areaManagerVos
;
this
.
priceData
=
res
.
data
.
priceScopeList
;
this
.
yl
=
getYlInfo
(
res
.
data
.
transportOpenList
).
str
;
this
.
transportOpenList
=
getYlInfo
(
res
.
data
.
transportOpenList
).
d
;
...
...
src/views/platform/regionManage.vue
View file @
c3b3202c
...
...
@@ -3,7 +3,7 @@
<el-row
style=
"background-color: #ffffff;padding: 10px 0 10px 0;"
>
<el-radio-group
v-model=
"platform"
@
change=
"changePlatform"
>
<el-radio-button
v-for=
"(item, index) in
platformList
"
v-for=
"(item, index) in
brandLists
"
:label=
"item.value"
:key=
"'platformId'+index"
>
...
...
@@ -84,7 +84,12 @@
</el-table-column>
<el-table-column
label=
"管理人员"
align=
"center"
width=
"200"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
managerName
+
' '
+
scope
.
row
.
managerPhone
}}
<template
v-for=
"item in scope.row.areaManagerVos"
>
<span>
{{
item
.
managerName
+
' '
+
item
.
phoneNumber
}}
</span>
<br/>
</
template
>
</template>
</el-table-column>
<el-table-column
label=
"已授权运力/个"
prop=
"transportCount"
align=
"center"
width=
"110"
>
...
...
@@ -153,13 +158,49 @@ export default {
},
async
created
()
{
await
this
.
getPCAInfo
();
await
this
.
getPlatformList
();
await
this
.
getTableList
();
if
(
this
.
brandLists
.
length
>
0
)
{
this
.
getPlatformInfo
();
await
this
.
getTableList
();
}
// await this.getPlatformList();
},
computed
:
{
...
mapGetters
([
'platformId'
])
...
mapGetters
([
'platformId'
]),
brandLists
()
{
let
brandList
=
this
.
$store
.
getters
.
brandList
;
if
(
brandList
.
length
===
0
)
{
return
new
Promise
(()
=>
{
this
.
$store
.
dispatch
(
'business/getBrandList'
)
})
brandList
=
this
.
$store
.
getters
.
brandList
;
}
brandList
=
brandList
.
filter
(
item
=>
{
return
item
.
brandUrl
})
brandList
=
brandList
.
map
(
item
=>
{
return
{
value
:
JSON
.
stringify
(
item
),
label
:
item
.
brandName
}
})
return
brandList
;
}
},
watch
:{
brandLists
(
v
){
if
(
v
.
length
>
0
)
{
this
.
getPlatformInfo
();
this
.
getTableList
();
}
}
},
methods
:
{
getPlatformInfo
()
{
this
.
platform
=
this
.
brandLists
.
length
>
0
?
this
.
brandLists
[
0
].
value
:
''
;
this
.
brandUrl
=
this
.
brandLists
.
length
>
0
?
JSON
.
parse
(
this
.
brandLists
[
0
].
value
).
brandUrl
:
''
;
this
.
plat
=
this
.
brandLists
.
length
>
0
?
JSON
.
parse
(
this
.
brandLists
[
0
].
value
).
platformId
:
''
;
},
async
getPlatformList
()
{
await
getplatformList
().
then
((
res
)
=>
{
if
(
res
.
status
==
200
)
{
...
...
@@ -178,7 +219,8 @@ export default {
}
});
},
changePlatform
()
{
changePlatform
(
v
)
{
this
.
platform
=
v
;
this
.
brandUrl
=
JSON
.
parse
(
this
.
platform
).
brandUrl
;
this
.
plat
=
JSON
.
parse
(
this
.
platform
).
platformId
;
this
.
page
=
1
;
...
...
@@ -279,7 +321,7 @@ export default {
provinceCode
:
row
.
provinceCode
,
areaCode
:
row
.
operateAreaCode
,
areaName
:
row
.
operateAreaName
,
manager
:
row
.
managerName
,
manager
:
row
.
areaManagerVos
,
operateId
:
row
.
operateId
,
platform
:
JSON
.
parse
(
this
.
platform
),
brandUrl
:
this
.
brandUrl
...
...
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