|
|
@@ -2039,71 +2039,95 @@
|
|
|
},
|
|
|
//校验事件
|
|
|
async next() {
|
|
|
+
|
|
|
let _this = this;
|
|
|
+ if (this.policyHolderholder == '1') {
|
|
|
+ await this.setPersonInfoAndImageType('ownerInfo',
|
|
|
+ 'policyHolderInfo',
|
|
|
+ "C03");
|
|
|
+ this.policyHolderInfo.owner = true;
|
|
|
+ this.policyHolderInfo = {
|
|
|
+ ...this.policyHolderInfo
|
|
|
+ };
|
|
|
+ }
|
|
|
+ if (this.Insuredholder == '1') {
|
|
|
+ await this.setPersonInfoAndImageType('ownerInfo',
|
|
|
+ 'insuredPersonInfo',
|
|
|
+ "C04");
|
|
|
+ this.insuredPersonInfo.owner = true;
|
|
|
+ this.insuredPersonInfo = {
|
|
|
+ ...this.insuredPersonInfo
|
|
|
+ };
|
|
|
+ }
|
|
|
+ if (this.Insuredholder == '2') {
|
|
|
+ await this.setPersonInfoAndImageType('policyHolderInfo',
|
|
|
+ 'insuredPersonInfo', "C04");
|
|
|
+ this.insuredPersonInfo.insuranceHolder = true;
|
|
|
+ this.insuredPersonInfo = {
|
|
|
+ ...this.insuredPersonInfo
|
|
|
+ };
|
|
|
+ }
|
|
|
_this.$refs[this.carSwitching ? 'carForm' : 'carForm1'].validate(carvalid => {
|
|
|
if (carvalid) {
|
|
|
- _this.$refs[this.ownerSwitching ? 'ownerForm' : 'ownerForm1'].validate(ownervalid => {
|
|
|
- if (ownervalid) {
|
|
|
- _this.$refs[this.policySwitching ? 'policyForm' : 'policyForm1']
|
|
|
- .validate(
|
|
|
- policyvalid => {
|
|
|
- if (policyvalid) {
|
|
|
- _this.$refs[this.insuredSwitching ? 'insuredForm' :
|
|
|
- 'insuredForm1']
|
|
|
- .validate(insuredvalid => {
|
|
|
- if (insuredvalid) {
|
|
|
- _this.navigate({
|
|
|
- url: '/pages/carInsure/companyQuotable',
|
|
|
- success: (res) => {
|
|
|
- res.eventChannel
|
|
|
- .emit(
|
|
|
- "acceptData", {
|
|
|
- carInfo: _this
|
|
|
- .carInfo,
|
|
|
- ownerInfo: _this
|
|
|
- .ownerInfo,
|
|
|
- policyHolderInfo: _this
|
|
|
- .policyHolderInfo,
|
|
|
- insuredPersonInfo: _this
|
|
|
- .insuredPersonInfo,
|
|
|
- riskList: _this
|
|
|
- .riskList,
|
|
|
- kindList: _this
|
|
|
- .kindList,
|
|
|
- carInfoPositiveList: _this
|
|
|
- .carInfoPositiveList, //车辆
|
|
|
- ownerInfoPositiveList: _this
|
|
|
- .ownerInfoPositiveList, //车主
|
|
|
- policyHolderInfoPositiveList: _this
|
|
|
- .policyHolderInfoPositiveList, //投保人
|
|
|
- insuredPersonInfoPositiveList: _this
|
|
|
- .insuredPersonInfoPositiveList, //被保人
|
|
|
- productId: _this
|
|
|
- .productId,
|
|
|
- productName: _this
|
|
|
- .productName,
|
|
|
- quoteno: this
|
|
|
- .quoteno
|
|
|
- })
|
|
|
-
|
|
|
- }
|
|
|
- }, "navigateTo", true);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- });
|
|
|
- }
|
|
|
+ _this.$refs[this.ownerSwitching ? 'ownerForm' : 'ownerForm1'].validate(
|
|
|
+ ownervalid => {
|
|
|
+ if (ownervalid) {
|
|
|
+ _this.$refs[this.policySwitching ? 'policyForm' : 'policyForm1']
|
|
|
+ .validate(
|
|
|
+ policyvalid => {
|
|
|
+ if (policyvalid) {
|
|
|
+ _this.$refs[this.insuredSwitching ? 'insuredForm' :
|
|
|
+ 'insuredForm1']
|
|
|
+ .validate(insuredvalid => {
|
|
|
+ if (insuredvalid) {
|
|
|
+ _this.navigate({
|
|
|
+ url: '/pages/carInsure/companyQuotable',
|
|
|
+ success: (res) => {
|
|
|
+ res.eventChannel
|
|
|
+ .emit(
|
|
|
+ "acceptData", {
|
|
|
+ carInfo: _this
|
|
|
+ .carInfo,
|
|
|
+ ownerInfo: _this
|
|
|
+ .ownerInfo,
|
|
|
+ policyHolderInfo: _this
|
|
|
+ .policyHolderInfo,
|
|
|
+ insuredPersonInfo: _this
|
|
|
+ .insuredPersonInfo,
|
|
|
+ riskList: _this
|
|
|
+ .riskList,
|
|
|
+ kindList: _this
|
|
|
+ .kindList,
|
|
|
+ carInfoPositiveList: _this
|
|
|
+ .carInfoPositiveList, //车辆
|
|
|
+ ownerInfoPositiveList: _this
|
|
|
+ .ownerInfoPositiveList, //车主
|
|
|
+ policyHolderInfoPositiveList: _this
|
|
|
+ .policyHolderInfoPositiveList, //投保人
|
|
|
+ insuredPersonInfoPositiveList: _this
|
|
|
+ .insuredPersonInfoPositiveList, //被保人
|
|
|
+ productId: _this
|
|
|
+ .productId,
|
|
|
+ productName: _this
|
|
|
+ .productName,
|
|
|
+ quoteno: this
|
|
|
+ .quoteno
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+ }, "navigateTo", true);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
expand(int) {
|
|
|
this[int] = true;
|