Commit eb2bea9d by 杨北旺

..

1 parent 8fc7ae63
......@@ -307,7 +307,7 @@ const saveClaimsCG = params => {
// 上传签名
const saveSign = params => {
params.method = 'scrm.api.equity.mini.service.claims.confirm'
params.method = 'scrm.api.equity.service.claims.sign.save'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
......@@ -315,4 +315,37 @@ const saveSign = params => {
sign: true
})
}
export default {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 }
// 获取大区
const getBigMerchantApi = params => {
params.method = 'scrm.api.equity.service.merchant.province.merchant.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 根据大区获取片区
const getMidMerchantApi = params => {
params.method = 'scrm.api.equity.service.merchant.city.merchant.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 根据选择的片区获取门店
const getMerchantApi = params => {
params.method = 'scrm.api.equity.service.merchant.merchant.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default {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 }
<!-- 搜索 -->
<template>
<div class="glsx-combi-form">
<el-form :ref="formRef" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<el-form :ref="formRef" :disabled="formDisable" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
......@@ -134,6 +134,10 @@ export default {
},
props: {
formDisable:{
type: Boolean,
default: false
},
isInline: {
type: Boolean,
default: true
......
......@@ -12,8 +12,8 @@ let instance = null
Vue.use(GLTable).use(GLCombiForm).use(GLTableButton).use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig()
// request.baseURL = 'https://scrm.test.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn'
// request.baseURL = 'https://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
// request.baseURL = 'http://192.168.1.53:7226'
// request_brand.baseURL = 'http://192.168.1.53:7226'
Vue.prototype.$history = history
......@@ -22,11 +22,11 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$common = common
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
// Vue.prototype.$defaultStartDate = '2021-07-01'
// // Vue.prototype.$defaultStartDate = '2021-07-01'
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-7cc5cfe3-48fe-4ca5-ac30-70a6c1c31132-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-7cc5cfe3-48fe-4ca5-ac30-70a6c1c31132-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-811305a2-49a3-4e8a-b6dc-fb925c65c95c-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-811305a2-49a3-4e8a-b6dc-fb925c65c95c-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers)
......
......@@ -47,15 +47,15 @@ export default {
.box {
background-color: #fff;
.header {
height: 58px;
height: 47px;
background-color: #fff;
line-height: 58px;
line-height: 47px;
padding: 0 20px;
box-sizing: border-box;
font-family: inherit;
font-size: 16px;
color: #333333;
font-weight: 600;
// font-weight: 600;
}
.main-wrap {
border-top: 1px solid #e5e5e5;
......
......@@ -3,7 +3,7 @@
<div class="widget">
<div class="title">报案信息(客户提交)</div>
<div class="content">
<glsxCombiForm :isInline="false" :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="repotData" :formData="editFormData"></glsxCombiForm>
<glsxCombiForm :formDisable="isDisabled" :isInline="false" :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="repotData" :formData="editFormData"></glsxCombiForm>
</div>
</div>
......@@ -11,7 +11,7 @@
<div>
<Card title="报案信息(店面补充)" class="handler-info gl-form-page">
<glsx-combi-form ref="handlerRef" :isInline="false" labelWidth="154px" defaultWidth="432px" :formObj="repotData" :formData="handlerForm">
<glsx-combi-form :formDisable="isDisabled" ref="handlerRef" :isInline="false" labelWidth="154px" defaultWidth="432px" :formObj="repotData" :formData="handlerForm">
<div slot="approveAmountSlot" class="amount-wrap">
<div v-for="(item, index) in itemList" :key="index">
<el-checkbox @change="selectService" v-model="item.checked">{{ item.serviceItemName }}</el-checkbox>
......@@ -28,8 +28,8 @@
</el-checkbox-group>
</div>
<div class="unit-price" :class="[{ nopt20: item.serviceItemCode == 'SC0006' || item.serviceItemCode == 'SC0003' }]">
<label class="required" for="">预计损失金额/元:</label>
<el-input maxlength="10" @input="validPrice($event, index)" @blur="changePrice($event, index)" placeholder="请选择定损批准金额" v-model="item.approveAmount"></el-input>
<label class="required" for="">预估损失金额/元:</label>
<el-input maxlength="10" @input="validPrice($event, index)" @blur="changePrice($event, index)" placeholder="请输入预估损失金额" v-model="item.applyAmount"></el-input>
</div>
</div>
<div class="lump-sum">
......@@ -37,7 +37,7 @@
<span>
预估损失金额
<span class="sign">¥&nbsp;</span>
<span class="price">{{ repotData.approveAmount }}</span>
<span class="price">{{ repotData.applyAmount }}</span>
元
</span>
</div>
......@@ -48,12 +48,12 @@
<!-- 上传资料 -->
<div>
<upload-material :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></upload-material>
<upload-material :isDisabled="isDisabled" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></upload-material>
</div>
<!-- 案件补充说明 -->
<div>
<explanation :supplementList="repotData.supplementList1"></explanation>
<explanation :isDisabled="isDisabled" :supplementList="repotData.supplementList1"></explanation>
</div>
<!-- 其他信息 -->
......@@ -203,7 +203,8 @@ export default {
repotData: Object,
insuranceAttachmentConfigs: Array,
itemList: Array,
otherInfoData: Object
otherInfoData: Object,
isDisabled:Boolean
},
watch: {
'editForm.reportDate'(newVal, oldVal) {
......
......@@ -28,11 +28,11 @@
<div class="messag" :class="[{ pad20: item.serviceItemCode != 'SC0003' && item.serviceItemCode != 'SC0006' }]">
<div class="ms flex_sc">
<div class="ms_lab">预估损失金额/元:</div>
<el-input v-model="item.approveAmount" size="mini" class="w432" maxlength="10"></el-input>
<el-input v-model="item.applyAmount" size="mini" class="w432" maxlength="10"></el-input>
</div>
<div class="ms flex_sc ma20">
<div class="ms_lab">定损批准金额/元:</div>
<el-input v-model="item.applyAmount" size="mini" class="w432" maxlength="10"></el-input>
<el-input v-model="item.approveAmount" size="mini" class="w432" maxlength="10"></el-input>
</div>
</div>
</div>
......@@ -40,9 +40,9 @@
<div class="total flex_scb">
<span>合计</span>
<span>
<span>预估损失金额:{{ repotData.approveAmount }}元</span>
<span>预估损失金额:{{ repotData.applyAmount }}元</span>
<span style="margin: 0 10px">|</span>
<span>定损批准金额:{{ repotData.applyAmount }}元</span>
<span>定损批准金额:{{ repotData.approveAmount }}元</span>
</span>
</div>
</div>
......@@ -70,6 +70,24 @@
<div>
<uploadMaterial :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></uploadMaterial>
</div>
<div class="widget ma16">
<div class="title">寄回原件说明</div>
<div class="content pad20">
<div v-for="(first, ind) in repotData.claimsAttachmentConfigs2" :key="ind">
<div v-for="(img, i) in first.secondClassifyList" :key="i" class="img_box">
<div class="title_tip flex_sc">
<div class="">{{ img.secondClassifyName || '' }}</div>
</div>
<div v-if="img.exampleUrl" class="img_pannel flex_cc">
<el-image :preview-src-list="[img.exampleUrl]" style="width: 216px; height: 135px; border-radius: 4px" :src="img.exampleUrl" :fit="fit"></el-image>
</div>
</div>
</div>
</div>
</div>
<div>
<explanation :supplementList="repotData.supplementList2"></explanation>
</div>
</div>
</template>
<script type="text/ecmascript-6">
......@@ -77,11 +95,13 @@ import * as dayjs from 'dayjs'
const phoneReg = /^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9]{8}$/
import glsxCombiForm from '@/components/glsx-combi-form'
import uploadMaterial from '../uploadMaterial.vue'
import explanation from '../explanation.vue'
export default {
name: 'checkClaimsPage',
components: {
glsxCombiForm,
uploadMaterial
uploadMaterial,
explanation
},
data() {
return {
......@@ -261,4 +281,28 @@ export default {
.ma20 {
margin-top: 20px;
}
.ma16 {
margin-top: 16px;
}
.img_box {
margin-bottom: 16px;
margin-right: 16px;
.service_title {
margin: 8px 0;
}
.title_tip {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.img_pannel {
width: 216px;
height: 135px;
margin: 8px 0;
border: 1px solid #e5e5e5;
background: #f5f5f5;
position: relative;
border-radius: 4px;
}
}
</style>
......@@ -4,11 +4,11 @@
<div class="explanation">
<div class="explanation-list" v-for="(item, idx) in supplementList" :key="idx">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label>
<el-input :disabled="isCheck" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" type="textarea" :rows="3"></el-input>
<el-input :disabled="isCheck || isDisabled" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" type="textarea" :rows="3"></el-input>
<i class="el-icon-delete del" v-if="!isCheck&&supplementList.length > 1" @click="handleDel(idx)"></i>
</div>
</div>
<div v-if="!isCheck" class="add-explanation" @click="addExplanation">
<div v-if="!isCheck &&!isDisabled" class="add-explanation" @click="addExplanation">
<i class="el-icon-circle-plus-outline"></i>
<span>新增说明</span>
</div>
......@@ -32,7 +32,8 @@ export default {
return [{ content: '' }]
}
},
isCheck:Boolean
isCheck:Boolean,
isDisabled:Boolean,
},
mounted() {},
methods: {
......
<template>
<div class="">
<Card title="上传图片">
<el-button type="text" slot="right" @click.stop="handleReview">快速审核</el-button>
<el-button :disabled="isDisabled" type="text" slot="right" @click.stop="handleReview">快速审核</el-button>
<!-- <el-button type="text" class="multiBtn" @click.stop="toMutiCheck">批量通过</el-button> -->
<el-tabs class="tabs" v-model="activeName" @tab-click="changeTabs">
<el-tab-pane v-for="(item, index) in insuranceAttachmentConfigs" :key="index" :label="item.firstClassifyName">
......@@ -36,7 +36,7 @@
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
</div>
<div class="footer_btn">
<div v-if="!isDisabled" class="footer_btn">
<el-button style="margin-left: 39px" @click="toHandlerImage(img, i, 1)" type="text">通过</el-button>
<el-button @click="toHandlerImage(img, i, 0)" type="text">不通过</el-button>
<div @click="toHandlerImage(img, i, 2)" class="up_wrap">
......@@ -60,7 +60,7 @@
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
</div>
<div class="footer_btn">
<div v-if="!isDisabled" class="footer_btn">
<el-button style="margin-left: 39px" @click="toHandlerImage(img, i, 1)" type="text">通过</el-button>
<el-button @click="toHandlerImage(img, i, 0)" type="text">不通过</el-button>
<div @click="toHandlerImage(img, i, 2)" class="up_wrap">
......@@ -82,7 +82,7 @@
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<div v-if="img.auditStatus == 0" class="errMsg flex_cc">{{ img.reasonForFailure }}</div>
</div>
<div class="footer_btn">
<div v-if="!isDisabled" class="footer_btn">
<el-button style="margin-left: 39px" @click="toHandlerImage(img, i, 1)" type="text">通过</el-button>
<el-button @click="toHandlerImage(img, i, 0)" type="text">不通过</el-button>
<div @click="toHandlerImage(img, i, 2)" class="up_wrap">
......@@ -97,7 +97,7 @@
</div>
<div @click="touploadOther" class="img_pannel uplpad_pannel flex_cc">
<img :src="cameraUrl" style="width: 40px; height: 40px" />
<input type="file" class="file_1" id="file" ref="input" @change="upload" accept="image/png, image/jpeg, image/gif, image/jpg" />
<input v-if="!isDisabled" type="file" class="file_1" id="file" ref="input" @change="upload" accept="image/png, image/jpeg, image/gif, image/jpg" />
</div>
</div>
</div>
......@@ -154,7 +154,8 @@ export default {
fastReview
},
props: {
insuranceAttachmentConfigs: Array
insuranceAttachmentConfigs: Array,
isDisabled:Boolean
},
mounted() {},
methods: {
......
......@@ -121,7 +121,7 @@
<other-info :otherInfoData="otherInfoData"></other-info>
</div>
</el-tab-pane>
<el-tab-pane v-if="[1, 12, 13, 14, 2, 3, 4, 0, 10, 11].includes(repotData.status)" class="bg" label="核赔信息" name="second">
<el-tab-pane v-if="[1, 12, 13, 14, 2, 3, 4, 0, 10, 11,8,9].includes(repotData.status)" class="bg" label="核赔信息" name="second">
<div class="widget">
<div class="title">维修信息</div>
<div class="content pad20">
......@@ -149,11 +149,11 @@
<div style="height: 36px" class="messag flex_scb">
<div class="ms">
<span>预估损失金额/元:</span>
<span class="price">{{ item.approveAmount || 0 }}</span>
<span class="price">{{ item.applyAmount || 0 }}</span>
</div>
<div class="ms">
<span>定损批准金额:</span>
<span class="price">{{ item.applyAmount || 0 }}</span>
<span class="price">{{ item.approveAmount || 0 }}</span>
</div>
</div>
</div>
......@@ -161,9 +161,9 @@
<div class="total flex_scb">
<span>合计</span>
<span>
<span>预估损失金额:{{ repotData.approveAmount || 0 }}元</span>
<span>预估损失金额:{{ repotData.applyAmount || 0 }}元</span>
<span style="margin: 0 10px">|</span>
<span>定损批准金额:{{ repotData.applyAmount || 0 }}元</span>
<span>定损批准金额:{{ repotData.approveAmount || 0 }}元</span>
</span>
</div>
</div>
......@@ -194,7 +194,7 @@
<div class="widget ma16">
<div class="title">上传资料</div>
<div class="cotent pad20">
<el-tabs class="tabs" v-model="activeName" @tab-click="changeTabs">
<el-tabs class="tabs" v-model="activeNameClaims" @tab-click="changeTabss">
<el-tab-pane v-for="(item, index) in images2" :key="index" :label="item.firstClassifyName">
<div v-if="item.firstClassifyName.indexOf('细节') != -1" class="service_line_wrap flex_sc">
<template v-for="(serviceitems, serviceIndex) in item.services">
......@@ -204,40 +204,40 @@
</template>
</div>
<div v-if="item.firstClassifyName.indexOf('细节') != -1" class="image_container">
<template v-for="(img, i) in images2[currentIndx].secondClassifyList">
<template v-for="(img, i) in images2[currentIndxClaims].secondClassifyList">
<div v-if="img.serviceItemName == item.services[currentServicesIndex]" :key="i" class="img_box">
<div class="title_tip flex_sc">
<i v-if="img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<i v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<div class="">{{ img.secondClassifyName }}</div>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length&&img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length&&img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
<div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
</div>
</div>
</template>
</div>
<div v-else-if="item.firstClassifyName.indexOf('其他') == -1" class="image_container">
<div v-for="(img, i) in images2[currentIndx].secondClassifyList" :key="i" class="img_box">
<div v-for="(img, i) in images2[currentIndxClaims].secondClassifyList" :key="i" class="img_box">
<template v-if="img.attachmentList.length">
<!-- <div v-if="img.serviceItemName" class="service_title">{{ img.serviceItemName }}</div> -->
<div class="title_tip">
<i v-if="img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<i v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<span>{{ img.secondClassifyName }}</span>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length&&img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length&&img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
<div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
</div>
</template>
</div>
</div>
<div v-else class="image_container">
<div v-for="(img, i) in images2[currentIndx].allImages" :key="i" class="img_box">
<div v-for="(img, i) in images2[currentIndxClaims].allImages" :key="i" class="img_box">
<div class="title_tip">
<i v-if="img.auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.auditStatus == 0" class="el-icon-error error"></i>
......@@ -254,6 +254,21 @@
</el-tabs>
</div>
</div>
<div class="widget ma16">
<div class="title">寄回原件说明</div>
<div class="cotent pad20">
<div v-if="repotData.claimsAttachmentConfigs2.length" class="image_container">
<div v-for="(img, i) in repotData.claimsAttachmentConfigs2[0].secondClassifyList" :key="i" class="img_box">
<div class="title_tip">
<span>{{ img.secondClassifyName }}</span>
</div>
<div v-if="img.exampleUrl" class="img_pannel flex_cc">
<el-image :preview-src-list="[img.exampleUrl]" style="width: 216px; height: 135px; border-radius: 4px" :src="img.exampleUrl" :fit="fit"></el-image>
</div>
</div>
</div>
</div>
</div>
<!-- 案件补充说明 -->
<div>
<explanation :isCheck="true" :supplementList="repotData.supplementList2"></explanation>
......@@ -276,7 +291,9 @@ export default {
data() {
return {
currentIndx: 0,
currentIndxClaims: 0,
activeName: '0',
activeNameClaims: '0',
currentServicesIndex: 0,
activeNameTabs: 'first'
}
......@@ -298,6 +315,10 @@ export default {
changeTabs(e) {
this.activeName = e.index.toString()
this.currentIndx = e.index
},
changeTabss(e) {
this.activeNameClaims = e.index.toString()
this.currentIndxClaims = e.index
}
}
}
......
......@@ -177,6 +177,7 @@ const CHECK = [6, 12] // 审核
const RE_SUMBIT = [2] //重新提交
const RETURN_IT = [7, 13] // 撤销
const UPLOAD_INFO = [11] // 上传资料
const TO_HANDLE = [0] // 去处理
export default {
name: 'index',
data() {
......@@ -293,6 +294,22 @@ export default {
listeners: {
click: row => this.handleEdit(6, row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '去处理'
},
condition: row => {
return TO_HANDLE.includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '去处理'
},
listeners: {
click: row => this.handleEdit(4, row.scope)
}
}
],
getListApi: this.$apis.claims.getGHClaimsListApi,
......@@ -304,8 +321,8 @@ export default {
status: '',
commitDate: '',
shopDate: '',
city: '',
positions: '',
cityMerchantId: '',
provinceMerchantId: '',
merchantId: ''
},
searchParams: {},
......@@ -336,23 +353,27 @@ export default {
},
{
label: '大区',
name: 'positions',
name: 'provinceMerchantId',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
isHide:true
optionId: 'provinceMerchantId',
optionLabel: 'merchantName',
changeAttr: val => {
this.getmidMerchantList(val)
}
},
{
label: '片区',
name: 'city',
name: 'cityMerchantId',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
isHide:true
optionId: 'cityMerchantId',
optionLabel: 'merchantName',
changeAttr: val => {
this.getdMerchantList(val)
}
},
{
label: '门店',
......@@ -360,9 +381,8 @@ export default {
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
isHide:true
optionId: 'merchantId',
optionLabel: 'merchantName'
},
{
label: '提交国任日期',
......@@ -575,40 +595,32 @@ export default {
followEditStatus: false,
followContent: '',
followResult: false,
colors,
levelToShow: {
1: 'merchantId',
2: 'dqtId',
3: 'pqId',
4: 'mdId'
}
colors
}
},
created() {
this.getClaimsCount()
// this.getMerchantData()
this.getMerchantData()
},
mounted() {},
methods: {
// 获取当前登录人的商户层级
getMerchantData() {
this.$apis.beforeSale.getUserInfoApi({}).then(res => {
if (res.merchantAccountLevel != 4) {
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[res.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
this.searchFormData[idx].isHide = false
this.getMerchantList(res.merchantNo, res.merchantAccountLevel)
}
this.$apis.claims.getBigMerchantApi({}).then(res => {
this.searchFormData[3].optionList = res || []
})
},
getMerchantList(merchantId, accountLevel) {
var params = {
merchantId: merchantId,
accountLevel: 2
}
this.$apis.beforeSale.getMerchantApi(params).then(res => {
// this.baseData[listName] = res
// this.getOptionsList('searchFormData', false, attrName)
getmidMerchantList(provinceMerchantId) {
this.$apis.claims.getMidMerchantApi({ provinceMerchantId }).then(res => {
this.searchFormData[4].optionList = res || []
this.searchFormData[4].isHide = false
})
},
getdMerchantList(cityMerchantId) {
this.$apis.claims.getMerchantApi({ cityMerchantId }).then(res => {
this.searchFormData[5].optionList = res || []
this.searchFormData[5].isHide = false
})
},
showFollow(row) {
......@@ -687,8 +699,8 @@ export default {
// 1.新增 2.查看 6.重新提交 4.去处理 5.审核
handleEdit(editNo, row) {
let urlParam = {}
console.log(editNo)
if (editNo != 1 || editNo == 6) {
const title = this.jumpTitle(editNo)
if (editNo != 1 && editNo != 4) {
urlParam = {
editNo,
isGH: true,
......@@ -697,17 +709,17 @@ export default {
status: row.status
}
const temp = encodeURIComponent(JSON.stringify(urlParam))
this.$router.push({ path: '/claims/ghOrder/' + temp })
this.$router.push({ path: '/claims/ghOrder/' + temp, query: { $title: title } })
} else {
urlParam = {
editNo,
isGH: true,
writeOffCode: editNo == 6 ? row.writeOffCode : '',
orderId: editNo == 6 ? row.writeOffCode : '',
status: editNo == 6 ? row.writeOffCode : ''
contractNo: editNo == 4 ? row.writeOffCode : '',
orderId: editNo == 4 ? row.writeOffCode : '',
status: editNo == 4 ? row.writeOffCode : ''
}
const temp = encodeURIComponent(JSON.stringify(urlParam))
this.$router.push({ path: '/claims/order/' + temp })
this.$router.push({ path: '/claims/order/' + temp, query: { $title: title } })
}
},
handleOkFn() {
......@@ -809,6 +821,30 @@ export default {
})
this.getTableData()
})
},
jumpTitle(addOrEdit) {
let title = '审核'
switch (addOrEdit) {
case 1:
title = '新增核赔'
break
case 2:
title = '查看'
break
case 6:
title = '重新提交'
break
case 4:
title = '去处理'
break
case 5:
title = '审核'
break
default:
title = '审核'
break
}
return title
}
}
}
......
......@@ -13,7 +13,7 @@
<CheckClaims @changeObjectType="changeObjectType" :insuranceAttachmentConfigs.sync="claimsAttachmentConfigs" :repotData.sync="repotData" :itemsList.sync="itemList" :accountForm.sync="accountForm"></CheckClaims>
</el-tab-pane>
<el-tab-pane class="bg" label="定损信息" name="second">
<CheckData :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData>
<CheckData :isDisabled="true" :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData>
</el-tab-pane>
</el-tabs>
</div>
......@@ -39,12 +39,12 @@
<span class="name">{{ item.serviceItemName }}</span>
<div class="set-price">
<li>
<label for="">预计损失金额/元:</label>
<el-input @input="validPrice($event, index, 'approveAmount')" @blur="changePrice($event, index, 'approveAmount')" size="small" maxlength="10" placeholder="请选择定损批准金额" v-model="item.approveAmount"></el-input>
<label for="">预估损失金额/元:</label>
<el-input @input="validPrice($event, index, 'applyAmount')" @blur="changePrice($event, index, 'applyAmount')" size="small" maxlength="10" placeholder="请输入预估损失金额" v-model="item.applyAmount"></el-input>
</li>
<li>
<label for="">定损批准金额/元:</label>
<el-input @input="validPrice($event, index, 'applyAmount')" @blur="changePrice($event, index, 'applyAmount')" size="small" maxlength="10" placeholder="请选择定损批准金额" v-model="item.applyAmount"></el-input>
<el-input @input="validPrice($event, index, 'approveAmount')" @blur="changePrice($event, index, 'approveAmount')" size="small" maxlength="10" placeholder="请输入定损批准金额" v-model="item.approveAmount"></el-input>
</li>
</div>
</div>
......@@ -162,11 +162,16 @@ export default {
res.supplementList1 = []
res.supplementList1.push({ content: '', claimsId: res.id })
}
if (!res.supplementList2?.length) {
res.supplementList2 = []
res.supplementList2.push({ content: '', claimsId: res.id })
}
this.orderMsg = {
id: res.id,
status: res.status
}
this.repotData = {
id: res.id,
status: res.status,
writeOffCode: res.writeOffCode,
reporterName: res.reporterName,
......@@ -193,7 +198,8 @@ export default {
bankAccountDTO: res.bankAccountDTO,
attachments1: res.attachments1,
attachments2: res.attachments2,
attachments3: res.attachments3
attachments3: res.attachments3,
claimsAttachmentConfigs2: res.claimsAttachmentConfigs2
}
// 图片list
......@@ -252,7 +258,8 @@ export default {
res.itemsList.map(item => {
item.applyAmount = item.applyAmount ? (item.applyAmount / 100).toFixed(2) : item.applyAmount
item.approveAmount = item.approveAmount ? (item.approveAmount / 100).toFixed(2) : item.approveAmount
if (item.serviceItemCode == 'SC0006') {
item.lossTypeList = []
if (item.serviceItemCode == 'SC0006' && item.lossType) {
item.lossTypeList = item.lossType.split(',')
}
this.$set(item, 'checked', true)
......@@ -453,7 +460,9 @@ export default {
para.reasonForFailureCode = this.noPassObj.reason
para.reasonForFailure = this.noPassObj.desc
}
let loading = this.createLoading()
this.$apis.claims.checkClaimsOrderApi(para).then(res => {
loading.close()
if (res) {
this.$message({
message: '审核成功',
......@@ -466,7 +475,9 @@ export default {
comfirmPass() {
let para = this.handleParams()
para.auditStatus = 1
let loading = this.createLoading()
this.$apis.claims.checkOrderApi(para).then(res => {
loading.close()
if (res) {
this.$message({
message: '操作成功',
......@@ -525,8 +536,8 @@ export default {
contractNo: this.repotData.contractNo,
reporterName: this.repotData.reporterName,
reporterPhone: this.repotData.reporterPhone,
reportDate: this.repotData.reportDate?dayjs(this.repotData.reportDate).format('YYYY-MM-DD HH:mm:ss'):'',
reimbursementDate: this.repotData.reimbursementDate?dayjs(this.repotData.reimbursementDate).format('YYYY-MM-DD HH:mm:ss'):'',
reportDate: this.repotData.reportDate ? dayjs(this.repotData.reportDate).format('YYYY-MM-DD HH:mm:ss') : '',
reimbursementDate: this.repotData.reimbursementDate ? dayjs(this.repotData.reimbursementDate).format('YYYY-MM-DD HH:mm:ss') : '',
handlerName: this.repotData.handlerName,
handlerPhone: this.repotData.handlerPhone,
reimbursementCountiesCode: this.repotData.reimbursementCountiesCode,
......@@ -672,8 +683,8 @@ export default {
contractNo: this.repotData.contractNo,
reporterName: this.repotData.reporterName,
reporterPhone: this.repotData.reporterPhone,
reportDate: this.repotData.reportDate?dayjs(this.repotData.reportDate).format('YYYY-MM-DD HH:mm:ss'):'',
reimbursementDate: this.repotData.reimbursementDate?dayjs(this.repotData.reimbursementDate).format('YYYY-MM-DD HH:mm:ss'):'',
reportDate: this.repotData.reportDate ? dayjs(this.repotData.reportDate).format('YYYY-MM-DD HH:mm:ss') : '',
reimbursementDate: this.repotData.reimbursementDate ? dayjs(this.repotData.reimbursementDate).format('YYYY-MM-DD HH:mm:ss') : '',
handlerName: this.repotData.handlerName,
handlerPhone: this.repotData.handlerPhone,
reimbursementCountiesCode: this.repotData.reimbursementCountiesCode,
......@@ -701,7 +712,9 @@ export default {
toSaveOrder() {
let para = this.savePara()
const name = this.orderMsg.status == 12 || this.orderMsg.status == 2 ? 'saveClaimsCG' : 'saveCG'
let loading = this.createLoading()
this.$apis.claims[name](para).then(res => {
loading.close()
this.$message({
message: '保存成功',
type: 'success'
......@@ -745,6 +758,16 @@ export default {
if (Number(e.target.value) > maxPrice) {
this.$set(this.itemList[id], type, maxPrice)
}
},
createLoading() {
const loading = this.$loading({
lock: true,
text: 'loading...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.5)',
customClass: 'loadingClass'
})
return loading
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!