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

add

上级 29525f23
......@@ -262,7 +262,8 @@ export default {
path: '/insuranceBindCode',
query: {
pprotocolType,
detectionRecordId:detectionServiceRecordId,
detectionRecordId: detectionServiceRecordId,
yunOrderNo:this.yunOrderNo
}
});
},
......
......@@ -3,7 +3,8 @@
</template>
<script>
import { getJumpPageStatus} from '@/api/question';
import { getJumpPageStatus } from '@/api/question';
import {getDetectionName} from '@/api/appoint';
export default {
data() {
return {
......@@ -16,10 +17,24 @@ export default {
'0201': '/appoint',
'0301': '/appoint-details',
'0302': '/insuranceBindCode',
}
},
dectionData:{}
};
},
methods: {
// 目前是配置一个检测信息,可能会拓展,所以返回的是一个list
getDetectionName(yunOrderNo) {
getDetectionName(yunOrderNo).then(res => {
if (res.code === '000000' && res.data) {
const dectionData = res.data[0] || {};
console.log('getDetectionName', dectionData);
this.dectionData = dectionData;
this.dectionForm.detectName = dectionData.detectionName;
this.dectionForm.goodsId = dectionData.goodsId;
this.$store.dispatch('home/setInsuranceInfo', dectionData);
}
});
},
// 获取跳转状态
getJumpPageStatus() {
getJumpPageStatus(this.orderNo, this.projectEquityNo).then(res => {
......@@ -27,6 +42,7 @@ export default {
this.yunOrderNo = res.data.yunOrderNo;
this.query.yunOrderNo = res.data.yunOrderNo;
this.status = res.data.status;
this.getDetectionName(this.yunOrderNo);
switch (res.data.status) {
case '0001':
this.turnToPage(this.routerMap[ this.status], this.query);
......@@ -50,7 +66,7 @@ export default {
case '0301':
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0302':
case '0302':
this.turnToPage(this.routerMap[this.status], this.query);
break;
default:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册