|
@@ -112,7 +112,7 @@
|
|
|
<div class="appointment-content__footer">
|
|
|
<div class="btns">
|
|
|
<div class="cancel" @click="cancel">上一步</div>
|
|
|
- <div class="ok" @click="sureOppoint">
|
|
|
+ <div v-loading="subLoading" class="ok" @click="sureOppoint">
|
|
|
{{ dataId == 1 ? "下一步" : dataId == 2 ? "确定预约" : "异常" }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -168,6 +168,7 @@ export default {
|
|
|
orderGoodsId: "",
|
|
|
addressName: "",
|
|
|
isUploading: false,
|
|
|
+ subLoading: false,
|
|
|
commitment_electr_signature: '',
|
|
|
siteId: '', // 考场id
|
|
|
reportStatus: 0, // 是否线上签署疫情防控承诺书, 1是,0否
|
|
@@ -300,6 +301,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
submits() {
|
|
|
+ this.subLoading = true
|
|
|
var copyData = JSON.parse(JSON.stringify(this.activeList));
|
|
|
const index = copyData.findIndex(
|
|
|
(item, index) => this.timeIndex == index
|
|
@@ -331,12 +333,20 @@ export default {
|
|
|
orderGoodsId: this.orderGoodsId,
|
|
|
},
|
|
|
});
|
|
|
+ this.subLoading = false
|
|
|
}
|
|
|
if (this.dataId == 2) {
|
|
|
this.$request.addApply(data).then((res) => {
|
|
|
- console.log('sfhsdfu成功')
|
|
|
- this.showDetailModal = true;
|
|
|
- });
|
|
|
+ console.log('sfhsdfu成功', res)
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.showDetailModal = true;
|
|
|
+ } else {
|
|
|
+ this.$message.warning(res.msg || '预约失败,请重新预约')
|
|
|
+ }
|
|
|
+ this.subLoading = false
|
|
|
+ }).catch((err) => {
|
|
|
+ this.subLoading = false
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
this.isUploading = false
|