Commit cd5bbc89 by 张立顺

fix 请求接口bug修复

1 parent 7eb00eae
......@@ -129,4 +129,4 @@ const exportCustomerCoupon = params => {
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 }
......@@ -9,12 +9,12 @@
<el-table-column type="selection" width="55" align="center" :selectable="selectable" />
<el-table-column v-if="sourcePage != 'serviceStore'" prop="yqMerchantName" label="园区店名称" align="center">
<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>
</el-table-column>
<el-table-column prop="merchantName" label="4S店名称" align="center">
<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">
<span v-if="!scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)" class="tip-icon">?</span>
</el-tooltip>
......@@ -66,7 +66,7 @@ export default {
},
storeApi: {
type: Function,
default: () => { }
default: () => {}
},
storeSelected: {
type: Array,
......@@ -74,7 +74,7 @@ export default {
},
storeSearchForm: {
type: Object,
default: () => { }
default: () => {}
}
// 去掉表格中某些字段
// noTableField: {
......@@ -111,6 +111,16 @@ export default {
currentPage: this.currentPage,
pageSize: this.pageSize
}).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.total = res.total
this.$nextTick(() => {
......@@ -126,9 +136,9 @@ export default {
this.selectingData.forEach(item => {
var isExit = this.selectedData.findIndex(subItem => subItem.merchantId === item.merchantId)
var isServed = item.hasOwnProperty('beServed') ? item.beServed : false
if (selection.length && (isExit === -1) && !isServed) {
if (selection.length && isExit === -1 && !isServed) {
this.selectedData.push(item)
} else if (!selection.length && (isExit !== -1)) {
} else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1)
}
})
......@@ -149,7 +159,6 @@ export default {
}
}
}
</script>
<style lang="scss">
.relateStore .table {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!