Commit 508d08b4 by 前端

Merge branch 'v3.22.0' into 'master'

V3.22.0

See merge request !44
2 parents 4750e935 fea1a1fa
......@@ -1878,6 +1878,51 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
......@@ -1886,6 +1931,28 @@
"requires": {
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
......@@ -13286,75 +13353,6 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-quill-editor": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/vue-quill-editor/-/vue-quill-editor-3.0.6.tgz",
......
......@@ -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 => {
params.method = 'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit'
......@@ -398,4 +410,4 @@ const addFollowPerson = params => {
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 => {
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 => {
params.method = `scrm.api.equity.service.contract.template.list.export`
return http({
......@@ -66,5 +90,7 @@ export default {
getContractDetailApi,
printContractApi,
copyTemplateApi,
babchCopyTemplateApi,
babchInitTemplateApi,
exportContractApi
}
\ No newline at end of file
......@@ -21,7 +21,7 @@ export const fetchConfig = function (common) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=services')
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
......
......@@ -134,18 +134,32 @@
handleConfirm(){
if(!this.curId) return this.$message.error('请选择变更模板的合同')
const params = {
sourceId: this.curId,
targetId: this.changeContractObj.id
sourceId: this.curId
}
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
}
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.contractManager[API](params).then(res=>{
if(res) {
this.$message.success('变更模板成功')
this.handleClose()
}
}).finally(end => {
loading.close()
})
},
handleClose(){
this.changeContractObj.visible = false
this.$emit('closeDialog')
}
}
}
......
......@@ -7,7 +7,9 @@
<div class="operate_wrap">
<span class="table_title">合同列表</span>
<div class="operate_btn">
<el-button :size="size" @click="handleExport">导出</el-button>
<GLButton type="primary" fn="批量更换" plain :size="size" @click="batchChangeTmpl">批量更换</GLButton>
<GLButton type="primary" fn="批量初始化" plain :size="size" @click="batchInitTmpl">批量初始化</GLButton>
<el-button type="primary" plain :size="size" @click="handleExport">导出</el-button>
</div>
</div>
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
......@@ -20,11 +22,32 @@
</GLTable>
</div>
<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>
</template>
<script>
const throttle = function(fn, time) {
let timer = null
time = time || 1000
return function (...args) {
if (timer) {
return
}
const _this = this
timer = setTimeout(() => {
timer = null
}, time)
fn.apply(_this, args)
}
}
import * as dayjs from 'dayjs'
import utils from '../../util/util'
import pdfDialog from '@/views/beforeSale/pdfDialog'
......@@ -38,6 +61,10 @@
data() {
return {
size: 'small',
tipObj: {
visible: false,
ids: []
},
isPdfVisible: false,
changeContractObj: {
visible: false,
......@@ -69,16 +96,30 @@
}
},
{
type: 'el-button',
type: 'GLButton',
name: row => {
return '更换模板'
},
attrs: {
type: 'text'
type: 'text',
fn: '更换模板'
},
listeners: {
click: row => this.changeContractTMPL(row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '模板初始化'
},
attrs: {
type: 'text',
fn: '模板初始化'
},
listeners: {
click: row => this.initTmpl(row.scope)
}
}
],
searchForm: {
......@@ -122,6 +163,8 @@
getListApi: this.$apis.contractManager.getContractListApi,
tableParams: {
listName: 'list',
mutiSelectName: 'tmplIndex',
mutiSelectUniqueKey: 'id',
tableOption: true,
tableColumns: [
{
......@@ -165,12 +208,66 @@
},
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
}
},
initTmpl(row) {
this.tipObj = {
visible: true,
ids: [row.id]
}
},
toInitTmpl(){
const params = {
templateIds: this.tipObj.ids
}
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.contractManager.babchInitTemplateApi(params).then(res=>{
if(res) {
this.$message.success('初始化模板成功')
this.closeTipDialog()
}
}).finally(end => {
loading.close()
})
},
closeTipDialog(){
this.tipObj = {
visible: false,
ids: []
}
this.handleSearch()
},
changeContractTMPL(row){
this.changeContractObj = {
visible: true,
id: row.id
}
console.log(this.changeContractObj)
},
getParams() {
let params = JSON.parse(JSON.stringify(this.searchForm))
......@@ -214,7 +311,7 @@
},
// 导出
handleExport() {
handleExport: throttle(function() {
var params = this.getParams()
this.$apis.contractManager.exportContractApi(params).then(res => {
// window.open(res)
......@@ -228,7 +325,7 @@
document.body.appendChild(iframe)
}
})
},
}, 1000),
handleSearch() {
this.$refs.equityRef.refreshTable()
......@@ -273,5 +370,28 @@
background: #ffffff;
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>
\ No newline at end of file
......@@ -26,12 +26,13 @@
<div class="table_top_line flex_scb">
<span>核赔订单列表</span>
<div class="table_top_btn flex_sc">
<GLButton size="small" fn="跟进人配置" type="primary" @click="handleConfig">跟进人配置</GLButton>
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<GLButton size="small" fn="订单详情" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<GLButton size="small" plain fn="跟进人配置" type="primary" @click="handleConfig">跟进人配置</GLButton>
<GLButton size="small" plain fn="批量审核" type="primary" @click="batchAudit">批量审核通过</GLButton>
<el-button plain size="small" @click="exportList">导出</el-button>
</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="table_point" :style="{ background: colors[scope.scope.status] }"></div>
<span>{{ tableStatus[scope.scope.status] }}</span>
......@@ -204,15 +205,15 @@ const followList = [
confName: '全部'
}
]
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过','','','','','','','','','','','','待运营经理审核','运营经理审核通过','运营经理审核不通过']
const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74','','','','','','','','','','','','#FDB757','#2CCA74','#EB4E4E']
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过', '', '', '', '', '', '', '', '', '', '', '', '待运营经理审核', '运营经理审核通过', '运营经理审核不通过']
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 CHECK = [6] // 定损审核
const CHECK_HP = [12] // 核赔审核
const RE_SUMBIT = [2] //重新提交
const RETURN_IT = [7, 13,28] // 撤销
const RETURN_IT = [7, 13, 28] // 撤销
const UPLOAD_INFO = [11] // 上传资料
const TO_HANDLE = [0] // 去处理
const Operations_Mananger = [26] // 运营经理审核
......@@ -491,6 +492,8 @@ export default {
],
tableParams: {
listName: 'list',
mutiSelectName: 'ghIndex',
mutiSelectUniqueKey: 'id',
tableOption: false,
tableColumns: [
{
......@@ -721,6 +724,11 @@ export default {
this.getFollowPersonList()
},
mounted() {},
beforeDestroy(){
const {pageNum, pageSize} = this.$refs?.equityRef?.page || {}
const ghPageInfo = {...this.searchForm,pageNum, pageSize}
window.sessionStorage.setItem('ghPageInfo',JSON.stringify(ghPageInfo))
},
methods: {
getFollowPersonList() {
this.$apis.claims
......@@ -736,6 +744,29 @@ export default {
handleConfig() {
this.isFollowSync = true
},
batchAudit() {
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
if(!data?.length) return this.$message.error('请选择需要审批的记录')
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() {
this.isFollowSync = false
},
......@@ -876,10 +907,31 @@ export default {
beforeSearchFn() {
return new Promise((resolve, reject) => {
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()
})
},
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() {
const sessionInfo = window.sessionStorage.getItem('ghPageInfo')
const searchForm = JSON.parse(sessionInfo || '{}')
if(sessionInfo) {
delete searchForm.pageNum
delete searchForm.pageSize
this.searchForm = {...this.searchForm, ...searchForm}
}
let params = JSON.parse(JSON.stringify(this.searchForm))
if (Array.isArray(params.commitDate) && params.commitDate.length > 0) {
params.commitTimeStart = dayjs(params.commitDate[0]).format('YYYY-MM-DD') + ' 00:00:00'
......
......@@ -19,12 +19,13 @@
<div class="table_top_line flex_scb">
<span>核赔订单列表</span>
<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>
<GLButton size="small" plain fn="批量审核" type="primary" @click="batchAudit">批量审核通过</GLButton>
<el-button plain size="small" @click="exportList">导出</el-button>
</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 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>
......@@ -212,7 +213,8 @@ export default {
],
tableParams: {
listName: 'list',
tableOption: false,
mutiSelectName: 'djIndex',
mutiSelectUniqueKey: 'id',
tableColumns: [
{
label: '核销码',
......@@ -409,6 +411,11 @@ export default {
mounted() {
// this.handleUploadBefore()
},
beforeDestroy(){
const {pageNum, pageSize} = this.$refs?.equityRef?.page || {}
const djPageInfo = {...this.searchForm, pageNum, pageSize}
window.sessionStorage.setItem('djPageInfo',JSON.stringify(djPageInfo))
},
methods: {
getClaimsCount() {
this.$apis.claims.getclaimsCount({}).then(res => {
......@@ -421,6 +428,29 @@ export default {
this.showGh = href.indexOf('cgacar') != -1
if (!this.showGh) this.searchFormData[0].placeholder = '请输入客户名 | 合同号 | 报案号'
},
batchAudit() {
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
if(!data?.length) return this.$message.error('请选择需要审批的记录')
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 核赔审核
handleEdit(editNo, row) {
let urlParam = {
......@@ -453,10 +483,31 @@ export default {
beforeSearchFn() {
return new Promise((resolve, reject) => {
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()
})
},
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() {
const sessionInfo = window.sessionStorage.getItem('djPageInfo')
const searchForm = JSON.parse(sessionInfo || '{}')
if(sessionInfo) {
delete searchForm.pageNum
delete searchForm.pageSize
this.searchForm = {...this.searchForm, ...searchForm}
}
let params = JSON.parse(JSON.stringify(this.searchForm))
if (Array.isArray(params.commitDate) && params.commitDate.length > 0) {
params.commitTimeStart = dayjs(params.commitDate[0]).format('YYYY-MM-DD') + ' 00:00:00'
......
......@@ -459,8 +459,8 @@ export default {
}else{
this.ininData()
this.routeInfo.serviceCode = res.serviceCode
this.routeInfo.serviceName = res.serviceName
}
}
this.routeInfo.serviceName = res.serviceName
this.firstPage = false
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!