Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-appreciation
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 e587040a
authored
Aug 09, 2024
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增值-精品升级-套餐
1 parent
b76375f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
src/views/inSale/upgradeOrder.vue
src/views/inSale/upgradeOrder.vue
View file @
e587040
...
@@ -559,7 +559,7 @@ export default {
...
@@ -559,7 +559,7 @@ export default {
},
},
{
{
value
:
'shopTrafficMoney'
,
value
:
'shopTrafficMoney'
,
label
:
'
分账金额
/元'
,
label
:
'
流量费
/元'
,
level
:
3
,
level
:
3
,
enumId
:
'shopTrafficMoney'
,
enumId
:
'shopTrafficMoney'
,
width
:
'110'
,
width
:
'110'
,
...
@@ -714,7 +714,7 @@ export default {
...
@@ -714,7 +714,7 @@ export default {
width
:
'200'
width
:
'200'
},
},
{
{
label
:
'
分账金额
/元'
,
label
:
'
流量费
/元'
,
prop
:
'shopTrafficMoney'
,
prop
:
'shopTrafficMoney'
,
width
:
'110'
,
width
:
'110'
,
align
:
'right'
align
:
'right'
...
@@ -777,23 +777,23 @@ export default {
...
@@ -777,23 +777,23 @@ export default {
},
},
mounted
()
{
mounted
()
{
//修改字段名,增减字段都在这里操作就行
//修改字段名,增减字段都在这里操作就行
if
(
this
.
pageName
!=
'insurance'
)
{
//
if (this.pageName != 'insurance') {
this
.
fieldList
=
this
.
fieldList
.
filter
(
item
=>
!
item
.
filter
)
//
this.fieldList = this.fieldList.filter(item => !item.filter)
this
.
$nextTick
(()
=>
{
//
this.$nextTick(() => {
const
_target
=
this
.
newTableParams
.
tableColumns
?.
find
(
item
=>
item
.
label
==
'导流方利润'
)
//
const _target = this.newTableParams.tableColumns?.find(item => item.label == '导流方利润')
if
(
_target
)
{
//
if (_target) {
const
_targetIdx
=
_target
?.
children
?.
findIndex
(
item
=>
item
.
prop
==
'setMealRule'
)
//
const _targetIdx = _target?.children?.findIndex(item => item.prop == 'setMealRule')
if
(
_targetIdx
>
-
1
)
{
//
if (_targetIdx > -1) {
_target
?.
children
?.
splice
(
_targetIdx
,
1
)
//
_target?.children?.splice(_targetIdx, 1)
}
//
}
}
//
}
})
//
})
}
else
{
//
}else{
const
target
=
this
.
fieldList
.
find
(
item
=>
item
.
value
==
'shopTrafficMoney'
)
//
const target = this.fieldList.find(item => item.value == 'shopTrafficMoney')
if
(
target
)
{
//
if(target) {
target
.
label
=
'流量费/元'
//
target.label = '流量费/元'
}
//
}
}
//
}
let
openInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'openInfo'
))
let
openInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'openInfo'
))
let
startDate
=
utils
.
dateFormat
(
openInfo
.
openDate
)
let
startDate
=
utils
.
dateFormat
(
openInfo
.
openDate
)
let
endDate
=
utils
.
dateFormat
(
new
Date
())
let
endDate
=
utils
.
dateFormat
(
new
Date
())
...
@@ -813,7 +813,7 @@ export default {
...
@@ -813,7 +813,7 @@ export default {
methods
:
{
methods
:
{
objectSpanMethod
({
row
,
column
,
rowIndex
,
columnIndex
})
{
objectSpanMethod
({
row
,
column
,
rowIndex
,
columnIndex
})
{
// column没有prop,只能用label判断
// column没有prop,只能用label判断
const
mergeColNameList
=
[
'序号'
,
'主订单编号'
,
'交易参考号'
,
'客户姓名'
,
'转化员姓名'
,
'销售顾问'
,
'支付方式'
,
'支付时间'
,
'分账对象'
,
'二级流量方'
,
'整单规则'
,
`
${
this
.
pageName
==
'insurance'
?
'流量费'
:
'分账金额'
}
/元`
,
'分账类型'
,
'操作'
]
const
mergeColNameList
=
[
'序号'
,
'主订单编号'
,
'交易参考号'
,
'客户姓名'
,
'转化员姓名'
,
'销售顾问'
,
'支付方式'
,
'支付时间'
,
'分账对象'
,
'二级流量方'
,
'整单规则'
,
`流量费
/元`
,
'分账类型'
,
'操作'
]
return
{
return
{
rowspan
:
mergeColNameList
.
includes
(
column
.
label
)
?
row
.
rowspan
:
column
.
label
==
'套餐规则'
?
row
.
setMealRowspan
:
1
,
rowspan
:
mergeColNameList
.
includes
(
column
.
label
)
?
row
.
rowspan
:
column
.
label
==
'套餐规则'
?
row
.
setMealRowspan
:
1
,
colspan
:
1
colspan
:
1
...
@@ -836,7 +836,7 @@ export default {
...
@@ -836,7 +836,7 @@ export default {
for
(
let
j
=
0
;
j
<
tr
.
children
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
tr
.
children
.
length
;
j
++
)
{
const
td
=
tr
.
children
[
j
]
const
td
=
tr
.
children
[
j
]
if
(
tr
.
children
.
length
-
1
==
j
)
{
if
(
tr
.
children
.
length
-
1
==
j
)
{
console
.
log
(
tr
.
children
[
j
],
11111
)
//
console.log(tr.children[j], 11111)
}
}
//#region
//#region
td
.
style
.
background
=
'#f4f4fc'
td
.
style
.
background
=
'#f4f4fc'
...
@@ -911,7 +911,7 @@ export default {
...
@@ -911,7 +911,7 @@ export default {
}
}
},
},
setClass
({
row
,
column
,
rowIndex
,
columnIndex
})
{
setClass
({
row
,
column
,
rowIndex
,
columnIndex
})
{
const
mergeColNameList
=
[
'主订单编号'
,
'交易参考号'
,
'客户姓名'
,
'转化员姓名'
,
'销售顾问'
,
'支付方式'
,
'支付时间'
,
'分账对象'
,
'二级流量方'
,
'整单规则'
,
`
${
this
.
pageName
==
'insurance'
?
'流量费'
:
'分账金额'
}
/元`
,
'分账类型'
]
const
mergeColNameList
=
[
'主订单编号'
,
'交易参考号'
,
'客户姓名'
,
'转化员姓名'
,
'销售顾问'
,
'支付方式'
,
'支付时间'
,
'分账对象'
,
'二级流量方'
,
'整单规则'
,
`
流量费
/元`
,
'分账类型'
]
if
(
columnIndex
==
1
)
return
'add-right-border'
if
(
columnIndex
==
1
)
return
'add-right-border'
return
(
mergeColNameList
.
includes
(
column
.
label
)
&&
row
.
rowspan
>
1
)
||
(
column
.
label
==
'套餐规则'
&&
row
.
setMealRowspan
>
1
)
?
'add-border'
:
''
return
(
mergeColNameList
.
includes
(
column
.
label
)
&&
row
.
rowspan
>
1
)
||
(
column
.
label
==
'套餐规则'
&&
row
.
setMealRowspan
>
1
)
?
'add-border'
:
''
},
},
...
@@ -1164,7 +1164,7 @@ export default {
...
@@ -1164,7 +1164,7 @@ export default {
const
_obj
=
{
const
_obj
=
{
...
item
,
...
item
,
tableNum
:
_idx
+
1
,
tableNum
:
_idx
+
(
para
.
pageNum
-
1
)
*
para
.
pageSize
+
1
,
rowspan
:
1
,
rowspan
:
1
,
setMealRowspan
:
eleIdx
==
0
?
subOrderList
.
length
:
0
,
setMealRowspan
:
eleIdx
==
0
?
subOrderList
.
length
:
0
,
id
,
id
,
...
...
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