Commit 46a2c70d by zhangquan

修复

1 parent bea03aa8
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
orderCount: {}, orderCount: {},
buttonList: [ buttonList: [
{ {
type: 'el-button', type: 'GLButton',
name: row => { name: row => {
return '定损审核' return '定损审核'
}, },
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
return '去处理' return '去处理'
}, },
condition: row => { condition: row => {
return [0, 19, 22, 25].includes(row.scope.status) return [0, 19].includes(row.scope.status) || ([22, 25].includes(row.scope.status) && row.scope.source != 3)
}, },
attrs: { attrs: {
type: 'text', type: 'text',
...@@ -152,7 +152,11 @@ export default { ...@@ -152,7 +152,11 @@ export default {
return '查看' return '查看'
}, },
condition: row => { condition: row => {
return row.scope.status != 19 && row.scope.status != 33 const { status, source } = row.scope
if (status == 2) {
return source != 3
}
return ![19, 33].includes(status)
}, },
attrs: { attrs: {
type: 'text', type: 'text',
......
...@@ -123,6 +123,18 @@ export default { ...@@ -123,6 +123,18 @@ export default {
} }
}, },
{ {
label: '出险时间(内部)',
name: 'internalReimbursementDate',
type: 'limitDatePicker',
dateType: 'datetime',
customPickerOptions: {
disabledDate(date) {
return date > new Date()
},
selectableRange: ''
}
},
{
label: '报案日期', label: '报案日期',
name: 'reportDate', name: 'reportDate',
type: 'limitDatePicker', type: 'limitDatePicker',
......
<template> <template>
<div class="report-components gl-form-page"> <div class="report-components gl-form-page">
<div class="title">报案信息(客户提交)</div> <div class="title">报案信息(客户提交)</div>
<template v-if="[1, 3, 4,5,6].includes(pageType)&&!renewDisable"> <template v-if="[1, 3, 4, 5, 6].includes(pageType) && !renewDisable">
<glsxCombiForm :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsxCombiForm :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div v-if="pageType == 1" style="display: inline-block" slot="syncBtn"> <div v-if="pageType == 1" style="display: inline-block" slot="syncBtn">
<el-button style="margin: 0 12px" type="primary" @click="toSearchOrderDetail">同步</el-button> <el-button style="margin: 0 12px" type="primary" @click="toSearchOrderDetail">同步</el-button>
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
<div :key="index" class="line_widget flex_sc"> <div :key="index" class="line_widget flex_sc">
<div class="label"> <div class="label">
<span class="required">*</span> <span class="required">*</span>
<span class="text">{{item.label}}</span> <span class="text">{{ item.label }}</span>
<span class="text">:</span> <span class="text">:</span>
</div> </div>
<div class="value">{{item.value}}</div> <div class="value">{{ item.value }}</div>
</div> </div>
</template> </template>
</div> </div>
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
type: Number, type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理 default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
}, },
renewDisable:Boolean renewDisable: Boolean
}, },
data() { data() {
return { return {
...@@ -72,6 +72,7 @@ export default { ...@@ -72,6 +72,7 @@ export default {
trigger: 'change' trigger: 'change'
} }
], ],
internalReimbursementDate: [{ required: true, message: '请选择出险时间(内部)', trigger: 'change' }],
reporterName: [{ required: true, message: '请输入报案人', trigger: 'change' }], reporterName: [{ required: true, message: '请输入报案人', trigger: 'change' }],
reporterPhone: [ reporterPhone: [
{ {
...@@ -100,9 +101,9 @@ export default { ...@@ -100,9 +101,9 @@ export default {
mounted() { mounted() {
this.diffKeyHandle(this.isGH) this.diffKeyHandle(this.isGH)
let _this = this let _this = this
setTimeout(()=>{ setTimeout(() => {
_this.handlerDetail() _this.handlerDetail()
},500) }, 500)
}, },
watch: { watch: {
'editForm.reportDate'(newVal, oldVal) { 'editForm.reportDate'(newVal, oldVal) {
...@@ -137,11 +138,15 @@ export default { ...@@ -137,11 +138,15 @@ export default {
value: this.editForm.reimbursementDate value: this.editForm.reimbursementDate
}, },
{ {
label: '出险时间(内部)',
value: this.editForm.internalReimbursementDate
},
{
label: '出险地点', label: '出险地点',
value: this.editForm.reimbursementAddr value: this.editForm.reimbursementAddr
} }
] ]
console.log( this.editDetail); console.log(this.editDetail)
}, },
//*************** */ //*************** */
getCityList() { getCityList() {
...@@ -193,6 +198,18 @@ export default { ...@@ -193,6 +198,18 @@ export default {
} }
}, },
{ {
label: '出险时间(内部)',
name: 'internalReimbursementDate',
type: 'limitDatePicker',
dateType: 'datetime',
customPickerOptions: {
disabledDate(date) {
return date > new Date()
},
selectableRange: ''
}
},
{
label: '报案日期', label: '报案日期',
name: 'reportDate', name: 'reportDate',
type: 'limitDatePicker', type: 'limitDatePicker',
...@@ -281,6 +298,18 @@ export default { ...@@ -281,6 +298,18 @@ export default {
} }
}, },
{ {
label: '出险时间(内部)',
name: 'internalReimbursementDate',
type: 'limitDatePicker',
dateType: 'datetime',
customPickerOptions: {
disabledDate(date) {
return date > new Date()
},
selectableRange: ''
}
},
{
label: '报案日期', label: '报案日期',
name: 'reportDate', name: 'reportDate',
type: 'limitDatePicker', type: 'limitDatePicker',
...@@ -374,6 +403,7 @@ export default { ...@@ -374,6 +403,7 @@ export default {
} }
} }
/deep/ #reportDate, /deep/ #reportDate,
/deep/ #internalReimbursementDate,
/deep/ #reimbursementDate { /deep/ #reimbursementDate {
.el-date-editor { .el-date-editor {
.el-input__inner { .el-input__inner {
...@@ -394,7 +424,7 @@ export default { ...@@ -394,7 +424,7 @@ export default {
background: #f9f9f9; background: #f9f9f9;
margin-bottom: 20px; margin-bottom: 20px;
} }
.wrap{ .wrap {
flex-wrap: wrap; flex-wrap: wrap;
} }
.line_widget { .line_widget {
......
...@@ -96,6 +96,7 @@ export default { ...@@ -96,6 +96,7 @@ export default {
reporterPhone: '', reporterPhone: '',
reportDate: '', reportDate: '',
reimbursementDate: '', reimbursementDate: '',
internalReimbursementDate: '',
reimbursementAddr: '', reimbursementAddr: '',
handlerName: '', handlerName: '',
handlerPhone: '', handlerPhone: '',
...@@ -200,6 +201,7 @@ export default { ...@@ -200,6 +201,7 @@ export default {
reporterPhone: res.reporterPhone, reporterPhone: res.reporterPhone,
reportDate: dayjs(res.reportDate).format('YYYY-MM-DD HH:mm:ss'), reportDate: dayjs(res.reportDate).format('YYYY-MM-DD HH:mm:ss'),
reimbursementDate: dayjs(res.reimbursementDate).format('YYYY-MM-DD HH:mm:ss'), reimbursementDate: dayjs(res.reimbursementDate).format('YYYY-MM-DD HH:mm:ss'),
internalReimbursementDate: dayjs(res.internalReimbursementDate || res.reimbursementDate).format('YYYY-MM-DD HH:mm:ss'),
reimbursementAddr: res.reimbursementAddr, reimbursementAddr: res.reimbursementAddr,
handlerName: res.handlerName, handlerName: res.handlerName,
handlerPhone: res.handlerPhone, handlerPhone: res.handlerPhone,
...@@ -243,9 +245,9 @@ export default { ...@@ -243,9 +245,9 @@ export default {
} }
if (item.firstClassifyName.indexOf('定损细节照片') != -1) { if (item.firstClassifyName.indexOf('定损细节照片') != -1) {
item.secondClassifyList.forEach(el => { item.secondClassifyList.forEach(el => {
if (el.secondClassifyName.indexOf('钥匙') != -1 && el.serviceItemCode == 'SC0006') { if (el.secondClassifyName.indexOf('钥匙') != -1 && el.serviceItemType == 4) {
el.lossType = '3' el.lossType = '3'
} else if (el.secondClassifyName.indexOf('车牌') != -1 && el.serviceItemCode == 'SC0006') { } else if (el.secondClassifyName.indexOf('车牌') != -1 && el.serviceItemType == 4) {
el.lossType = '4' el.lossType = '4'
} }
services.push(el.serviceItemName) services.push(el.serviceItemName)
...@@ -267,25 +269,14 @@ export default { ...@@ -267,25 +269,14 @@ export default {
} }
if (item.firstClassifyName.indexOf('核赔细节照') != -1) { if (item.firstClassifyName.indexOf('核赔细节照') != -1) {
item.secondClassifyList.forEach(el => { item.secondClassifyList.forEach(el => {
if (el.secondClassifyName.indexOf('钥匙') != -1 && el.serviceItemCode == 'SC0006') { if (el.serviceItemType == 4) {
el.lossType = '3' let lossType = res.itemsList?.[0] ? res.itemsList[0].lossType : 3
} else if (el.secondClassifyName.indexOf('车牌') != -1 && el.serviceItemCode == 'SC0006') { el.lossType = lossType
el.lossType = '4'
} }
services.push(el.serviceItemName) services.push(el.serviceItemName)
}) })
item.services = [...new Set(services)] item.services = [...new Set(services)]
} }
// else {
// item.secondClassifyList.forEach(el => {
// if (!el.attachmentList.length) {
// el.attachmentList.forEach(ele => {
// ;(ele.auditStatus = null), (ele.attachmentFile = '')
// ele.reasonForFailure = ''
// })
// }
// })
// }
}) })
this.insuranceAttachmentConfigs = res.insuranceAttachmentConfigs this.insuranceAttachmentConfigs = res.insuranceAttachmentConfigs
this.claimsAttachmentConfigs = res.claimsAttachmentConfigs this.claimsAttachmentConfigs = res.claimsAttachmentConfigs
...@@ -303,7 +294,7 @@ export default { ...@@ -303,7 +294,7 @@ export default {
if(item.serviceItemType == 2) { if(item.serviceItemType == 2) {
item.damageType = item?.damageType ? item.damageType.split(',').map(ele => Number(ele)) : [] item.damageType = item?.damageType ? item.damageType.split(',').map(ele => Number(ele)) : []
} }
if (item.serviceItemCode == 'SC0006' && item.lossType) { if (item.serviceItemType == 4 && item.lossType) {
item.lossTypeList = item.lossType.split(',') item.lossTypeList = item.lossType.split(',')
this.lossTypeList = item.lossTypeList this.lossTypeList = item.lossTypeList
} }
...@@ -349,6 +340,10 @@ export default { ...@@ -349,6 +340,10 @@ export default {
value: obj.reimbursementDate value: obj.reimbursementDate
}, },
{ {
name: '出险时间(内部):',
value: obj.internalReimbursementDate
},
{
name: '出险地点:', name: '出险地点:',
value: obj.reimbursementProvinceName + obj.reimbursementCityName + obj.reimbursementCountiesName + obj.reimbursementAddr value: obj.reimbursementProvinceName + obj.reimbursementCityName + obj.reimbursementCountiesName + obj.reimbursementAddr
} }
...@@ -466,7 +461,8 @@ export default { ...@@ -466,7 +461,8 @@ export default {
item.secondClassifyList.forEach(child => { item.secondClassifyList.forEach(child => {
child.attachmentList.forEach(last => { child.attachmentList.forEach(last => {
if (!last.auditStatus) { if (!last.auditStatus) {
if (child.serviceItemCode != 'SC0006' || (child.lossType && this.lossTypeList.includes(child.lossType))) { if (child.serviceItemType != 4 || (child.lossType && this.lossTypeList.includes(child.lossType))) {
console.log(child)
pass = false pass = false
} }
// 判断auditStatus没通过就报错,但是钥匙及车牌重置服务会因为勾选才显示,存在没通过的 // 判断auditStatus没通过就报错,但是钥匙及车牌重置服务会因为勾选才显示,存在没通过的
...@@ -631,6 +627,7 @@ export default { ...@@ -631,6 +627,7 @@ export default {
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') : '',
internalReimbursementDate: this.repotData.internalReimbursementDate ? dayjs(this.repotData.internalReimbursementDate).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,
...@@ -807,7 +804,7 @@ export default { ...@@ -807,7 +804,7 @@ export default {
[retrofits]: this.handlePrice(item.retrofits), [retrofits]: this.handlePrice(item.retrofits),
[scooterFare]: this.handlePrice(item.scooterFare), [scooterFare]: this.handlePrice(item.scooterFare),
[claimsId]: this.orderMsg.id, [claimsId]: this.orderMsg.id,
[lossType]: item.serviceItemCode == 'SC0006' ? item.lossTypeList.join(',') : item.lossType, [lossType]: item.serviceItemType == 4 ? item.lossTypeList.join(',') : item.lossType,
[damageType] : item.serviceItemType == 2 && item?.damageType?.length ? item.damageType.join(',') : '' [damageType] : item.serviceItemType == 2 && item?.damageType?.length ? item.damageType.join(',') : ''
} }
Object.assign(itemObj, temp) Object.assign(itemObj, temp)
...@@ -834,6 +831,7 @@ export default { ...@@ -834,6 +831,7 @@ export default {
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') : '',
internalReimbursementDate: this.repotData.internalReimbursementDate ? dayjs(this.repotData.internalReimbursementDate).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,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!