From 760407ff676c83bebea5f912e69d927521bccf1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=99=93=E5=9D=A4?= Date: Fri, 11 Oct 2019 18:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81=E6=9C=89=E6=95=88?= =?UTF-8?q?=E6=9C=9F=E9=94=99=E8=AF=AF=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/InsuredInfo.vue | 27 +++------------------------ src/views/ebiz/sale/InsuredPerson.vue | 4 ++-- 2 files changed, 5 insertions(+), 26 deletions(-) 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}`