From b3ecb1996087351b623c884c53810bccb3627ed1 Mon Sep 17 00:00:00 2001
From: pangxingyue <120277894@qq.com>
Date: Thu, 11 Mar 2021 13:05:43 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=8A=95=E4=BF=9D=E4=BF=9D?=
=?UTF-8?q?=E5=AD=98=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/ebiz/insureAgain.js | 24 ++--
src/views/ebiz/cardList/PayResult.vue | 1 -
.../ebiz/insureAgain/InsureInformation.vue | 103 ++++++++++--------
3 files changed, 74 insertions(+), 54 deletions(-)
diff --git a/src/router/ebiz/insureAgain.js b/src/router/ebiz/insureAgain.js
index cae511abf..1ec6d4b63 100644
--- a/src/router/ebiz/insureAgain.js
+++ b/src/router/ebiz/insureAgain.js
@@ -1,12 +1,20 @@
+/*
+ * @Author: PangXingYue
+ * @Date: 2021-03-11 09:07:58
+ * @LastEditTime: 2021-03-11 09:15:54
+ * @LastEditors: PangXingYue
+ * @Description:
+ * @FilePath: \ebiz-h5\src\router\ebiz\insureAgain.js
+ */
const InsureAgain = () => import('@/views/ebiz/insureAgain')
-const UncommitInsureDetail = () => import('@/views/ebiz/insureAgain/UncommitInsureDetail')
-const CommitInsureDetail = () => import('@/views/ebiz/insureAgain/CommitInsureDetail')
-const InsureInformation = () => import('@/views/ebiz/insureAgain/InsureInformation')
-const ProductInformation = () => import('@/views/ebiz/insureAgain/ProductInformation')
-const Notification = () => import('@/views/ebiz/insureAgain/Notification')
-const SignConfirmation = () => import('@/views/ebiz/insureAgain/SignConfirmation')
-const InsureAgainPayment = () => import('@/views/ebiz/insureAgain/Payment')
-const PaymentResult = () => import('@/views/ebiz/insureAgain/PaymentResult')
+const UncommitInsureDetail = () => import('@/views/ebiz/insureAgain/uncommitInsureDetail')
+const CommitInsureDetail = () => import('@/views/ebiz/insureAgain/commitInsureDetail')
+const InsureInformation = () => import('@/views/ebiz/insureAgain/insureInformation')
+const ProductInformation = () => import('@/views/ebiz/insureAgain/productInformation')
+const Notification = () => import('@/views/ebiz/insureAgain/notification')
+const SignConfirmation = () => import('@/views/ebiz/insureAgain/signConfirmation')
+const InsureAgainPayment = () => import('@/views/ebiz/insureAgain/payment')
+const PaymentResult = () => import('@/views/ebiz/insureAgain/paymentResult')
export default [
{
diff --git a/src/views/ebiz/cardList/PayResult.vue b/src/views/ebiz/cardList/PayResult.vue
index 26e0dd0eb..093e5cf84 100644
--- a/src/views/ebiz/cardList/PayResult.vue
+++ b/src/views/ebiz/cardList/PayResult.vue
@@ -195,7 +195,6 @@ export default {
if (window.localStorage.getItem('resMessage') != null) {
that.resMessage = window.localStorage.getItem('resMessage').replace(/\\n/g, '
')
}
-
this.paySeqNo = this.$route.query.RdSeq
if (!this.paySeqNo) {
this.$toast({ message: '参数错误,缺少支付流水号‘RdSeq’查询参数', duration: 5000 })
diff --git a/src/views/ebiz/insureAgain/InsureInformation.vue b/src/views/ebiz/insureAgain/InsureInformation.vue
index 91d2dc8c6..ac96440f1 100644
--- a/src/views/ebiz/insureAgain/InsureInformation.vue
+++ b/src/views/ebiz/insureAgain/InsureInformation.vue
@@ -9,9 +9,9 @@
{{userInfo.idType | idToText('insuredIdType')}}
{{userInfo.birthday}}
{{userInfo.certiexpiredate}}
-
+
{{userInfo.nativeplace | idToText('nativeplace')}}
-
{{userInfo.occupationCode}}
{{userInfo.mobile}}
@@ -20,7 +20,7 @@
有
无
-->
-
+
{{userInfo.taxResidentId | idToText('taxIdentity')}}
{{homeName}}
{{userInfo.homeAddress}}
@@ -33,9 +33,9 @@
{{userInfo.idType | idToText('idType')}}
{{insuredPersonInfo.idNo}}
{{insuredPersonInfo.birthday}}
-
+
{{insuredPersonInfo.nativeplace | idToText('nativeplace')}}
-
{{insuredPersonInfo.occupationCode}}
-
@@ -86,8 +86,7 @@
{{accountPersonInfo.accountName}}
{{accountPersonInfo.bankName}}
- {{accountPersonInfo.cardBookCode}}
-
+ {{accountPersonInfo.cardBookCode}}
下一步
@@ -111,7 +110,7 @@ import ProgressBar from '@/components/ebiz/insureAgain/ProgressBar'
import DropdownBox from '@/components/ebiz/insureAgain/DropdownBox'
import InfoCell from '@/components/ebiz/insureAgain/InfoCell'
// import { saveOrUpdateOrderInfo, getOrderDetail } from '@/api/ebiz/insureAgain/insureAgain'
-import { getOrderDetail } from '@/api/ebiz/sale/sale'
+import { getOrderDetail, saveOrUpdateOrderInfo } from '@/api/ebiz/sale/sale'
import DataDictionary from '@/assets/js/utils/data-dictionary'
import SelectRadio from '@/components/ebiz/SelectRadio'
import getAreaName from '@/assets/js/utils/getAreaNameForSale'
@@ -185,23 +184,6 @@ export default {
window.appCallBack = this.appCallBack
},
methods: {
- /**
- * @description: 人脸识别
- * @param {*}
- * @return {*}
- */
- async faceTo() {
- const authRes = await EWebBridge.webCallAppInJs('face_auth', {
- businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
- number: '120222199012046418', //身份证号码
- name: '庞兴月' //姓名
- })
- if (JSON.parse(authRes).state == '1') {
- // this.goUrl()
- } else {
- this.$toast('人脸识别失败!')
- }
- },
/**
* @description: 签名
* @param {*}
@@ -553,7 +535,18 @@ export default {
this.isSpecialRead = payload
},
async nextStep(page) {
+ // const authRes = await EWebBridge.webCallAppInJs('face_auth', {
+ // businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
+ // number: this.userInfo.idNo, //身份证号码
+ // name: this.userInfo.name //姓名
+ // })
+ // if (JSON.parse(authRes).state !== '1') {
+ // this.$toast('人脸识别失败!')
+ // return false;
+ // }
// 验证
+ // console.log(this.userInfo, '=====================================this.userInfo')
+ // console.log(this.insuredPersonInfo, '=====================================this.insuredPersonInfo')
let valid = await this.$validator.validate()
if (true === valid) {
for (let status of DataDictionary.marriage) {
@@ -561,19 +554,40 @@ export default {
this.userInfo.marriage = status.id
}
}
- this.infoUpdate()
+ this.save()
} else {
return this.$toast(this.$validator.errors.all()[0])
+ }
+ },
+ async save() {
+ let params = {
+ orderType: 'APPNT_ORDER',
+ orderDTO: {
+ orderInfoDTO: {
+ orderNo: localStorage.orderNo,
+ isElecCont: this.isElecCont
+ },
+ appntDTO: this.userInfo,
+ insuredDTOs: this.insuredPersonInfo,
+ orderAccountDTO: this.accountPersonInfo
+ }
+ }
+ let str = ''
+ let resultData = await saveOrUpdateOrderInfo(params)
+ if (resultData.result == 0) {
+ localStorage.setItem('orderNo', resultData.orderNo)
+ this.$jump({
+ flag: 'h5',
+ extra: {
+ url: location.origin + `/#/insureAgain/productInformation`
+ },
+ routerInfo: {
+ path: `/insureAgain/productInformation`
+ }
+ })
+ } else {
+ this.$toast(resultData.resultMessage)
}
- // this.$jump({
- // flag: 'h5',
- // extra: {
- // url: location.origin + `/#/insureAgain`,
- // forbidSwipeBack: '1',
- // needRefresh: '1'
- // },
- // routerInfo: { path: `/insureAgain` }
- // })
},
/**
* @description:
@@ -582,13 +596,13 @@ export default {
*/
chooseOccupation(data) {
let { code, name, healthGrade, lifeGrade } = data
- // this.$jump({
- // flag: 'navigation',
- // extra: {
- // title: '职业类别',
- // hiddenRight: '1'
- // }
- // })
+ this.$jump({
+ flag: 'navigation',
+ extra: {
+ title: '职业类别',
+ hiddenRight: '1'
+ }
+ })
this.occupationShowPicker = false
this.bnfPersonInfo[this.bnfIndex]['occupationName'] = name;
this.bnfPersonInfo[this.bnfIndex]['occupationCode'] = code;
@@ -603,8 +617,7 @@ export default {
this.occupationShowPicker = !this.occupationShowPicker
this.bnfIndex = index
this.occupationName = this.bnfPersonInfo[this.bnfIndex]['occupationName'];
- this.occupationCode = this.bnfPersonInfo[this.bnfIndex]['occupationCode'];
- console.log(this.occupationName, '=============this.occupationName============')
+ this.occupationCode = this.bnfPersonInfo[this.bnfIndex]['occupationCode'];
}
}