Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-coupon
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 cd5bbc89
authored
Jul 03, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 请求接口bug修复
1 parent
7eb00eae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
src/api/modules/coupons.js
src/views/coupons/components/relateStoreDialog.vue
src/api/modules/coupons.js
View file @
cd5bbc8
...
@@ -129,4 +129,4 @@ const exportCustomerCoupon = params => {
...
@@ -129,4 +129,4 @@ const exportCustomerCoupon = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
export
default
{
getListApi
,
getDetailListApi
,
getTypeList
,
addCouponApi
,
updateCouponApi
,
deleteCouponApi
,
commodityAddSeviceMerchant
,
getDistinctColum
,
exportCoupon
,
exportCustomerCoupon
}
export
default
{
getListApi
,
getDetailListApi
,
getTypeList
,
addCouponApi
,
updateCouponApi
,
deleteCouponApi
,
commodityAddSeviceMerchant
,
getDistinctColum
,
exportCoupon
,
exportCustomerCoupon
,
pageServiceMerchantRef
}
src/views/coupons/components/relateStoreDialog.vue
View file @
cd5bbc8
...
@@ -9,12 +9,12 @@
...
@@ -9,12 +9,12 @@
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
:selectable=
"selectable"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
:selectable=
"selectable"
/>
<el-table-column
v-if=
"sourcePage != 'serviceStore'"
prop=
"yqMerchantName"
label=
"园区店名称"
align=
"center"
>
<el-table-column
v-if=
"sourcePage != 'serviceStore'"
prop=
"yqMerchantName"
label=
"园区店名称"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
:class=
"
{
'red': !scope.row.isSetUpgradeSettleRule
&&
needTip.includes(sourcePage)
}">
{{
scope
.
row
.
yqMerchantName
}}
</span>
<span
:class=
"
{
red: !scope.row.isSetUpgradeSettleRule
&&
needTip.includes(sourcePage)
}">
{{
scope
.
row
.
yqMerchantName
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"merchantName"
label=
"4S店名称"
align=
"center"
>
<el-table-column
prop=
"merchantName"
label=
"4S店名称"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
:class=
"
{
'red': !scope.row.isSetUpgradeSettleRule
&&
needTip.includes(sourcePage)
}">
{{
scope
.
row
.
merchantName
}}
</span>
<span
:class=
"
{
red: !scope.row.isSetUpgradeSettleRule
&&
needTip.includes(sourcePage)
}">
{{
scope
.
row
.
merchantName
}}
</span>
<el-tooltip
v-if=
"!scope.row.isSetUpgradeSettleRule"
popper-class=
"tooltip-class"
effect=
"dark"
content=
"该门店无配置财务分润规则,无法关联!"
placement=
"top"
>
<el-tooltip
v-if=
"!scope.row.isSetUpgradeSettleRule"
popper-class=
"tooltip-class"
effect=
"dark"
content=
"该门店无配置财务分润规则,无法关联!"
placement=
"top"
>
<span
v-if=
"!scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)"
class=
"tip-icon"
>
?
</span>
<span
v-if=
"!scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)"
class=
"tip-icon"
>
?
</span>
</el-tooltip>
</el-tooltip>
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
},
},
storeApi
:
{
storeApi
:
{
type
:
Function
,
type
:
Function
,
default
:
()
=>
{
}
default
:
()
=>
{}
},
},
storeSelected
:
{
storeSelected
:
{
type
:
Array
,
type
:
Array
,
...
@@ -74,7 +74,7 @@ export default {
...
@@ -74,7 +74,7 @@ export default {
},
},
storeSearchForm
:
{
storeSearchForm
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{}
}
}
// 去掉表格中某些字段
// 去掉表格中某些字段
// noTableField: {
// noTableField: {
...
@@ -111,6 +111,16 @@ export default {
...
@@ -111,6 +111,16 @@ export default {
currentPage
:
this
.
currentPage
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
}).
then
(
res
=>
{
}).
then
(
res
=>
{
res
.
list
=
res
.
list
.
map
(
item
=>
{
let
yqMerchant
=
item
?.
sceneList
[
0
]?.
yqMerchant
||
{}
// console.log(yqMerchant)
item
=
{
yqMerchantName
:
yqMerchant
?.
merchantName
,
yqMerchantId
:
yqMerchant
?.
merchantId
,
...
item
}
return
item
})
this
.
selectingData
=
res
.
list
this
.
selectingData
=
res
.
list
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -126,9 +136,9 @@ export default {
...
@@ -126,9 +136,9 @@ export default {
this
.
selectingData
.
forEach
(
item
=>
{
this
.
selectingData
.
forEach
(
item
=>
{
var
isExit
=
this
.
selectedData
.
findIndex
(
subItem
=>
subItem
.
merchantId
===
item
.
merchantId
)
var
isExit
=
this
.
selectedData
.
findIndex
(
subItem
=>
subItem
.
merchantId
===
item
.
merchantId
)
var
isServed
=
item
.
hasOwnProperty
(
'beServed'
)
?
item
.
beServed
:
false
var
isServed
=
item
.
hasOwnProperty
(
'beServed'
)
?
item
.
beServed
:
false
if
(
selection
.
length
&&
(
isExit
===
-
1
)
&&
!
isServed
)
{
if
(
selection
.
length
&&
isExit
===
-
1
&&
!
isServed
)
{
this
.
selectedData
.
push
(
item
)
this
.
selectedData
.
push
(
item
)
}
else
if
(
!
selection
.
length
&&
(
isExit
!==
-
1
)
)
{
}
else
if
(
!
selection
.
length
&&
isExit
!==
-
1
)
{
this
.
selectedData
.
splice
(
isExit
,
1
)
this
.
selectedData
.
splice
(
isExit
,
1
)
}
}
})
})
...
@@ -149,7 +159,6 @@ export default {
...
@@ -149,7 +159,6 @@ export default {
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.relateStore
.table
{
.relateStore
.table
{
...
...
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