Commit b026d960 by zhangquan

3月份需求

1 parent ce7a92e1
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
<label class="label" for="">定损批准金额:</label> <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> <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>
<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"> <div v-if="!isXB && item.lossAssessmentFlag" class="price-wrap">
<label class="label" for="">保险公司定损金额:</label> <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> <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 = [ ...@@ -229,7 +229,7 @@ const followList = [
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过', '', '', '', '', '', '', '', '', '', '', '', '待运营经理审核', '运营经理审核通过', '运营经理审核不通过', '已失效', '已删除', '已结束案件'] 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 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 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] // 核赔审核
...@@ -363,7 +363,7 @@ export default { ...@@ -363,7 +363,7 @@ export default {
} }
}, },
{ {
type: 'GLButton', type: 'el-button',
name: row => { name: row => {
return '查看' return '查看'
}, },
......
...@@ -111,13 +111,10 @@ export default { ...@@ -111,13 +111,10 @@ export default {
} }
}, },
{ {
type: 'GLButton', type: 'el-button',
name: row => { name: row => {
return '查看' return '查看'
}, },
condition: row => {
return [1, 3, 4, 21, 24].includes(row.scope.status)
},
attrs: { attrs: {
type: 'text', type: 'text',
fn: '查看' fn: '查看'
...@@ -411,10 +408,10 @@ export default { ...@@ -411,10 +408,10 @@ export default {
mounted() { mounted() {
// this.handleUploadBefore() // this.handleUploadBefore()
}, },
beforeDestroy(){ beforeDestroy() {
const {pageNum, pageSize} = this.$refs?.equityRef?.page || {} const { pageNum, pageSize } = this.$refs?.equityRef?.page || {}
const djPageInfo = {...this.searchForm, pageNum, pageSize} const djPageInfo = { ...this.searchForm, pageNum, pageSize }
window.sessionStorage.setItem('djPageInfo',JSON.stringify(djPageInfo)) window.sessionStorage.setItem('djPageInfo', JSON.stringify(djPageInfo))
}, },
methods: { methods: {
getClaimsCount() { getClaimsCount() {
...@@ -430,9 +427,9 @@ export default { ...@@ -430,9 +427,9 @@ export default {
}, },
batchAudit() { batchAudit() {
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || [] const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
if(!data?.length) return this.$message.error('请选择需要审批的记录') if (!data?.length) return this.$message.error('请选择需要审批的记录')
const _target = data.find(item => item.status!=21&item.status!=23) //批量操作只操作 待审核 和 待运营经理审核 const _target = data.find(item => (item.status != 21) & (item.status != 23)) //批量操作只操作 待审核 和 待运营经理审核
if(_target) return this.$message.error('请选择待审核的记录') if (_target) return this.$message.error('请选择待审核的记录')
const parmas = { const parmas = {
idList: data.map(item => item.id) idList: data.map(item => item.id)
} }
...@@ -442,14 +439,17 @@ export default { ...@@ -442,14 +439,17 @@ export default {
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)' background: 'rgba(0, 0, 0, 0.3)'
}) })
this.$apis.claims.batchPassApi(parmas).then(res => { this.$apis.claims
if(res) { .batchPassApi(parmas)
this.$message.success('操作成功') .then(res => {
this.handleOkFn() if (res) {
} this.$message.success('操作成功')
}).finally(end => { this.handleOkFn()
loading.close() }
}) })
.finally(end => {
loading.close()
})
}, },
// 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核 // 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
handleEdit(editNo, row) { handleEdit(editNo, row) {
...@@ -483,17 +483,17 @@ export default { ...@@ -483,17 +483,17 @@ 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') || '{}') const { pageNum, pageSize } = JSON.parse(window.sessionStorage.getItem('djPageInfo') || '{}')
if(pageNum && pageSize){ if (pageNum && pageSize) {
this.searchParams.pageNum = pageNum this.searchParams.pageNum = pageNum
this.searchParams.pageSize = pageSize this.searchParams.pageSize = pageSize
} }
resolve() resolve()
}) })
}, },
setTableFinishFun(){ setTableFinishFun() {
const {pageNum, pageSize} = JSON.parse(window.sessionStorage.getItem('djPageInfo') || '{}') const { pageNum, pageSize } = JSON.parse(window.sessionStorage.getItem('djPageInfo') || '{}')
if(pageNum && pageSize){ if (pageNum && pageSize) {
this.$refs.equityRef.page.pageNum = pageNum this.$refs.equityRef.page.pageNum = pageNum
this.$refs.equityRef.page.pageSize = pageSize this.$refs.equityRef.page.pageSize = pageSize
this.$forceUpdate() this.$forceUpdate()
...@@ -503,10 +503,10 @@ export default { ...@@ -503,10 +503,10 @@ export default {
getParams() { getParams() {
const sessionInfo = window.sessionStorage.getItem('djPageInfo') const sessionInfo = window.sessionStorage.getItem('djPageInfo')
const searchForm = JSON.parse(sessionInfo || '{}') const searchForm = JSON.parse(sessionInfo || '{}')
if(sessionInfo) { if (sessionInfo) {
delete searchForm.pageNum delete searchForm.pageNum
delete searchForm.pageSize delete searchForm.pageSize
this.searchForm = {...this.searchForm, ...searchForm} this.searchForm = { ...this.searchForm, ...searchForm }
} }
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) {
......
...@@ -257,15 +257,18 @@ export default { ...@@ -257,15 +257,18 @@ export default {
params.reimbursementCountiesCode = params.reimbursementAddress[2] params.reimbursementCountiesCode = params.reimbursementAddress[2]
} }
params.approveAmounts = '' params.approveAmounts = ''
let tagetObj = {} let tagetObj = {},
let lossAssessmentTarget = {} lossAssessmentTarget = {},
customesPriceObj = {}
this.serviceItemsList.forEach(item => { this.serviceItemsList.forEach(item => {
tagetObj[item.serviceItemCode] = item.approveAmount tagetObj[item.serviceItemCode] = item.approveAmount
customesPriceObj[item.serviceItemCode] = item.customerApplyAmount
if (item.lossAssessmentFlag) { if (item.lossAssessmentFlag) {
lossAssessmentTarget[item.serviceItemCode] = item.lossAssessmentAmount lossAssessmentTarget[item.serviceItemCode] = item.lossAssessmentAmount
} }
}) })
params.approveAmounts = JSON.stringify(tagetObj) params.approveAmounts = JSON.stringify(tagetObj)
params.customerApplyAmounts = JSON.stringify(customesPriceObj)
params.lossAssessmentAmounts = JSON.stringify(lossAssessmentTarget) params.lossAssessmentAmounts = JSON.stringify(lossAssessmentTarget)
delete params.reimbursementAddress delete params.reimbursementAddress
params.fileList = [] params.fileList = []
...@@ -502,17 +505,21 @@ export default { ...@@ -502,17 +505,21 @@ export default {
}) })
}) })
if (!valid) return valid if (!valid) return valid
let requirePrice = true let requirePrice = true,
let lossAssTipItem = null lossAssTipItem = null,
let approItem = null approItem = null,
custPriTag = null
this.serviceItemsList.forEach(item => { this.serviceItemsList.forEach(item => {
if (item.approveAmount > 0) { if (item.approveAmount > 0) {
requirePrice = false requirePrice = false
} }
if (item.approveAmount > 0 && !item.customerApplyAmount) {
custPriTag = item
}
if (item.approveAmount && item.lossAssessmentFlag && !item.lossAssessmentAmount) { if (item.approveAmount && item.lossAssessmentFlag && !item.lossAssessmentAmount) {
lossAssTipItem = item lossAssTipItem = item
} }
if (!item.approveAmount && item.lossAssessmentFlag && item.lossAssessmentAmount) { if (!item.approveAmount && ((item.lossAssessmentFlag && item.lossAssessmentAmount) || item.customerApplyAmount)) {
approItem = item approItem = item
} }
}) })
...@@ -520,6 +527,10 @@ export default { ...@@ -520,6 +527,10 @@ export default {
this.$message.error('至少输入一项服务的定损批准金额') this.$message.error('至少输入一项服务的定损批准金额')
return false return false
} }
if (custPriTag) {
this.$message.error(`请输入${custPriTag.serviceItemName}的保险金额`)
return false
}
if (approItem) { if (approItem) {
this.$message.error(`请输入${approItem.serviceItemName}的定损批准金额`) this.$message.error(`请输入${approItem.serviceItemName}的定损批准金额`)
return false return false
...@@ -572,15 +583,18 @@ export default { ...@@ -572,15 +583,18 @@ export default {
params.reimbursementCountiesCode = params.reimbursementAddress[2] params.reimbursementCountiesCode = params.reimbursementAddress[2]
} }
params.approveAmounts = '' params.approveAmounts = ''
let tagetObj = {} let tagetObj = {},
let lossAssessmentTarget = {} lossAssessmentTarget = {},
customesPriceObj = {}
this.serviceItemsList.forEach(item => { this.serviceItemsList.forEach(item => {
tagetObj[item.serviceItemCode] = item.approveAmount tagetObj[item.serviceItemCode] = item.approveAmount
customesPriceObj[item.serviceItemCode] = item.customerApplyAmount
if (item.lossAssessmentFlag) { if (item.lossAssessmentFlag) {
lossAssessmentTarget[item.serviceItemCode] = item.lossAssessmentAmount lossAssessmentTarget[item.serviceItemCode] = item.lossAssessmentAmount
} }
}) })
params.approveAmounts = JSON.stringify(tagetObj) params.approveAmounts = JSON.stringify(tagetObj)
params.customerApplyAmounts = JSON.stringify(customesPriceObj)
params.lossAssessmentAmounts = JSON.stringify(lossAssessmentTarget) params.lossAssessmentAmounts = JSON.stringify(lossAssessmentTarget)
delete params.reimbursementAddress delete params.reimbursementAddress
params.fileList = [] params.fileList = []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!