Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 23d9a28c
authored
Mar 03, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:广汇erp权益订单列表优化
1 parent
4c22462f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1041 additions
and
243 deletions
src/api/modules/ghBeforeSale.js
src/setup/qiankun.js
src/views/ghPreSale/equityList.vue
src/views/ghPreSale/financeIndex.vue
src/views/ghPreSale/introduct.vue
src/views/ghPreSale/serviceSet.vue
src/api/modules/ghBeforeSale.js
View file @
23d9a28
...
@@ -60,7 +60,8 @@ const getPriteApi = params => {
...
@@ -60,7 +60,8 @@ const getPriteApi = params => {
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
method
:
'GET'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
,
returnAll
:
true
})
})
}
}
...
@@ -328,4 +329,16 @@ const aduitOrderApi = params => {
...
@@ -328,4 +329,16 @@ const aduitOrderApi = params => {
})
})
}
}
export
default
{
getUserInfoApi
,
getCountNoDataApi
,
getListApi
,
getMerchantApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
getDefaultCarbrandApi
,
updateHotlineApi
,
updateCarBrandApi
,
getProListApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getAllOrderValueApi
,
verifyOrderApi
,
checkOrderApi
,
updateOrderApi
,
uploadImgApi
,
backOrderApi
,
aduitOrderApi
,
delImgApi
,
getSalesPersonApi
}
const
judgeSetting
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.merchant.config.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getUserInfoApi
,
getCountNoDataApi
,
getListApi
,
getMerchantApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
getDefaultCarbrandApi
,
updateHotlineApi
,
updateCarBrandApi
,
getProListApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getAllOrderValueApi
,
verifyOrderApi
,
checkOrderApi
,
updateOrderApi
,
uploadImgApi
,
backOrderApi
,
aduitOrderApi
,
delImgApi
,
getSalesPersonApi
,
judgeSetting
}
src/setup/qiankun.js
View file @
23d9a28
...
@@ -15,8 +15,8 @@ Vue.use(GLTable)
...
@@ -15,8 +15,8 @@ Vue.use(GLTable)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request_brand
,
sign
,
secret
}
=
await
fetchConfig
()
const
{
response
,
request
,
request_brand
,
sign
,
secret
}
=
await
fetchConfig
()
// 本地切换域名,不需要Mock上面改动 const => let
// 本地切换域名,不需要Mock上面改动 const => let
// request.baseURL = 'https://scrm.test
.glsx.com.cn'
request
.
baseURL
=
'https://scrm.dev
.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test
.glsx.com.cn'
request_brand
.
baseURL
=
'https://scrm.dev
.glsx.com.cn'
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
...
@@ -24,10 +24,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -24,10 +24,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
//
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
//
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-2441e617-62cb-4712-b3ae-a1d47bf9a14a
-rop' } })
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'scrm-base-5a2eda5a-fc4d-4ac8-92d3-a8468cc1f0f6
-rop'
}
})
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-2441e617-62cb-4712-b3ae-a1d47bf9a14a
-rop' } })
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'scrm-base-5a2eda5a-fc4d-4ac8-92d3-a8468cc1f0f6
-rop'
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
routes
=
getRoutes
(
routesData
)
...
...
src/views/ghPreSale/equityList.vue
View file @
23d9a28
<!-- 权益订单列表 -->
<!-- 权益订单列表 -->
<
template
>
<
template
>
<div
class=
"before-sale"
>
<div
class=
"before-sale"
:class=
"
{noPaddngTop:showPage==2}">
<template
v-if=
"showPage==2"
>
<introduct></introduct>
</
template
>
<
template
v-if=
"showPage==1"
>
<div
class=
"add-benefit"
>
<div
class=
"add-benefit"
>
<!--
<el-button
fn=
"新增权益"
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增权益
</el-button>
-->
<!--
<el-button
fn=
"新增权益"
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增权益
</el-button>
-->
<GLButton
:size=
"size"
fn=
"新增权益"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"handleEdit(1)"
>
新增权益
</GLButton>
<GLButton
:size=
"size"
fn=
"新增权益"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"handleEdit(1)"
>
新增权益
</GLButton>
...
@@ -20,16 +24,16 @@
...
@@ -20,16 +24,16 @@
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<GLButton
v-if=
"[2, 4, 5
].includes(scope.scope.orderStatus)"
fn=
"查看"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</GLButton>
<GLButton
v-if=
"[2, 4, 5,7,8,9,10,11
].includes(scope.scope.orderStatus)"
fn=
"查看"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</GLButton>
<!--
<el-button
v-if=
"[2, 4, 5].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</el-button>
-->
<!--
<el-button
v-if=
"[2, 4, 5].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</el-button>
-->
<el-button
v-if=
"[2
].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handlePdf(scope.scope)"
>
打印
</el-button>
<el-button
v-if=
"[2,8,10,11
].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handlePdf(scope.scope)"
>
打印
</el-button>
<el-button
v-if=
"[2
].includes(scope.scope.orderStatus)"
style=
"position: relative;"
type=
"text"
@
click=
"handleUpload(scope.scope)"
>
上传资料
<span
v-show=
"scope.scope.dataPerfection == 0"
class=
"circule-tips"
></span></el-button>
<el-button
v-if=
"[2,8,10,11
].includes(scope.scope.orderStatus)"
style=
"position: relative;"
type=
"text"
@
click=
"handleUpload(scope.scope)"
>
上传资料
<span
v-show=
"scope.scope.dataPerfection == 0"
class=
"circule-tips"
></span></el-button>
<!--
<el-button
v-if=
"[0].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</el-button>
-->
<!--
<el-button
v-if=
"[0].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</el-button>
-->
<!--
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</el-button>
-->
<!--
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</el-button>
-->
<GLButton
v-if=
"[0].includes(scope.scope.orderStatus)"
fn=
"编辑"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</GLButton>
<GLButton
v-if=
"[0].includes(scope.scope.orderStatus)"
fn=
"编辑"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</GLButton>
<GLButton
v-if=
"[2].includes(scope.scope.orderStatus
)"
fn=
"修改"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</GLButton>
<GLButton
v-if=
"[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint
)"
fn=
"修改"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</GLButton>
<el-button
v-if=
"[2
].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退单
</el-button>
<el-button
v-if=
"[2,8,10,11
].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退单
</el-button>
<GLButton
v-if=
"[
3, 4, 5].includes(scope.scope.orderStatus)"
fn=
"重新提单"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</GLButton>
<GLButton
v-if=
"[1,
3, 4, 5].includes(scope.scope.orderStatus)"
fn=
"重新提单"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</GLButton>
<!--
<el-button
v-if=
"[3, 4, 5].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</el-button>
-->
<!--
<el-button
v-if=
"[3, 4, 5].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</el-button>
-->
</div>
</div>
...
@@ -64,6 +68,7 @@
...
@@ -64,6 +68,7 @@
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSecondConfirm"
>
确 定
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSecondConfirm"
>
确 定
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
</
template
>
</div>
</div>
</template>
</template>
...
@@ -73,10 +78,13 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -73,10 +78,13 @@ import glsxCombiForm from '@/components/glsx-combi-form'
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
import
pdfDialog
from
'./pdfDialog'
import
pdfDialog
from
'./pdfDialog'
import
utils
from
'../../util/util'
import
utils
from
'../../util/util'
import
introduct
from
"./introduct.vue"
export
default
{
export
default
{
name
:
'equityList'
,
name
:
'equityList'
,
data
()
{
data
()
{
return
{
return
{
showPage
:
0
,
openCostPrice
:
0
,
//是否展示门店成本
size
:
'small'
,
size
:
'small'
,
noCancel
:
true
,
noCancel
:
true
,
isBlock
:
true
,
isBlock
:
true
,
...
@@ -270,203 +278,7 @@ export default {
...
@@ -270,203 +278,7 @@ export default {
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
[
tableColumns
:
[]
{
label
:
'车主姓名'
,
prop
:
'customerName'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'合同号'
,
prop
:
'contractNo'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
[
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
)
?
(
cellValue
.
contractNo
||
'-'
)
:
'-'
}
},
{
label
:
'提单成功时间'
,
prop
:
'successDate'
,
width
:
'200px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
successDate
?
dayjs
(
cellValue
.
successDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
},
{
label
:
'新车开票日期'
,
prop
:
'billingDate'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
billingDate
?
dayjs
(
cellValue
.
billingDate
).
format
(
'YYYY-MM-DD'
)
:
'-'
}
},
{
label
:
'店面名称'
,
prop
:
'merchantName'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
merchantName
||
'-'
}
},
{
label
:
'车品牌'
,
prop
:
'vehicleBrandName'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
vehicleBrandName
||
'-'
}
},
{
label
:
'车系'
,
prop
:
'vehicleSeriesName'
,
line
:
1
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
vehicleSeriesName
||
'-'
}
},
{
label
:
'车架'
,
prop
:
'vin'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
vin
||
'-'
}
},
{
label
:
'电话'
,
prop
:
'customerPhone'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerPhone
||
'-'
}
},
{
label
:
'产品名称'
,
prop
:
'packageName'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
packageName
||
'-'
}
},
{
label
:
'实际销售价'
,
prop
:
'actualSalesPrice'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
actualSalesPrice
?
(
cellValue
.
actualSalesPrice
/
100
).
toFixed
(
2
)
:
'-'
}
},
{
label
:
'服务期限'
,
prop
:
'servicePeriod'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
servicePeriod
?
'1年'
:
'-'
}
},
{
label
:
'生效时间'
,
prop
:
'effectiveDate'
,
width
:
'200px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
effectiveDate
?
dayjs
(
cellValue
.
effectiveDate
).
format
(
'YYYY-MM-DD'
)
:
'-'
}
},
{
label
:
'状态'
,
prop
:
'orderStatus'
,
width
:
'100px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
orderStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
orderStatus
)
?
this
.
baseData
.
orderStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
orderStatus
).
confName
:
'-'
}
},
{
label
:
'审核状态'
,
prop
:
'auditStatus'
,
width
:
'100px'
,
line
:
1
,
formatter
:
cellValue
=>
{
var
auditStatusTxt
=
'-'
if
([
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
))
{
auditStatusTxt
=
this
.
baseData
.
auditStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
auditStatus
)
?
this
.
baseData
.
auditStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
auditStatus
).
confName
:
'-'
}
return
auditStatusTxt
}
},
{
label
:
'审核人'
,
prop
:
'auditBy'
,
width
:
'140px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
auditBy
||
'-'
}
},
{
label
:
'门店编码'
,
prop
:
'sap'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
sap
||
'-'
}
},
{
label
:
'实际销售人员'
,
prop
:
'actualSalesPerson'
,
width
:
'160'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
actualSalesPerson
||
'-'
}
},
{
label
:
'大区'
,
prop
:
'provinceMerchantName'
,
width
:
'200'
,
formatter
:
cellValue
=>
{
return
cellValue
.
provinceMerchantName
||
'-'
}
},
{
label
:
'片区'
,
prop
:
'cityMerchantName'
,
width
:
'200'
,
formatter
:
cellValue
=>
{
return
cellValue
.
cityMerchantName
||
'-'
}
},
{
label
:
'操作人'
,
prop
:
'updatedBy'
,
width
:
'140px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
updatedBy
||
'-'
}
},
{
label
:
'操作'
,
prop
:
''
,
width
:
'200px'
,
fixed
:
'right'
,
addHtml
:
'table-btns'
}
]
},
},
sizeList
:
[
5
,
10
,
20
,
30
,
40
],
sizeList
:
[
5
,
10
,
20
,
30
,
40
],
pageConf
:
{
pageSize
:
'pageCount'
,
pageNum
:
'pageSize'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageCount'
,
pageNum
:
'pageSize'
,
totalCount
:
'total'
},
...
@@ -483,6 +295,10 @@ export default {
...
@@ -483,6 +295,10 @@ export default {
confName
:
'待提单'
confName
:
'待提单'
},
},
{
{
confId
:
1
,
confName
:
'ERP出单失败'
},
{
confId
:
2
,
confId
:
2
,
confName
:
'提单成功'
confName
:
'提单成功'
},
},
...
@@ -497,7 +313,27 @@ export default {
...
@@ -497,7 +313,27 @@ export default {
{
{
confId
:
5
,
confId
:
5
,
confName
:
'已过期'
confName
:
'已过期'
}
},
{
confId
:
7
,
confName
:
'退单审核中'
},
{
confId
:
8
,
confName
:
'ERP退单失败'
},
{
confId
:
9
,
confName
:
'ERP修改审核中'
},
{
confId
:
10
,
confName
:
'修改成功'
},
{
confId
:
11
,
confName
:
'ERP修改失败'
},
],
],
dataPerfectionList
:
[
dataPerfectionList
:
[
{
{
...
@@ -522,14 +358,47 @@ export default {
...
@@ -522,14 +358,47 @@ export default {
}
}
}
}
},
},
components
:
{
components
:
{
glsxCombiForm
,
glsxCombiForm
,
glsxDialog
,
glsxDialog
,
pdfDialog
pdfDialog
,
introduct
},
created
(){
this
.
isOpenSettin
()
},
},
mounted
()
{
mounted
()
{
// this.editNotify = this.$route.params
// if(this.isFirst && this.editNotify.hasOwnProperty('code')) {
// this.isFirst = false
// this.isTipVisible = true
// clearTimeout(this.timer)
// this.timer = setTimeout(() => {
// this.isTipVisible = false
// }, this.editNotify.code == '0' ? 1500 : 3000)
// }
// this.$apis.ghBeforeSale.getProListApi({}).then(res => {
// this.baseData.goodsStatusList = res
// this.getOptionsList('searchFormData')
// })
// this.getCountNoData()
// this.$apis.ghBeforeSale.getUserInfoApi({}).then(res => {
// this.userInfo = res
// if(res.merchantAccountLevel != 4) {
// var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
// this.searchFormData[idx].isHide = false
// this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
// }
// })
},
methods
:
{
// 根据是否开通配置来是否请求数据
controlHttp
(){
if
(
this
.
showPage
==
2
){
return
}
this
.
editNotify
=
this
.
$route
.
params
this
.
editNotify
=
this
.
$route
.
params
if
(
this
.
isFirst
&&
this
.
editNotify
.
hasOwnProperty
(
'code'
))
{
if
(
this
.
isFirst
&&
this
.
editNotify
.
hasOwnProperty
(
'code'
))
{
this
.
isFirst
=
false
this
.
isFirst
=
false
...
@@ -553,8 +422,6 @@ export default {
...
@@ -553,8 +422,6 @@ export default {
}
}
})
})
},
},
methods
:
{
handleUploadChange
(
e
,
item
){
handleUploadChange
(
e
,
item
){
this
.
$refs
.
uploadFormRef
.
handleUploadChange
(
e
,
item
.
scope
)
this
.
$refs
.
uploadFormRef
.
handleUploadChange
(
e
,
item
.
scope
)
},
},
...
@@ -732,21 +599,41 @@ export default {
...
@@ -732,21 +599,41 @@ export default {
// 打印
// 打印
handlePdf
(
row
)
{
handlePdf
(
row
)
{
if
(
!
row
.
auditStatus
)
{
if
(
!
row
.
auditStatus
)
{
const
h
=
this
.
$createElement
// const h = this.$createElement
this
.
isTipVisible
=
true
// this.isTipVisible = true
this
.
editNotify
=
{
// this.editNotify = {
code
:
'-1'
,
// code: '-1',
message
:
'财务未审核,合同无法打印'
// message: '财务未审核,合同无法打印'
}
// }
clearTimeout
(
this
.
timer
)
// clearTimeout(this.timer)
this
.
timer
=
setTimeout
(()
=>
{
// this.timer = setTimeout(() => {
this
.
isTipVisible
=
false
// this.isTipVisible = false
},
this
.
editNotify
.
code
==
'0'
?
1500
:
3000
)
// }, this.editNotify.code == '0' ? 1500 : 3000)
// return true
this
.
$confirm
(
'财务未审核,合同无法打印'
,
{
confirmButtonText
:
'确定'
,
showCancelButton
:
false
})
return
true
return
true
}
}
this
.
handlePdfClose
()
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
})
this
.
$apis
.
ghBeforeSale
.
getPriteApi
({
contractNo
:
row
.
contractNo
}).
then
(
res
=>
{
this
.
$apis
.
ghBeforeSale
.
getPriteApi
({
contractNo
:
row
.
contractNo
}).
then
(
res
=>
{
this
.
pdfUrl
=
res
const
{
code
,
data
,
message
}
=
res
if
(
code
==
0
){
this
.
pdfUrl
=
data
this
.
handlePdfClose
()
}
else
{
this
.
$message
({
message
:
message
,
type
:
'error'
})
}
loading
.
close
();
})
})
},
},
...
@@ -914,14 +801,501 @@ export default {
...
@@ -914,14 +801,501 @@ export default {
break
;
break
;
}
}
return
title
return
title
},
// 判断是否开通
isOpenSettin
()
{
localStorage
.
removeItem
(
'preSetStatus'
)
const
{
merchantId
}
=
this
.
$globalState
.
session
this
.
$apis
.
ghBeforeSale
.
judgeSetting
({
merchantId
,
channel
:
2
}).
then
(
res
=>
{
// data != null 且data.openFlag == 1 为开通,其他的都是未开通
const
{
code
,
data
}
=
res
if
(
code
==
0
&&
data
!=
null
&&
data
.
openFlag
==
1
)
{
this
.
tableColData
(
data
.
openCostPrice
)
this
.
showPage
=
1
}
else
{
this
.
showPage
=
2
}
}
}
this
.
controlHttp
(
this
.
showPage
)
}
localStorage
.
setItem
(
'preSetStatus'
,
this
.
showPage
)
</
script
>
})
},
<
style
lang=
"scss"
scoped
>
// 表格列的数据
tableColData
(
status
){
.before-sale
{
const
tableColumns
=
[
{
label
:
'车主姓名'
,
prop
:
'customerName'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'合同号'
,
prop
:
'contractNo'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
[
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
)
?
(
cellValue
.
contractNo
||
'-'
)
:
'-'
}
},
{
label
:
'提单成功时间'
,
prop
:
'successDate'
,
width
:
'200px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
successDate
?
dayjs
(
cellValue
.
successDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
},
{
label
:
'新车开票日期'
,
prop
:
'billingDate'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
billingDate
?
dayjs
(
cellValue
.
billingDate
).
format
(
'YYYY-MM-DD'
)
:
'-'
}
},
{
label
:
'店面名称'
,
prop
:
'merchantName'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
merchantName
||
'-'
}
},
{
label
:
'车品牌'
,
prop
:
'vehicleBrandName'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
vehicleBrandName
||
'-'
}
},
{
label
:
'车系'
,
prop
:
'vehicleSeriesName'
,
line
:
1
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
vehicleSeriesName
||
'-'
}
},
{
label
:
'车架'
,
prop
:
'vin'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
vin
||
'-'
}
},
{
label
:
'电话'
,
prop
:
'customerPhone'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerPhone
||
'-'
}
},
{
label
:
'产品名称'
,
prop
:
'packageName'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
packageName
||
'-'
}
},
{
label
:
'实际销售价'
,
prop
:
'actualSalesPrice'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
actualSalesPrice
?
(
cellValue
.
actualSalesPrice
/
100
).
toFixed
(
2
)
:
'-'
}
},
{
label
:
'服务期限'
,
prop
:
'servicePeriod'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
servicePeriod
?
'1年'
:
'-'
}
},
{
label
:
'生效时间'
,
prop
:
'effectiveDate'
,
width
:
'200px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
effectiveDate
?
dayjs
(
cellValue
.
effectiveDate
).
format
(
'YYYY-MM-DD'
)
:
'-'
}
},
{
label
:
'状态'
,
prop
:
'orderStatus'
,
width
:
'120px'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
orderStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
orderStatus
)
?
this
.
baseData
.
orderStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
orderStatus
).
confName
:
'-'
}
},
{
label
:
'状态描述'
,
prop
:
'erpErrorMsg'
,
width
:
'300px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
erpErrorMsg
?
cellValue
.
erpErrorMsg
:
'-'
}
},
{
label
:
'审核状态'
,
prop
:
'auditStatus'
,
width
:
'100px'
,
line
:
1
,
formatter
:
cellValue
=>
{
var
auditStatusTxt
=
'-'
if
([
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
))
{
auditStatusTxt
=
this
.
baseData
.
auditStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
auditStatus
)
?
this
.
baseData
.
auditStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
auditStatus
).
confName
:
'-'
}
return
auditStatusTxt
}
},
{
label
:
'审核日期'
,
prop
:
'auditDate'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
effectiveDate
?
dayjs
(
cellValue
.
effectiveDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
},
{
label
:
'审核人'
,
prop
:
'auditBy'
,
width
:
'140px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
auditBy
||
'-'
}
},
{
label
:
'首续保'
,
prop
:
'insuranceType'
,
width
:
'110px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
insuranceType
==
'i'
?
'无忧卡首保'
:
'无忧卡续保'
}
},
{
label
:
'价格区间'
,
prop
:
'pricePeriod'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
pricePeriod
?
cellValue
.
pricePeriod
:
'-'
}
},
{
label
:
'门店编码'
,
prop
:
'sap'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
sap
||
'-'
}
},
{
label
:
'实际销售人员'
,
prop
:
'actualSalesPerson'
,
width
:
'160'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
actualSalesPerson
||
'-'
}
},
{
label
:
'大区'
,
prop
:
'provinceMerchantName'
,
width
:
'200'
,
formatter
:
cellValue
=>
{
return
cellValue
.
provinceMerchantName
||
'-'
}
},
{
label
:
'片区'
,
prop
:
'cityMerchantName'
,
width
:
'200'
,
formatter
:
cellValue
=>
{
return
cellValue
.
cityMerchantName
||
'-'
}
},
{
label
:
'操作人'
,
prop
:
'updatedBy'
,
width
:
'140px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
updatedBy
||
'-'
}
},
{
label
:
'操作'
,
prop
:
''
,
width
:
'200px'
,
fixed
:
'right'
,
addHtml
:
'table-btns'
}
]
const
tableColumnsCost
=
[
{
label
:
'车主姓名'
,
prop
:
'customerName'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'合同号'
,
prop
:
'contractNo'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
[
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
)
?
(
cellValue
.
contractNo
||
'-'
)
:
'-'
}
},
{
label
:
'提单成功时间'
,
prop
:
'successDate'
,
width
:
'200px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
successDate
?
dayjs
(
cellValue
.
successDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
},
{
label
:
'新车开票日期'
,
prop
:
'billingDate'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
billingDate
?
dayjs
(
cellValue
.
billingDate
).
format
(
'YYYY-MM-DD'
)
:
'-'
}
},
{
label
:
'店面名称'
,
prop
:
'merchantName'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
merchantName
||
'-'
}
},
{
label
:
'车品牌'
,
prop
:
'vehicleBrandName'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
vehicleBrandName
||
'-'
}
},
{
label
:
'车系'
,
prop
:
'vehicleSeriesName'
,
line
:
1
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
vehicleSeriesName
||
'-'
}
},
{
label
:
'车架'
,
prop
:
'vin'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
vin
||
'-'
}
},
{
label
:
'电话'
,
prop
:
'customerPhone'
,
width
:
'160px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerPhone
||
'-'
}
},
{
label
:
'产品名称'
,
prop
:
'packageName'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
packageName
||
'-'
}
},
{
label
:
'实际销售价'
,
prop
:
'actualSalesPrice'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
actualSalesPrice
?
(
cellValue
.
actualSalesPrice
/
100
).
toFixed
(
2
)
:
'-'
}
},
{
label
:
'门店成本'
,
prop
:
'costPrice'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
costPrice
?
(
cellValue
.
costPrice
/
100
).
toFixed
(
2
)
:
'-'
}
},
{
label
:
'服务期限'
,
prop
:
'servicePeriod'
,
line
:
1
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
servicePeriod
?
'1年'
:
'-'
}
},
{
label
:
'生效时间'
,
prop
:
'effectiveDate'
,
width
:
'200px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
effectiveDate
?
dayjs
(
cellValue
.
effectiveDate
).
format
(
'YYYY-MM-DD'
)
:
'-'
}
},
{
label
:
'状态'
,
prop
:
'orderStatus'
,
width
:
'120px'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
orderStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
orderStatus
)
?
this
.
baseData
.
orderStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
orderStatus
).
confName
:
'-'
}
},
{
label
:
'状态描述'
,
prop
:
'erpErrorMsg'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
erpErrorMsg
?
cellValue
.
erpErrorMsg
:
'-'
}
},
{
label
:
'审核状态'
,
prop
:
'auditStatus'
,
width
:
'100px'
,
line
:
1
,
formatter
:
cellValue
=>
{
var
auditStatusTxt
=
'-'
if
([
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
))
{
auditStatusTxt
=
this
.
baseData
.
auditStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
auditStatus
)
?
this
.
baseData
.
auditStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
auditStatus
).
confName
:
'-'
}
return
auditStatusTxt
}
},
{
label
:
'审核日期'
,
prop
:
'auditDate'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
effectiveDate
?
dayjs
(
cellValue
.
effectiveDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
},
{
label
:
'审核人'
,
prop
:
'auditBy'
,
width
:
'140px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
auditBy
||
'-'
}
},
{
label
:
'首续保'
,
prop
:
'insuranceType'
,
width
:
'110px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
insuranceType
==
'i'
?
'无忧卡首保'
:
'无忧卡续保'
}
},
{
label
:
'价格区间'
,
prop
:
'pricePeriod'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
pricePeriod
?
cellValue
.
pricePeriod
:
'-'
}
},
{
label
:
'门店编码'
,
prop
:
'sap'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
sap
||
'-'
}
},
{
label
:
'实际销售人员'
,
prop
:
'actualSalesPerson'
,
width
:
'160'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
actualSalesPerson
||
'-'
}
},
{
label
:
'大区'
,
prop
:
'provinceMerchantName'
,
width
:
'200'
,
formatter
:
cellValue
=>
{
return
cellValue
.
provinceMerchantName
||
'-'
}
},
{
label
:
'片区'
,
prop
:
'cityMerchantName'
,
width
:
'200'
,
formatter
:
cellValue
=>
{
return
cellValue
.
cityMerchantName
||
'-'
}
},
{
label
:
'操作人'
,
prop
:
'updatedBy'
,
width
:
'140px'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
updatedBy
||
'-'
}
},
{
label
:
'操作'
,
prop
:
''
,
width
:
'200px'
,
fixed
:
'right'
,
addHtml
:
'table-btns'
}
]
this
.
tableParams
=
{
listName
:
'list'
,
tableOption
:
false
,
tableColumns
:
status
==
1
?
tableColumnsCost
:
tableColumns
}
}
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.before-sale
{
padding-top
:
17px
;
padding-top
:
17px
;
}
}
...
@@ -1092,5 +1466,7 @@ export default {
...
@@ -1092,5 +1466,7 @@ export default {
}
}
}
}
}
}
.noPaddngTop
{
padding-top
:
0
;
}
</
style
>
</
style
>
src/views/ghPreSale/financeIndex.vue
View file @
23d9a28
<!-- 财务 - 权益订单列表 -->
<!-- 财务 - 权益订单列表 -->
<
template
>
<
template
>
<div
class=
"before-sale"
>
<div
class=
"before-sale"
:class=
"
{noPaddngTop:showPage==2}">
<template
v-if=
"showPage==1"
>
<div
class=
"container finance"
>
<div
class=
"container finance"
>
<div
class=
"number"
>
<div
class=
"number"
>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"100px"
defaultWidth=
"210px"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"100px"
defaultWidth=
"210px"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
>
...
@@ -22,6 +23,10 @@
...
@@ -22,6 +23,10 @@
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
</
template
>
<
template
v-if=
"showPage==2"
>
<introduct></introduct>
</
template
>
<el-dialog
:visible
.
sync=
"isTipVisible"
width=
"400px"
class=
"tips-dialog"
top=
"30%"
title=
"提示"
>
<el-dialog
:visible
.
sync=
"isTipVisible"
width=
"400px"
class=
"tips-dialog"
top=
"30%"
title=
"提示"
>
<div
class=
"f-size"
>
<div
class=
"f-size"
>
<i
v-show=
"editNotify.code == '0'"
class=
"el-icon-success"
></i>
<i
v-show=
"editNotify.code == '0'"
class=
"el-icon-success"
></i>
...
@@ -46,6 +51,7 @@
...
@@ -46,6 +51,7 @@
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
glsxCombiForm
from
'@/components/glsx-combi-form'
import
glsxCombiForm
from
'@/components/glsx-combi-form'
import
utils
from
'../../util/util'
import
utils
from
'../../util/util'
import
introduct
from
'./introduct.vue'
export
default
{
export
default
{
name
:
'financeIndex'
,
name
:
'financeIndex'
,
data
()
{
data
()
{
...
@@ -466,15 +472,20 @@ export default {
...
@@ -466,15 +472,20 @@ export default {
confName
:
'已审核'
confName
:
'已审核'
}
}
]
]
}
},
showPage
:
0
}
}
},
},
components
:
{
components
:
{
glsxCombiForm
glsxCombiForm
,
introduct
},
},
mounted
()
{
mounted
()
{
if
(
this
.
showPage
==
2
){
return
}
this
.
$apis
.
ghBeforeSale
.
getProListApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghBeforeSale
.
getProListApi
({}).
then
(
res
=>
{
this
.
baseData
.
goodsStatusList
=
res
this
.
baseData
.
goodsStatusList
=
res
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
...
@@ -488,6 +499,14 @@ export default {
...
@@ -488,6 +499,14 @@ export default {
}
}
})
})
},
},
created
(){
const
openStatus
=
localStorage
.
getItem
(
'preSetStatus'
)
if
(
openStatus
==
2
)
{
this
.
showPage
=
2
return
}
this
.
showPage
=
1
},
methods
:
{
methods
:
{
getMerchantList
(
merchantId
,
accountLevel
,
attrName
,
listName
)
{
getMerchantList
(
merchantId
,
accountLevel
,
attrName
,
listName
)
{
...
@@ -790,4 +809,7 @@ export default {
...
@@ -790,4 +809,7 @@ export default {
}
}
}
}
}
}
.noPaddngTop
{
padding-top
:
0
;
}
</
style
>
</
style
>
src/views/ghPreSale/introduct.vue
0 → 100644
View file @
23d9a28
<
template
>
<div
class=
"introduct_container"
>
<div
class=
"top_play_wrap flex_scb"
>
<div
class=
"text_wrap"
>
<span
class=
"maxTitle"
>
售前权益服务
</span>
<span
class=
"maxTitle"
>
一套可变现的权益服务系统
</span>
<span
class=
"midTitle"
>
帮您实现客户线上化闭环
</span>
<span>
车生活权益促活跃,养车权益促返厂,赚钱锁客两不误
</span>
</div>
<div
class=
"bg_wrap flex_cc"
>
<img
class=
"max_icon"
src=
"https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_intro.png"
/>
<img
@
click=
"videoShow = true"
class=
"play_icon"
src=
"../../assets/play_icon.png"
/>
</div>
</div>
<div
class=
"mid_wrapper"
>
<div
class=
"content_one flex_sc"
>
<div
class=
"title left"
>
<span>
您提供的
</span>
<i
class=
"el-icon-caret-right"
></i>
</div>
<div
class=
"title right"
>
<span>
您将获得的
</span>
<div
class=
"icon_point"
></div>
</div>
</div>
<div
class=
"content_two flex_scb"
>
<template
v-for=
"(item, index) in localList"
>
<div
:key=
"index"
class=
"box_item_wrap flex_cc"
>
<img
:src=
"item.icon"
/>
<div
class=
"box_title"
>
{{
item
.
title
}}
</div>
</div>
</
template
>
</div>
<div
class=
"label_title"
>
无忧案例
</div>
<div
class=
"content_three"
>
<
template
v-for=
"(item, index) in localList2"
>
<div
:key=
"index"
class=
"box_new_item_wrapper"
:class=
"[
{ noborder: index == 1 }]">
<div
class=
"left_wrap"
>
<img
class=
"image_wrap"
:src=
"item.icon"
/>
<div
class=
"new_title"
>
{{
item
.
title
}}
</div>
<div
class=
"con_wrap"
>
<div
class=
"point flex_cc"
>
<div
class=
"icon_po"
></div>
</div>
<div
class=
"point_content"
>
{{
item
.
desc1
}}
</div>
</div>
<div
style=
"height: 15px"
></div>
<div
class=
"con_wrap"
>
<div
class=
"point flex_cc"
>
<div
class=
"icon_po"
></div>
</div>
<div
class=
"point_content"
>
{{
item
.
desc2
}}
</div>
</div>
</div>
<div
class=
"right_wrap"
>
<img
:src=
"item.img"
/>
</div>
</div>
</
template
>
</div>
</div>
<qrCode
:codeUrl=
"code"
:phone=
"phone"
></qrCode>
<el-dialog
class=
"video-dialog"
:visible
.
sync=
"videoShow"
width=
"50%"
:before-close=
"handleClose"
>
<div
slot=
"title"
style=
"height: 25px"
></div>
<video
v-if=
"videoShow"
width=
"100%"
height=
"100%"
autoplay
controls
src=
"https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"
></video>
</el-dialog>
</div>
</template>
<
script
>
import
qrCode
from
'../../components/qr-code/index.vue'
export
default
{
components
:
{
qrCode
},
data
()
{
return
{
videoShow
:
false
,
code
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png'
,
phone
:
'134 8079 2980'
,
localList
:
[
{
icon
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png'
,
title
:
'车生活权益、养车权益、自店权益'
},
{
icon
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_2.png'
,
title
:
'客户线上化、赚钱锁客促返厂'
},
{
icon
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_3.png'
,
title
:
'权益提单一键配置续费策略、提升门店权益续费增营收'
}
],
localList2
:
[
{
icon
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_4.png'
,
img
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case1.png'
,
title
:
'碰撞维修无忧案例'
,
desc1
:
'2020年12月3日,张先生驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废;张先生购车环节选购了“数字化无忧卡尊享版套餐”,里面包含了维修补偿服务。'
,
desc2
:
'通过嘀加SCRM平台触发预警推送消息到门店,门店及时联系车主进行救援并送修,为门店带来40000元回厂产值。'
},
{
icon
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_5.png'
,
img
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case2.png'
,
title
:
'整车全损无忧案例'
,
desc1
:
'2021年1月9日,李女生驾驶奔驰C级途径湖南张家界市出差,当晚留宿在朋友家小区,隔天早饭后想驾车回公司,发现车辆被盗了,报警后一直未找到爱车。李女士购车环节选购了“数字化无忧卡舒享版套餐”,里面包含了车辆置换补偿服务。'
,
desc2
:
'李女士发起补偿申请,经核定,根据权益服务合同协议,最终合计补偿李女士365800元。'
},
{
icon
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_6.png'
,
img
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case3.png'
,
title
:
'轮胎置换无忧案例'
,
desc1
:
'2021年6月15日,赵先生驾驶本田雅阁在路上正常行驶,右侧前轮胎突然出现问题,因质量问题导致无法正常行驶,只好送4S店换胎。赵先生购车环节选购了4S店推荐的“数字化无忧卡优享版套餐”,里面包含了轮胎更换补偿服务。'
,
desc2
:
'赵先生发起补偿申请,经核定,根据权益服务合同协议,补偿赵先生600元费用。'
}
]
}
},
mounted
()
{
// let [href] = window.location.href.split('/#/')
// let href = window.location.host;
// 从域名判断是不是广汇的
// let gxurl1 = 'http://scrm.cgacar.com'
// let gxurl2 = 'https://scrm.cgacar.com'
// if (href == gxurl1 || href == gxurl2) {
// this.code = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangQiang.png'
// this.phone = '137 6013 7906'
// }
this
.
code
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangQiang.png'
this
.
phone
=
'137 6013 7906'
},
methods
:
{
handleClose
()
{
this
.
videoShow
=
false
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.introduct_container
{
margin-top
:
17px
;
}
.top_play_wrap
{
height
:
360px
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
box-sizing
:
border-box
;
padding-right
:
50px
;
.text_wrap
{
box-sizing
:
border-box
;
padding-left
:
50px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
position
:
relative
;
>
span
{
font-size
:
16px
;
font-weight
:
400
;
color
:
#666666
;
}
.maxTitle
{
font-size
:
42px
;
font-weight
:
600
;
color
:
#000000
;
line-height
:
60px
;
}
.midTitle
{
font-size
:
24px
;
font-weight
:
600
;
color
:
#000000
;
line-height
:
33px
;
margin
:
15px
0
;
}
}
.bg_wrap
{
width
:
480px
;
height
:
270px
;
position
:
relative
;
.max_icon
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
1
;
}
.play_icon
{
position
:
relative
;
z-index
:
2
;
cursor
:
pointer
;
}
}
}
.mid_wrapper
{
background
:
#ffffff
;
margin-top
:
20px
;
box-sizing
:
border-box
;
padding
:
20px
;
.content_one
{
box-sizing
:
border-box
;
padding
:
20px
0
14px
0
;
border-bottom
:
1px
solid
#e8e8e8
;
.title
{
font-size
:
18px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
18px
;
position
:
relative
;
}
.left
{
width
:
376px
;
>
i
{
color
:
#5850ff
;
width
:
6px
;
height
:
6px
;
position
:
absolute
;
bottom
:
-11px
;
left
:
-7px
;
}
}
.right
{
//
width
:
calc
(
100%
-
376px
);
.icon_point
{
width
:
7px
;
height
:
7px
;
background
:
#5850ff
;
border-radius
:
50%
;
position
:
absolute
;
bottom
:
-18px
;
left
:
0px
;
}
}
}
.content_two
{
margin-top
:
15px
;
.box_item_wrap
{
width
:
32%
;
height
:
80px
;
background
:
#f7f6fd
;
box-sizing
:
border-box
;
padding
:
19px
20px
;
>
img
{
width
:
42px
;
height
:
42px
;
}
.box_title
{
width
:
calc
(
100%
-
82px
);
font-size
:
14px
;
font-weight
:
400
;
color
:
#3a3a3a
;
line-height
:
20px
;
margin-left
:
10px
;
}
}
}
.label_title
{
font-size
:
18px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
18px
;
margin-top
:
40px
;
margin-bottom
:
10px
;
}
.content_three
{
.box_new_item_wrapper
{
display
:
flex
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
padding
:
20px
40px
;
border
:
1px
solid
#e8e8e8
;
.left_wrap
{
width
:
calc
(
100%
-
330px
);
height
:
100%
;
box-sizing
:
border-box
;
//
padding-right
:
100px
;
.image_wrap
{
width
:
42px
;
height
:
42px
;
}
.new_title
{
font-size
:
14px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
20px
;
margin
:
15px
0
;
}
.con_wrap
{
display
:
flex
;
.point
{
margin-right
:
5px
;
height
:
17px
;
width
:
5px
;
.icon_po
{
background
:
#5850ff
;
width
:
5px
;
height
:
5px
;
background
:
#5850ff
;
border-radius
:
50%
;
}
}
.point_content
{
width
:
calc
(
100%
-
111px
);
font-size
:
12px
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
17px
;
}
}
}
.right_wrap
{
width
:
330px
;
}
}
.noborder
{
border-top
:
0
;
border-bottom
:
0
;
}
}
}
::v-deep
.video-dialog
{
.el-dialog__header{
border-bottom
:
none
;
background-color
:
#000
;
.el-dialog__headerbtn{
top
:
15px
;
font-size
:
24px
;
}
}
.el-dialog__body
{
padding
:
0
;
display
:
flex
;
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/ghPreSale/serviceSet.vue
View file @
23d9a28
<!-- 店面服务设置 -->
<!-- 店面服务设置 -->
<
template
>
<
template
>
<div
class=
"before-sale edit-equity mall-server"
>
<div
class=
"before-sale edit-equity mall-server"
>
<template
v-if=
"showPage==1"
>
<div
class=
"container edit-container mall-server-box"
>
<div
class=
"container edit-container mall-server-box"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"144px"
:isBlock=
"isBlock"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"144px"
:isBlock=
"isBlock"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
...
@@ -25,6 +26,16 @@
...
@@ -25,6 +26,16 @@
<div
class=
"footer"
>
<div
class=
"footer"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
</div>
</div>
</template>
<
template
v-if=
"showPage==2"
>
<div
class=
"nodata_widget"
>
<div
:style=
"[
{ height: nodataHeight + 'px' }]" class="wrapper">
<img
src=
"../../assets/nodata_icon.png"
/>
<span
class=
"nodata_tip_1"
>
您暂未开通售前权益服务
</span>
<span
class=
"nodata_tip_2"
>
合作开通后,您方可在此页设置店面的服务热线和默认提单车辆品牌等。
</span>
</div>
</div>
</
template
>
</div>
</div>
</template>
</template>
...
@@ -75,7 +86,9 @@ export default {
...
@@ -75,7 +86,9 @@ export default {
baseData
:
{
baseData
:
{
carBrandOptions
:
[],
carBrandOptions
:
[],
carChildOptions
:
[]
carChildOptions
:
[]
}
},
showPage
:
0
,
nodataHeight
:
0
,
}
}
},
},
...
@@ -84,11 +97,22 @@ export default {
...
@@ -84,11 +97,22 @@ export default {
},
},
created
()
{
created
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
nodataHeight
=
clientHeight
*
0.8
const
openStatus
=
localStorage
.
getItem
(
'preSetStatus'
)
if
(
openStatus
==
2
)
{
this
.
showPage
=
2
return
}
this
.
showPage
=
1
this
.
getAllVehicleBrand
()
this
.
getAllVehicleBrand
()
this
.
getCarChildList
()
this
.
getCarChildList
()
},
},
mounted
()
{
mounted
()
{
if
(
this
.
showPage
==
2
){
return
}
this
.
getHotline
()
this
.
getHotline
()
// this.getDefaultCarbrand()
// this.getDefaultCarbrand()
},
},
...
@@ -151,7 +175,7 @@ export default {
...
@@ -151,7 +175,7 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
.before-sale
.container
{
.before-sale
.container
{
padding
:
0
!important
;
padding
:
0
!important
;
background
:
#ffffff
;
background
:
#ffffff
;
...
@@ -246,4 +270,29 @@ export default {
...
@@ -246,4 +270,29 @@ export default {
.mall-server-box
{
.mall-server-box
{
height
:
100%
;
height
:
100%
;
}
}
.nodata_widget
{
margin-top
:
17px
;
.wrapper
{
width
:
100%
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
overflow
:
hidden
;
.nodata_tip_1
{
font-size
:
18px
;
font-weight
:
500
;
color
:
#3a3a3a
;
margin-top
:
48px
;
}
.nodata_tip_2
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#3a3a3a
;
margin-top
:
9px
;
}
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment