+
- 至
+ 至
@@ -276,7 +276,7 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
+ border v-for="(item, therapyIndex) in regionalNatureList" :key="item.id || item.code || therapyIndex">
{{item.label}}
@@ -333,7 +333,7 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
+ border v-for="(item, therapyIndex) in signUpModeList" :key="item.id || item.code || therapyIndex">
{{item.label}}
@@ -813,10 +813,15 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
}
},
async doSubmit() {
- const valid = await this.$refs['form'].validate()
+ if (!this._therapyActions) this._therapyActions = new Set()
+ if (this._therapyActions.has('doSubmit')) return
+ this._therapyActions.add('doSubmit')
+ let loading = null
+ try {
+ const valid = await this.$validateForm(this.$refs['form'])
if (!valid) return
- const loading = this.$loading({
+ loading = this.$loading({
lock: true,
text: '提交中',
spinner: 'el-icon-loading',
@@ -824,10 +829,9 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
});
delete this.formData.travelAgency
const resp = await $.post(loc() + '/doSubmit', this.formData)
- loading.close()
if (resp.code === 0) {
this.$message.success(resp.msg)
- this.$confirm('需要将该线路设置为出行线路吗?', '提示', {
+ await this.$confirm('需要将该线路设置为出行线路吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@@ -844,17 +848,36 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
} else {
this.$message.warning(resp.msg)
}
+ } catch (error) {
+ this.$actionError(error)
+ } finally {
+ if (loading) loading.close()
+ this._therapyActions.delete('doSubmit')
+ }
},
async lineStatusChange(id) {
+ if (!this._therapyActions) this._therapyActions = new Set()
+ if (this._therapyActions.has('lineStatusChange')) return
+ this._therapyActions.add('lineStatusChange')
+ try {
const resp = await $.post(loc() + '/openClosedLine/' + id)
if (resp.code === 0) {
this.notifySuccess(resp.msg)
} else {
this.notifyWarning(resp.msg)
}
+ } catch (error) {
+ this.$actionError(error)
+ } finally {
+ this._therapyActions.delete('lineStatusChange')
+ }
},
async doDelete(id) {
- const confirm = await this.$confirm('可能会导致数据不完整,您确定要删除吗?', '提示', {
+ if (!this._therapyActions) this._therapyActions = new Set()
+ if (this._therapyActions.has('doDelete')) return
+ this._therapyActions.add('doDelete')
+ try {
+ const confirm = await this.$confirmAction('可能会导致数据不完整,您确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@@ -868,6 +891,11 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
} else {
this.notifyWarning(resp.msg)
}
+ } catch (error) {
+ this.$actionError(error)
+ } finally {
+ this._therapyActions.delete('doDelete')
+ }
},
async openView(id) {
this.$refs.guava.view()
diff --git a/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/basicManage/travelAgency.html b/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/basicManage/travelAgency.html
index 5fc6bb4..e751c24 100644
--- a/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/basicManage/travelAgency.html
+++ b/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/basicManage/travelAgency.html
@@ -387,7 +387,11 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
this.editDialogVisible = true
},
async doSubmit() {
- const valid = await this.$refs['form'].validate()
+ if (!this._therapyActions) this._therapyActions = new Set()
+ if (this._therapyActions.has('doSubmit')) return
+ this._therapyActions.add('doSubmit')
+ try {
+ const valid = await this.$validateForm(this.$refs['form'])
if (!valid) return
const resp = await $.post(loc() + '/doSubmit', {travelAgency: JSON.stringify(this.formData)})
if (resp.code === 0) {
@@ -397,17 +401,35 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
} else {
this.notifyWarning(resp.msg)
}
+ } catch (error) {
+ this.$actionError(error)
+ } finally {
+ this._therapyActions.delete('doSubmit')
+ }
},
async travelAgencyStatusChange(id) {
+ if (!this._therapyActions) this._therapyActions = new Set()
+ if (this._therapyActions.has('travelAgencyStatusChange')) return
+ this._therapyActions.add('travelAgencyStatusChange')
+ try {
const resp = await $.post(loc() + '/openClosedTravelAgency/' + id)
if (resp.code === 0) {
this.notifySuccess(resp.msg)
} else {
this.notifyWarning(resp.msg)
}
+ } catch (error) {
+ this.$actionError(error)
+ } finally {
+ this._therapyActions.delete('travelAgencyStatusChange')
+ }
},
async doDelete(id) {
- const confirm = await this.$confirm('可能会导致数据不完整,您确定要删除吗?', '提示', {
+ if (!this._therapyActions) this._therapyActions = new Set()
+ if (this._therapyActions.has('doDelete')) return
+ this._therapyActions.add('doDelete')
+ try {
+ const confirm = await this.$confirmAction('可能会导致数据不完整,您确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@@ -421,6 +443,11 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
} else {
this.notifyWarning(resp.msg)
}
+ } catch (error) {
+ this.$actionError(error)
+ } finally {
+ this._therapyActions.delete('doDelete')
+ }
},
async openView(row) {
diff --git a/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html b/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html
index 08fe0d5..42f2061 100644
--- a/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html
+++ b/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html
@@ -27,7 +27,14 @@
+
+