Commit 2805a95c by zhangxw

批量更换产品合同,核赔跟进人配置需求开发

1 parent 3a71bda8
......@@ -461,4 +461,15 @@ const checkDjClaimsOrderApi = params => {
sign: true
})
}
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, getDjClaimsDetailApi, checkDjOrderApi, checkDjClaimsOrderApi }
// 获取跟进人数据
const getFollowListApi = params => {
params.method = 'scrm.api.equity.service.follow.person.source.list'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
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, getDjClaimsDetailApi, checkDjOrderApi, checkDjClaimsOrderApi, getFollowListApi }
......@@ -215,6 +215,17 @@ const getProdPartListApi = params => {
})
}
// 获取产品SKU类别
const getSkuCategoryListApi = params => {
params.method = `scrm.api.equity.service.base.package.sku.category.list`
return http({
url: CUR_BASE_URL,
method: 'POST',
data: params,
sign: true
})
}
export default {
getContractListApi,
getBaseTempListApi,
......@@ -235,5 +246,6 @@ export default {
exportProdPackageApi,
initProdPackageApi,
getProdPackageDetailApi,
getProdPartListApi
getProdPartListApi,
getSkuCategoryListApi
}
......@@ -7,14 +7,15 @@
<div class="operate_wrap">
<span class="table_title">合同列表</span>
<div class="operate_btn">
<el-button type="primary" plain :size="size">批量更换</el-button>
<GLButton type="primary" fn="批量更换" plain :size="size" @click="batchChangeTmpl">批量更换</GLButton>
<el-button type="primary" :size="size" @click="handleExport">导出</el-button>
</div>
</div>
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" :hasNum="false" :expand-row-keys="expandArr">
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" :hasNum="false" :expand-row-keys="expandArr">
<span slot="numberSlot" slot-scope="scope">{{ scope.index + 1 }}</span>
<div class="sub-tabel" slot="labelRelationDetailDTOList" slot-scope="scope" v-if="scope.scope.skuPackageList && scope.scope.skuPackageList.length">
<GLTable ref="sonTableRef" :hasPage="false" :tableData="scope.scope.skuPackageList" :tableParams="sonTableParams" :hasNum="false">
<span slot="selectSlot" slot-scope="row" :data="scope.scope"><el-checkbox @change="$event => handleSelection($event, row.scope)" :value="row.scope.isSelect" :disabled="scope.scope.packageType == 2 || !row.scope.contractId"></el-checkbox></span>
<span slot="serviceItemSlot" slot-scope="row" :data="scope.scope">{{ scope.scope.packageType == 1 ? row.scope.serviceItems || '--' : '--' }}</span>
<span slot="auth-button" slot-scope="row" :data="scope.scope">
<el-button type="text" v-if="scope.scope.packageType == 1" @click="handlePdf(row.scope)">打印</el-button>
......@@ -163,6 +164,7 @@ export default {
searchForm: {
baseId: '',
baseName: '',
categoryList: [],
createdDate: '',
updatedDate: ''
},
......@@ -182,12 +184,13 @@ export default {
},
{
label: '产品类别',
name: '',
name: 'categoryList',
type: 'select',
multiple: true,
optionList: [],
optionId: '',
optionLabel: '',
optionsName: ''
optionId: 'optionId',
optionLabel: 'optionLabel',
optionsName: 'skuTypeList'
},
{
label: '创建时间',
......@@ -280,9 +283,9 @@ export default {
listName: 'list',
tableOption: true,
// 行数据的key
mutiSelectUniqueKey: 'id',
// 多选ref的名称
mutiSelectName: 'list',
// mutiSelectUniqueKey: 'id',
// // 多选ref的名称
// mutiSelectName: 'list',
tableColumns: [
{
label: '',
......@@ -292,6 +295,11 @@ export default {
{
label: '',
width: 30,
addHtml: 'selectSlot'
},
{
label: '',
width: 50,
formatter: cell => ' '
},
{
......@@ -360,12 +368,18 @@ export default {
visible: false
},
// categoryList: [{ key: 'nihao' }, { key: '你好呀' }]
categoryList: []
categoryList: [],
checkedRow: [],
baseData: {
skuTypeList: []
}
}
},
mounted() {
this.getProdCategoryList()
// 获取产品类别查询条件数据
this.getBaseData()
},
methods: {
......@@ -387,6 +401,36 @@ export default {
}
})
},
getBaseData() {
this.$apis.contractManager.getSkuCategoryListApi({}).then(res => {
// 整理数据
let temp = res.map(item => ({optionId: item, optionLabel: item}))
this.baseData.skuTypeList = temp
this.getOptionsList('searchFormData')
})
},
getOptionsList(formName) {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
}
})
this.newKey = new Date()
},
setTableFinishFun(data) {
data.forEach(ele => {
if (ele.packageType == 1) {
ele?.skuPackageList?.forEach(item => {
// 判断checkedRow中是否包含item 将item的isSelect属性设置为true 翻页时能保留选中状态
this.checkedRow.forEach(cItem => {
if (cItem.contractId && item.contractId == cItem.contractId) {
this.$set(item, 'isSelect', true)
}
})
})
}
})
},
editCategoryFn(row, basePackageType) {
this.categoryObj = {
categoryName: (basePackageType == 1 ? row.skuCategory : row.spuCategory) || '',
......@@ -441,6 +485,26 @@ export default {
this.detailData.packageTypeName = row.packageType == 1 ? '权益类' : '延保类'
this.drawer = true
},
// 直接获取mutiSelectArr,会获取不到。自定义一个选择框
handleSelection(e, row) {
if (e) {
this.checkedRow.push(row)
} else {
this.checkedRow = this.checkedRow.filter(item => item.contractId !== row.contractId)
}
},
// 批量变更合同
batchChangeTmpl() {
const data = this.checkedRow || []
const ids = data.map(item => item.contractId)
if (!ids.length) return this.$message.error('请选择需要变更的合同')
this.changeContractObj = {
visible: true,
isBase: 2,
id: '',
ids
}
},
// 更换模板
changeTmpl({ skuPackageCode, skuId, contractId }, baseType) {
this.changeContractObj = {
......@@ -551,6 +615,8 @@ export default {
}, 1000),
handleSearch() {
// 将已选的清除
this.checkedRow = []
this.$refs.equityRef.refreshTable()
},
......@@ -558,6 +624,7 @@ export default {
this.searchForm = {
baseId: '',
baseName: '',
categoryList: [],
createdDate: '',
updatedDate: ''
}
......@@ -671,6 +738,13 @@ export default {
.m-r-l-20 {
margin: 0 20px;
}
/deep/ .el-select__tags-text{
display: inline-block;
max-width: 110px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.table_wrapper {
background: #ffffff;
......
<template>
<GLDialog :destroy-on-close="isdestroy" :close-on-click-modal="false" title="跟进人配置" mode="mid" :visible.sync="isFollowSync" :before-close="handleCancel">
<GLTable :hasPage="false" :hasNum="true" :tableData="followListData" :tableParams="followTableParams">
<div slot="followName" slot-scope="scope">
<el-form v-if="scope.scope.followName == ''">
<el-form-item style="margin-bottom: 0px">
<el-select v-model="followName" filterable @change="handleSelect" :value-key="'uuid'" placeholder="请选择跟进人">
<el-option v-for="(item, index) in selectList" :key="index" :label="item.staffName" :disabled="followDisabled(item)" :value="item"></el-option>
</el-select>
</el-form-item>
</el-form>
<span v-else>{{ scope.scope.followName }}</span>
</div>
<div class="table-btns" slot="table-btns" slot-scope="scope">
<el-button type="text" size="small" @click="handleDelete(scope.scope, scope.index)">删除</el-button>
</div>
</GLTable>
<div class="add-wrap" @click="addLine">
<i class="el-icon-circle-plus-outline add-icon"></i>
添加
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleCancel">取消</el-button>
<el-button type="primary" size="small" @click="handleCancel">确定</el-button>
</span>
</GLDialog>
</template>
<script>
export default {
data() {
return {
isdestroy: true,
followListData: [],
followTableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '跟进人',
prop: 'followName',
addHtml: 'followName'
},
{
label: '操作',
prop: '',
width: 80,
fixed: 'right',
addHtml: 'table-btns'
}
]
},
selectList: [],
followAccountUuid: '',
followName: ''
}
},
props: {
isFollowSync: {
type: Boolean,
default: false
}
},
created() {
this.getFollowPersonList()
},
mounted() {
// 获取下拉框的跟进人数据
this.getSelectFollowPersonList()
},
methods: {
getFollowPersonList() {
this.$apis.claims
.getFollowPersonList({
pageSize: 10000,
pageNum: 1
})
.then(res => {
this.followListData = res.list
})
},
followDisabled(item) {
let flag = false
this.followListData.forEach(element => {
if (element.followAccountUuid == item.uuid) {
flag = true
}
})
return flag
},
getSelectFollowPersonList() {
this.$apis.claims.getFollowListApi({}).then(res => {
this.selectList = res || []
})
},
addLine() {
if (this.followListData.length > 0 && this.followListData[this.followListData.length - 1].followAccountUuid == '') {
return
}
this.followName = ''
this.followAccountUuid = ''
this.followListData.push({ followName: '', followAccountUuid: '' })
},
handleSelect(item) {
this.$apis.claims.addFollowPerson({ followName: item.staffName, followAccountUuid: item.uuid }).then(res => {
this.getFollowPersonList()
})
},
handleCancel() {
this.$emit('handleClose')
},
//删除
handleDelete(data, index) {
if (data.id) {
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
if (data.id) {
this.$apis.claims.delFollowPerson({ id: data.id }).then(res => {})
this.followListData.splice(index, 1)
}
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
} else {
this.followListData.splice(index, 1)
}
}
}
}
</script>
<style scoped lang="scss">
.add-wrap {
display: flex;
align-items: center;
font-size: 12px;
color: #5850ff;
margin-top: 10px;
cursor: pointer;
.add-icon {
margin-right: 6px;
font-size: 20px;
color: #5850ff;
}
}
</style>
......@@ -20,6 +20,7 @@
<span>核赔订单列表</span>
<div class="table_top_btn flex_sc">
<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>
......@@ -38,9 +39,12 @@
</div>
</GLTable>
</div>
<!-- 跟进人配置 -->
<dj-follow-pop ref="followRef" @handleClose="handleClose" :isFollowSync="isFollowSync" v-if="isFollowSync"></dj-follow-pop>
</div>
</template>
<script>
import djFollowPop from './components/djFollowPop'
import * as dayjs from 'dayjs'
const statusList = [
// {
......@@ -116,7 +120,7 @@ export default {
return '定损审核'
},
condition: row => {
return [33].includes(row.scope.status)
return [33].includes(row.scope.status) && row.scope.editFlag == 0
},
attrs: {
type: 'text',
......@@ -382,6 +386,14 @@ export default {
}
},
{
label: '跟进人',
prop: 'followName',
width: 100,
formatter: cellValue => {
return cellValue.followName || '-'
}
},
{
label: '操作人',
prop: 'operatorName',
width: 100,
......@@ -480,9 +492,13 @@ export default {
name: '核赔通过',
color: '#2CCA74'
}
}
},
isFollowSync: false
}
},
components: {
djFollowPop
},
created() {
this.diffHost()
this.getClaimsCount()
......@@ -533,6 +549,13 @@ export default {
loading.close()
})
},
//跟进人配置
handleConfig() {
this.isFollowSync = true
},
handleClose() {
this.isFollowSync = false
},
// 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
handleEdit(editNo, row) {
const title = this.jumpTitle(editNo)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!