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

add

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