Commit 0ae027ab by 前端

汇总开发

1 parent 36650f59
......@@ -163,7 +163,7 @@ const getProListApi = params => {
// 获取无忧卡套餐列表
const getPackageListApi = params => {
params.method = `scrm.api.equity.service.package.dj.list.get`
// params.method = `scrm.api.equity.service.package.list.get`
// params.method = `scrm.api.equity.service.package.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
......@@ -325,50 +325,81 @@ const spaAgressData = params => {
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
sign: true
})
}
// 店铺信息
const merchantInfo = params => {
params.method = 'scrm.api.equity.common.merchant.detail.det'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
})
}
// 卡号---获取期限
params.method = 'scrm.api.equity.common.merchant.detail.det'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 卡号---获取期限
const dateBycarNo = params => {
params.method = 'scrm.api.equity.service.cfc.get.by.seqno'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
sign: true
})
}
// 获取活码列表-
const activeCodeList = params => {
params.method = 'entmicro.api.code.getFreeChannelCode'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true,
})
}
// 更新活码
const updateActiveCode = params => {
params.method = 'scrm.api.equity.service.merchant.qrcode.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
})
}
export default { 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 }
\ No newline at end of file
// 获取活码列表-
const activeCodeList = params => {
params.method = 'entmicro.api.code.getFreeChannelCode'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 更新活码
const updateActiveCode = params => {
params.method = 'scrm.api.equity.service.merchant.qrcode.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取汇总订单列表
const getOrdersummary = params => {
params.method = 'scrm.api.equity.service.order.summary.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取汇总产品列表
const getSummaryPackage = params => {
params.method = 'scrm.api.equity.service.summary.package'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getSummaryExportApi = params => {
params.method = `scrm.api.equity.service.order.summary.export`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
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 }
......@@ -27,10 +27,7 @@ export default {
searchForm: {
orderStatus: '',
packageCode: '',
completionStatus: '',
auditStatus: '',
channel: '',
dataPerfection: '',
successDate: [],
effectiveDate: []
},
......@@ -61,6 +58,10 @@ export default {
{
label: '车架号',
name: 'vin'
},
{
label: '店面名称',
name: 'merchantName'
}
],
handleSelectChange: value => {
......@@ -110,7 +111,7 @@ export default {
}
],
// 表格
getListApi: this.$apis.beforeSale.getListApi,
getListApi: this.$apis.beforeSale.getOrdersummary,
tableParams: {
listName: 'list',
tableOption: false,
......@@ -194,7 +195,7 @@ export default {
prop: 'orderStatus',
width: '170px',
formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '--'
return this.baseData.completList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.completList.find(item => item.confId == cellValue.orderStatus).confName : '--'
}
},
{
......@@ -215,11 +216,11 @@ export default {
mdList: [],
channelList: [
{
confId: 0,
confId: 1,
confName: '嘀加'
},
{
confId: 1,
confId: 2,
confName: '广汇'
}
],
......@@ -280,7 +281,7 @@ export default {
},
mounted() {
this.$apis.beforeSale.getProListApi({}).then(res => {
this.$apis.beforeSale.getSummaryPackage({}).then(res => {
this.baseData.goodsStatusList = res
this.getOptionsList('searchFormData')
})
......@@ -352,7 +353,7 @@ export default {
// 导出
handleExport() {
var params = this.getParams()
this.$apis.beforeSale.getExportApi(params).then(res => {
this.$apis.beforeSale.getSummaryExportApi(params).then(res => {
// window.open(res)
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
......@@ -374,10 +375,7 @@ export default {
this.searchForm = {
orderStatus: '',
packageCode: '',
completionStatus: '',
auditStatus: '',
channel: '',
dataPerfection: '',
successDate: [],
effectiveDate: []
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!