Commit eb2bea9d by 杨北旺

..

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