commit
This commit is contained in:
+22
-2
@@ -316,8 +316,8 @@ layout("/layouts/platform_h5.html"){
|
|||||||
</van-checkbox>
|
</van-checkbox>
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<div style="display: flex; justify-content: space-between; column-gap: 10px; padding: 10px">
|
<div style="display: flex; justify-content: space-between; column-gap: 10px; padding: 10px">
|
||||||
<van-button block type="primary" @click.submit="onSave">保存</van-button>
|
<van-button block type="primary" @click.submit="onSave" :disabled="!canApply">保存</van-button>
|
||||||
<van-button v-if="!taskId" block type="primary" @click.submit="onSubmit">提交</van-button>
|
<van-button v-if="!taskId" block type="primary" @click.submit="onSubmit" :disabled="!canApply">提交</van-button>
|
||||||
<van-button v-else block type="primary" @click.submit="onFinishTask" >提交</van-button>
|
<van-button v-else block type="primary" @click.submit="onFinishTask" >提交</van-button>
|
||||||
</div>
|
</div>
|
||||||
</van-form>
|
</van-form>
|
||||||
@@ -331,6 +331,8 @@ layout("/layouts/platform_h5.html"){
|
|||||||
return {
|
return {
|
||||||
id: GetQueryString("bizId"),
|
id: GetQueryString("bizId"),
|
||||||
taskId: GetQueryString("taskId"),
|
taskId: GetQueryString("taskId"),
|
||||||
|
canApply: true,
|
||||||
|
applyDisableMsg: '',
|
||||||
formData: {
|
formData: {
|
||||||
families: []
|
families: []
|
||||||
},
|
},
|
||||||
@@ -353,7 +355,23 @@ layout("/layouts/platform_h5.html"){
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
historyBack,
|
historyBack,
|
||||||
|
checkApplyPermission() {
|
||||||
|
if (this.id || this.taskId) {
|
||||||
|
this.canApply = true;
|
||||||
|
this.applyDisableMsg = '';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$axios.post("/platform/member/apply/submit/findOne", { id: this.formData.userId }).then(res => {
|
||||||
|
if (res.code === 0 && res.data) {
|
||||||
|
this.canApply = res.data.canApply;
|
||||||
|
this.applyDisableMsg = res.data.msg || '';
|
||||||
|
|
||||||
|
if (!this.canApply) {
|
||||||
|
this.$message.warning(this.applyDisableMsg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
onSave() {
|
onSave() {
|
||||||
this.$dialog.confirm({
|
this.$dialog.confirm({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
@@ -548,6 +566,8 @@ layout("/layouts/platform_h5.html"){
|
|||||||
this.$set(this.formData, "personalData", personalData)
|
this.$set(this.formData, "personalData", personalData)
|
||||||
this.$set(this.formData, "arrivalAtSchoolDate", this.$moment(arrivalAtSchoolDate).format("YYYY-MM-DD"))
|
this.$set(this.formData, "arrivalAtSchoolDate", this.$moment(arrivalAtSchoolDate).format("YYYY-MM-DD"))
|
||||||
|
|
||||||
|
this.checkApplyPermission();
|
||||||
|
|
||||||
// 处理校区信息
|
// 处理校区信息
|
||||||
if (campus) {
|
if (campus) {
|
||||||
this.$set(this.formData, "campus", campus) // 保存校区代码值
|
this.$set(this.formData, "campus", campus) // 保存校区代码值
|
||||||
|
|||||||
Reference in New Issue
Block a user