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 c7c3a683
authored
Mar 14, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.5.0' into 'master'
V3.5.0售前权益优化版本申请合并到主干 See merge request
!24
2 parents
908a611c
c53771ac
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
134 additions
and
32 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/views/inSale/couponsOrder.vue
src/views/inSale/introduct.vue
src/views/inSale/myFashionableOrder.vue
src/views/inSale/open.vue
src/views/inSale/upgradeOrder.vue
src/views/beforeSale/editEquity.vue
View file @
c7c3a68
...
...
@@ -1174,24 +1174,44 @@ export default {
// 获取产品的数据
toGetProductData
(
arr
)
{
arr
.
forEach
(
item
=>
{
if
(
item
.
packageName
.
includes
(
'整车全损'
))
{
item
.
idName
=
'car'
}
else
if
(
item
.
packageName
.
includes
(
'轮胎'
))
{
item
.
idName
=
'tire'
}
else
if
(
item
.
packageName
.
includes
(
'碰撞'
))
{
item
.
idName
=
'crash'
this
.
productModal
[
item
.
idName
][
'planId'
]
=
item
.
planId
this
.
productModal
[
'vip'
][
'planId'
]
=
item
.
planId
this
.
getCase
(
item
.
planId
)
}
else
if
(
item
.
packageName
.
includes
(
'盗抢'
))
{
item
.
idName
=
'stolen'
}
else
if
(
item
.
packageType
==
1
)
{
if
(
item
.
packageType
==
1
){
//定制权益
item
.
idName
=
'vip'
}
else
if
(
item
.
packageName
.
includes
(
'玻璃'
))
{
this
.
vailGlassName
=
item
.
packageName
// 备用
this
.
vailGlassCode
=
item
.
packageCode
item
.
idName
=
'glass'
}
else
{
// 自选权益
if
(
item
.
packageName
.
includes
(
'整车全损'
))
{
item
.
idName
=
'car'
}
else
if
(
item
.
packageName
.
includes
(
'轮胎'
))
{
item
.
idName
=
'tire'
}
else
if
(
item
.
packageName
.
includes
(
'碰撞'
))
{
item
.
idName
=
'crash'
this
.
productModal
[
item
.
idName
][
'planId'
]
=
item
.
planId
this
.
productModal
[
'vip'
][
'planId'
]
=
item
.
planId
this
.
getCase
(
item
.
planId
)
}
else
if
(
item
.
packageName
.
includes
(
'盗抢'
))
{
item
.
idName
=
'stolen'
}
else
if
(
item
.
packageName
.
includes
(
'玻璃'
))
{
this
.
vailGlassName
=
item
.
packageName
// 备用
this
.
vailGlassCode
=
item
.
packageCode
item
.
idName
=
'glass'
}
}
// if (item.packageName.includes('整车全损')) {
// item.idName = 'car'
// } else if (item.packageName.includes('轮胎')) {
// item.idName = 'tire'
// } else if (item.packageName.includes('碰撞')) {
// item.idName = 'crash'
// this.productModal[item.idName]['planId'] = item.planId
// this.productModal['vip']['planId'] = item.planId
// this.getCase(item.planId)
// } else if (item.packageName.includes('盗抢')) {
// item.idName = 'stolen'
// } else if (item.packageType == 1) {
// item.idName = 'vip'
// } else if (item.packageName.includes('玻璃')) {
// this.vailGlassName = item.packageName // 备用
// this.vailGlassCode = item.packageCode
// item.idName = 'glass'
// }
item
.
disabled
=
false
item
.
serviceItems
=
item
.
serviceItemsList
.
length
?
item
.
serviceItemsList
.
map
(
k
=>
k
.
serviceName
).
join
(
','
)
:
''
let
newArr
=
[]
...
...
src/views/beforeSale/equityList.vue
View file @
c7c3a68
...
...
@@ -8,11 +8,11 @@
</div>
<div
class=
"container"
>
<div
class=
"find_wrap"
>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formData=
"searchFormData"
></GLCombiForm>
<GLCombiForm
:key=
"newKey"
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formData=
"searchFormData"
></GLCombiForm>
</div>
<!-- 表格区域 开始 -->
<div
class=
"table_wrapper"
>
<el-button
plain
:size=
"size"
style=
"float:
right;margin-bottom:10px;
"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
plain
:size=
"size"
style=
"float:
right; margin-bottom: 10px
"
@
click=
"handleExport"
>
导出
</el-button>
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:paginationattrs=
"paginationattrs"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<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>
...
...
@@ -62,7 +62,7 @@ export default {
name
:
'equityList'
,
data
()
{
return
{
// :page-size="100"
newKey
:
new
Date
(),
paginationattrs
:
{
'page-size'
:
5
},
...
...
@@ -193,7 +193,7 @@ export default {
auditStatus
:
''
,
dataPerfection
:
''
,
successDate
:
[],
effectiveDate
:
[]
effectiveDate
:
[]
,
},
tableSearchForm
:
{},
// 合同打印
...
...
@@ -231,6 +231,14 @@ export default {
{
label
:
'车架号'
,
name
:
'vin'
},
{
label
:
'卡号'
,
name
:
'cardSeqNo'
},
{
label
:
'设备号'
,
name
:
'sn'
}
],
handleSelectChange
:
value
=>
{
...
...
@@ -268,6 +276,73 @@ export default {
name
:
'effectiveDate'
,
type
:
'datePicker'
,
isClear
:
true
},
{
label
:
'总部'
,
name
:
'merchantId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantList'
,
isHide
:
true
,
changeAttr
:
(
val
,
targetItem
)
=>
{
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'2'
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
searchForm
[
this
.
levelToShow
[
'2'
]]
=
''
var
tempIdx
=
''
for
(
var
i
=
3
;
i
<=
4
;
i
++
)
{
tempIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
i
+
''
])
this
.
searchFormData
[
tempIdx
].
isHide
=
true
this
.
searchForm
[
this
.
levelToShow
[
i
+
''
]]
=
''
}
this
.
getMerchantList
(
val
,
2
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
{
label
:
'省代'
,
name
:
'dqtId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'dqList'
,
isHide
:
true
,
changeAttr
:
(
val
,
targetItem
)
=>
{
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'3'
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
searchForm
[
this
.
levelToShow
[
'3'
]]
=
''
var
tempIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'4'
])
this
.
searchFormData
[
tempIdx
].
isHide
=
true
this
.
searchForm
[
this
.
levelToShow
[
'4'
]]
=
''
this
.
getMerchantList
(
val
,
3
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
{
label
:
'市代'
,
name
:
'pqId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'pqList'
,
isHide
:
true
,
changeAttr
:
(
val
,
targetItem
)
=>
{
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'4'
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
searchForm
[
this
.
levelToShow
[
'4'
]]
=
''
this
.
getMerchantList
(
val
,
4
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
{
label
:
'门店'
,
name
:
'mdId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'mdList'
,
isHide
:
true
}
],
searchFormData2
:
[
...
...
@@ -580,11 +655,11 @@ export default {
this
.
getCountNoData
()
this
.
$apis
.
beforeSale
.
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)
//
}
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
)
}
})
},
...
...
@@ -671,6 +746,7 @@ export default {
}
})
}
this
.
newKey
=
new
Date
()
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
)
{
...
...
src/views/inSale/couponsOrder.vue
View file @
c7c3a68
...
...
@@ -288,6 +288,7 @@ export default {
if
(
!
res
)
{
return
}
res
.
list
=
res
.
list
||
[]
res
.
list
.
length
?
(
this
.
$refs
.
table
.
tableHeightValues
=
''
)
:
this
.
$refs
.
table
.
setTableHeightFun
()
this
.
tableData
=
res
.
list
.
map
(
item
=>
{
item
.
createdDate
=
utils
.
dateFormat
(
item
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
...
...
@@ -317,6 +318,7 @@ export default {
orderType
:
6
}
converterApi
(
para
).
then
(
res
=>
{
res
.
list
=
res
&&
res
.
list
?
res
.
list
:[]
this
.
tabletotal1
=
res
.
total
this
.
tableData1
=
res
.
list
.
map
(
item
=>
{
item
.
createdDate
=
item
.
createdDate
?
utils
.
dateFormat
(
item
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
...
...
src/views/inSale/introduct.vue
View file @
c7c3a68
...
...
@@ -202,7 +202,7 @@ export default {
isShow
:
false
}
},
moun
ted
()
{
crea
ted
()
{
this
.
check
(
0
)
},
methods
:
{
...
...
@@ -301,8 +301,10 @@ export default {
this
.
videoList
=
[]
}
this
.
activeIndex
=
0
this
.
$refs
.
videoContent
.
style
.
transform
=
`translateX(0px)`
this
.
$refs
.
videoContent
.
style
.
transition
=
`all 0s linear`
if
(
this
.
$refs
.
videoContent
){
this
.
$refs
.
videoContent
.
style
.
transform
=
`translateX(0px)`
this
.
$refs
.
videoContent
.
style
.
transition
=
`all 0s linear`
}
},
valuations
(
val
)
{
this
.
isValuation
=
val
...
...
src/views/inSale/myFashionableOrder.vue
View file @
c7c3a68
...
...
@@ -531,6 +531,7 @@ export default {
...
this
.
newHttpParam
}
converterApi
(
para
).
then
(
res
=>
{
res
.
list
=
res
&&
res
.
list
?
res
.
list
:[]
res
.
list
.
map
(
item
=>
{
item
.
divisionTypeName
=
item
.
divisionType
==
1
?
'线下对账'
:
'线上分账'
item
.
successDate
=
item
.
paySuccessDate
?
utils
.
dateFormat
(
item
.
paySuccessDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
...
...
src/views/inSale/open.vue
View file @
c7c3a68
...
...
@@ -98,12 +98,12 @@
<div
v-show=
"accountLevel != 4"
>
<ranking
ref=
"myRanking"
:product=
"productValueInfo.divisionMoney"
:show=
"openRankFlag"
@
closeRank=
"toCloseRanking"
></ranking>
</div>
<div
class=
"box_bg_wrap
mini_margin
"
>
<div
class=
"box_bg_wrap"
>
<div
class=
"tab_wrap"
>
<div
class=
"tab_line flex_sc"
:style=
"accountLevel == 4 ? 'width:
48
%' : 'width:32%'"
>
<div
class=
"tab_line flex_sc"
:style=
"accountLevel == 4 ? 'width:
32
%' : 'width:32%'"
>
<!-- <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:32%' : 'width:16%'"> -->
<
template
v-for=
"(item, index) in tabList"
>
<div
:key=
"index"
class=
"tab_element_wrap"
:style=
"accountLevel == 4 ? 'width:
33.33
%' : 'width:50%'"
@
click=
"changeTab(index)"
>
<div
:key=
"index"
class=
"tab_element_wrap"
:style=
"accountLevel == 4 ? 'width:
50
%' : 'width:50%'"
@
click=
"changeTab(index)"
>
<!--
<div
:key=
"index"
class=
"tab_element_wrap"
:style=
"accountLevel == 4 ? 'width:50%' : 'width:100%'"
@
click=
"changeTab(index)"
>
-->
<div
class=
"tab_item h13_title flex_cc"
:class=
"curTabIndex == index ? 'tab_item_active' : ''"
>
{{
item
}}
</div>
</div>
...
...
@@ -321,7 +321,7 @@ export default {
// this.chartStartDate = utils.getDateStr(-15)
this
.
chartStartDate
=
this
.
bengintime
this
.
chartEndDate
=
this
.
endtime
this
.
orderDataInfo
()
//
this.orderDataInfo()
},
// 门店统计
orderDataInfo
()
{
...
...
src/views/inSale/upgradeOrder.vue
View file @
c7c3a68
...
...
@@ -918,6 +918,7 @@ export default {
...
this
.
newHttpParam
}
converterApi
(
para
).
then
(
res
=>
{
res
.
list
=
res
&&
res
.
list
?
res
.
list
:[]
this
.
tableData
=
res
.
list
.
map
((
item
,
index
)
=>
{
const
TYPELIST
=
[
'--'
,
'毛利'
,
'收入'
,
'固定'
]
// let ruleType = item.shopProfitType == 1 ? '毛利' : '收入'
...
...
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