Commit ece6be4a by zhangquan

耀美版本开发

1 parent 4dd209b8
......@@ -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 => {
params.method = 'scrm.api.equity.service.summary.package'
......@@ -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 {
name: 'subChannel',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionId: 'channelTypeValue',
optionLabel: 'channelTypeName',
optionsName: 'subChannelList'
},
{
......@@ -223,7 +223,7 @@ export default {
prop: 'equippedCardFlag',
width: 100,
formatter: cellValue => {
return cellValue.equippedCardFlag==1 ? '是':'否'
return cellValue.equippedCardFlag == 1 ? '是' : '否'
}
},
{
......@@ -231,7 +231,7 @@ export default {
prop: 'cardSeqNo',
width: '180px',
formatter: cellValue => {
return cellValue.equippedCardFlag==1 ? cellValue.cardSeqNo:'--'
return cellValue.equippedCardFlag == 1 ? cellValue.cardSeqNo : '--'
}
},
{
......@@ -239,7 +239,7 @@ export default {
prop: 'cardSeqNo',
width: '120px',
formatter: cellValue => {
return cellValue.snFlag==1 ? '是' : '否'
return cellValue.snFlag == 1 ? '是' : '否'
}
},
{
......@@ -247,7 +247,7 @@ export default {
prop: 'sns',
width: '180px',
formatter: cellValue => {
return cellValue.snFlag==1 ? cellValue.sns : '--'
return cellValue.snFlag == 1 ? cellValue.sns : '--'
}
},
{
......@@ -278,10 +278,8 @@ export default {
},
{
label: '渠道',
width: '170px',
formatter: cellValue => {
return cellValue.subChannelType ? (this.baseData.subChannelList.find(item => item.confId == cellValue.subChannelType )?.confName || '--') : '--'
}
prop: 'subChannelTypeName',
width: '170px'
},
{
label: '操作人',
......@@ -309,28 +307,7 @@ export default {
confName: '广汇'
}
],
subChannelList: [
{
confId: 11,
confName: '嘀加scrm'
},
{
confId: 12,
confName: '嘀加智慧门店'
},
{
confId: 21,
confName: '广汇爱车保镖'
},
{
confId: 22,
confName: '广汇scrm'
},
{
confId: 31,
confName: 'frms&虎哥e盾'
}
],
subChannelList: [],
cardFlagList: [
{
confId: 1,
......@@ -407,6 +384,10 @@ export default {
}
},
created() {
this.getChannelType()
},
mounted() {
this.$apis.beforeSale.getSummaryPackage({}).then(res => {
this.baseData.goodsStatusList = res
......@@ -415,6 +396,14 @@ export default {
},
methods: {
//获取渠道枚举
getChannelType() {
this.$apis.beforeSale.getChannelTypeApi({}).then(res => {
if (res?.length) {
this.baseData.subChannelList = res
}
})
},
getSelectInputParams() {
const list = Object.keys(this.searchSelectObj)
var params = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!