|
@@ -45,7 +45,7 @@
|
|
:label="item.name"
|
|
:label="item.name"
|
|
v-if="
|
|
v-if="
|
|
listData.applyStatus &&
|
|
listData.applyStatus &&
|
|
- listData.applyStatus.indexOf(item.name) !== -1
|
|
|
|
|
|
+ listData.applyStatus.indexOf(item.name) !== -1
|
|
"
|
|
"
|
|
>{{ item.label }}</el-radio
|
|
>{{ item.label }}</el-radio
|
|
>
|
|
>
|
|
@@ -54,14 +54,14 @@
|
|
<div class="invoice-content__footer">
|
|
<div class="invoice-content__footer">
|
|
<div class="btns">
|
|
<div class="btns">
|
|
<el-button
|
|
<el-button
|
|
- style="width:120px"
|
|
|
|
|
|
+ style="width: 120px"
|
|
round
|
|
round
|
|
size="small"
|
|
size="small"
|
|
@click="isShow = false"
|
|
@click="isShow = false"
|
|
>取消</el-button
|
|
>取消</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- style="width:120px"
|
|
|
|
|
|
+ style="width: 120px"
|
|
round
|
|
round
|
|
size="small"
|
|
size="small"
|
|
@click="submit"
|
|
@click="submit"
|
|
@@ -81,29 +81,29 @@ export default {
|
|
props: {
|
|
props: {
|
|
dialogVisible: {
|
|
dialogVisible: {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
- default: false
|
|
|
|
|
|
+ default: false,
|
|
},
|
|
},
|
|
info: {
|
|
info: {
|
|
type: Object,
|
|
type: Object,
|
|
default: () => {
|
|
default: () => {
|
|
return {};
|
|
return {};
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
listData: {
|
|
listData: {
|
|
type: Object,
|
|
type: Object,
|
|
default: () => {
|
|
default: () => {
|
|
return {};
|
|
return {};
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ },
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
loading: false,
|
|
loading: false,
|
|
radiolist: [
|
|
radiolist: [
|
|
{ name: "1", label: "非补考学员" },
|
|
{ name: "1", label: "非补考学员" },
|
|
- { name: "2", label: "补考学员" }
|
|
|
|
|
|
+ { name: "2", label: "补考学员" },
|
|
],
|
|
],
|
|
- radio: ""
|
|
|
|
|
|
+ radio: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
@@ -115,24 +115,26 @@ export default {
|
|
this.radio = "";
|
|
this.radio = "";
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
|
|
+ // this.closedialog();
|
|
if (!this.radio) {
|
|
if (!this.radio) {
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
- message: "请选择您的考试身份"
|
|
|
|
|
|
+ message: "请选择您的考试身份",
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ var that = this;
|
|
let data = JSON.parse(JSON.stringify(this.info));
|
|
let data = JSON.parse(JSON.stringify(this.info));
|
|
data.applyStatus = this.radio;
|
|
data.applyStatus = this.radio;
|
|
this.loading = true;
|
|
this.loading = true;
|
|
this.$request
|
|
this.$request
|
|
.getApplysubscribeNext(data)
|
|
.getApplysubscribeNext(data)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
if (res.data === 1 || res.data === 2) {
|
|
if (res.data === 1 || res.data === 2) {
|
|
data.studentType = this.radio;
|
|
data.studentType = this.radio;
|
|
this.$request
|
|
this.$request
|
|
.addApply(data)
|
|
.addApply(data)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$bus.$emit("getNewGoodsList");
|
|
this.$bus.$emit("getNewGoodsList");
|
|
this.$message.success("预约成功");
|
|
this.$message.success("预约成功");
|
|
@@ -144,7 +146,7 @@ export default {
|
|
this.$message.warning(res.msg || "预约失败,请重新预约");
|
|
this.$message.warning(res.msg || "预约失败,请重新预约");
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- .catch(err => {
|
|
|
|
|
|
+ .catch((err) => {
|
|
this.$message.warning(err.msg || "预约失败,请重新预约");
|
|
this.$message.warning(err.msg || "预约失败,请重新预约");
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|
|
@@ -156,9 +158,9 @@ export default {
|
|
.goodsList({
|
|
.goodsList({
|
|
makeGoodsId: data.goodsId,
|
|
makeGoodsId: data.goodsId,
|
|
goodsType: 3,
|
|
goodsType: 3,
|
|
- orderGoodsId: data.orderGoodsId
|
|
|
|
|
|
+ orderGoodsId: data.orderGoodsId,
|
|
})
|
|
})
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
if (res.rows.length) {
|
|
if (res.rows.length) {
|
|
var goodsIdBK = res.rows[0].goodsId;
|
|
var goodsIdBK = res.rows[0].goodsId;
|
|
}
|
|
}
|
|
@@ -172,17 +174,17 @@ export default {
|
|
"机会。",
|
|
"机会。",
|
|
"提示",
|
|
"提示",
|
|
{
|
|
{
|
|
- confirmButtonText: "缴费",
|
|
|
|
- cancelButtonText: "知道了"
|
|
|
|
|
|
+ confirmButtonText: "线上缴费",
|
|
|
|
+ cancelButtonText: "线下申请",
|
|
}
|
|
}
|
|
)
|
|
)
|
|
- .then(_ => {
|
|
|
|
|
|
+ .then((_) => {
|
|
if (!goodsIdBK) {
|
|
if (!goodsIdBK) {
|
|
this.$message.warning("请联系管理员配置补考商品");
|
|
this.$message.warning("请联系管理员配置补考商品");
|
|
} else {
|
|
} else {
|
|
this.$request
|
|
this.$request
|
|
.commonGoodsDetail(goodsIdBK)
|
|
.commonGoodsDetail(goodsIdBK)
|
|
- .then(result => {
|
|
|
|
|
|
+ .then((result) => {
|
|
let detail = result.data;
|
|
let detail = result.data;
|
|
detail.learnOrderGoodsId = data.orderGoodsId;
|
|
detail.learnOrderGoodsId = data.orderGoodsId;
|
|
detail.learnGradeId = data.gradeId;
|
|
detail.learnGradeId = data.gradeId;
|
|
@@ -198,8 +200,8 @@ export default {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/payment",
|
|
path: "/payment",
|
|
query: {
|
|
query: {
|
|
- isBK: "1"
|
|
|
|
- }
|
|
|
|
|
|
+ isBK: "1",
|
|
|
|
+ },
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -207,9 +209,32 @@ export default {
|
|
// path: "/payment-success",
|
|
// path: "/payment-success",
|
|
// });
|
|
// });
|
|
})
|
|
})
|
|
- .catch(_ => {});
|
|
|
|
|
|
+ .catch(() => {
|
|
|
|
+ //点击了取消按钮
|
|
|
|
+ this.$request
|
|
|
|
+ .subscribesaveoffline({
|
|
|
|
+ appId: data.applyId,
|
|
|
|
+ orderGoodsId: data.orderGoodsId,
|
|
|
|
+ })
|
|
|
|
+ .then((result) => {
|
|
|
|
+ console.log(result);
|
|
|
|
+ if (result.code == 200) {
|
|
|
|
+ this.$message.warning("申请成功,请等待管理员审核");
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.warning(result.msg);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ this.$message.warning(err.msg);
|
|
|
|
+ })
|
|
|
|
+ .finally(() => {
|
|
|
|
+ this.$parent.cancel();
|
|
|
|
+ this.isShow = false;
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .finally(() => {});
|
|
})
|
|
})
|
|
- .catch(err => {
|
|
|
|
|
|
+ .catch((err) => {
|
|
this.$message.warning(err.msg);
|
|
this.$message.warning(err.msg);
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|
|
@@ -217,11 +242,11 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- .catch(err => {
|
|
|
|
|
|
+ .catch((err) => {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
- message: err.msg
|
|
|
|
|
|
+ message: err.msg,
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -242,9 +267,9 @@ export default {
|
|
<p>考试成绩:提交试卷后即刻显示成绩,60 分以上合格。</p>
|
|
<p>考试成绩:提交试卷后即刻显示成绩,60 分以上合格。</p>
|
|
<p>学校咨询电话:${this.$store.state.userInfo.eduPhone}</p>
|
|
<p>学校咨询电话:${this.$store.state.userInfo.eduPhone}</p>
|
|
<br />
|
|
<br />
|
|
- <p>注意事项:考试当天请学员携带本人身份证提前 30 分钟到达考场,迟到将不得进入考场,并被认定为缺考处理。 `
|
|
|
|
|
|
+ <p>注意事项:考试当天请学员携带本人身份证提前 30 分钟到达考场,迟到将不得进入考场,并被认定为缺考处理。 `,
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
isShow: {
|
|
isShow: {
|
|
@@ -256,9 +281,9 @@ export default {
|
|
},
|
|
},
|
|
set(val) {
|
|
set(val) {
|
|
this.$emit("update:dialogVisible", false);
|
|
this.$emit("update:dialogVisible", false);
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|