Commit e8c604c3 by 杨北旺

提交理赔代码

1 parent 0fbd1014
......@@ -124,4 +124,195 @@ const getAccountInfo = params => {
})
}
export default { getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo }
/**广汇端---接口 */
// 获取核赔列表接口
const getGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.gh.list'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 新增跟进记录
const addGHClaimFollowsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.followLog.create'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取跟进记录
const getGHClaimFollowsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.followLog.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 导出核赔列表
const exportGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.gh.list.export'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 运营端核赔订单审核通用接口
const checkGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 历史赔付记录
const getGHhistoryListApi = params => {
params.method = 'scrm.api.equity.mini.service.claims.history.records.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取定损和核赔详情
const getGHClaimsDetailApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.detail.new'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔订单资料获取
const getGHattachmentApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.attachment.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔订单手机传图资料获取
const getGHPhoneImageApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.phone.attachment'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔订单获取订单数
const getGHCountApi = params => {
params.method = 'scrm.api.equity.service.claims.gh.list.count'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 图片上传
const uploadImgApi = params => {
params.method = 'scrm.api.carlife.common.uploadImg'
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
// 获取其他资料
const getOrderOherInfo = params => {
params.method = 'scrm.api.equity.service.claims.merchant.package.info'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 定损审核接口
const checkOrderApi = params => {
params.method = 'scrm.api.equity.service.claims.draft.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔审核
const checkClaimsOrderApi = params => {
params.method = 'scrm.api.equity.service.claims.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 撤销审核
const cancelClaims = params => {
params.method = 'scrm.api.equity.service.claims.audit.cancel'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 定损保存草稿
const saveCG = params => {
params.method = 'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔保存草稿
const saveClaimsCG = params => {
params.method = 'scrm.api.equity.service.claims.merchant.claims.draft.or.commit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 上传签名
const saveSign = params => {
params.method = 'scrm.api.equity.mini.service.claims.confirm'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: 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 }
......@@ -167,15 +167,18 @@
padding: 20px;
// box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
}
.equity-wrap .contain .el-table__empty-text {
display: inline-block;
width: 64px;
height: 41px;
}
.fr-mr0 {
float: right;
margin-right: 0px !important;
}
// 单行省略
.ellipsis-1 {
overflow: hidden;
......@@ -184,9 +187,11 @@
-o-text-overflow: ellipsis;
/* for Opera */
}
.mb10 {
margin-bottom: 10px;
}
// 我这里以两行为例,该方法基本兼容市场上面所有主流浏览器。
.ellipsis-2 {
overflow: hidden;
......@@ -211,6 +216,7 @@
background: -moz-linear-gradient(left, transparent, #fff 55%);
background: linear-gradient(to right, transparent, #fff 55%);
}
.el-scrollbar__bar.is-horizontal {
height: 10px !important;
left: 10px;
......@@ -291,6 +297,7 @@
margin: 0 0 30px 0;
padding-left: 8px;
}
// .app {
// background: #f4f5fa;
// padding: 0px 0 20px 0;
......@@ -305,17 +312,20 @@
.el-cascader-menu {
max-height: 250px;
}
.primary_plain_btn {
.el-button--primary.is-plain {
color: #5850ff;
background-color: #fff;
border-color: #5850ff;
}
.el-button--primary.is-plain:hover {
color: #7973ff;
background-color: #fff;
border-color: #7973ff;
}
.el-button--primary.is-plain:active {
color: #3a32e1;
background-color: #fff;
......@@ -325,6 +335,7 @@
.el-loading-mask {
.el-loading-spinner {
.el-icon-loading,
.el-loading-text {
color: #5850ff;
......@@ -332,6 +343,139 @@
}
}
// 核赔订单详情样式
.order-container-page {
.widget {
background: white;
.title {
padding: 15px 20px;
border-bottom: 1px solid #e5e5e5;
}
.content {
.code {
padding: 8px 20px;
background: #f9f9f9;
}
.pannel {
.line {
margin-top: 20px;
.label {
width: 154px;
text-align: right;
}
.value {
width: 432px;
}
}
}
.element_wrap {
display: flex;
.label {
width: 154px;
text-align: right;
font-size: 16px;
font-weight: 400;
color: #333333;
}
.pannel {
.wrapper {
margin-bottom: 16px;
.name {
font-size: 16px;
font-weight: 400;
color: #333333;
margin-bottom: 8px;
}
.messag {
width: 686px;
// height: 60px;
background: #f9f9f9;
box-sizing: border-box;
padding: 0 20px;
.ms {
font-size: 14px;
font-weight: 400;
color: #666666;
}
.price {
color: #333333;
}
}
.pannel_box {
width: 686px;
background: #f9f9f9;
box-sizing: border-box;
padding: 20px;
display: flex;
flex-wrap: wrap;
.line {
margin-bottom: 20px;
.lab {
font-size: 14px;
font-weight: 400;
color: #666666;
text-align: right;
width: 154px;
}
.tip {
font-size: 14px;
font-weight: 400;
color: #333333;
}
}
}
}
}
.total {
padding: 12px 20px;
background: #f9f9f9;
font-size: 14px;
font-weight: 400;
color: #333333;
}
}
}
.pad20 {
padding: 20px;
}
}
.flex_wrap {
display: flex;
flex-wrap: wrap;
}
.text_14_4_333 {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.text_14_4_666 {
font-size: 14px;
font-weight: 400;
color: #666666;
}
}
// .equity-wrap table {
// width: 98%;
// color: #666666;
......@@ -373,4 +517,4 @@
.el-form-item {
margin: 0 !important;
}
}
}
\ No newline at end of file
......@@ -12,10 +12,10 @@ 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 = 'http://192.168.1.165:7226'
// request_brand.baseURL = 'http://192.168.1.165:7226'
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
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
......@@ -23,10 +23,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
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-9ff7f674-bf61-4ca5-ae43-6c493ac13f31-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-27c02d95-51f9-4576-86a9-70ba0f4d76e4-rop' } })
// 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-ed690cff-685f-43db-9670-912cac0af9a6-rop' } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-ed690cff-685f-43db-9670-912cac0af9a6-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)
......
<template>
<div>
<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>
</div>
</div>
<!-- 报案信息(店面补充) -->
<div>
<Card title="报案信息(店面补充)" class="handler-info gl-form-page">
<glsx-combi-form 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>
<div class="unit-price">
<label class="required" for="">预计损失金额/元:</label>
<el-input maxlength="10" @input="validPrice($event, index)" @blur="changePrice($event, index)" placeholder="请选择定损批准金额" v-model="item.approveAmount"></el-input>
</div>
</div>
<div class="lump-sum">
<span>合计</span>
<span>
预估损失金额
<span class="sign">¥&nbsp;</span>
<span class="price">{{ repotData.approveAmount }}</span>
元
</span>
</div>
</div>
</glsx-combi-form>
</Card>
</div>
<!-- 上传资料 -->
<div>
<upload-material :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></upload-material>
</div>
<!-- 案件补充说明 -->
<div>
<explanation :supplementList="repotData.supplementList1"></explanation>
</div>
<!-- 其他信息 -->
<div>
<other-info :otherInfoData="otherInfoData"></other-info>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import * as dayjs from 'dayjs'
import util from '@/util/util'
import glsxCombiForm from '@/components/glsx-combi-form'
import Card from '../card.vue'
import uploadMaterial from '../uploadMaterial.vue'
import explanation from '../explanation.vue'
import otherInfo from '../otherInfo.vue'
export default {
name: 'checkPage',
components: {
glsxCombiForm,
Card,
uploadMaterial,
explanation,
otherInfo
},
data() {
return {
regionData: [],
editFormData: [
{
label: '核销码',
name: 'writeOffCode',
type: 'input',
maxlength: 8,
isDisabled: true
},
{
label: '出险日期',
name: 'reimbursementDate',
type: 'limitDatePicker',
dateType: 'datetime',
customPickerOptions: {
disabledDate(date) {
return date > new Date()
},
selectableRange: ''
},
focus: e => {
if (e.value) {
this.updateTimeLimit(e.value, 'reimbursementDate')
}
}
},
{
label: '报案日期',
name: 'reportDate',
type: 'limitDatePicker',
dateType: 'datetime',
customPickerOptions: {
disabledDate(date) {
return date > new Date()
},
selectableRange: ''
},
focus: e => {
if (e.value) {
this.updateTimeLimit(e.value, 'reportDate')
}
},
handleDateChange: e => {
if (e) this.$refs.editFormRefReport.$refs.formRef.validateField('reimbursementDate')
}
},
{
label: '报案人',
name: 'reporterName',
type: 'input',
maxlength: 100,
isClear: true
},
{
label: '报案人联系号码',
name: 'reporterPhone',
type: 'input',
maxlength: 11,
isClear: true
},
{
label: '出险地点',
name: 'reimbursementAddress',
type: 'cascader',
placeholder: '可输入省、市或区关键字搜索',
isClear: true,
handleChange: cellValue => {
if (!cellValue || !cellValue.length) {
return
}
}
},
{
label: '出险详细地址',
name: 'reimbursementAddr',
type: 'input',
isClear: true,
maxlength: 200,
inputType: 'textarea'
}
],
handlerForm: [
{
label: '经办人',
name: 'handlerName',
type: 'input',
isClear: true
},
{
label: '经办人电话',
name: 'handlerPhone',
type: 'input',
maxlength: 11,
isClear: true
},
{
label: '出险经过描述',
name: 'reimbursementProcess',
type: 'input',
inputType: 'textarea',
rows: 3,
isClear: true
},
{
label: '申请核赔服务',
name: 'serviceCodes',
type: 'checkbox',
border: true,
optionList: [],
addHtml: 'approveAmountSlot'
}
],
explanationObj: {
explanation1: ''
}
}
},
props: {
repotData: Object,
insuranceAttachmentConfigs: Array,
itemList: Array,
otherInfoData:Object
},
watch: {
'editForm.reportDate'(newVal, oldVal) {
if (newVal) {
this.updateTimeLimit(newVal, 'reportDate')
}
},
'editForm.reimbursementDate'(newVal, oldVal) {
if (newVal) {
this.updateTimeLimit(newVal, 'reimbursementDate')
}
}
},
mounted() {
this.getCityList()
},
methods: {
getCityList() {
this.$apis.claims.getCityList({}).then(res => {
this.regionData = res
})
},
updateTimeLimit(newVal, key) {
let limitTime = ''
// 当不是同一天,时间限制为'00:00:00 - 23:59:59',否则'00:00:00 - endTime'
let endTime = new Date().getTime()
if (util.dateFormat(endTime) === util.dateFormat(new Date(newVal))) {
limitTime = `00:00:00 - ${util.dateFormat(new Date(new Date().setHours(new Date().getHours() + 1)), 'HH:mm:ss')}`
} else {
limitTime = '00:00:00 - 23:59:59'
}
const Item = this.editFormData.find(item => item.name === key)
this.$set(Item.customPickerOptions, 'selectableRange', limitTime)
},
validPrice(e, id) {
let checkPlan = '' + this.itemList[id].approveAmount
checkPlan = checkPlan
.replace(/[^\d.]/g, '')
.replace(/\.{2,}/g, '.')
.replace(/^\./g, '')
.replace('.', '$#$')
.replace(/\./g, '')
.replace('$#$', '.')
if (checkPlan.indexOf('.') < 0 && checkPlan !== '') {
checkPlan = parseFloat(checkPlan) + ''
} else if (checkPlan.indexOf('.') >= 0) {
checkPlan = checkPlan.replace(/^()*(\d+)\.(\d\d).*$/, '$1$2.$3') // 只能输入两个小数
}
this.$set(this.itemList[id], 'approveAmount', checkPlan)
this.getTotal()
},
changePrice(e, id) {
if (!e.target.value) return
const len = e.target.value.length
let lastStr = e.target.value.charAt(len - 1)
if (lastStr === '.') {
this.$set(this.itemList[id], 'approveAmount', e.target.value.substr(0, len - 1))
}
const minPrice = 1
if (Number(e.target.value) < minPrice) {
this.$set(this.itemList[id], 'approveAmount', 1)
}
const maxPrice = 2000000
if (Number(e.target.value) > maxPrice) {
this.$set(this.itemList[id], 'approveAmount', maxPrice)
}
this.getTotal()
},
selectService(){
this.getTotal()
},
getTotal() {
let total = this.itemList.reduce(function (prev, cur) {
let curPrice = cur.checked ? cur.approveAmount : 0
return prev + +(curPrice * 100).toFixed(0)
}, 0)
this.repotData.approveAmount = (total/100).toFixed(2)
}
}
}
</script>
<style lang="scss" scoped>
.edit-form-container {
padding: 32px 0 12px;
}
.handler-info {
/deep/ #serviceCodes {
display: block;
margin-bottom: 0;
}
}
.amount-wrap {
font-family: PingFangSC-Regular, PingFang SC;
width: fit-content;
color: #333333;
.unit-price {
background: #f9f9f9;
padding: 20px;
display: flex;
flex-wrap: nowrap;
margin-bottom: 10px;
.required {
width: 154px;
text-align: right;
font-weight: 400;
font-size: 14px;
}
.el-input {
width: 432px;
margin-right: 60px;
}
}
.dialog-unit {
background: #f9f9f9;
padding: 20px;
list-style: none;
margin-bottom: 10px;
li {
margin-bottom: 20px;
display: flex;
align-items: center;
&:last-child {
margin-bottom: 0;
}
label {
width: 154px;
flex-shrink: 0;
display: inline-block;
text-align: right;
}
}
}
.lump-sum {
background: #f9f9f9;
font-size: 14px;
font-weight: 400;
padding: 0 16px;
height: 36px;
display: flex;
justify-content: space-between;
align-items: center;
.sign {
font-size: 16px;
color: #ff6d00;
}
.price {
color: #ff6d00;
font-size: 18px;
}
}
}
</style>
<template>
<div>
<div class="widget">
<div class="title">维修信息</div>
<div class="content pad3220">
<div class="element_wrap">
<div class="label">批准金额:</div>
<div class="pannel">
<template v-for="(item,index) in itemsList">
<div :key="index" class="wrapper">
<div class="name">{{item.serviceItemName}}</div>
<div class="messag pad20">
<div class="ms flex_sc">
<div class="ms_lab">预估损失金额/元:</div>
<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.approveAmount" size="mini" class="w432" maxlength="10"></el-input>
</div>
</div>
</div>
</template>
<div class="total flex_scb">
<span>合计</span>
<span>
<span>预估损失金额:{{repotData.applyAmount}}元</span>
<span style="margin: 0 10px">|</span>
<span>定损批准金额:{{repotData.approveAmount}}元</span>
</span>
</div>
</div>
</div>
<div class="element_wrap ma20">
<div class="label">收款对象:</div>
<div class="pannel">
<div class="wrapper">
<div class="name">
<el-radio >{{accountForm.objectType?'其他':'店面'}}</el-radio>
<!-- <el-radio-group disabled @change="changeObjectType" v-model="accountForm.objectType">
<el-radio :label="0">店面</el-radio>
<el-radio :label="1">其他</el-radio>
</el-radio-group> -->
</div>
<div class="pannel_box">
<glsx-combi-form ref="accountRef" :formRules="accountRule" labelWidth="154px" defaultWidth="432px" :formObj="accountForm" :formData="accountData"></glsx-combi-form>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<uploadMaterial :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></uploadMaterial>
</div>
</div>
</template>
<script type="text/ecmascript-6">
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'
export default {
name: 'checkClaimsPage',
components: {
glsxCombiForm,
uploadMaterial
},
data() {
return {
accountRule: {
accountType: [{ required: true, message: '请选择账户类型', trigger: 'change' }],
branchBankCode: [{ required: true, message: '请选择开户行名称', trigger: 'change' }],
accountName: [{ required: true, message: '请输入账户名称', trigger: 'change' }],
accountNo: [
{
required: true,
validator: (rule, value, callback) => {
let numRef = /^[0-9]{1,25}$/
if (!value) {
callback(new Error('请输入收款账号'))
} else if (numRef.test(value)) {
callback()
} else {
callback(new Error('请输入正确的收款账号'))
}
},
trigger: 'change'
}
],
bankCity: [{ required: true, message: '请选择收款账号所在省市', trigger: 'change' }],
payeeIDCardType: [{ required: true, message: '请选择收款人证件类型', trigger: 'change' }],
handlerName: [{ required: true, message: '请输入经办人', trigger: 'change' }],
payeeIDCardNo: [{ required: true, message: '请输入收款人证件号码', trigger: 'change' }],
payeePhone: [{ required: true, message: '请输入联系号码', trigger: 'change' }],
handlerPhone: [
{
required: true,
validator: (rule, value, callback) => {
if (!value) {
callback(new Error('请输入手机号'))
} else if (phoneReg.test(value)) {
callback()
} else {
callback(new Error('请输入正确的手机号'))
}
},
trigger: 'change'
}
],
reimbursementDesc: [{ required: true, message: '请输入出险经过描述', trigger: 'change' }]
},
accountData: [
// {
// label: '账户类型',
// name: 'accountType',
// type: 'radio',
// optionList: [
// {
// confId: 0,
// confName: '对公'
// },
// {
// confId: 1,
// confName: '对私'
// }
// ],
// optionId: 'confId',
// optionLabel: 'confName',
// isHide: true,
// isClear: true,
// },
{
label: '开户行名称',
name: 'openBankCode',
type: 'select',
optionList: [],
optionId: 'code',
optionLabel: 'name',
isClear: true,
},
{
label: '账户名称',
name: 'accountName',
type: 'input',
maxlength: 60,
isClear: true,
},
{
label: '收款账号',
name: 'accountNo',
type: 'input',
maxlength: 25,
isClear: true,
},
{
label: '收款账号所在省市',
name: 'accountCityCode',
type: 'select',
placeholder: '可输入所在市关键词查询',
optionList: [],
optionId: 'code',
optionLabel: 'name',
isClear: true,
},
{
label: '收款人证件类型',
name: 'cardTypeCode',
type: 'select',
optionList: [],
optionId: 'code',
optionLabel: 'name',
isClear: true,
},
{
label: '收款人证件号码',
name: 'cardNo',
type: 'input',
maxlength: 25,
isClear: true,
},
{
label: '收款人联系电话',
name: 'phone',
type: 'input',
maxlength: 15,
isClear: true,
}
]
}
},
props: {
repotData: Object,
accountForm: Object,
itemsList:Array,
insuranceAttachmentConfigs:Array
},
watch: {
'accountForm.objectType': {
handler(newVal, oldVal) {
const item = this.accountData.find(item => {
return item.name == 'accountType'
})
item.isHide = newVal == 0
},
immediate: true
}
},
mounted() {
this.getBankList()
},
methods: {
changeObjectType(newVal) {
this.$emit('changeObjectType', newVal)
},
// 获取银行信息
getBankList() {
this.$apis.claims.getBankList({}).then(res => {
const branchBankList = this.accountData.find(item => item.name === 'openBankCode')
branchBankList.optionList = res.branchBank
const accountCityList = this.accountData.find(item => item.name === 'accountCityCode')
accountCityList.optionList = res.accountCity
const IDCardTypeList = this.accountData.find(item => item.name === 'cardTypeCode')
IDCardTypeList.optionList = res.cardType
})
}
}
}
</script>
<style lang="scss" scoped>
.pad3220 {
padding: 32px 20px;
}
.pad20 {
padding: 20px !important;
}
.ms_lab {
width: 154px;
text-align: right;
}
.w432 {
width: 432px !important;
}
.ma20 {
margin-top: 20px;
}
</style>
......@@ -2,13 +2,13 @@
<div>
<Card title="案件补充说明">
<div class="explanation">
<div class="explanation-list" v-for="(item, idx) in explanationForm" :key="idx">
<div class="explanation-list" v-for="(item, idx) in supplementList" :key="idx">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label>
<el-input :placeholder="`请输入说明${idx + 1}`" v-model="item.content" type="textarea" :rows="3"></el-input>
<i class="el-icon-delete del" v-if="explanationForm.length > 1" @click="handleDel(idx)"></i>
<el-input :disabled="isCheck" :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 class="add-explanation" @click="addExplanation">
<div v-if="!isCheck" class="add-explanation" @click="addExplanation">
<i class="el-icon-circle-plus-outline"></i>
<span>新增说明</span>
</div>
......@@ -20,49 +20,30 @@ import Card from './card.vue'
export default {
name: 'explanation',
data() {
return {
explanationForm:[
{
name: 'explanation1',
type: 'input',
inputType: 'textarea',
rows: 3,
isClear: true,
suffixSlot: 'suffixSlot'
}
]
}
return {}
},
components: {
Card
},
props: {
obj:{
type: Object,
default:function() {
return {explanation1:''}
}
}
supplementList: {
type: Array,
default: function () {
return [{ content: '' }]
}
},
isCheck:Boolean
},
mounted() {},
methods:{
handleDel(idx){
this.$delete(this.explanationForm, idx)
},
addExplanation(){
const idx= this.explanationForm.length
const key = `explanation${idx+1}`
const obj = {
name: key,
type: 'input',
inputType: 'textarea',
rows: 3,
isClear: true,
suffixSlot:'suffixSlot'
}
this.$set(this.explanationForm,idx,obj)
this.$set(this.obj,key,'')
methods: {
handleDel(idx) {
this.$delete(this.supplementList, idx)
},
addExplanation() {
const idx = this.supplementList.length
const newObj = { claimsId: this.supplementList[idx - 1].claimsId, content: '' }
this.$set(this.supplementList, idx, newObj)
}
}
}
</script>
......@@ -98,7 +79,7 @@ export default {
}
.add-explanation {
color: #5850ff;
color: #5850FF;
display: flex;
align-items: center;
margin-left: 154px;
......
<template>
<GLDialog class="gl-form-page gl-form-min" title="快速审核" mode="mid" v-if="visibility" :visible.sync="visibility">
<GLDialog class="gl-form-page gl-form-min" title="快速审核" mode="mid" @onCancel="closeDialog" v-if="visibility" :visible.sync="visibility">
<div class="review-container">
<div class="filter-wrap">
<!-- 筛选树 -->
......@@ -8,7 +8,7 @@
<i class="gl-icon-filter filter-icon" @click.stop="showFilter = !showFilter"></i>
<div v-show="showFilter" ref="closetree" class="tree-wrap">
<div class="filter-tree">
<el-tree @check-change="checkChange" :data="data" show-checkbox node-key="id" :default-expanded-keys="[2, 3]" :default-checked-keys="[5]" :props="defaultProps"></el-tree>
<el-tree @check-change="checkChange" :data="treeBasic" show-checkbox node-key="id" :default-expanded-keys="[2, 3]" :default-checked-keys="[5]" :props="defaultProps"></el-tree>
</div>
<div class="filter-all">
<el-checkbox v-model="checked">全选</el-checkbox>
......@@ -23,26 +23,27 @@
<div id="pic-list" class="pic-list">
<div class="pic-item" v-for="(item, index) in filterImgList" :key="index">
<span class="title">
<div class="name">{{ item.name }}</div>
<i v-if="item.status == 1" class="el-icon-success success"></i>
<i v-if="item.status == 0" class="el-icon-error error"></i>
<div class="name">{{ item.secondClassifyName }}</div>
<i v-if="item.auditStatus == 1" class="el-icon-success success"></i>
<i v-if="item.auditStatus == 0" class="el-icon-error error"></i>
</span>
<div @click="changeCurImg(index)" :class="['pic', { cur: curImg.idx == index }]">
<img :src="item.url" alt="" />
<div @click="changeCurImg(item, index)" :class="['pic', { cur: curImg.idx == index }]">
<img :src="item.attachmentFile" alt="" />
</div>
</div>
</div>
</div>
<!-- 右边大图区 -->
<div class="preview-wrap">
<span>{{ curImg.name }}</span>
<span>{{ curImg.secondClassifyName }}</span>
<div class="preview-oper">
<div class="preview-pic">
<img :src="curImg.url" alt="" />
<div class="mask">
<el-image :preview-src-list="[curImg.attachmentFile]" style="width: 100%; height:100%" :src="curImg.attachmentFile" :fit="fit"></el-image>
<!-- <img :src="curImg.attachmentFile" alt="" /> -->
<!-- <div class="mask">
<i class="gl-icon-eye"></i>
<i class="gl-icon-a-testcaselibrary1"></i>
</div>
</div> -->
</div>
<!-- 按钮区 -->
<div class="pass-btn">
......@@ -65,18 +66,21 @@
import glsxCombiForm from '@/components/glsx-combi-form'
export default {
name: 'fastReview',
components:{
components: {
glsxCombiForm
},
props: {
images: Array
},
data() {
return {
checked: true,
showFilter:false,
visibility:false,
showFilter: false,
visibility: false,
imgPassObj: {
desc: ''
},
imgPassForm:[
imgPassForm: [
{
label: '具体描述',
name: 'desc',
......@@ -84,71 +88,57 @@ export default {
inputType: 'textarea',
rows: 3,
isClear: true
},
}
],
curImg:{
},
filterImgList : [],
imgList:[
{
url: 'http://qcimg01.glsx.com.cn:7060/group1/M00/02/30/wKgD3mMigU6AQWekAAAxdFwhNU8306.png',
name:'基础资料:身份证身份证身份证身份证',
status: 1
},
{
url: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/assets/glsx/logo_menu.png',
name:'111111',
status: 0
},
{
url: 'http://qcimg01.glsx.com.cn:7060/group1/M00/02/30/wKgD3mMigU6AQWekAAAxdFwhNU8306.png',
name:'222222',
status: 0
},
{
url: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/assets/glsx/logo_menu.png',
name:'333333',
status: 0
}
],
data: [{
curImg: {},
filterImgList: [],
imgList: [],
treeBasic: [
{
id: 1,
label: '资料名称',
children: []
}, {
},
{
id: 2,
label: '处理状态',
children: [{
id: 5,
label: '已审核'
}, {
id: 6,
label: '未审核'
}]
}, {
children: [
{
id: 5,
label: '已审核'
},
{
id: 6,
label: '未审核'
}
]
},
{
id: 3,
label: '审核状态',
children: [{
id: 7,
label: '通过'
}, {
id: 8,
label: '未通过'
}]
}],
children: [
{
id: 7,
label: '通过'
},
{
id: 8,
label: '未通过'
}
]
}
]
}
},
mounted() {
this.filterImgList = [...this.imgList]
this.changeCurImg(0)
document.addEventListener('click',(e)=>{
if(!this.$refs['closetree']?.contains(e.target)){
this.showFilter=false;
this.filterImgList = []
document.addEventListener('click', e => {
if (!this.$refs['closetree']?.contains(e.target)) {
this.showFilter = false
}
})
},
methods:{
methods: {
// changeLeaf(type){
// let idx = this.curImg.idx
// if((type == 'pre' && this.curImg.idx==0) || (type == 'next' && idx==this.imgList.length-1)){
......@@ -161,30 +151,54 @@ export default {
// this.curImg =type == 'next' ? this.imgList[idx+1] : this.imgList[idx-1]
// this.curImg.idx =type == 'next' ? idx + 1 : idx - 1
// },
initDialog(){
handlerData(val) {
let arr = []
val.forEach((el, index) => {
let obj = {
label: el.firstClassifyName,
id: index
}
this.treeBasic[0].children.push(obj)
el.secondClassifyList.forEach(ele => {
ele.attachmentList.forEach(ke => {
if (ke.attachmentFile) {
ke.secondClassifyName = ele.secondClassifyName
arr.push(ke)
}
})
})
})
this.filterImgList = arr
this.curImg = arr[0]
this.curImg.idx = 0
},
closeDialog() {
this.visibility = false
},
initDialog() {
this.visibility = true
this.handlerData(this.images)
},
changeCurImg(index){
if(index>this.filterImgList.length-1 || index<0) return
changeCurImg(item, index) {
if (index > this.filterImgList.length - 1 || index < 0) return
this.curImg = this.filterImgList[index]
this.curImg.idx = index
},
handleApproval(){
handleApproval() {
const idx = this.curImg.idx
this.filterImgList[idx].status = 1
this.changeCurImg(idx+1)
try{
this.changeCurImg(idx + 1)
try {
let scrollH = document.getElementById('pic-list')
scrollH.scrollTop = 135*(idx+1)
}catch(err){
scrollH.scrollTop = 135 * (idx + 1)
} catch (err) {
console.log(err)
}
},
checkChange(){
const list = this.imgList.filter(item => {
})
this.filterImgList = [...this.imgList]
checkChange(e) {
console.log(e)
// const list = this.imgList.filter(item => {})
// this.filterImgList = [...this.imgList]
}
}
}
......
......@@ -41,7 +41,7 @@ export default {
name: 'imgList',
props:{
list:{
type: Object
type: Array
}
},
data() {
......
<template>
<Card title="其他信息" class="" openBtn>
<div class="other-info">
<span class="title">店面信息</span>
<div class="other-info" v-for="(item, idx) in form" :key="idx">
<span class="title">{{ item.parentTitle }}</span>
<div class="info-wrap">
<li>
<label class="label" for="">店面名称:</label>
<span class="content">深圳奥迪专营店</span>
</li>
<li>
<label class="label" for="">店面名称:</label>
<span class="content">深圳奥迪专营店</span>
</li>
<li>
<label class="label" for="">店面名称:</label>
<span class="content">深圳奥迪专营店</span>
<li v-for="sonItem in item.li" :key="sonItem.key">
<label class="label" for="">{{ sonItem.label }}</label>
<span class="content">{{ otherInfoData[sonItem.key] || '--' }}</span>
</li>
</div>
</div>
......@@ -23,31 +15,100 @@
import Card from './card.vue'
export default {
name: 'otherInfo',
props: {
otherInfoData: Object
},
data() {
return {
open: false
form: [
{
parentTitle: '店面信息',
li: [
{
key: 'merchantName',
label: '店面名称:'
},
{
key: 'merchantPhone',
label: '店面联系方式:'
},
{
key: 'merchantAddr',
label: '店面地址:'
}
]
},
{
parentTitle: '产品详情',
li: [
{
key: 'packageName',
label: '产品名称:'
},
{
key: 'contractNo',
label: '合同编号:'
},
{
key: 'effectiveDate',
label: '生效时间:'
},
{
key: 'servicePeriod',
label: '服务期限:'
},
{
key: 'expirationDate',
label: '起止时间:'
}
]
},
{
parentTitle: '客户信息',
li: [
{
key: 'customerName',
label: '客户姓名:'
},
{
key: 'customerPhone',
label: '电话号码:'
},
{
key: 'customerAddr',
label: '联系地址:'
}
]
},
{
parentTitle: '车辆信息',
li: [
{
key: 'vin',
label: '车架号:'
},
{
key: 'brandAndShape',
label: '品牌车型:'
},
{
key: 'billingDate',
label: '新车开票日期:'
},
{
key: 'invoicePrice',
label: '车辆购置价:'
}
]
}
]
}
},
components:{
components: {
Card
},
props: {
title: {
type: String,
default: ''
},
openBtn: {
type: Boolean,
default: false
},
marginTop:{
tyep: Number|String,
default: 16
}
},
mounted() {},
methods:{
}
methods: {}
}
</script>
<style lang="scss" scoped>
......@@ -56,16 +117,18 @@ export default {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
line-height: 32px;
line-height: 22px;
color: #333333;
margin-bottom: 16px;
.info-wrap {
background: #f9f9f9;
padding: 20px;
li {
display: inline-block;
line-height: 32px;
padding: 20px 0;
line-height: 22px;
padding: 10px 0;
text-align: center;
width: 520px;
width: 500px;
.label {
color: #666666;
}
......
<template>
<div>
<div class="widget">
<div class="title">报案信息(客户提交)</div>
<div class="content pad20">
<div class="code text_14_4_333">核销码:{{ repotData.writeOffCode }}</div>
<div class="pannel flex_wrap">
<div v-for="(item, index) in watchData" :key="index" class="line flex_sc">
<div class="label text_14_4_666">
<span style="color: #eb4e4e">*</span>
<span>{{ item.name }}</span>
</div>
<div class="value text_14_4_333">{{ item.value }}</div>
</div>
</div>
</div>
</div>
<div class="widget ma16">
<div class="title">报案信息(店面补充)</div>
<div class="content pad20">
<div class="pannel flex_wrap">
<div class="line flex_sc">
<div class="label text_14_4_666">
<span style="color: #eb4e4e">*</span>
<span>经办人:</span>
</div>
<div class="value text_14_4_333">{{ repotData.handlerName }}</div>
</div>
<div class="line flex_sc">
<div class="label text_14_4_666">
<span style="color: #eb4e4e">*</span>
<span>经办人联系号码:</span>
</div>
<div class="value text_14_4_333">{{ repotData.handlerPhone }}</div>
</div>
</div>
</div>
</div>
<div class="widget ma16">
<div class="title">维修信息</div>
<div class="content pad20">
<div class="element_wrap">
<div class="label">批准金额:</div>
<div class="pannel">
<template v-for="(item, index) in itemsList">
<div :key="index" class="wrapper">
<div class="name">{{ item.serviceItemName }}</div>
<div style="height: 36px" class="messag flex_scb">
<div class="ms">
<span>预估损失金额/元:</span>
<span class="price">{{ item.applyAmount || 0 }}</span>
</div>
<div class="ms">
<span>定损批准金额:</span>
<span class="price">{{ item.approveAmount || 0 }}</span>
</div>
</div>
</div>
</template>
<div class="total flex_scb">
<span>合计</span>
<span>
<span>预估损失金额:{{ repotData.applyAmount || 0 }}元</span>
<span style="margin: 0 10px">|</span>
<span>定损批准金额:{{ repotData.approveAmount || 0 }}元</span>
</span>
</div>
</div>
</div>
<div v-if="repotData.bankAccountDTO" class="element_wrap ma21">
<div class="label">收款对象:</div>
<div class="pannel">
<div class="wrapper">
<div class="name">
<el-radio value="1" label="1">{{repotData.bankAccountDTO.objectType?'其他':'店面'}}</el-radio>
</div>
<div class="pannel_box">
<template v-for="(item, index) in accountList">
<div :key="index" class="line flex_sc">
<div class="lab">
<span style="color: #eb4e4e">*</span>
<span>{{ item.name }}</span>
</div>
<div class="tip" style="width: 160px">{{ item.value }}</div>
</div>
</template>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="widget ma16">
<div class="title">上传资料</div>
<div class="cotent pad20">
<el-tabs class="tabs" v-model="activeName" @tab-click="changeTabs">
<el-tab-pane v-for="(item, index) in images" :key="index" :label="item.firstClassifyName">
<div v-if="item.firstClassifyName.indexOf('其他') == -1" class="image_container">
<div v-for="(img, i) in images[currentIndx].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>
<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>
<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>
</template>
</div>
</div>
<div v-else class="image_container">
<div v-for="(img, i) in images[currentIndx].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>
<span>图片{{ i + 1 }}</span>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentFile]" v-if="img.attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentFile" :fit="fit"></el-image>
<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>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
<!-- 案件补充说明 -->
<div>
<explanation :isCheck="true" :supplementList="repotData.supplementList1"></explanation>
</div>
<!-- 其他信息 -->
<div>
<other-info :otherInfoData="otherInfoData"></other-info>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import explanation from '../explanation.vue'
import otherInfo from '../otherInfo.vue'
export default {
name: 'watchPage',
components: {
explanation,
otherInfo
},
data() {
return {
currentIndx: 0,
activeName: '0'
}
},
props: {
repotData: Object,
watchData: Array,
accountList: Array,
itemsList: Array,
images: Array,
otherInfoData:Object
},
mounted() {},
methods: {
changeTabs(e) {
this.activeName = e.index.toString()
this.currentIndx = e.index
}
}
}
</script>
<style lang="scss" scoped>
.ma16 {
margin-top: 16px;
}
.ma21 {
margin-top: 21px;
}
.image_container {
display: flex;
flex-wrap: wrap;
.img_box {
margin-bottom: 16px;
margin-right: 16px;
.service_title {
margin: 8px 0;
}
.title_tip {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.success {
color: #2cca74;
margin-right: 5px;
}
.error {
color: #eb4e4e;
margin-right: 5px;
}
.img_pannel {
width: 216px;
height: 135px;
margin: 8px 0;
border: 1px solid #e5e5e5;
background: #f5f5f5;
position: relative;
border-radius: 4px;
.errMsg {
background: rgba(255, 82, 87, 0.5);
position: absolute;
left: 0;
right: 0;
bottom: 0;
min-height: 44px;
font-size: 12px;
font-weight: 400;
color: #ffffff;
z-index: 10;
}
}
.uplpad_pannel {
background: #f5f5f5;
.file_1 {
position: absolute;
opacity: 0;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 10;
}
}
.errBorder {
border: 1px solid #ff5257;
}
.footer_btn {
display: flex;
align-items: center;
justify-content: center;
.up_wrap {
position: relative;
font-size: 14px;
font-weight: 400;
color: #5850ff;
margin-left: 20px;
cursor: pointer;
.file {
opacity: 0;
position: absolute;
left: 0;
top: 0;
width: 28px;
height: 23px;
z-index: 10;
}
}
}
.marlr20 {
margin-left: 20px;
}
}
}
/deep/ .el-tabs {
.el-tabs__nav-wrap::after {
height: 1px;
background-color: #e5e5e5;
}
.el-tabs__item {
height: 45px;
font-size: 16px;
font-weight: 500;
}
.pass-btn {
width: 216px;
display: flex;
padding: 0 20px;
box-sizing: border-box;
justify-content: space-around;
.el-button {
margin: 0;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!