commit
This commit is contained in:
+23
-3
@@ -316,9 +316,9 @@ layout("/layouts/platform_h5.html"){
|
||||
</van-checkbox>
|
||||
</van-cell-group>
|
||||
<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 v-if="!taskId" block type="primary" @click.submit="onSubmit">提交</van-button>
|
||||
<van-button v-else block type="primary" @click.submit="onFinishTask">提交</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" :disabled="!canApply">提交</van-button>
|
||||
<van-button v-else block type="primary" @click.submit="onFinishTask" >提交</van-button>
|
||||
</div>
|
||||
</van-form>
|
||||
</div>
|
||||
@@ -331,6 +331,8 @@ layout("/layouts/platform_h5.html"){
|
||||
return {
|
||||
id: GetQueryString("bizId"),
|
||||
taskId: GetQueryString("taskId"),
|
||||
canApply: true,
|
||||
applyDisableMsg: '',
|
||||
formData: {
|
||||
families: []
|
||||
},
|
||||
@@ -353,7 +355,23 @@ layout("/layouts/platform_h5.html"){
|
||||
},
|
||||
methods: {
|
||||
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() {
|
||||
this.$dialog.confirm({
|
||||
title: "提示",
|
||||
@@ -548,6 +566,8 @@ layout("/layouts/platform_h5.html"){
|
||||
this.$set(this.formData, "personalData", personalData)
|
||||
this.$set(this.formData, "arrivalAtSchoolDate", this.$moment(arrivalAtSchoolDate).format("YYYY-MM-DD"))
|
||||
|
||||
this.checkApplyPermission();
|
||||
|
||||
// 处理校区信息
|
||||
if (campus) {
|
||||
this.$set(this.formData, "campus", campus) // 保存校区代码值
|
||||
|
||||
Reference in New Issue
Block a user