Commit 40e1842d by zhangquan

更换接口

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