Commit 2d805f8e by zhangxw

积分商城场景

1 parent 9ba232c6
......@@ -315,3 +315,9 @@ export function insertOrUpdateDiversionMerchantRef(data) {
data.method = `${path2}diversionMerchant.insertOrUpdateDiversionMerchantRef`
return request(data, "post")
}
// 获取服务中心所有门店 支持园区店关键字搜索
export function getAccountMerchantList(data) {
data.method = `${path}merchant.page.withYq`
return request(data, "post")
}
......@@ -218,12 +218,12 @@
</el-button>
</el-form-item>
</el-form>
<!-- store-api (1精品升级 2次新车转化 3售后众筹 查询嘀加的门店数据 getList)(0会员/权益升级 查询账户中心所有4s店 serviceGetMerchantList) -->
<!-- store-api (1精品升级 2次新车转化 3售后众筹 查询嘀加的门店数据 getList)(0会员/权益升级 4积分商城 查询账户中心所有4s店 getAccountMerchantList) -->
<relate-store-dialog
v-if="relateStoreVisible"
ref="formRelateStore"
:relate-store-visible="relateStoreVisible"
:store-api="formData.sceneType ? getList : serviceGetMerchantList"
:store-api="[1, 2, 3].includes(formData.sceneType) ? getList : getAccountMerchantList"
:store-search-form="storeSearchForm"
:store-selected="storeSelected"
:selected-scene="formData.sceneType"
......@@ -271,7 +271,7 @@ import { upgradeSupplyModeList, crowdUpgradeSupplyModeList } from "../constants/
import { baseConfig } from "@/main"
import relateStoreDialog from "./relateStoreDialog.vue"
import relateStoreTable from './relateStoreTable.vue'
import { getList, serviceGetMerchantList } from '@/api/merchant'
import { getList, getAccountMerchantList } from '@/api/merchant'
export default {
name: 'groundingForm',
components: {
......@@ -282,7 +282,7 @@ export default {
data() {
return {
getList,
serviceGetMerchantList,
getAccountMerchantList,
equitySceneType: baseConfig.equitySceneType || [],
membraneTypeList,
formData: {},
......
......@@ -128,7 +128,7 @@ export default {
...this.storeSearchForm,
currentPage: this.currentPage,
pageSize: this.pageSize,
scene: this.selectedScene ? this.selectedScene : ''
scene: this.selectedScene
}).then(res => {
res?.list?.forEach(val => { // 账户中心门店返回商户号字段是merchantNo
if (val.merchantNo) val.merchantId = val.merchantNo
......
......@@ -98,6 +98,10 @@ export default {
confId: 0,
confLabel: '会员权益/升级',
// disabled: true
},
{
confId: 4,
confLabel: '积分商城'
}
]
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!