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

add

上级 66f56dc4
......@@ -172,6 +172,7 @@
@click="appointment"
>
提交
{{ buttonStatus ? '提交' : buttonText }}
</van-button>
</div>
<SelectHospital
......@@ -208,7 +209,7 @@ import {getDetectionName, getOrderInfo, appointment, getHospitalList} from '@/ap
import SelectHospital from '@/components/selectHospital/index.vue';
import SelectTime from '@/components/selectTime/index.vue';
import PickArea from '@/components/pickArea/index.vue';
import { getJumpPageStatus } from '@/api/question';
import { getJumpPageStatus, getButtonStatus} from '@/api/question';
import storejs from 'storejs';
import AMapLoader from '@amap/amap-jsapi-loader';
export default {
......@@ -272,7 +273,9 @@ export default {
yunOrderNo: '',
externalData: {},
isDisabled: false,
stock:false,
stock: false,
buttonStatus: false,
buttonText: '',
};
},
computed: {
......@@ -295,7 +298,8 @@ export default {
this.dectionForm.beneficiaryName &&
this.dectionForm.beneficiaryPhone &&
this.yunOrderNo &&
this.stock
this.stock &&
this.buttonStatus
);
},
......@@ -315,6 +319,7 @@ export default {
this.getDetectionName(yunOrderNo);
this.getOrderInfo(yunOrderNo);
this.getJumpPageStatus(data);
this.getButtonStatus(yunOrderNo);
this.initMap();
},
methods: {
......@@ -494,6 +499,15 @@ export default {
console.log(err);
});
},
// 获取按钮状态
getButtonStatus(yunOrderNo) {
getButtonStatus(yunOrderNo).then(res => {
console.log(res);
this.buttonStatus = res.data.buttonStatus;
this.buttonText = res.data.statusDesc;
this.$loading.hide();
});
},
getDetailByUnionId() { },
confirm(values) {
console.log('confirm', values);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册