Commit 02603dd8 by zhangquan

出现日期(内部)

1 parent 55c460f2
...@@ -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 {
......
...@@ -94,6 +94,7 @@ export default { ...@@ -94,6 +94,7 @@ export default {
reporterPhone: '', reporterPhone: '',
reportDate: '', reportDate: '',
reimbursementDate: '', reimbursementDate: '',
internalReimbursementDate: '',
reimbursementAddr: '', reimbursementAddr: '',
handlerName: '', handlerName: '',
handlerPhone: '', handlerPhone: '',
...@@ -198,6 +199,7 @@ export default { ...@@ -198,6 +199,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,
...@@ -348,6 +350,10 @@ export default { ...@@ -348,6 +350,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
} }
...@@ -631,6 +637,7 @@ export default { ...@@ -631,6 +637,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,
...@@ -837,6 +844,7 @@ export default { ...@@ -837,6 +844,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,
......
...@@ -89,6 +89,7 @@ export default { ...@@ -89,6 +89,7 @@ export default {
contractNo: '', contractNo: '',
reportDate: '', reportDate: '',
reimbursementDate: '', reimbursementDate: '',
internalReimbursementDate: '',
reimbursementAddress: '', reimbursementAddress: '',
reporterName: '', reporterName: '',
reporterPhone: '', reporterPhone: '',
...@@ -251,6 +252,7 @@ export default { ...@@ -251,6 +252,7 @@ export default {
params.accountType = 0 params.accountType = 0
} }
params.reimbursementDate = params.reimbursementDate ? util.dateFormat(params.reimbursementDate, 'YYYY-MM-DD HH:mm:ss') : '' params.reimbursementDate = params.reimbursementDate ? util.dateFormat(params.reimbursementDate, 'YYYY-MM-DD HH:mm:ss') : ''
params.internalReimbursementDate = params.internalReimbursementDate ? util.dateFormat(params.internalReimbursementDate, 'YYYY-MM-DD HH:mm:ss') : ''
params.reportDate = params.reportDate ? util.dateFormat(params.reportDate, 'YYYY-MM-DD HH:mm:ss') : '' params.reportDate = params.reportDate ? util.dateFormat(params.reportDate, 'YYYY-MM-DD HH:mm:ss') : ''
if (params.reimbursementAddress.length == 3) { if (params.reimbursementAddress.length == 3) {
params.reimbursementProvinceCode = params.reimbursementAddress[0] params.reimbursementProvinceCode = params.reimbursementAddress[0]
...@@ -406,7 +408,6 @@ export default { ...@@ -406,7 +408,6 @@ export default {
//详情 //详情
getDetailById() { getDetailById() {
this.$apis.claims.getClaimsDetail({ id: this.routeInfo.orderId }).then(res => { this.$apis.claims.getClaimsDetail({ id: this.routeInfo.orderId }).then(res => {
console.log(res, 'getDetailById')
this.refitInfo = res?.equityOrderDetail || {} this.refitInfo = res?.equityOrderDetail || {}
// 以下是report数据 // 以下是report数据
for (let key in this.editForm) { for (let key in this.editForm) {
...@@ -629,6 +630,7 @@ export default { ...@@ -629,6 +630,7 @@ export default {
} }
params.operation = type params.operation = type
params.reimbursementDate = params.reimbursementDate ? util.dateFormat(params.reimbursementDate, 'YYYY-MM-DD HH:mm:ss') : '' params.reimbursementDate = params.reimbursementDate ? util.dateFormat(params.reimbursementDate, 'YYYY-MM-DD HH:mm:ss') : ''
params.internalReimbursementDate = params.internalReimbursementDate ? util.dateFormat(params.internalReimbursementDate, 'YYYY-MM-DD HH:mm:ss') : ''
params.reportDate = params.reportDate ? util.dateFormat(params.reportDate, 'YYYY-MM-DD HH:mm:ss') : '' params.reportDate = params.reportDate ? util.dateFormat(params.reportDate, 'YYYY-MM-DD HH:mm:ss') : ''
if (params.reimbursementAddress.length == 3) { if (params.reimbursementAddress.length == 3) {
params.reimbursementProvinceCode = params.reimbursementAddress[0] params.reimbursementProvinceCode = params.reimbursementAddress[0]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!