Commit b941c359 by zhangxw

功能精简

1 parent 466a84b3
...@@ -225,27 +225,27 @@ ...@@ -225,27 +225,27 @@
</el-form> </el-form>
<!-- store-api (1精品升级 2次新车转化 3售后众筹 查询嘀加的门店数据 getList)(0会员/权益升级 4积分商城 查询账户中心所有4s店 getAccountMerchantList --> <!-- store-api (1精品升级 2次新车转化 3售后众筹 查询嘀加的门店数据 getList)(0会员/权益升级 4积分商城 查询账户中心所有4s店 getAccountMerchantList -->
<relate-store-dialog v-if="relateStoreVisible" ref="formRelateStore" :relate-store-visible="relateStoreVisible" <relate-store-dialog v-if="relateStoreVisible" ref="formRelateStore" :relate-store-visible="relateStoreVisible"
:store-api="[1, 2, 3].includes(formData.sceneType) ? getList : getAccountMerchantList" :store-api="serviceGetMerchantList"
:store-search-form="storeSearchForm" :store-selected="storeSelected" :selected-scene="formData.sceneType" :store-search-form="storeSearchForm" :store-selected="storeSelected" :selected-scene="formData.sceneType"
@handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose"> @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
<el-row slot> <el-row slot>
<el-form :model="storeSearchForm" ref="relate" :inline="true"> <el-form :model="storeSearchForm" ref="relate" :inline="true">
<el-form-item label="门店名称:"> <el-form-item label="门店名称:">
<el-input v-model.trim="storeSearchForm.merchantName" placeholder="门店名称" @keydown.native="handleStoreInput" <el-input v-model.trim="storeSearchForm.merchantIdName" placeholder="门店名称" @keydown.native="handleStoreInput"
clearable /> clearable />
</el-form-item> </el-form-item>
<el-form-item label="门店商户号:"> <el-form-item label="门店商户号:">
<el-input v-model.trim="storeSearchForm.merchantId" placeholder="门店商户号" @keydown.native="handleStoreInput" <el-input v-model.trim="storeSearchForm.merchantId" placeholder="门店商户号" @keydown.native="handleStoreInput"
clearable /> clearable />
</el-form-item> </el-form-item>
<el-form-item label="服务对接:"> <!-- <el-form-item label="服务对接:">
<el-input v-model.trim="storeSearchForm.yqMerchantName" placeholder="服务对接" @keydown.native="handleStoreInput" <el-input v-model.trim="storeSearchForm.yqMerchantName" placeholder="服务对接" @keydown.native="handleStoreInput"
clearable /> clearable />
</el-form-item> </el-form-item>
<el-form-item label="服务对接商户号:"> <el-form-item label="服务对接商户号:">
<el-input v-model.trim="storeSearchForm.yqMerchantId" placeholder="服务对接商户号" @keydown.native="handleStoreInput" <el-input v-model.trim="storeSearchForm.yqMerchantId" placeholder="服务对接商户号" @keydown.native="handleStoreInput"
clearable /> clearable />
</el-form-item> </el-form-item> -->
<el-button type="primary" @click="handleSearchStore">搜索</el-button> <el-button type="primary" @click="handleSearchStore">搜索</el-button>
</el-form> </el-form>
</el-row> </el-row>
...@@ -267,7 +267,7 @@ import { upgradeSupplyModeList, crowdUpgradeSupplyModeList } from "../constants/ ...@@ -267,7 +267,7 @@ import { upgradeSupplyModeList, crowdUpgradeSupplyModeList } from "../constants/
import { baseConfig } from "@/main" import { baseConfig } from "@/main"
import relateStoreDialog from "./relateStoreDialog.vue" import relateStoreDialog from "./relateStoreDialog.vue"
import relateStoreTable from './relateStoreTable.vue' import relateStoreTable from './relateStoreTable.vue'
import { getList, getAccountMerchantList } from '@/api/merchant' import { getList, getAccountMerchantList, serviceGetMerchantList } from '@/api/merchant'
import selectGoodsDialog from '../../components/selectGoodsDialog.vue' import selectGoodsDialog from '../../components/selectGoodsDialog.vue'
import ellipsisPopover from '../../components/ellipsisPopover.vue' import ellipsisPopover from '../../components/ellipsisPopover.vue'
import { filterSpecsStr } from '../../filterOption' import { filterSpecsStr } from '../../filterOption'
...@@ -284,6 +284,7 @@ export default { ...@@ -284,6 +284,7 @@ export default {
return { return {
getList, getList,
getAccountMerchantList, getAccountMerchantList,
serviceGetMerchantList,
equitySceneType: baseConfig.equitySceneType || [], equitySceneType: baseConfig.equitySceneType || [],
extendedPosiType: baseConfig.extendedPosiType || [], // 延保类 extendedPosiType: baseConfig.extendedPosiType || [], // 延保类
membraneTypeList: baseConfig.membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
...@@ -334,10 +335,10 @@ export default { ...@@ -334,10 +335,10 @@ export default {
storeSelected: [], storeSelected: [],
relateStoreVisible: false, relateStoreVisible: false,
storeSearchForm: { storeSearchForm: {
merchantName: '', merchantIdName: '',
merchantId: '', merchantId: '',
yqMerchantName: '', // yqMerchantName: '',
yqMerchantId: '' // yqMerchantId: ''
}, },
selectDisabled: false, selectDisabled: false,
dialogObj: {}, dialogObj: {},
...@@ -633,9 +634,9 @@ export default { ...@@ -633,9 +634,9 @@ export default {
// 选择上架门店 // 选择上架门店
handleClick() { handleClick() {
const _this = this const _this = this
if (_this.filterEmpty(_this.formData.sceneType)) { // if (_this.filterEmpty(_this.formData.sceneType)) {
return this.$message.warning('请选择业务场景') // return this.$message.warning('请选择业务场景')
} // }
_this.storeSelected = deepClone(_this.formData.merchantGoodsRefList) _this.storeSelected = deepClone(_this.formData.merchantGoodsRefList)
_this.relateStoreVisible = true _this.relateStoreVisible = true
}, },
...@@ -698,36 +699,36 @@ export default { ...@@ -698,36 +699,36 @@ export default {
_formData.merchantName = _tempVal.merchantName _formData.merchantName = _tempVal.merchantName
} }
// 切换业务场景 将选中的上架门店清空 // 切换业务场景 将选中的上架门店清空
if (targetItem.name === 'sceneType') { // if (targetItem.name === 'sceneType') {
const _formData = this.formData // const _formData = this.formData
if (!this.filterEmpty(this.oldSceneType)) { // if (!this.filterEmpty(this.oldSceneType)) {
// 清空门店弹窗搜索条件 // // 清空门店弹窗搜索条件
this.storeSearchForm = { // this.storeSearchForm = {
merchantName: '', // merchantName: '',
merchantId: '', // merchantId: '',
yqMerchantName: '', // yqMerchantName: '',
yqMerchantId: '' // yqMerchantId: ''
} // }
if (_formData.merchantGoodsRefList?.length) { // if (_formData.merchantGoodsRefList?.length) {
this.$confirm('切换业务场景,将清空上架门店,是否继续', '提示', { // this.$confirm('切换业务场景,将清空上架门店,是否继续', '提示', {
confirmButtonText: '确定', // confirmButtonText: '确定',
type: 'warning' // type: 'warning'
}).then(() => { // }).then(() => {
_formData.sceneType = value // _formData.sceneType = value
this.$nextTick(() => { // this.$nextTick(() => {
this.$refs.selectRefs_sceneType[0].blur() // this.$refs.selectRefs_sceneType[0].blur()
_formData.merchantGoodsRefList = [] // _formData.merchantGoodsRefList = []
this.$forceUpdate() // this.$forceUpdate()
}) // })
}).catch(() => { // }).catch(() => {
_formData.sceneType = this.oldSceneType // _formData.sceneType = this.oldSceneType
this.$nextTick(() => { // this.$nextTick(() => {
this.$refs.selectRefs_sceneType[0].blur() // this.$refs.selectRefs_sceneType[0].blur()
}) // })
}) // })
} // }
} // }
} // }
}, },
handleClose() { handleClose() {
this.$emit('handleClose') this.$emit('handleClose')
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="merchantId" label="门店商户号" align="center"> <el-table-column prop="merchantId" label="门店商户号" align="center">
</el-table-column> </el-table-column>
<el-table-column <!-- <el-table-column
prop="yqMerchantName" prop="yqMerchantName"
label="服务对接" label="服务对接"
align="center"> align="center">
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
prop="yqMerchantId" prop="yqMerchantId"
label="服务对接商户号" label="服务对接商户号"
align="center"> align="center">
</el-table-column> </el-table-column> -->
</el-table> </el-table>
<el-pagination <el-pagination
small small
......
...@@ -277,7 +277,11 @@ export default { ...@@ -277,7 +277,11 @@ export default {
} }
} }
if (v.name == 'sceneType') { // 业务场景 if (v.name == 'sceneType') { // 业务场景
v.optionList = sceneCodeList // v.optionList = sceneCodeList
v.optionList = [
{ confId: 1, confValue: "精品升级" },
{ confId: 0, confValue: "会员权益/升级" }
]
} }
}) })
}) })
......
...@@ -284,15 +284,17 @@ export default { ...@@ -284,15 +284,17 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confValue', optionLabel: 'confValue',
optionsName: 'statusList' optionsName: 'statusList'
}, { },
label: '服务对接', // {
name: 'yqMerchantId', // label: '服务对接',
type: 'select', // name: 'yqMerchantId',
optionList: [], // type: 'select',
optionId: 'yqMerchantId', // optionList: [],
optionLabel: 'yqMerchantName', // optionId: 'yqMerchantId',
optionsName: 'yqMerchantServiceList' // optionLabel: 'yqMerchantName',
}, { // optionsName: 'yqMerchantServiceList'
// },
{
label: '上架ID', label: '上架ID',
name: 'merchantGoodsCode', name: 'merchantGoodsCode',
type: 'input', type: 'input',
...@@ -434,14 +436,15 @@ export default { ...@@ -434,14 +436,15 @@ export default {
type: 'slot', type: 'slot',
addHtml: 'merchantName', addHtml: 'merchantName',
width: 140 width: 140
}, {
label: '服务对接',
prop: 'yqMerchantName',
type: 'slot',
addHtml: 'yqMerchantName',
width: 140
}, },
// { // {
// label: '服务对接',
// prop: 'yqMerchantName',
// type: 'slot',
// addHtml: 'yqMerchantName',
// width: 140
// },
// {
// label: '质保卡类型', // label: '质保卡类型',
// prop: 'warrantyType', // prop: 'warrantyType',
// formatter: (cellValue) => { // formatter: (cellValue) => {
...@@ -588,18 +591,22 @@ export default { ...@@ -588,18 +591,22 @@ export default {
this.getBaseData() this.getBaseData()
var allOpt = { confId: '', confValue: '全部' } var allOpt = { confId: '', confValue: '全部' }
this.baseData.statusList.unshift(allOpt) this.baseData.statusList.unshift(allOpt)
this.baseData.sceneCodeList = deepClone(sceneCodeList) // this.baseData.sceneCodeList = deepClone(sceneCodeList)
this.baseData.sceneCodeList = [
{ confId: 1, confValue: "精品升级" },
{ confId: 0, confValue: "会员权益/升级" }
]
this.baseData.sceneCodeList.unshift(allOpt) this.baseData.sceneCodeList.unshift(allOpt)
this.baseData.financeCheckFlagList.unshift(allOpt) this.baseData.financeCheckFlagList.unshift(allOpt)
// 获取园区店 // 获取园区店
getParkStore({}).then(res => { // getParkStore({}).then(res => {
res.forEach(item => { // res.forEach(item => {
item.yqMerchantId = item.merchantNo // item.yqMerchantId = item.merchantNo
item.yqMerchantName = item.merchantName // item.yqMerchantName = item.merchantName
}) // })
this.baseData.yqMerchantServiceList = res // this.baseData.yqMerchantServiceList = res
this.getOptionsList() // this.getOptionsList()
}) // })
// 获取门店 // 获取门店
getShopMerchantList({}).then(res => { getShopMerchantList({}).then(res => {
this.baseData.merchantServiceList = res this.baseData.merchantServiceList = res
......
...@@ -225,27 +225,27 @@ ...@@ -225,27 +225,27 @@
</el-form> </el-form>
<!-- store-api (1精品升级 2次新车转化 3售后众筹 查询嘀加的门店数据 getList)(0会员/权益升级 4积分商城 查询账户中心所有4s店 getAccountMerchantList --> <!-- store-api (1精品升级 2次新车转化 3售后众筹 查询嘀加的门店数据 getList)(0会员/权益升级 4积分商城 查询账户中心所有4s店 getAccountMerchantList -->
<relate-store-dialog v-if="relateStoreVisible" ref="formRelateStore" :relate-store-visible="relateStoreVisible" <relate-store-dialog v-if="relateStoreVisible" ref="formRelateStore" :relate-store-visible="relateStoreVisible"
:store-api="[1, 2, 3].includes(formData.sceneType) ? getList : getAccountMerchantList" :store-api="serviceGetMerchantList"
:store-search-form="storeSearchForm" :store-selected="storeSelected" :selected-scene="formData.sceneType" :store-search-form="storeSearchForm" :store-selected="storeSelected" :selected-scene="formData.sceneType"
@handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose"> @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
<el-row slot> <el-row slot>
<el-form :model="storeSearchForm" ref="relate" :inline="true"> <el-form :model="storeSearchForm" ref="relate" :inline="true">
<el-form-item label="门店名称:"> <el-form-item label="门店名称:">
<el-input v-model.trim="storeSearchForm.merchantName" placeholder="门店名称" @keydown.native="handleStoreInput" <el-input v-model.trim="storeSearchForm.merchantIdName" placeholder="门店名称" @keydown.native="handleStoreInput"
clearable /> clearable />
</el-form-item> </el-form-item>
<el-form-item label="门店商户号:"> <el-form-item label="门店商户号:">
<el-input v-model.trim="storeSearchForm.merchantId" placeholder="门店商户号" @keydown.native="handleStoreInput" <el-input v-model.trim="storeSearchForm.merchantId" placeholder="门店商户号" @keydown.native="handleStoreInput"
clearable /> clearable />
</el-form-item> </el-form-item>
<el-form-item label="服务对接:"> <!-- <el-form-item label="服务对接:">
<el-input v-model.trim="storeSearchForm.yqMerchantName" placeholder="服务对接" @keydown.native="handleStoreInput" <el-input v-model.trim="storeSearchForm.yqMerchantName" placeholder="服务对接" @keydown.native="handleStoreInput"
clearable /> clearable />
</el-form-item> </el-form-item>
<el-form-item label="服务对接商户号:"> <el-form-item label="服务对接商户号:">
<el-input v-model.trim="storeSearchForm.yqMerchantId" placeholder="服务对接商户号" @keydown.native="handleStoreInput" <el-input v-model.trim="storeSearchForm.yqMerchantId" placeholder="服务对接商户号" @keydown.native="handleStoreInput"
clearable /> clearable />
</el-form-item> </el-form-item> -->
<el-button type="primary" @click="handleSearchStore">搜索</el-button> <el-button type="primary" @click="handleSearchStore">搜索</el-button>
</el-form> </el-form>
</el-row> </el-row>
...@@ -265,7 +265,7 @@ import { uploadImg, uploadPDF } from '@/api/sys.base' ...@@ -265,7 +265,7 @@ import { uploadImg, uploadPDF } from '@/api/sys.base'
import { baseConfig } from "@/main" import { baseConfig } from "@/main"
import relateStoreDialog from "../../grounding/components/relateStoreDialog.vue" import relateStoreDialog from "../../grounding/components/relateStoreDialog.vue"
import relateStoreTable from '../../grounding/components/relateStoreTable.vue' import relateStoreTable from '../../grounding/components/relateStoreTable.vue'
import { getList, getAccountMerchantList } from '@/api/merchant' import { getList, getAccountMerchantList, serviceGetMerchantList } from '@/api/merchant'
import { upgradeSupplyModeList, crowdUpgradeSupplyModeList, packageGoodsForm } from "../../grounding/constants/data" import { upgradeSupplyModeList, crowdUpgradeSupplyModeList, packageGoodsForm } from "../../grounding/constants/data"
import selectGoodsDialog from '../../components/selectGoodsDialog.vue' import selectGoodsDialog from '../../components/selectGoodsDialog.vue'
import ellipsisPopover from '../../components/ellipsisPopover.vue' import ellipsisPopover from '../../components/ellipsisPopover.vue'
...@@ -283,6 +283,7 @@ export default { ...@@ -283,6 +283,7 @@ export default {
return { return {
getList, getList,
getAccountMerchantList, getAccountMerchantList,
serviceGetMerchantList,
equitySceneType: baseConfig.equitySceneType || [], equitySceneType: baseConfig.equitySceneType || [],
extendedPosiType: baseConfig.extendedPosiType || [], // 延保类 extendedPosiType: baseConfig.extendedPosiType || [], // 延保类
membraneTypeList: baseConfig.membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
...@@ -310,10 +311,10 @@ export default { ...@@ -310,10 +311,10 @@ export default {
storeSelected: [], storeSelected: [],
relateStoreVisible: false, relateStoreVisible: false,
storeSearchForm: { storeSearchForm: {
merchantName: '', merchantIdName: '',
merchantId: '', merchantId: '',
yqMerchantName: '', // yqMerchantName: '',
yqMerchantId: '' // yqMerchantId: ''
}, },
uploadFileList: [], uploadFileList: [],
imageFileArr: [], imageFileArr: [],
...@@ -662,9 +663,9 @@ export default { ...@@ -662,9 +663,9 @@ export default {
// 选择上架门店 // 选择上架门店
handleClick() { handleClick() {
const _this = this const _this = this
if (_this.filterEmpty(_this.formData.sceneType)) { // if (_this.filterEmpty(_this.formData.sceneType)) {
return this.$message.warning('请选择业务场景') // return this.$message.warning('请选择业务场景')
} // }
_this.storeSelected = deepClone(_this.formData.merchantGoodsRefList) _this.storeSelected = deepClone(_this.formData.merchantGoodsRefList)
_this.relateStoreVisible = true _this.relateStoreVisible = true
}, },
...@@ -743,36 +744,36 @@ export default { ...@@ -743,36 +744,36 @@ export default {
_formData.merchantName = _tempVal.merchantName _formData.merchantName = _tempVal.merchantName
} }
// 切换业务场景 将选中的上架门店清空 // 切换业务场景 将选中的上架门店清空
if (targetItem.name === 'sceneType') { // if (targetItem.name === 'sceneType') {
const _formData = this.formData // const _formData = this.formData
if (!this.filterEmpty(this.oldSceneType)) { // if (!this.filterEmpty(this.oldSceneType)) {
// 清空门店弹窗搜索条件 // // 清空门店弹窗搜索条件
this.storeSearchForm = { // this.storeSearchForm = {
merchantName: '', // merchantName: '',
merchantId: '', // merchantId: '',
yqMerchantName: '', // yqMerchantName: '',
yqMerchantId: '' // yqMerchantId: ''
} // }
if (_formData.merchantGoodsRefList?.length) { // if (_formData.merchantGoodsRefList?.length) {
this.$confirm('切换业务场景,将清空上架门店,是否继续', '提示', { // this.$confirm('切换业务场景,将清空上架门店,是否继续', '提示', {
confirmButtonText: '确定', // confirmButtonText: '确定',
type: 'warning' // type: 'warning'
}).then(() => { // }).then(() => {
_formData.sceneType = value // _formData.sceneType = value
this.$nextTick(() => { // this.$nextTick(() => {
this.$refs.selectRefs_sceneType[0].blur() // this.$refs.selectRefs_sceneType[0].blur()
_formData.merchantGoodsRefList = [] // _formData.merchantGoodsRefList = []
this.$forceUpdate() // this.$forceUpdate()
}) // })
}).catch(() => { // }).catch(() => {
_formData.sceneType = this.oldSceneType // _formData.sceneType = this.oldSceneType
this.$nextTick(() => { // this.$nextTick(() => {
this.$refs.selectRefs_sceneType[0].blur() // this.$refs.selectRefs_sceneType[0].blur()
}) // })
}) // })
} // }
} // }
} // }
}, },
handleClose() { handleClose() {
this.$emit('handleClose') this.$emit('handleClose')
......
...@@ -213,7 +213,11 @@ export default { ...@@ -213,7 +213,11 @@ export default {
this.editForm.forEach(item => { this.editForm.forEach(item => {
item.formBlock && item.formBlock.forEach(v => { item.formBlock && item.formBlock.forEach(v => {
if (v.name == 'sceneType') { // 业务场景 if (v.name == 'sceneType') { // 业务场景
v.optionList = sceneCodeList // v.optionList = sceneCodeList
v.optionList = [
{ confId: 1, confValue: "精品升级" },
{ confId: 0, confValue: "会员权益/升级" }
]
} }
}) })
}) })
......
...@@ -170,15 +170,17 @@ export default { ...@@ -170,15 +170,17 @@ export default {
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
optionsName: 'merchantServiceList' optionsName: 'merchantServiceList'
}, { },
label: '服务对接', // {
name: 'yqMerchantId', // label: '服务对接',
type: 'select', // name: 'yqMerchantId',
optionList: [], // type: 'select',
optionId: 'yqMerchantId', // optionList: [],
optionLabel: 'yqMerchantName', // optionId: 'yqMerchantId',
optionsName: 'yqMerchantServiceList' // optionLabel: 'yqMerchantName',
}, { // optionsName: 'yqMerchantServiceList'
// },
{
label: '业务场景', label: '业务场景',
name: 'sceneType', name: 'sceneType',
type: 'select', type: 'select',
...@@ -292,13 +294,14 @@ export default { ...@@ -292,13 +294,14 @@ export default {
type: 'slot', type: 'slot',
addHtml: 'merchantName', addHtml: 'merchantName',
width: 100 width: 100
}, {
label: '服务对接',
prop: 'yqMerchantName',
type: 'slot',
addHtml: 'yqMerchantName',
width: 100
}, },
// {
// label: '服务对接',
// prop: 'yqMerchantName',
// type: 'slot',
// addHtml: 'yqMerchantName',
// width: 100
// },
{ {
label: '业务场景', label: '业务场景',
prop: 'sceneType', prop: 'sceneType',
...@@ -372,18 +375,22 @@ export default { ...@@ -372,18 +375,22 @@ export default {
mounted() { mounted() {
var allOpt = { confId: '', confValue: '全部' } var allOpt = { confId: '', confValue: '全部' }
this.baseData.statusList.unshift(allOpt) this.baseData.statusList.unshift(allOpt)
this.baseData.sceneCodeList = deepClone(sceneCodeList) // this.baseData.sceneCodeList = deepClone(sceneCodeList)
this.baseData.sceneCodeList = [
{ confId: 1, confValue: "精品升级" },
{ confId: 0, confValue: "会员权益/升级" }
]
this.baseData.sceneCodeList.unshift(allOpt) this.baseData.sceneCodeList.unshift(allOpt)
this.baseData.financeCheckFlagList.unshift(allOpt) this.baseData.financeCheckFlagList.unshift(allOpt)
// 获取园区店 // 获取园区店
getParkStore({}).then(res => { // getParkStore({}).then(res => {
res.forEach(item => { // res.forEach(item => {
item.yqMerchantId = item.merchantNo // item.yqMerchantId = item.merchantNo
item.yqMerchantName = item.merchantName // item.yqMerchantName = item.merchantName
}) // })
this.baseData.yqMerchantServiceList = res // this.baseData.yqMerchantServiceList = res
this.getOptionsList() // this.getOptionsList()
}) // })
// 获取服务商 // 获取服务商
getShopMerchantList({}).then(res => { getShopMerchantList({}).then(res => {
this.baseData.merchantServiceList = res this.baseData.merchantServiceList = res
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<template> <template>
<div class="indexPage"> <div class="indexPage">
<reportDownloads v-if="curBtnsInfo" /> <reportDownloads v-if="curBtnsInfo" />
<el-row> <el-row :gutter="15">
<el-col :span="24"> <el-col :span="10">
<el-card class="box-card"> <el-card class="box-card" style="height: 430px;">
<div slot="header" class="clearfix card-header"> <div slot="header" class="clearfix card-header">
<span>工作台总览</span> <span>工作台总览</span>
<div class="tabel-desc" v-if="btnFlag" @click="goPer"> <div class="tabel-desc" v-if="btnFlag" @click="goPer">
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</el-radio-group> </el-radio-group>
</div> </div>
<el-row :gutter="40" class="row_one"> <el-row :gutter="40" class="row_one">
<el-col <!-- <el-col
v-if="+accountType !== 7" v-if="+accountType !== 7"
:span="8" :span="8"
style="border-right: 1px solid #e7eaec" style="border-right: 1px solid #e7eaec"
...@@ -45,15 +45,15 @@ ...@@ -45,15 +45,15 @@
<div class="top_card"> <div class="top_card">
<div class="top_card_title">今日待预约</div> <div class="top_card_title">今日待预约</div>
<div class="top_card_main"> <div class="top_card_main">
<span class="red">待上线</span> <span class="red">待上线</span> -->
<!-- <span class="top_card_main_count top_card_primary">{{todayInviteCount}}</span> <!-- <span class="top_card_main_count top_card_primary">{{todayInviteCount}}</span>
<span class="top_card_main_unit">(人)</span> --> <span class="top_card_main_unit">(人)</span> -->
</div> <!-- </div>
</div> </div>
</el-col> </el-col> -->
<el-col :span="+accountType !== 7 ? 16 : 24"> <el-col >
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8"> <!-- <el-col :span="8">
<div class="top_card"> <div class="top_card">
<div class="top_card_title">转化客户概览</div> <div class="top_card_title">转化客户概览</div>
<div class="top_card_main top_card_main_multi"> <div class="top_card_main top_card_main_multi">
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
</div> </div>
</div> </div>
</div> </div>
</el-col> </el-col> -->
<el-col :span="8"> <el-col :span="16">
<div class="top_card"> <div class="top_card">
<div class="top_card_title">订单概览</div> <div class="top_card_title">订单概览</div>
<div class="top_card_main top_card_main_multi"> <div class="top_card_main top_card_main_multi">
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="8"> <!-- <el-col :span="8">
<div class="top_card"> <div class="top_card">
<div class="top_card_title">财务概览</div> <div class="top_card_title">财务概览</div>
<div class="top_card_main top_card_main_multi"> <div class="top_card_main top_card_main_multi">
...@@ -109,14 +109,25 @@ ...@@ -109,14 +109,25 @@
</div> </div>
</div> </div>
</div> </div>
</el-col> </el-col> -->
</el-row> </el-row>
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
</el-col> </el-col>
<el-col :span="14">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>订单数据</span>
</div>
<div>
<div id="orderChart" style="height: 330px" v-show="false" />
<div id="orderProductChart" style="height: 330px" />
</div>
</el-card>
</el-col>
</el-row> </el-row>
<el-row> <!-- <el-row>
<el-col :span="24"> <el-col :span="24">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
...@@ -242,8 +253,8 @@ ...@@ -242,8 +253,8 @@
</el-row> </el-row>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row> -->
<el-row> <!-- <el-row>
<el-col :span="24"> <el-col :span="24">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
...@@ -254,8 +265,8 @@ ...@@ -254,8 +265,8 @@
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row> -->
<el-row :gutter="15"> <!-- <el-row :gutter="15">
<el-col :span="10"> <el-col :span="10">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
...@@ -277,8 +288,8 @@ ...@@ -277,8 +288,8 @@
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row> -->
<el-row :gutter="15"> <!-- <el-row :gutter="15">
<el-col :span="14"> <el-col :span="14">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
...@@ -306,7 +317,7 @@ ...@@ -306,7 +317,7 @@
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row> -->
</div> </div>
</template> </template>
...@@ -418,7 +429,7 @@ export default { ...@@ -418,7 +429,7 @@ export default {
this.getCustomer() this.getCustomer()
}, },
productType(newType) { productType(newType) {
this.drawIncomeProductChart() // this.drawIncomeProductChart()
} }
}, },
methods: { methods: {
...@@ -429,32 +440,32 @@ export default { ...@@ -429,32 +440,32 @@ export default {
this.getTotal() this.getTotal()
this.getCustomer() this.getCustomer()
this.customTransChart = echarts.init( // this.customTransChart = echarts.init(
document.getElementById("customTransChart") // document.getElementById("customTransChart")
) // )
this.storeFlowChart = echarts.init( // this.storeFlowChart = echarts.init(
document.getElementById("storeFlowChart") // document.getElementById("storeFlowChart")
) // )
this.orderChart = echarts.init(document.getElementById("orderChart")) this.orderChart = echarts.init(document.getElementById("orderChart"))
this.orderProductChart = echarts.init( this.orderProductChart = echarts.init(
document.getElementById("orderProductChart") document.getElementById("orderProductChart")
) )
this.incomeFlowChart = echarts.init( // this.incomeFlowChart = echarts.init(
document.getElementById("incomeFlowChart") // document.getElementById("incomeFlowChart")
) // )
this.incomeProductChart = echarts.init( // this.incomeProductChart = echarts.init(
document.getElementById("incomeProductChart") // document.getElementById("incomeProductChart")
) // )
this.funnelChart = echarts.init(document.getElementById("funnelChart")) // this.funnelChart = echarts.init(document.getElementById("funnelChart"))
window.addEventListener("resize", () => this.resize()) window.addEventListener("resize", () => this.resize())
this.drawCustomTransChart() // this.drawCustomTransChart()
this.drawStoreFlowChart() // this.drawStoreFlowChart()
this.drawOrderProductChart() this.drawOrderProductChart()
this.drawIncomeFlowChart() // this.drawIncomeFlowChart()
this.drawIncomeProductChart() // this.drawIncomeProductChart()
this.drawFunnelChart() // this.drawFunnelChart()
}, },
goPer() { goPer() {
this.$router.push({ this.$router.push({
...@@ -505,33 +516,33 @@ export default { ...@@ -505,33 +516,33 @@ export default {
this.getTotal() this.getTotal()
this.getCustomer() this.getCustomer()
this.drawCustomTransChart() // this.drawCustomTransChart()
this.drawStoreFlowChart() // this.drawStoreFlowChart()
this.drawOrderProductChart() this.drawOrderProductChart()
this.drawIncomeFlowChart() // this.drawIncomeFlowChart()
this.drawIncomeProductChart() // this.drawIncomeProductChart()
this.drawFunnelChart() // this.drawFunnelChart()
}, 500) }, 500)
}, },
resize() { resize() {
debounce(this.resizeChart.bind(this), 300)() debounce(this.resizeChart.bind(this), 300)()
}, },
initChart() { initChart() {
this.customTransChart.setOption(customTransOption) // this.customTransChart.setOption(customTransOption)
this.storeFlowChart.setOption(storeFlowOption) // this.storeFlowChart.setOption(storeFlowOption)
this.orderChart.setOption(orderOption) this.orderChart.setOption(orderOption)
this.orderProductChart.setOption(orderProductOption) this.orderProductChart.setOption(orderProductOption)
this.incomeFlowChart.setOption(incomeFlowOption) // this.incomeFlowChart.setOption(incomeFlowOption)
this.incomeProductChart.setOption(incomeProductOption) // this.incomeProductChart.setOption(incomeProductOption)
}, },
resizeChart() { resizeChart() {
this.customTransChart.resize() // this.customTransChart.resize()
this.storeFlowChart.resize() // this.storeFlowChart.resize()
this.orderChart.resize() this.orderChart.resize()
this.orderProductChart.resize() this.orderProductChart.resize()
this.incomeFlowChart.resize() // this.incomeFlowChart.resize()
this.incomeProductChart.resize() // this.incomeProductChart.resize()
this.funnelChart.resize() // this.funnelChart.resize()
}, },
showChartLoading(chart) { showChartLoading(chart) {
chart.showLoading({ chart.showLoading({
......
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
<el-table-column label="省份" <el-table-column label="省份"
align="center" align="center"
prop="provinceName" /> prop="provinceName" />
<el-table-column label="服务对接" <!-- <el-table-column label="服务对接"
align="center" align="center"
width="170" width="170"
prop="sellerMerchantName" /> prop="sellerMerchantName" />
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
<el-table-column label="营销服务商" <el-table-column label="营销服务商"
align="center" align="center"
width="170" width="170"
prop="marketingMerchantName" /> prop="marketingMerchantName" /> -->
<el-table-column label="销售顾问" <el-table-column label="销售顾问"
align="center" align="center"
prop="employeeName" /> prop="employeeName" />
...@@ -520,35 +520,35 @@ export default { ...@@ -520,35 +520,35 @@ export default {
isClear: true, isClear: true,
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, },
{ // {
// label: '园区店', // // label: '园区店',
label: "服务对接", // label: "服务对接",
name: "yqMerchantIds", // name: "yqMerchantIds",
type: "select", // type: "select",
multiple: true, // multiple: true,
multipleLimit: 5, // multipleLimit: 5,
collapseTags: true, // collapseTags: true,
optionList: [], // optionList: [],
optionId: "merchantId", // optionId: "merchantId",
optionLabel: "merchantName", // optionLabel: "merchantName",
optionsName: "parkServiceList", // optionsName: "parkServiceList",
changeAttr: (value, targetItem) => { // changeAttr: (value, targetItem) => {
if (value) { // if (value) {
// 获取流量方 // // 获取流量方
this.getServiceStore(value) // this.getServiceStore(value)
} else { // } else {
// this.baseData.storeIdList = [] // // this.baseData.storeIdList = []
this.getAllServiceStore() // this.getAllServiceStore()
} // }
this.searchForm.merchantId = "" // this.searchForm.merchantId = ""
this.getOptionsList() // this.getOptionsList()
} // }
}, // },
{ {
label: "流量来源", label: "流量来源",
name: "merchantId", name: "merchantId",
type: "select", type: "select",
noDataText: "请先选择服务对接", // noDataText: "请先选择服务对接",
// noDataText: '请先选择园区店', // noDataText: '请先选择园区店',
optionList: [], optionList: [],
optionId: "merchantId", optionId: "merchantId",
...@@ -598,16 +598,16 @@ export default { ...@@ -598,16 +598,16 @@ export default {
optionLabel: "name", optionLabel: "name",
optionsName: "channelTypeList" optionsName: "channelTypeList"
}, },
{ // {
label: "服务对接模式", // label: "服务对接模式",
// label: '园区店模式', // // label: '园区店模式',
name: "businessModel", // name: "businessModel",
type: "select", // type: "select",
optionList: [], // optionList: [],
optionId: "confId", // optionId: "confId",
optionLabel: "confLabel", // optionLabel: "confLabel",
optionsName: "manageTypeList" // optionsName: "manageTypeList"
}, // },
{ {
label: "二级流量方", label: "二级流量方",
name: "subShopMerchantId", name: "subShopMerchantId",
......
...@@ -287,13 +287,13 @@ ...@@ -287,13 +287,13 @@
</el-table-column> </el-table-column>
<el-table-column label="省份" align="center" prop="provinceName" /> <el-table-column label="省份" align="center" prop="provinceName" />
<!-- <el-table-column label="园区店" --> <!-- <el-table-column label="园区店" -->
<el-table-column <!-- <el-table-column
label="服务对接" label="服务对接"
align="center" align="center"
width="170" width="170"
prop="sellerMerchantName" prop="sellerMerchantName"
/> /> -->
<el-table-column <!-- <el-table-column
label="安装服务商" label="安装服务商"
align="center" align="center"
width="170" width="170"
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
align="center" align="center"
width="170" width="170"
prop="marketingMerchantName" prop="marketingMerchantName"
/> /> -->
<el-table-column label="销售顾问" align="center" prop="employeeName" /> <el-table-column label="销售顾问" align="center" prop="employeeName" />
<el-table-column label="转化人员" align="center" prop="sellerName" /> <el-table-column label="转化人员" align="center" prop="sellerName" />
<el-table-column <el-table-column
...@@ -631,34 +631,34 @@ export default { ...@@ -631,34 +631,34 @@ export default {
isClear: true, isClear: true,
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, },
{ // {
// label: '园区店', // // label: '园区店',
label: "服务对接", // label: "服务对接",
name: "yqMerchantIds", // name: "yqMerchantIds",
type: "select", // type: "select",
multiple: true, // multiple: true,
multipleLimit: 5, // multipleLimit: 5,
collapseTags: true, // collapseTags: true,
optionList: [], // optionList: [],
optionId: "merchantId", // optionId: "merchantId",
optionLabel: "merchantName", // optionLabel: "merchantName",
optionsName: "parkServiceList", // optionsName: "parkServiceList",
changeAttr: (value, targetItem) => { // changeAttr: (value, targetItem) => {
if (value) { // if (value) {
// 获取流量方 // // 获取流量方
this.getServiceStore(value) // this.getServiceStore(value)
} else { // } else {
this.getAllServiceStore() // this.getAllServiceStore()
} // }
this.searchForm.merchantId = "" // this.searchForm.merchantId = ""
this.getOptionsList() // this.getOptionsList()
} // }
}, // },
{ {
label: "流量来源", label: "流量来源",
name: "merchantId", name: "merchantId",
type: "select", type: "select",
noDataText: "请先选择服务对接", // noDataText: "请先选择服务对接",
// noDataText: '请先选择园区店', // noDataText: '请先选择园区店',
optionList: [], optionList: [],
optionId: "merchantId", optionId: "merchantId",
...@@ -709,16 +709,16 @@ export default { ...@@ -709,16 +709,16 @@ export default {
// optionsName: 'sourceChannelTypeList' // optionsName: 'sourceChannelTypeList'
optionsName: "channelTypeList" optionsName: "channelTypeList"
}, },
{ // {
label: "服务对接模式", // label: "服务对接模式",
// label: '园区店模式', // // label: '园区店模式',
name: "businessModel", // name: "businessModel",
type: "select", // type: "select",
optionList: [], // optionList: [],
optionId: "confId", // optionId: "confId",
optionLabel: "confLabel", // optionLabel: "confLabel",
optionsName: "manageTypeList" // optionsName: "manageTypeList"
}, // },
{ {
label: "二级流量方", label: "二级流量方",
name: "subShopMerchantId", name: "subShopMerchantId",
......
...@@ -201,9 +201,9 @@ ...@@ -201,9 +201,9 @@
</el-form-item> </el-form-item>
<div> <div>
<!-- <el-form-item label="园区店:"> --> <!-- <el-form-item label="园区店:"> -->
<el-form-item label="服务对接:"> <!-- <el-form-item label="服务对接:">
{{ detail.sellerMerchantName }} {{ detail.sellerMerchantName }}
</el-form-item> </el-form-item> -->
<el-form-item label="转化员:"> <el-form-item label="转化员:">
{{ detail.sellerName }} {{ detail.sellerName }}
</el-form-item> </el-form-item>
......
...@@ -32,22 +32,22 @@ export default { ...@@ -32,22 +32,22 @@ export default {
label: "精品升级", label: "精品升级",
name: "1" name: "1"
}, },
{ // {
label: "次新车转化", // label: "次新车转化",
name: "2" // name: "2"
}, // },
{ // {
label: "售后众筹", // label: "售后众筹",
name: "3" // name: "3"
}, // },
{ {
label: "会员权益/升级", label: "会员权益/升级",
name: "4" name: "4"
}, },
{ // {
label: "积分商城", // label: "积分商城",
name: "5" // name: "5"
} // }
], ],
// tabName: "integralShopping" // tabName: "integralShopping"
tabName: "Order" tabName: "Order"
......
...@@ -34,14 +34,14 @@ export default { ...@@ -34,14 +34,14 @@ export default {
label: "对练记录", label: "对练记录",
name: "0" name: "0"
}, },
{ // {
label: "任务列表", // label: "任务列表",
name: "1" // name: "1"
}, // },
{ // {
label: "对练明细", // label: "对练明细",
name: "2" // name: "2"
} // }
], ],
// tabName: "exerciseTask" // tabName: "exerciseTask"
tabName: "exerciseRecord" tabName: "exerciseRecord"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!