Commit 13e89545 by zhangquan

11月需求

1 parent 4750e935
...@@ -281,6 +281,18 @@ const cancelClaims = params => { ...@@ -281,6 +281,18 @@ const cancelClaims = params => {
}) })
} }
// 批量审核
const batchPassApi = params => {
params.method = 'scrm.api.equity.service.claims.auth.batch.pass'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 定损保存草稿 // 定损保存草稿
const saveCG = params => { const saveCG = params => {
params.method = 'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit' params.method = 'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit'
...@@ -398,4 +410,4 @@ const addFollowPerson = params => { ...@@ -398,4 +410,4 @@ const addFollowPerson = params => {
sign: true sign: true
}) })
} }
export default { renewalAudit, getMerchantApi, getMidMerchantApi, getBigMerchantApi, saveSign, saveClaimsCG, saveCG, cancelClaims, 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} 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}
...@@ -50,6 +50,30 @@ const copyTemplateApi = params => { ...@@ -50,6 +50,30 @@ const copyTemplateApi = params => {
sign: true sign: true
}) })
} }
//批量变更合同模板
const babchCopyTemplateApi = params => {
params.method = `scrm.api.equity.service.contract.template.batch.copyTemplate`
return http({
url: CUR_BASE_URL,
method: 'POST',
data: params,
sign: true
})
}
//批量初始化合同模板
const babchInitTemplateApi = params => {
params.method = `scrm.api.equity.service.contract.template.batch.initTemplate`
return http({
url: CUR_BASE_URL,
method: 'POST',
data: params,
sign: true
})
}
const exportContractApi = params => { const exportContractApi = params => {
params.method = `scrm.api.equity.service.contract.template.list.export` params.method = `scrm.api.equity.service.contract.template.list.export`
return http({ return http({
...@@ -66,5 +90,7 @@ export default { ...@@ -66,5 +90,7 @@ export default {
getContractDetailApi, getContractDetailApi,
printContractApi, printContractApi,
copyTemplateApi, copyTemplateApi,
babchCopyTemplateApi,
babchInitTemplateApi,
exportContractApi exportContractApi
} }
\ No newline at end of file \ No newline at end of file
...@@ -134,10 +134,16 @@ ...@@ -134,10 +134,16 @@
handleConfirm(){ handleConfirm(){
if(!this.curId) return this.$message.error('请选择变更模板的合同') if(!this.curId) return this.$message.error('请选择变更模板的合同')
const params = { const params = {
sourceId: this.curId, sourceId: this.curId
targetId: this.changeContractObj.id
} }
this.$apis.contractManager.copyTemplateApi(params).then(res=>{ let API = 'babchCopyTemplateApi'
if(this.changeContractObj.id){
params.targetId = this.changeContractObj.id
API = 'copyTemplateApi'
}else{
params.targetIds = this.changeContractObj.ids
}
this.$apis.contractManager[API](params).then(res=>{
if(res) { if(res) {
this.$message.success('变更模板成功') this.$message.success('变更模板成功')
this.handleClose() this.handleClose()
...@@ -145,7 +151,7 @@ ...@@ -145,7 +151,7 @@
}) })
}, },
handleClose(){ handleClose(){
this.changeContractObj.visible = false this.$emit('closeDialog')
} }
} }
} }
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<div class="operate_wrap"> <div class="operate_wrap">
<span class="table_title">合同列表</span> <span class="table_title">合同列表</span>
<div class="operate_btn"> <div class="operate_btn">
<el-button :size="size" @click="handleExport">导出</el-button> <el-button type="primary" plain :size="size" @click="batchChangeTmpl">批量更换</el-button>
<el-button type="primary" plain :size="size" @click="batchInitTmpl">批量初始化</el-button>
<el-button type="primary" plain :size="size" @click="handleExport">导出</el-button>
</div> </div>
</div> </div>
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
...@@ -20,7 +22,14 @@ ...@@ -20,7 +22,14 @@
</GLTable> </GLTable>
</div> </div>
<pdf-dialog :isVisible="isPdfVisible" title="合同" :pdfUrl="pdfUrl" @closeDialog="handlePdfClose"></pdf-dialog> <pdf-dialog :isVisible="isPdfVisible" title="合同" :pdfUrl="pdfUrl" @closeDialog="handlePdfClose"></pdf-dialog>
<changeContractDialog v-if="changeContractObj.visible" :changeContractObj="changeContractObj"></changeContractDialog> <changeContractDialog v-if="changeContractObj.visible" @closeDialog="closeTmplDialog" :changeContractObj="changeContractObj"></changeContractDialog>
<GLDialog :visible.sync="tipObj.visible" :close-on-click-modal="false" mode="small" title="提示" @onOk="toInitTmpl" @onCancel="closeTipDialog" :before-close="closeTipDialog">
<div class="tip-body">
<i class="el-icon-warning icon"></i>
<p class="title">是否确认初始化?</p>
<p class="content">选中的商品合同模板将初始化,读取后台的最新配置</p>
</div>
</GLDialog>
</div> </div>
</template> </template>
...@@ -38,6 +47,10 @@ ...@@ -38,6 +47,10 @@
data() { data() {
return { return {
size: 'small', size: 'small',
tipObj: {
visible: false,
ids: []
},
isPdfVisible: false, isPdfVisible: false,
changeContractObj: { changeContractObj: {
visible: false, visible: false,
...@@ -122,6 +135,8 @@ ...@@ -122,6 +135,8 @@
getListApi: this.$apis.contractManager.getContractListApi, getListApi: this.$apis.contractManager.getContractListApi,
tableParams: { tableParams: {
listName: 'list', listName: 'list',
mutiSelectName: 'tmplIndex',
mutiSelectUniqueKey: 'id',
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
...@@ -165,12 +180,52 @@ ...@@ -165,12 +180,52 @@
}, },
methods: { methods: {
closeTmplDialog(){
this.changeContractObj.visible = false
this.handleSearch()
},
batchChangeTmpl(){
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
const ids = data.map(item => item.id)
if(!ids.length) return this.$message.error('请选择需要变更模板的合同')
this.changeContractObj = {
visible: true,
id: '',
ids
}
},
batchInitTmpl(){
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
const ids = data.map(item => item.id)
if(!ids.length) return this.$message.error('请选择需要初始化的合同')
this.tipObj = {
visible: true,
ids
}
},
toInitTmpl(){
const params = {
templateIds: this.tipObj.ids
}
this.$apis.contractManager.babchInitTemplateApi(params).then(res=>{
if(res) {
this.$message.success('初始化模板成功')
this.closeTipDialog()
}
})
},
closeTipDialog(){
this.tipObj = {
visible: false,
ids: []
}
this.handleSearch()
},
changeContractTMPL(row){ changeContractTMPL(row){
this.changeContractObj = { this.changeContractObj = {
visible: true, visible: true,
id: row.id id: row.id
} }
console.log(this.changeContractObj)
}, },
getParams() { getParams() {
let params = JSON.parse(JSON.stringify(this.searchForm)) let params = JSON.parse(JSON.stringify(this.searchForm))
...@@ -273,5 +328,28 @@ ...@@ -273,5 +328,28 @@
background: #ffffff; background: #ffffff;
padding: 0 20px 20px; padding: 0 20px 20px;
} }
.tip-body{
width: 100%;
text-align: center;
.icon{
font-size: 48px;
color: #5850FF;
margin-top: 18px;
}
.title{
font-weight: 400;
font-size: 16px;
color: #333333;
text-align: center;
margin: 12px 0 8px;
}
.content{
font-weight: 400;
font-size: 14px;
color: #666666;
text-align: center;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -26,12 +26,13 @@ ...@@ -26,12 +26,13 @@
<div class="table_top_line flex_scb"> <div class="table_top_line flex_scb">
<span>核赔订单列表</span> <span>核赔订单列表</span>
<div class="table_top_btn flex_sc"> <div class="table_top_btn flex_sc">
<GLButton size="small" fn="跟进人配置" type="primary" @click="handleConfig">跟进人配置</GLButton> <GLButton size="small" fn="订单详情" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton> <GLButton size="small" plain fn="跟进人配置" type="primary" @click="handleConfig">跟进人配置</GLButton>
<el-button size="small" plain fn="跟进人配置" type="primary" @click="batchAudit">批量审核通过</el-button>
<el-button plain size="small" @click="exportList">导出</el-button> <el-button plain size="small" @click="exportList">导出</el-button>
</div> </div>
</div> </div>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf"> <GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf" @setTableFinishFun="setTableFinishFun">
<div class="flex_sc" slot="colorStatus" slot-scope="scope"> <div class="flex_sc" slot="colorStatus" slot-scope="scope">
<div class="table_point" :style="{ background: colors[scope.scope.status] }"></div> <div class="table_point" :style="{ background: colors[scope.scope.status] }"></div>
<span>{{ tableStatus[scope.scope.status] }}</span> <span>{{ tableStatus[scope.scope.status] }}</span>
...@@ -204,15 +205,15 @@ const followList = [ ...@@ -204,15 +205,15 @@ const followList = [
confName: '全部' confName: '全部'
} }
] ]
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过','','','','','','','','','','','','待运营经理审核','运营经理审核通过','运营经理审核不通过'] const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过', '', '', '', '', '', '', '', '', '', '', '', '待运营经理审核', '运营经理审核通过', '运营经理审核不通过']
const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74','','','','','','','','','','','','#FDB757','#2CCA74','#EB4E4E'] const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74', '', '', '', '', '', '', '', '', '', '', '', '#FDB757', '#2CCA74', '#EB4E4E']
// 操作对应状态 // 操作对应状态
const WATCH = [5, 7, 13, 8, 9, 10, 11, 1, 3, 4,26,27,28] // 查看 const WATCH = [5, 7, 13, 8, 9, 10, 11, 1, 3, 4, 26, 27, 28] // 查看
const FOLLOW_HISTORY = [5, 6, 12, 7, 13, 8, 9, 10, 11, 2, 1, 3] //跟进记录和历史赔付 const FOLLOW_HISTORY = [5, 6, 12, 7, 13, 8, 9, 10, 11, 2, 1, 3] //跟进记录和历史赔付
const CHECK = [6] // 定损审核 const CHECK = [6] // 定损审核
const CHECK_HP = [12] // 核赔审核 const CHECK_HP = [12] // 核赔审核
const RE_SUMBIT = [2] //重新提交 const RE_SUMBIT = [2] //重新提交
const RETURN_IT = [7, 13,28] // 撤销 const RETURN_IT = [7, 13, 28] // 撤销
const UPLOAD_INFO = [11] // 上传资料 const UPLOAD_INFO = [11] // 上传资料
const TO_HANDLE = [0] // 去处理 const TO_HANDLE = [0] // 去处理
const Operations_Mananger = [26] // 运营经理审核 const Operations_Mananger = [26] // 运营经理审核
...@@ -491,6 +492,8 @@ export default { ...@@ -491,6 +492,8 @@ export default {
], ],
tableParams: { tableParams: {
listName: 'list', listName: 'list',
mutiSelectName: 'ghIndex',
mutiSelectUniqueKey: 'id',
tableOption: false, tableOption: false,
tableColumns: [ tableColumns: [
{ {
...@@ -721,6 +724,11 @@ export default { ...@@ -721,6 +724,11 @@ export default {
this.getFollowPersonList() this.getFollowPersonList()
}, },
mounted() {}, mounted() {},
beforeDestroy(){
const {pageNum, pageSize} = this.$refs?.equityRef?.page || {}
const ghPageInfo = {pageNum, pageSize}
window.sessionStorage.setItem('ghPageInfo',JSON.stringify(ghPageInfo))
},
methods: { methods: {
getFollowPersonList() { getFollowPersonList() {
this.$apis.claims this.$apis.claims
...@@ -736,6 +744,28 @@ export default { ...@@ -736,6 +744,28 @@ export default {
handleConfig() { handleConfig() {
this.isFollowSync = true this.isFollowSync = true
}, },
batchAudit() {
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
const _target = data.find(item => item.status!=12&item.status!=26) //批量操作只操作 待审核 和 待运营经理审核
if(_target) return this.$message.error('请选择待审核的记录')
const parmas = {
idList: data.map(item => item.id)
}
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.claims.batchPassApi(parmas).then(res => {
if(res) {
this.$message.success('操作成功')
this.handleOkFn()
}
}).finally(end => {
loading.close()
})
},
handleClose() { handleClose() {
this.isFollowSync = false this.isFollowSync = false
}, },
...@@ -876,9 +906,23 @@ export default { ...@@ -876,9 +906,23 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchParams = { ...this.getParams() } this.searchParams = { ...this.getParams() }
const {pageNum, pageSize} = JSON.parse(window.sessionStorage.getItem('ghPageInfo') || '{}')
if(pageNum && pageSize){
this.searchParams.pageNum = pageNum
this.searchParams.pageSize = pageSize
}
resolve() resolve()
}) })
}, },
setTableFinishFun(){
const {pageNum, pageSize} = JSON.parse(window.sessionStorage.getItem('ghPageInfo') || '{}')
if(pageNum && pageSize){
this.$refs.equityRef.page.pageNum = pageNum
this.$refs.equityRef.page.pageSize = pageSize
this.$forceUpdate()
window.sessionStorage.removeItem('ghPageInfo')
}
},
getParams() { getParams() {
let params = JSON.parse(JSON.stringify(this.searchForm)) let params = JSON.parse(JSON.stringify(this.searchForm))
if (Array.isArray(params.commitDate) && params.commitDate.length > 0) { if (Array.isArray(params.commitDate) && params.commitDate.length > 0) {
......
...@@ -19,12 +19,13 @@ ...@@ -19,12 +19,13 @@
<div class="table_top_line flex_scb"> <div class="table_top_line flex_scb">
<span>核赔订单列表</span> <span>核赔订单列表</span>
<div class="table_top_btn flex_sc"> <div class="table_top_btn flex_sc">
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton> <GLButton size="small" fn="订单详情" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<el-button size="small" plain fn="跟进人配置" type="primary" @click="batchAudit">批量审核通过</el-button>
<el-button plain size="small" @click="exportList">导出</el-button> <el-button plain size="small" @click="exportList">导出</el-button>
</div> </div>
</div> </div>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf"> <GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf" @setTableFinishFun="setTableFinishFun">
<div class="flex_sc" slot="colorStatus" slot-scope="scope"> <div class="flex_sc" slot="colorStatus" slot-scope="scope">
<div v-if="statusMap[scope.scope.status || 0]" class="table_point" :style="{ background: statusMap[scope.scope.status || 0].color }"></div> <div v-if="statusMap[scope.scope.status || 0]" class="table_point" :style="{ background: statusMap[scope.scope.status || 0].color }"></div>
<span v-if="statusMap[scope.scope.status || 0]">{{ statusMap[scope.scope.status || 0].name }}</span> <span v-if="statusMap[scope.scope.status || 0]">{{ statusMap[scope.scope.status || 0].name }}</span>
...@@ -212,7 +213,8 @@ export default { ...@@ -212,7 +213,8 @@ export default {
], ],
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableOption: false, mutiSelectName: 'djIndex',
mutiSelectUniqueKey: 'id',
tableColumns: [ tableColumns: [
{ {
label: '核销码', label: '核销码',
...@@ -409,6 +411,11 @@ export default { ...@@ -409,6 +411,11 @@ export default {
mounted() { mounted() {
// this.handleUploadBefore() // this.handleUploadBefore()
}, },
beforeDestroy(){
const {pageNum, pageSize} = this.$refs?.equityRef?.page || {}
const djPageInfo = {pageNum, pageSize}
window.sessionStorage.setItem('djPageInfo',JSON.stringify(djPageInfo))
},
methods: { methods: {
getClaimsCount() { getClaimsCount() {
this.$apis.claims.getclaimsCount({}).then(res => { this.$apis.claims.getclaimsCount({}).then(res => {
...@@ -421,6 +428,28 @@ export default { ...@@ -421,6 +428,28 @@ export default {
this.showGh = href.indexOf('cgacar') != -1 this.showGh = href.indexOf('cgacar') != -1
if (!this.showGh) this.searchFormData[0].placeholder = '请输入客户名 | 合同号 | 报案号' if (!this.showGh) this.searchFormData[0].placeholder = '请输入客户名 | 合同号 | 报案号'
}, },
batchAudit() {
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
const _target = data.find(item => item.status!=21&item.status!=23) //批量操作只操作 待审核 和 待运营经理审核
if(_target) return this.$message.error('请选择待审核的记录')
const parmas = {
idList: data.map(item => item.id)
}
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.claims.batchPassApi(parmas).then(res => {
if(res) {
this.$message.success('操作成功')
this.handleOkFn()
}
}).finally(end => {
loading.close()
})
},
// 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核 // 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
handleEdit(editNo, row) { handleEdit(editNo, row) {
let urlParam = { let urlParam = {
...@@ -453,9 +482,23 @@ export default { ...@@ -453,9 +482,23 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchParams = { ...this.getParams() } this.searchParams = { ...this.getParams() }
const {pageNum, pageSize} = JSON.parse(window.sessionStorage.getItem('djPageInfo') || '{}')
if(pageNum && pageSize){
this.searchParams.pageNum = pageNum
this.searchParams.pageSize = pageSize
}
resolve() resolve()
}) })
}, },
setTableFinishFun(){
const {pageNum, pageSize} = JSON.parse(window.sessionStorage.getItem('djPageInfo') || '{}')
if(pageNum && pageSize){
this.$refs.equityRef.page.pageNum = pageNum
this.$refs.equityRef.page.pageSize = pageSize
this.$forceUpdate()
window.sessionStorage.removeItem('djPageInfo')
}
},
getParams() { getParams() {
let params = JSON.parse(JSON.stringify(this.searchForm)) let params = JSON.parse(JSON.stringify(this.searchForm))
if (Array.isArray(params.commitDate) && params.commitDate.length > 0) { if (Array.isArray(params.commitDate) && params.commitDate.length > 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!