提交 b718e3ec 编写于 作者: 张敬贤's avatar 张敬贤

add

上级 22a72b3e
......@@ -319,6 +319,7 @@ export default {
this.stock = res.data.stock;
this.isDisabled = !this.stock;
}
this.$loading.hide();
console.log('getJumpPageStatus', res);
});
},
......@@ -381,7 +382,6 @@ export default {
this.dectionForm.beneficiaryIdNum = res.data.beneficiaryIdNum;
this.isDisabled = (this.dectionForm.beneficiaryName != '' && this.dectionForm.beneficiaryPhone != '' && this.dectionForm.beneficiaryIdNum != '') && (this.dectionForm.beneficiaryName && this.dectionForm.beneficiaryPhone && this.dectionForm.beneficiaryIdNum );
this.$store.dispatch('home/setOrderInfo', res.data);
this.$loading.hide();
});
},
......
......@@ -25,7 +25,7 @@ export default {
'0101': null,
'0102': '/insuranceQuestionBack',
// '0401': '/insuranceQuestionResult',
'0201': '/insuranceQuestionResult',
'0201': null,
'0202': '/appoint-details',
'0203': '/appoint-details',
'0302': '/insuranceDetectionDetail',
......@@ -38,7 +38,8 @@ export default {
projectEquityNo: '',
externalOrderNo: '',
query: {},
yunOrderNo:'',
yunOrderNo: '',
hasQuestionnaire:''
};
},
......@@ -142,10 +143,10 @@ export default {
},
// 获取跳转状态
getJumpPageStatus(data) {
getJumpPageStatus(data).then(res => {
console.log('getJumpPageStatus', res);
if (res.code == '000000') {
if (res.data.yunOrderNo && res.data.yunOrderNo != '') {
this.checkStatus(res);
} else {
......@@ -164,7 +165,7 @@ export default {
this.query.projectEquityNo = this.projectEquityNo;
this.query.externalOrderNo = this.externalOrderNo;
this.status = res.data.statusCode;
this.hasQuestionnaire = res.data.hasQuestionnaire;
this.getDetectionName(this.yunOrderNo);
switch (this.status) {
case '0101':
......@@ -182,10 +183,15 @@ export default {
this.query.detectionRecordId = res.data.detectionRecordId;
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0201':
this.query.needDetect = 1;
console.log('this.query.needDetect', this.query);
this.turnToPage(this.routerMap[this.status], this.query);
case '0201':
if (this.hasQuestionnaire) {
this.query.needDetect = 1;
console.log('this.query.needDetect', this.query);
this.turnToPage('/insuranceDetectionDetail', this.query);
} else {
this.turnToPage('/appoint', this.query);
}
break;
case '0302':
this.query.detectionRecordId = res.data.detectionRecordId;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册