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

add

上级 53d3c916
......@@ -4,8 +4,8 @@ import '@/router';
console.log('router, store, vueApp: ', router, store, vueApp);
import '@/assets/js/flexible';
import {isWeixin } from './utils/index';
import {PicaArea} from 'pica-area';
console.log('PicaArea', PicaArea);
import Loading from '@/components/loading/loading.js';
// 禁用双指放大
var lastTouchEnd = 0;
document.addEventListener('touchstart', function (event) {
......@@ -56,7 +56,7 @@ if(dd.env.version) {
sessionStorage.setItem('headerHeight', 0);
window.Vue.use(PicaArea);
window.Vue.use(Loading);
// 设置安全密钥
window._AMapSecurityConfig = {
securityJsCode: '5dfc1ae6a14ad5c005ffb2ad6d718ae4'
......
......@@ -8,19 +8,6 @@ import {getDetectionName} from '@/api/appoint';
export default {
data() {
return {
// 无问卷-0001 有问卷未填写-0101 已填写问卷未出结果-0102 已出结果无需领用-0401 已出结果未预约-0201 已预约未采样-0301 已预约已采样-0302
// // 0102 已填写问卷
// // 0201 待预约
// // 0202 已预约
// // 0203 已取消待重新预约(暂时无用)
// // 0301 待采样 (暂时无用)
// // 0302 已采样
// // 0303 待重新采样
// // 0901 已结束
// // 0902 已出报告
// // 变化如下:
// // 原来的 已出报告状态从0304变更为0901, 原来的已结束状态0401变更为0902
// STATUS_CODE_0101("0101", "未填写问卷"),
// STATUS_CODE_0102("0102", "已填写问卷"),
// STATUS_CODE_0201("0201", "待预约"),
......@@ -97,44 +84,29 @@ export default {
this.status = res.data.status;
this.getDetectionName(this.yunOrderNo);
switch (res.data.status) {
case '0001':
this.turnToPage(this.routerMap[ this.status], this.query);
break;
case '0101':
// this.turnToPage(this.routerMap[ this.status], this.query);
// 跳转到问卷页面
window.location.href = res.data.questionnaireUrl;
break;
case '0102':
// 跳转到结果页面;
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0401':
this.query.needDetect = 1;
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0201':
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0202':
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0303':
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0901':
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0902':
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0302':
this.turnToPage(this.routerMap[this.status], this.query);
break;
default:
break;
}
case '0101':
window.location.href = res.data.questionnaireUrl;
break;
case '0001':
case '0102':
case '0401':
case '0201':
case '0202':
case '0303':
case '0902':
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0901':
this.query.needDetect = 1;
this.turnToPage(this.routerMap[this.status], this.query);
break;
case '0302':
this.query.detectionRecordId = res.data.detectionRecordId;
this.turnToPage(this.routerMap[this.status], this.query);
break;
default:
break;
}
},
createOrder(data) {
createOrder(data).then(res => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册