Commit 02603dd8 by zhangquan

出现日期(内部)

1 parent 55c460f2
......@@ -123,6 +123,18 @@ export default {
}
},
{
label: '出险时间(内部)',
name: 'internalReimbursementDate',
type: 'limitDatePicker',
dateType: 'datetime',
customPickerOptions: {
disabledDate(date) {
return date > new Date()
},
selectableRange: ''
}
},
{
label: '报案日期',
name: 'reportDate',
type: 'limitDatePicker',
......
<template>
<div class="report-components gl-form-page">
<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">
<div v-if="pageType == 1" style="display: inline-block" slot="syncBtn">
<el-button style="margin: 0 12px" type="primary" @click="toSearchOrderDetail">同步</el-button>
......@@ -17,10 +17,10 @@
<div :key="index" class="line_widget flex_sc">
<div class="label">
<span class="required">*</span>
<span class="text">{{item.label}}</span>
<span class="text">{{ item.label }}</span>
<span class="text">:</span>
</div>
<div class="value">{{item.value}}</div>
<div class="value">{{ item.value }}</div>
</div>
</template>
</div>
......@@ -45,7 +45,7 @@ export default {
type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
},
renewDisable:Boolean
renewDisable: Boolean
},
data() {
return {
......@@ -72,6 +72,7 @@ export default {
trigger: 'change'
}
],
internalReimbursementDate: [{ required: true, message: '请选择出险时间(内部)', trigger: 'change' }],
reporterName: [{ required: true, message: '请输入报案人', trigger: 'change' }],
reporterPhone: [
{
......@@ -100,9 +101,9 @@ export default {
mounted() {
this.diffKeyHandle(this.isGH)
let _this = this
setTimeout(()=>{
setTimeout(() => {
_this.handlerDetail()
},500)
}, 500)
},
watch: {
'editForm.reportDate'(newVal, oldVal) {
......@@ -137,11 +138,15 @@ export default {
value: this.editForm.reimbursementDate
},
{
label: '出险时间(内部)',
value: this.editForm.internalReimbursementDate
},
{
label: '出险地点',
value: this.editForm.reimbursementAddr
}
]
console.log( this.editDetail);
console.log(this.editDetail)
},
//*************** */
getCityList() {
......@@ -193,6 +198,18 @@ export default {
}
},
{
label: '出险时间(内部)',
name: 'internalReimbursementDate',
type: 'limitDatePicker',
dateType: 'datetime',
customPickerOptions: {
disabledDate(date) {
return date > new Date()
},
selectableRange: ''
}
},
{
label: '报案日期',
name: 'reportDate',
type: 'limitDatePicker',
......@@ -281,6 +298,18 @@ export default {
}
},
{
label: '出险时间(内部)',
name: 'internalReimbursementDate',
type: 'limitDatePicker',
dateType: 'datetime',
customPickerOptions: {
disabledDate(date) {
return date > new Date()
},
selectableRange: ''
}
},
{
label: '报案日期',
name: 'reportDate',
type: 'limitDatePicker',
......@@ -374,6 +403,7 @@ export default {
}
}
/deep/ #reportDate,
/deep/ #internalReimbursementDate,
/deep/ #reimbursementDate {
.el-date-editor {
.el-input__inner {
......@@ -394,7 +424,7 @@ export default {
background: #f9f9f9;
margin-bottom: 20px;
}
.wrap{
.wrap {
flex-wrap: wrap;
}
.line_widget {
......
......@@ -94,6 +94,7 @@ export default {
reporterPhone: '',
reportDate: '',
reimbursementDate: '',
internalReimbursementDate: '',
reimbursementAddr: '',
handlerName: '',
handlerPhone: '',
......@@ -198,6 +199,7 @@ export default {
reporterPhone: res.reporterPhone,
reportDate: dayjs(res.reportDate).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,
handlerName: res.handlerName,
handlerPhone: res.handlerPhone,
......@@ -348,6 +350,10 @@ export default {
value: obj.reimbursementDate
},
{
name: '出险时间(内部):',
value: obj.internalReimbursementDate
},
{
name: '出险地点:',
value: obj.reimbursementProvinceName + obj.reimbursementCityName + obj.reimbursementCountiesName + obj.reimbursementAddr
}
......@@ -631,6 +637,7 @@ export default {
reporterPhone: this.repotData.reporterPhone,
reportDate: this.repotData.reportDate ? dayjs(this.repotData.reportDate).format('YYYY-MM-DD HH:mm:ss') : '',
reimbursementDate: this.repotData.reimbursementDate ? dayjs(this.repotData.reimbursementDate).format('YYYY-MM-DD HH:mm:ss') : '',
internalReimbursementDate: this.repotData.internalReimbursementDate ? dayjs(this.repotData.internalReimbursementDate).format('YYYY-MM-DD HH:mm:ss') : '',
handlerName: this.repotData.handlerName,
handlerPhone: this.repotData.handlerPhone,
reimbursementCountiesCode: this.repotData.reimbursementCountiesCode,
......@@ -837,6 +844,7 @@ export default {
reporterPhone: this.repotData.reporterPhone,
reportDate: this.repotData.reportDate ? dayjs(this.repotData.reportDate).format('YYYY-MM-DD HH:mm:ss') : '',
reimbursementDate: this.repotData.reimbursementDate ? dayjs(this.repotData.reimbursementDate).format('YYYY-MM-DD HH:mm:ss') : '',
internalReimbursementDate: this.repotData.internalReimbursementDate ? dayjs(this.repotData.internalReimbursementDate).format('YYYY-MM-DD HH:mm:ss') : '',
handlerName: this.repotData.handlerName,
handlerPhone: this.repotData.handlerPhone,
reimbursementCountiesCode: this.repotData.reimbursementCountiesCode,
......
......@@ -89,6 +89,7 @@ export default {
contractNo: '',
reportDate: '',
reimbursementDate: '',
internalReimbursementDate: '',
reimbursementAddress: '',
reporterName: '',
reporterPhone: '',
......@@ -251,6 +252,7 @@ export default {
params.accountType = 0
}
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') : ''
if (params.reimbursementAddress.length == 3) {
params.reimbursementProvinceCode = params.reimbursementAddress[0]
......@@ -406,7 +408,6 @@ export default {
//详情
getDetailById() {
this.$apis.claims.getClaimsDetail({ id: this.routeInfo.orderId }).then(res => {
console.log(res, 'getDetailById')
this.refitInfo = res?.equityOrderDetail || {}
// 以下是report数据
for (let key in this.editForm) {
......@@ -629,6 +630,7 @@ export default {
}
params.operation = type
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') : ''
if (params.reimbursementAddress.length == 3) {
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!