提交 dca58187 编写于 作者: 张磊's avatar 张磊

quick detect

上级 6ca5cc11
/**
* @name: appHooks
* @author: alan
* @date: 2021-09-13 17:05
* @description:appHooks
* @update: 2021-09-13 17:05
*/
export default {
data() {
return {
......
......@@ -211,7 +211,7 @@
</template>
<script>
import {getDetailByYunOrderNo} from '@/api/appoint';
import {getDetailByYunOrderNo, getDetectionName} from '@/api/appoint';
import { formatDate } from '@/utils/common';
import storejs from 'storejs';
import AMapLoader from '@amap/amap-jsapi-loader';
......@@ -235,17 +235,6 @@ export default {
expireFlag:false,
query: {},
isUnderLine:false,
// 状态 代码 说明
// 0101 未填写问卷
// 0102 已填写问卷
// 0201 待预约
// 0202 已预约
// 0203 已取消待重新预约
// 0301 待采样
// 0302 已采样
// 0303 待重新采样
// 0304 已出报告
// 0401 已结束
statusMap: {
'0101': '未填写问卷',
'0102': '已填写问卷',
......@@ -270,11 +259,11 @@ export default {
this.projectEquityNo = projectEquityNo;
console.log('yunOrderNo', yunOrderNo);
this.getDetailByYunOrderNo(yunOrderNo);
this.getDetectionName(yunOrderNo);
this.$loading.hide();
},
methods: {
formatDate(orderTime) {
if (!orderTime) {
return '--';
}
......@@ -435,7 +424,14 @@ export default {
this.$toast('已复制');
console.log('已复制的内容:', copyText);
},
validateShow() {
getDetectionName(yunOrderNo) {
getDetectionName(yunOrderNo).then(res => {
if (res.code === '000000' && res.data) {
const dectionData = res.data[0] || {};
this.$store.dispatch('home/setInsuranceInfo', dectionData);
}
});
},
},
};
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册