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 fe312553
authored
May 28, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复精品升级bug
1 parent
5f3d1b98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
src/views/inSale/upgradeOrder.vue
src/views/inSale/upgradeOrder.vue
View file @
fe31255
...
...
@@ -26,7 +26,7 @@
</div>
<!-- :span-method="objectSpanMethod" -->
<div
class=
"table_wrap"
>
<GLTable
:cell-class-name=
"setClass"
@
cell-mouse-leave=
"handleCellMouseLeave"
@
cell-mouse-enter=
"handleCellMouseEnter"
:span-method=
"objectSpanMethod"
v-if=
"dynamicTableShow"
ref=
"subTable"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:tableParams=
"newTableParams"
@
refreshTable=
"toGetCouponsList"
>
<GLTable
:cell-class-name=
"setClass"
:hasNum=
"false"
@
cell-mouse-leave=
"handleCellMouseLeave"
@
cell-mouse-enter=
"handleCellMouseEnter"
:span-method=
"objectSpanMethod"
v-if=
"dynamicTableShow"
ref=
"subTable"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:tableParams=
"newTableParams"
@
refreshTable=
"toGetCouponsList"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
</div>
...
...
@@ -594,6 +594,12 @@ export default {
tableOption
:
false
,
tableColumns
:
[
{
label
:
'序号'
,
prop
:
'tableNum'
,
width
:
'80px'
,
align
:
'center'
},
{
label
:
'订单信息'
,
align
:
'center'
,
children
:
[
...
...
@@ -801,7 +807,7 @@ export default {
methods
:
{
objectSpanMethod
({
row
,
column
,
rowIndex
,
columnIndex
})
{
// column没有prop,只能用label判断
const
mergeColNameList
=
[
'主订单编号'
,
'交易参考号'
,
'客户姓名'
,
'转化员姓名'
,
'销售顾问'
,
'支付方式'
,
'支付时间'
,
'分账对象'
,
'二级流量方'
,
'整单规则'
,
'分账金额/元'
,
'分账类型'
,
'操作'
]
const
mergeColNameList
=
[
'
序号'
,
'
主订单编号'
,
'交易参考号'
,
'客户姓名'
,
'转化员姓名'
,
'销售顾问'
,
'支付方式'
,
'支付时间'
,
'分账对象'
,
'二级流量方'
,
'整单规则'
,
'分账金额/元'
,
'分账类型'
,
'操作'
]
return
{
rowspan
:
mergeColNameList
.
includes
(
column
.
label
)
?
row
.
rowspan
:
column
.
label
==
'套餐规则'
?
row
.
setMealRowspan
:
1
,
colspan
:
1
...
...
@@ -900,6 +906,7 @@ export default {
},
setClass
({
row
,
column
,
rowIndex
,
columnIndex
})
{
const
mergeColNameList
=
[
'主订单编号'
,
'交易参考号'
,
'客户姓名'
,
'转化员姓名'
,
'销售顾问'
,
'支付方式'
,
'支付时间'
,
'分账对象'
,
'二级流量方'
,
'整单规则'
,
'分账金额/元'
,
'分账类型'
]
if
(
columnIndex
==
1
)
return
'add-right-border'
return
(
mergeColNameList
.
includes
(
column
.
label
)
&&
row
.
rowspan
>
1
)
||
(
column
.
label
==
'套餐规则'
&&
row
.
setMealRowspan
>
1
)
?
'add-border'
:
''
},
/**获取商户列表 */
...
...
@@ -977,6 +984,12 @@ export default {
tableOption
:
false
,
tableColumns
:
[
{
label
:
'序号'
,
prop
:
'tableNum'
,
width
:
'80px'
,
align
:
'center'
},
{
label
:
'订单信息'
,
align
:
'center'
,
children
:
[]
...
...
@@ -1009,7 +1022,7 @@ export default {
if
(
item
.
align
)
{
obj
.
align
=
item
.
align
}
newTableParams
.
tableColumns
[
item
.
level
-
1
].
children
.
push
(
obj
)
newTableParams
.
tableColumns
[
item
.
level
].
children
.
push
(
obj
)
})
this
.
newTableParams
=
newTableParams
this
.
$refs
.
subTable
.
componentKey
=
Date
.
now
()
...
...
@@ -1125,7 +1138,7 @@ export default {
res
.
list
=
res
&&
res
.
list
?
res
.
list
:
[]
let
tableData
=
[]
const
TYPELIST
=
{
0
:
'--'
,
1
:
'毛利'
,
2
:
'收入'
,
3
:
'固定'
,
8
:
'(收入-自定义其他费用)'
,
9
:
'(收入-其他费用)'
}
res
.
list
.
forEach
(
item
=>
{
res
.
list
.
forEach
(
(
item
,
_idx
)
=>
{
const
packageOrderList
=
item
.
packageOrderList
||
[]
const
orderRuleObj
=
item
.
mainProfitAllocation
||
{}
// 整单规则取值对象
packageOrderList
.
forEach
((
subItem
,
sunIdx
)
=>
{
...
...
@@ -1145,6 +1158,7 @@ export default {
const
_obj
=
{
...
item
,
tableNum
:
_idx
+
1
,
rowspan
:
1
,
setMealRowspan
:
eleIdx
==
0
?
subOrderList
.
length
:
0
,
id
,
...
...
@@ -1317,6 +1331,12 @@ export default {
border-collapse
:
collapse
;
}
/
deep
/
.el-table__row
{
td
:
first-child
:
after
{
content
:
none
!important
;
}
.add-right-border
{
border-right
:
1px
solid
#ebeef5
;
}
.add-border
{
border-right
:
1px
solid
#ebeef5
;
border-left
:
1px
solid
#ebeef5
;
...
...
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