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

add

上级 29525f23
...@@ -262,7 +262,8 @@ export default { ...@@ -262,7 +262,8 @@ export default {
path: '/insuranceBindCode', path: '/insuranceBindCode',
query: { query: {
pprotocolType, pprotocolType,
detectionRecordId:detectionServiceRecordId, detectionRecordId: detectionServiceRecordId,
yunOrderNo:this.yunOrderNo
} }
}); });
}, },
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
</template> </template>
<script> <script>
import { getJumpPageStatus} from '@/api/question'; import { getJumpPageStatus } from '@/api/question';
import {getDetectionName} from '@/api/appoint';
export default { export default {
data() { data() {
return { return {
...@@ -16,10 +17,24 @@ export default { ...@@ -16,10 +17,24 @@ export default {
'0201': '/appoint', '0201': '/appoint',
'0301': '/appoint-details', '0301': '/appoint-details',
'0302': '/insuranceBindCode', '0302': '/insuranceBindCode',
} },
dectionData:{}
}; };
}, },
methods: { 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() {
getJumpPageStatus(this.orderNo, this.projectEquityNo).then(res => { getJumpPageStatus(this.orderNo, this.projectEquityNo).then(res => {
...@@ -27,6 +42,7 @@ export default { ...@@ -27,6 +42,7 @@ export default {
this.yunOrderNo = res.data.yunOrderNo; this.yunOrderNo = res.data.yunOrderNo;
this.query.yunOrderNo = res.data.yunOrderNo; this.query.yunOrderNo = res.data.yunOrderNo;
this.status = res.data.status; this.status = res.data.status;
this.getDetectionName(this.yunOrderNo);
switch (res.data.status) { switch (res.data.status) {
case '0001': case '0001':
this.turnToPage(this.routerMap[ this.status], this.query); this.turnToPage(this.routerMap[ this.status], this.query);
...@@ -50,7 +66,7 @@ export default { ...@@ -50,7 +66,7 @@ export default {
case '0301': case '0301':
this.turnToPage(this.routerMap[this.status], this.query); this.turnToPage(this.routerMap[this.status], this.query);
break; break;
case '0302': case '0302':
this.turnToPage(this.routerMap[this.status], this.query); this.turnToPage(this.routerMap[this.status], this.query);
break; break;
default: default:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册