Commit b026d960 by zhangquan

3月份需求

1 parent ce7a92e1
......@@ -29,6 +29,10 @@
<label class="label" for="">定损批准金额:</label>
<el-input :disabled="pageType == 2 || renewDisable" maxlength="10" @input="validPrice($event, index, 'approveAmount')" @blur="changePrice($event, index, 'approveAmount')" placeholder="请输入" v-model="item.approveAmount"></el-input>
</div>
<div v-if="!isGH && !isXB" class="price-wrap">
<label class="label" for="">保险金额:</label>
<el-input :disabled="pageType == 2 || renewDisable || !item.approveAmount" maxlength="10" @input="validPrice($event, index, 'customerApplyAmount')" @blur="changePrice($event, index, 'customerApplyAmount')" placeholder="请输入" v-model="item.customerApplyAmount"></el-input>
</div>
<div v-if="!isXB && item.lossAssessmentFlag" class="price-wrap">
<label class="label" for="">保险公司定损金额:</label>
<el-input :disabled="pageType == 2 || renewDisable || !item.approveAmount" maxlength="10" @input="validPrice($event, index, 'lossAssessmentAmount')" @blur="changePrice($event, index, 'lossAssessmentAmount')" placeholder="请输入" v-model="item.lossAssessmentAmount"></el-input>
......
......@@ -229,7 +229,7 @@ const followList = [
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过', '', '', '', '', '', '', '', '', '', '', '', '待运营经理审核', '运营经理审核通过', '运营经理审核不通过', '已失效', '已删除', '已结束案件']
const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74', '', '', '', '', '', '', '', '', '', '', '', '#FDB757', '#2CCA74', '#EB4E4E', '#999', '#999', '#999']
// 操作对应状态
const WATCH = [5, 7, 13, 8, 9, 10, 11, 1, 3, 4, 26, 27, 28, 29, 30, 31] // 查看
const WATCH = [5, 7, 13, 8, 9, 10, 11, 12, 14, 1, 3, 4, 26, 27, 28, 29, 30, 31] // 查看
const FOLLOW_HISTORY = [5, 6, 12, 7, 13, 8, 9, 10, 11, 2, 1, 3] //跟进记录和历史赔付
const CHECK = [6] // 定损审核
const CHECK_HP = [12] // 核赔审核
......@@ -363,7 +363,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '查看'
},
......
......@@ -111,13 +111,10 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '查看'
},
condition: row => {
return [1, 3, 4, 21, 24].includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '查看'
......@@ -411,10 +408,10 @@ 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))
beforeDestroy() {
const { pageNum, pageSize } = this.$refs?.equityRef?.page || {}
const djPageInfo = { ...this.searchForm, pageNum, pageSize }
window.sessionStorage.setItem('djPageInfo', JSON.stringify(djPageInfo))
},
methods: {
getClaimsCount() {
......@@ -430,9 +427,9 @@ export default {
},
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('请选择待审核的记录')
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)
}
......@@ -442,14 +439,17 @@ export default {
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()
})
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) {
......@@ -483,17 +483,17 @@ export default {
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchParams = { ...this.getParams() }
const {pageNum, pageSize} = JSON.parse(window.sessionStorage.getItem('djPageInfo') || '{}')
if(pageNum && pageSize){
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){
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()
......@@ -503,10 +503,10 @@ export default {
getParams() {
const sessionInfo = window.sessionStorage.getItem('djPageInfo')
const searchForm = JSON.parse(sessionInfo || '{}')
if(sessionInfo) {
if (sessionInfo) {
delete searchForm.pageNum
delete searchForm.pageSize
this.searchForm = {...this.searchForm, ...searchForm}
this.searchForm = { ...this.searchForm, ...searchForm }
}
let params = JSON.parse(JSON.stringify(this.searchForm))
if (Array.isArray(params.commitDate) && params.commitDate.length > 0) {
......
......@@ -257,15 +257,18 @@ export default {
params.reimbursementCountiesCode = params.reimbursementAddress[2]
}
params.approveAmounts = ''
let tagetObj = {}
let lossAssessmentTarget = {}
let tagetObj = {},
lossAssessmentTarget = {},
customesPriceObj = {}
this.serviceItemsList.forEach(item => {
tagetObj[item.serviceItemCode] = item.approveAmount
customesPriceObj[item.serviceItemCode] = item.customerApplyAmount
if (item.lossAssessmentFlag) {
lossAssessmentTarget[item.serviceItemCode] = item.lossAssessmentAmount
}
})
params.approveAmounts = JSON.stringify(tagetObj)
params.customerApplyAmounts = JSON.stringify(customesPriceObj)
params.lossAssessmentAmounts = JSON.stringify(lossAssessmentTarget)
delete params.reimbursementAddress
params.fileList = []
......@@ -502,17 +505,21 @@ export default {
})
})
if (!valid) return valid
let requirePrice = true
let lossAssTipItem = null
let approItem = null
let requirePrice = true,
lossAssTipItem = null,
approItem = null,
custPriTag = null
this.serviceItemsList.forEach(item => {
if (item.approveAmount > 0) {
requirePrice = false
}
if (item.approveAmount > 0 && !item.customerApplyAmount) {
custPriTag = item
}
if (item.approveAmount && item.lossAssessmentFlag && !item.lossAssessmentAmount) {
lossAssTipItem = item
}
if (!item.approveAmount && item.lossAssessmentFlag && item.lossAssessmentAmount) {
if (!item.approveAmount && ((item.lossAssessmentFlag && item.lossAssessmentAmount) || item.customerApplyAmount)) {
approItem = item
}
})
......@@ -520,6 +527,10 @@ export default {
this.$message.error('至少输入一项服务的定损批准金额')
return false
}
if (custPriTag) {
this.$message.error(`请输入${custPriTag.serviceItemName}的保险金额`)
return false
}
if (approItem) {
this.$message.error(`请输入${approItem.serviceItemName}的定损批准金额`)
return false
......@@ -572,15 +583,18 @@ export default {
params.reimbursementCountiesCode = params.reimbursementAddress[2]
}
params.approveAmounts = ''
let tagetObj = {}
let lossAssessmentTarget = {}
let tagetObj = {},
lossAssessmentTarget = {},
customesPriceObj = {}
this.serviceItemsList.forEach(item => {
tagetObj[item.serviceItemCode] = item.approveAmount
customesPriceObj[item.serviceItemCode] = item.customerApplyAmount
if (item.lossAssessmentFlag) {
lossAssessmentTarget[item.serviceItemCode] = item.lossAssessmentAmount
}
})
params.approveAmounts = JSON.stringify(tagetObj)
params.customerApplyAmounts = JSON.stringify(customesPriceObj)
params.lossAssessmentAmounts = JSON.stringify(lossAssessmentTarget)
delete params.reimbursementAddress
params.fileList = []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!