Commit ece6be4a by zhangquan

耀美版本开发

1 parent 4dd209b8
...@@ -381,6 +381,17 @@ const getOrdersummary = params => { ...@@ -381,6 +381,17 @@ const getOrdersummary = params => {
}) })
} }
// 获取汇总渠道类型
const getChannelTypeApi = params => {
params.method = 'scrm.api.equity.service.order.summary.sub.channel.type.list'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取汇总产品列表 // 获取汇总产品列表
const getSummaryPackage = params => { const getSummaryPackage = params => {
params.method = 'scrm.api.equity.service.summary.package' params.method = 'scrm.api.equity.service.summary.package'
...@@ -402,4 +413,4 @@ const getSummaryExportApi = params => { ...@@ -402,4 +413,4 @@ const getSummaryExportApi = params => {
}) })
} }
export default { getOrdersummary, getSummaryPackage, getSummaryExportApi, getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo, activeCodeList, updateActiveCode } export default { getOrdersummary, getChannelTypeApi, getSummaryPackage, getSummaryExportApi, getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo, activeCodeList, updateActiveCode }
...@@ -110,8 +110,8 @@ export default { ...@@ -110,8 +110,8 @@ export default {
name: 'subChannel', name: 'subChannel',
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'confId', optionId: 'channelTypeValue',
optionLabel: 'confName', optionLabel: 'channelTypeName',
optionsName: 'subChannelList' optionsName: 'subChannelList'
}, },
{ {
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
prop: 'equippedCardFlag', prop: 'equippedCardFlag',
width: 100, width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.equippedCardFlag==1 ? '是':'否' return cellValue.equippedCardFlag == 1 ? '是' : '否'
} }
}, },
{ {
...@@ -231,7 +231,7 @@ export default { ...@@ -231,7 +231,7 @@ export default {
prop: 'cardSeqNo', prop: 'cardSeqNo',
width: '180px', width: '180px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.equippedCardFlag==1 ? cellValue.cardSeqNo:'--' return cellValue.equippedCardFlag == 1 ? cellValue.cardSeqNo : '--'
} }
}, },
{ {
...@@ -239,7 +239,7 @@ export default { ...@@ -239,7 +239,7 @@ export default {
prop: 'cardSeqNo', prop: 'cardSeqNo',
width: '120px', width: '120px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.snFlag==1 ? '是' : '否' return cellValue.snFlag == 1 ? '是' : '否'
} }
}, },
{ {
...@@ -247,7 +247,7 @@ export default { ...@@ -247,7 +247,7 @@ export default {
prop: 'sns', prop: 'sns',
width: '180px', width: '180px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.snFlag==1 ? cellValue.sns : '--' return cellValue.snFlag == 1 ? cellValue.sns : '--'
} }
}, },
{ {
...@@ -278,10 +278,8 @@ export default { ...@@ -278,10 +278,8 @@ export default {
}, },
{ {
label: '渠道', label: '渠道',
width: '170px', prop: 'subChannelTypeName',
formatter: cellValue => { width: '170px'
return cellValue.subChannelType ? (this.baseData.subChannelList.find(item => item.confId == cellValue.subChannelType )?.confName || '--') : '--'
}
}, },
{ {
label: '操作人', label: '操作人',
...@@ -309,28 +307,7 @@ export default { ...@@ -309,28 +307,7 @@ export default {
confName: '广汇' confName: '广汇'
} }
], ],
subChannelList: [ subChannelList: [],
{
confId: 11,
confName: '嘀加scrm'
},
{
confId: 12,
confName: '嘀加智慧门店'
},
{
confId: 21,
confName: '广汇爱车保镖'
},
{
confId: 22,
confName: '广汇scrm'
},
{
confId: 31,
confName: 'frms&虎哥e盾'
}
],
cardFlagList: [ cardFlagList: [
{ {
confId: 1, confId: 1,
...@@ -407,6 +384,10 @@ export default { ...@@ -407,6 +384,10 @@ export default {
} }
}, },
created() {
this.getChannelType()
},
mounted() { mounted() {
this.$apis.beforeSale.getSummaryPackage({}).then(res => { this.$apis.beforeSale.getSummaryPackage({}).then(res => {
this.baseData.goodsStatusList = res this.baseData.goodsStatusList = res
...@@ -415,6 +396,14 @@ export default { ...@@ -415,6 +396,14 @@ export default {
}, },
methods: { methods: {
//获取渠道枚举
getChannelType() {
this.$apis.beforeSale.getChannelTypeApi({}).then(res => {
if (res?.length) {
this.baseData.subChannelList = res
}
})
},
getSelectInputParams() { getSelectInputParams() {
const list = Object.keys(this.searchSelectObj) const list = Object.keys(this.searchSelectObj)
var params = {} var params = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!