diff --git a/src/views/ebiz/sale/InsuredInfo.vue b/src/views/ebiz/sale/InsuredInfo.vue index bc4b31bba..6dbc47ac2 100644 --- a/src/views/ebiz/sale/InsuredInfo.vue +++ b/src/views/ebiz/sale/InsuredInfo.vue @@ -557,8 +557,8 @@ export default { }, created() { // document.body.style.backgroundColor = '#F5F5F5' - //如果是编辑进来 + if (this.$route.query.edit) { getOrderDetail({ orderNo: localStorage.orderNo }).then(res => { if (res.result == 0) { @@ -589,28 +589,7 @@ export default { this.userInfo.name = name }, selectClick(index) { - // this.currentPopupIndex = index - // let title = '' - // if (index == 1) { - // ;[this.customerShowPicker, title] = [true, '客户列表'] - // } else if (index == 2) { - // ;[this.occupationShowPicker, title] = [true, '职业类别'] - // } else if (index == 3) { - // localStorage.scanFromInsured = 'true' - // ;[this.isScan, title] = [true, '身份证扫描'] - // } - // setTimeout(() => { - // this.$jump({ - // flag: 'navigation', - // extra: { - // title, - // hiddenLeft: '1' - // } - // }) - // this.closeBtn() - // }, 400) - // let that = this selectComp(this, index, '1') }, // closeBtn() { @@ -1168,8 +1147,8 @@ export default { getIdentityInfo(data) { console.log(data) if (data.name && data.name != '待识别') { - this.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}` - this.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}` + this.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(5, 2)}-${data.startDate.substr(8, 2)}` + this.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(5, 2)}-${data.endDate.substr(8, 2)}` this.userInfo.name = data.name this.userInfo.idNo = data.idNo this.userInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}` diff --git a/src/views/ebiz/sale/InsuredPerson.vue b/src/views/ebiz/sale/InsuredPerson.vue index 78b39ee0b..31df21b05 100644 --- a/src/views/ebiz/sale/InsuredPerson.vue +++ b/src/views/ebiz/sale/InsuredPerson.vue @@ -1297,8 +1297,8 @@ export default { getIdentityInfo(data) { console.log(data) if (data.name && data.name != '待识别') { - this.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}` - this.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}` + this.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(5, 2)}-${data.startDate.substr(8, 2)}` + this.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(5, 2)}-${data.endDate.substr(8, 2)}` this.userInfo.name = data.name this.userInfo.idNo = data.idNo this.userInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}`