Commit c871cbd3 by 前端

Merge branch 'SAAS+V4.47.0' into 'master'

上线合并

See merge request !78
2 parents 6809dc76 ab37c28e
...@@ -461,4 +461,15 @@ const checkDjClaimsOrderApi = params => { ...@@ -461,4 +461,15 @@ const checkDjClaimsOrderApi = params => {
sign: true 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 => { ...@@ -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 { export default {
getContractListApi, getContractListApi,
getBaseTempListApi, getBaseTempListApi,
...@@ -235,5 +246,6 @@ export default { ...@@ -235,5 +246,6 @@ export default {
exportProdPackageApi, exportProdPackageApi,
initProdPackageApi, initProdPackageApi,
getProdPackageDetailApi, getProdPackageDetailApi,
getProdPartListApi getProdPartListApi,
getSkuCategoryListApi
} }
...@@ -190,6 +190,11 @@ export default { ...@@ -190,6 +190,11 @@ export default {
//商品合同批量 //商品合同批量
params.targetIds = this.changeContractObj.ids params.targetIds = this.changeContractObj.ids
} }
// 产品合同批量
if (this.changeContractObj.isProdBatch) {
params.targetIds = this.changeContractObj.ids
API = 'copyTemplateApi'
}
} }
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
......
...@@ -7,13 +7,15 @@ ...@@ -7,13 +7,15 @@
<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 type="primary" plain :size="size" @click="handleExport">导出</el-button> <GLButton type="primary" fn="批量更换" plain :size="size" @click="batchChangeTmpl">批量更换</GLButton>
<el-button type="primary" :size="size" @click="handleExport">导出</el-button>
</div> </div>
</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> <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"> <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"> <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="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"> <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> <el-button type="text" v-if="scope.scope.packageType == 1" @click="handlePdf(row.scope)">打印</el-button>
...@@ -162,6 +164,7 @@ export default { ...@@ -162,6 +164,7 @@ export default {
searchForm: { searchForm: {
baseId: '', baseId: '',
baseName: '', baseName: '',
categoryList: [],
createdDate: '', createdDate: '',
updatedDate: '' updatedDate: ''
}, },
...@@ -180,6 +183,16 @@ export default { ...@@ -180,6 +183,16 @@ export default {
isClear: true isClear: true
}, },
{ {
label: '产品类别',
name: 'categoryList',
type: 'select',
multiple: true,
optionList: [],
optionId: 'optionId',
optionLabel: 'optionLabel',
optionsName: 'skuTypeList'
},
{
label: '创建时间', label: '创建时间',
name: 'createdDate', name: 'createdDate',
type: 'datePicker', type: 'datePicker',
...@@ -269,6 +282,10 @@ export default { ...@@ -269,6 +282,10 @@ export default {
sonTableParams: { sonTableParams: {
listName: 'list', listName: 'list',
tableOption: true, tableOption: true,
// 行数据的key
// mutiSelectUniqueKey: 'id',
// // 多选ref的名称
// mutiSelectName: 'list',
tableColumns: [ tableColumns: [
{ {
label: '', label: '',
...@@ -277,7 +294,12 @@ export default { ...@@ -277,7 +294,12 @@ export default {
}, },
{ {
label: '', label: '',
width: 80, width: 30,
addHtml: 'selectSlot'
},
{
label: '',
width: 50,
formatter: cell => ' ' formatter: cell => ' '
}, },
{ {
...@@ -346,12 +368,18 @@ export default { ...@@ -346,12 +368,18 @@ export default {
visible: false visible: false
}, },
// categoryList: [{ key: 'nihao' }, { key: '你好呀' }] // categoryList: [{ key: 'nihao' }, { key: '你好呀' }]
categoryList: [] categoryList: [],
checkedRow: [],
baseData: {
skuTypeList: []
}
} }
}, },
mounted() { mounted() {
this.getProdCategoryList() this.getProdCategoryList()
// 获取产品类别查询条件数据
this.getBaseData()
}, },
methods: { methods: {
...@@ -373,6 +401,36 @@ export default { ...@@ -373,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) { editCategoryFn(row, basePackageType) {
this.categoryObj = { this.categoryObj = {
categoryName: (basePackageType == 1 ? row.skuCategory : row.spuCategory) || '', categoryName: (basePackageType == 1 ? row.skuCategory : row.spuCategory) || '',
...@@ -427,6 +485,27 @@ export default { ...@@ -427,6 +485,27 @@ export default {
this.detailData.packageTypeName = row.packageType == 1 ? '权益类' : '延保类' this.detailData.packageTypeName = row.packageType == 1 ? '权益类' : '延保类'
this.drawer = true 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,
isProdBatch: true,
id: '',
ids
}
},
// 更换模板 // 更换模板
changeTmpl({ skuPackageCode, skuId, contractId }, baseType) { changeTmpl({ skuPackageCode, skuId, contractId }, baseType) {
this.changeContractObj = { this.changeContractObj = {
...@@ -537,6 +616,8 @@ export default { ...@@ -537,6 +616,8 @@ export default {
}, 1000), }, 1000),
handleSearch() { handleSearch() {
// 将已选的清除
this.checkedRow = []
this.$refs.equityRef.refreshTable() this.$refs.equityRef.refreshTable()
}, },
...@@ -544,6 +625,7 @@ export default { ...@@ -544,6 +625,7 @@ export default {
this.searchForm = { this.searchForm = {
baseId: '', baseId: '',
baseName: '', baseName: '',
categoryList: [],
createdDate: '', createdDate: '',
updatedDate: '' updatedDate: ''
} }
...@@ -657,6 +739,13 @@ export default { ...@@ -657,6 +739,13 @@ export default {
.m-r-l-20 { .m-r-l-20 {
margin: 0 20px; margin: 0 20px;
} }
/deep/ .el-select__tags-text{
display: inline-block;
max-width: 110px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
} }
.table_wrapper { .table_wrapper {
background: #ffffff; 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="handleSave">确定</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.$message({
type: 'success',
message: '添加成功',
customClass: 'msgHierarchy'
})
this.getFollowPersonList()
})
},
handleSave() {
if (this.followListData.length > 0 && this.followListData[this.followListData.length - 1].followAccountUuid == '') {
this.$message({
type: 'error',
message: '请选择跟进人',
customClass: 'msgHierarchy'
})
return
}
this.$emit('handleClose')
},
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: '已取消删除',
customClass: 'msgHierarchy'
})
})
} 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 @@ ...@@ -20,6 +20,7 @@
<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="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> <GLButton size="small" plain fn="批量审核" type="primary" @click="batchAudit">批量审核通过</GLButton>
<el-button plain size="small" @click="exportList">导出</el-button> <el-button plain size="small" @click="exportList">导出</el-button>
</div> </div>
...@@ -38,9 +39,12 @@ ...@@ -38,9 +39,12 @@
</div> </div>
</GLTable> </GLTable>
</div> </div>
<!-- 跟进人配置 -->
<dj-follow-pop ref="followRef" @handleClose="handleClose" :isFollowSync="isFollowSync" v-if="isFollowSync"></dj-follow-pop>
</div> </div>
</template> </template>
<script> <script>
import djFollowPop from './components/djFollowPop'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
const statusList = [ const statusList = [
// { // {
...@@ -116,7 +120,7 @@ export default { ...@@ -116,7 +120,7 @@ export default {
return '定损审核' return '定损审核'
}, },
condition: row => { condition: row => {
return [33].includes(row.scope.status) return [33].includes(row.scope.status) && row.scope.editFlag == 0
}, },
attrs: { attrs: {
type: 'text', type: 'text',
...@@ -382,6 +386,14 @@ export default { ...@@ -382,6 +386,14 @@ export default {
} }
}, },
{ {
label: '跟进人',
prop: 'followName',
width: 100,
formatter: cellValue => {
return cellValue.followName || '-'
}
},
{
label: '操作人', label: '操作人',
prop: 'operatorName', prop: 'operatorName',
width: 100, width: 100,
...@@ -480,9 +492,13 @@ export default { ...@@ -480,9 +492,13 @@ export default {
name: '核赔通过', name: '核赔通过',
color: '#2CCA74' color: '#2CCA74'
} }
} },
isFollowSync: false
} }
}, },
components: {
djFollowPop
},
created() { created() {
this.diffHost() this.diffHost()
this.getClaimsCount() this.getClaimsCount()
...@@ -533,6 +549,13 @@ export default { ...@@ -533,6 +549,13 @@ export default {
loading.close() loading.close()
}) })
}, },
//跟进人配置
handleConfig() {
this.isFollowSync = true
},
handleClose() {
this.isFollowSync = false
},
// 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核 // 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
handleEdit(editNo, row) { handleEdit(editNo, row) {
const title = this.jumpTitle(editNo) 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!