Commit 40e1842d by zhangquan

更换接口

1 parent 63c6f5f7
......@@ -77,6 +77,11 @@ const exportUpgrade = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.export'
return method
}
// 延保订单导出
const exportInsurance = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.exportNew'
return method
}
// 我的分账导出
const exportMydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.export'
......@@ -137,4 +142,4 @@ const getMerchantList = params => {
sign: true
})
}
export { getRulesData, getRulesListData, guestComTotal, isOpenUpgrade, isOpenInsurance, orderTotal, couponsTotal, couponsTotalByDay, moneyTotal, findCoupons, findupGradeOrder, newFindupGradeOrder, checkCoupons, mydivision, exportMydivision, exportUpgrade, exportCoupons, getEmployName, checkDetail, orderTotalOfJT, orderTotalNumOfJT, myAccountTotalNumOfJT, get4SList, introConpute, getMerchantList }
export { getRulesData, getRulesListData, guestComTotal, isOpenUpgrade, isOpenInsurance, orderTotal, couponsTotal, couponsTotalByDay, moneyTotal, findCoupons, findupGradeOrder, newFindupGradeOrder, checkCoupons, mydivision, exportMydivision, exportUpgrade, exportInsurance, exportCoupons, getEmployName, checkDetail, orderTotalOfJT, orderTotalNumOfJT, myAccountTotalNumOfJT, get4SList, introConpute, getMerchantList }
......@@ -197,7 +197,7 @@
</template>
<script>
import { findupGradeOrder, newFindupGradeOrder, exportUpgrade, checkDetail, orderTotalNumOfJT, getMerchantList } from '../../api/modules/rules'
import { findupGradeOrder, newFindupGradeOrder, exportUpgrade, exportInsurance, checkDetail, orderTotalNumOfJT, getMerchantList } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const logTypeList = ['预录用户', '用户下单', '用户付款', '完成服务']
......@@ -1119,23 +1119,24 @@ export default {
})
},
toExport() {
const showCoulumList = this.tableCoulumList.map(item => item.value)
let hiddenColumnList = []
this.fieldList.forEach(item => {
if (!showCoulumList.includes(item.value)) {
hiddenColumnList.push(item.enumId)
}
})
if (this.pageName != 'insurance') {
hiddenColumnList.push('packageProfitAllocationRule') //金品升级进来的过滤了套餐规则,这里要加上
if (this.pageName == 'insurance') {
const showCoulumList = this.tableCoulumList.map(item => item.value)
this.fieldList.forEach(item => {
if (!showCoulumList.includes(item.value)) {
hiddenColumnList.push(item.enumId)
}
})
}
let method = exportUpgrade()
let method = this.pageName == 'insurance' ? exportInsurance() : exportUpgrade()
let para = {
routerMethod: method,
...this.httpParam,
hiddenColumnList,
sceneType: this.pageName == 'insurance' ? 0 : 1
}
if (this.pageName == 'insurance') {
para.hiddenColumnList = hiddenColumnList
}
converterApi(para).then(res => {
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!