Commit 0ae027ab by 前端

汇总开发

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