Commit 5ba563b2 by zhangquan

Merge branch 'SAAS+V4.41' of http://192.168.3.233:8090/saas/scrm-micro-presale into SAAS+V4.41

2 parents 7d006f4f 9a914ba7
...@@ -165,6 +165,15 @@ const exportGHClaimsListApi = params => { ...@@ -165,6 +165,15 @@ const exportGHClaimsListApi = params => {
sign: true sign: true
}) })
} }
const getExportUrlApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.gh.list.export.status'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 运营端核赔订单审核通用接口 // 运营端核赔订单审核通用接口
const checkGHClaimsListApi = params => { const checkGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.audit' params.method = 'scrm.api.equity.service.claims.operate.audit'
...@@ -421,4 +430,4 @@ const delCaseApi = params => { ...@@ -421,4 +430,4 @@ const delCaseApi = params => {
}) })
} }
export default { renewalAudit, getMerchantApi, getMidMerchantApi, getBigMerchantApi, saveSign, saveClaimsCG, saveCG, cancelClaims, batchPassApi, checkClaimsOrderApi, checkOrderApi, getOrderOherInfo, uploadImgApi, getGHCountApi, getGHPhoneImageApi, getGHattachmentApi, getGHClaimsDetailApi, getGHhistoryListApi, checkGHClaimsListApi, exportGHClaimsListApi, getGHClaimFollowsListApi, addGHClaimFollowsListApi, getGHClaimsListApi, getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo, getFollowPersonList, delFollowPerson, addFollowPerson, getMerchantSubList, delCaseApi } export default { renewalAudit, getMerchantApi, getMidMerchantApi, getBigMerchantApi, saveSign, saveClaimsCG, saveCG, cancelClaims, batchPassApi, checkClaimsOrderApi, checkOrderApi, getOrderOherInfo, uploadImgApi, getGHCountApi, getGHPhoneImageApi, getGHattachmentApi, getGHClaimsDetailApi, getGHhistoryListApi, checkGHClaimsListApi, exportGHClaimsListApi, getExportUrlApi, getGHClaimFollowsListApi, addGHClaimFollowsListApi, getGHClaimsListApi, getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo, getFollowPersonList, delFollowPerson, addFollowPerson, getMerchantSubList, delCaseApi }
...@@ -14,12 +14,13 @@ Vue.use(GLTable) ...@@ -14,12 +14,13 @@ Vue.use(GLTable)
.use(GLTableButton) .use(GLTableButton)
.use(GLDialog) .use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
let { response, request, request_common, request_brand, sign, sign_common, secret } = await fetchConfig(common) let { response, request, request_common, request_brand, sign, sign_common, secret, constantData } = await fetchConfig(common)
// request.baseURL = 'https://scrm.dev.glsx.com.cn' // request.baseURL = 'https://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.dev.glsx.com.cn' // request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
// globalState.session.token = 'scrm-base-6358b874-c112-4753-ac00-ec0cce769751-rop' // globalState.session.token = 'scrm-base-6358b874-c112-4753-ac00-ec0cce769751-rop'
// request.baseURL = 'http://192.168.1.53:7226' // request.baseURL = 'http://192.168.1.53:7226'
// request_brand.baseURL = 'http://192.168.1.53:7226' // request_brand.baseURL = 'http://192.168.1.53:7226'
Vue.prototype.$constantData = constantData
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
......
...@@ -239,6 +239,7 @@ const UPLOAD_INFO = [11] // 上传资料 ...@@ -239,6 +239,7 @@ const UPLOAD_INFO = [11] // 上传资料
const TO_HANDLE = [0] // 去处理 const TO_HANDLE = [0] // 去处理
const TO_DEL = [5] const TO_DEL = [5]
const Operations_Mananger = [26] // 运营经理审核 const Operations_Mananger = [26] // 运营经理审核
import utils from '../../util/util'
export default { export default {
name: 'index', name: 'index',
data() { data() {
...@@ -769,7 +770,9 @@ export default { ...@@ -769,7 +770,9 @@ export default {
followEditStatus: false, followEditStatus: false,
followContent: '', followContent: '',
followResult: false, followResult: false,
colors colors,
exportTimer: null,
exportNum: 0
} }
}, },
components: { components: {
...@@ -782,6 +785,9 @@ export default { ...@@ -782,6 +785,9 @@ export default {
}, },
mounted() {}, mounted() {},
beforeDestroy() { beforeDestroy() {
this.$notify.closeAll()
clearInterval(this.exportTimer)
this.exportTimer = null
const { pageNum, pageSize } = this.$refs?.equityRef?.page || {} const { pageNum, pageSize } = this.$refs?.equityRef?.page || {}
const ghPageInfo = { ...this.searchForm, pageNum, pageSize } const ghPageInfo = { ...this.searchForm, pageNum, pageSize }
window.sessionStorage.setItem('ghPageInfo', JSON.stringify(ghPageInfo)) window.sessionStorage.setItem('ghPageInfo', JSON.stringify(ghPageInfo))
...@@ -1037,13 +1043,61 @@ export default { ...@@ -1037,13 +1043,61 @@ export default {
}, },
exportList() { exportList() {
const parmas = { ...this.getParams() } const parmas = { ...this.getParams() }
this.$apis.claims.exportGHClaimsListApi(parmas).then(data => { this.$notify({
var a = document.createElement('a') title: '提示',
a.setAttribute('id', 'exportToExport') type: 'success',
a.setAttribute('href', data) message: '正在导出,请稍等片刻...',
a.setAttribute('target', '_blank') duration: 0
document.body.appendChild(a) })
a.click() this.$apis.claims.exportGHClaimsListApi(parmas).then(res => {
if (res.status != 2) {
this.exportKey = res.key
if (!res.status) {
this.exportTimer = setInterval(() => {
this.getExportResult()
}, this.$constantData.delayTime || 5000)
}
} else {
this.$notify.closeAll()
this.$message.error(res.message)
}
// var a = document.createElement('a')
// a.setAttribute('id', 'exportToExport')
// a.setAttribute('href', data)
// a.setAttribute('target', '_blank')
// document.body.appendChild(a)
// a.click()
})
},
getExportResult() {
const calcTime = this.$constantData.delayNum || 120 //调十分钟,导不出拉倒
this.exportNum++
if (this.exportNum > calcTime) {
clearInterval(this.exportTimer)
this.exportTimer = null
this.$notify.closeAll()
return this.$message.error('导出失败,请重试!')
}
this.$apis.claims.getExportUrlApi({ key: this.exportKey }).then(res => {
if (res.status != 2) {
if (res.status == 1) {
this.$notify.closeAll()
clearInterval(this.exportTimer)
this.exportTimer = null
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
window.open(res.url)
} else {
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = res.url
document.body.appendChild(iframe)
}
}
} else {
this.$notify.closeAll()
this.$message.error(res.message)
}
}) })
}, },
toReturnOrder(row) { toReturnOrder(row) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!