commit
This commit is contained in:
@@ -240,9 +240,15 @@ layout("/layouts/platform.html"){
|
||||
</el-descriptions>
|
||||
</el-form>
|
||||
<el-row type="flex" justify="end" class="mt20">
|
||||
<el-button type="primary" plain @click="onSave">保存</el-button>
|
||||
<el-button type="primary" @click="onSubmit" v-if="!taskId">提交</el-button>
|
||||
<el-button type="primary" @click="onFinishTask" v-else>提交</el-button>
|
||||
<el-button type="primary" plain @click="onSave" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "保存" }}
|
||||
</el-button>
|
||||
<el-button type="primary" @click="onSubmit" :loading="submitLoading" v-if="!taskId">
|
||||
{{ submitLoading ? "提交中..." : "提交" }}
|
||||
</el-button>
|
||||
<el-button type="primary" @click="onFinishTask" :loading="submitLoading" v-else>
|
||||
{{ submitLoading ? "提交中..." : "提交" }}
|
||||
</el-button>
|
||||
</el-row>
|
||||
</el-card>
|
||||
</div>
|
||||
@@ -256,6 +262,9 @@ layout("/layouts/platform.html"){
|
||||
bizId: GetQueryString("bizId"),
|
||||
taskId: GetQueryString("taskId"),
|
||||
formData: {},
|
||||
// 保存和提交请求期间控制按钮转圈,避免用户重复点击。
|
||||
saveLoading: false,
|
||||
submitLoading: false,
|
||||
formRules: {
|
||||
helpUserId: [{required: true, message: "必填", trigger: ["change", "blur"]}],
|
||||
payUserId: [{required: true, message: "必填", trigger: ["change", "blur"]}],
|
||||
@@ -363,11 +372,14 @@ layout("/layouts/platform.html"){
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/platform/condolence/apply/save", {data: JSON.stringify(this.formData)}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$message.success(res.msg)
|
||||
commonUtil.pjaxPush("/platform/condolence/mine")
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
@@ -379,6 +391,7 @@ layout("/layouts/platform.html"){
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/platform/condolence/apply/submit", {
|
||||
data: JSON.stringify(this.formData)
|
||||
}).then(res => {
|
||||
@@ -386,6 +399,8 @@ layout("/layouts/platform.html"){
|
||||
this.$message.success(res.msg)
|
||||
commonUtil.pjaxPush("/platform/condolence/mine")
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
})
|
||||
}
|
||||
@@ -399,6 +414,7 @@ layout("/layouts/platform.html"){
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/platform/condolence/apply/submitAgain", {
|
||||
data: JSON.stringify(this.formData),
|
||||
taskId: GetQueryString("taskId")
|
||||
@@ -407,6 +423,8 @@ layout("/layouts/platform.html"){
|
||||
this.$message.success(res.msg)
|
||||
commonUtil.pjaxPush("/platform/condolence/mine")
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
+15
-4
@@ -88,9 +88,15 @@ layout("/layouts/platform.html"){
|
||||
</el-form>
|
||||
<el-row type="flex" justify="end">
|
||||
<el-button @click="$refs.guava.index()" size="small">取消</el-button>
|
||||
<el-button @click="handleTaskAction(6)" size="small" type="info">退回到发起人</el-button>
|
||||
<el-button @click="handleTaskAction(2)" size="small" type="danger">拒绝申请</el-button>
|
||||
<el-button @click="handleTaskAction(1)" size="small" type="primary">同意申请</el-button>
|
||||
<el-button @click="handleTaskAction(6)" size="small" type="info" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "退回到发起人" }}
|
||||
</el-button>
|
||||
<el-button @click="handleTaskAction(2)" size="small" type="danger" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "拒绝申请" }}
|
||||
</el-button>
|
||||
<el-button @click="handleTaskAction(1)" size="small" type="primary" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "同意申请" }}
|
||||
</el-button>
|
||||
</el-row>
|
||||
</div>
|
||||
</condolence-info>
|
||||
@@ -124,7 +130,9 @@ layout("/layouts/platform.html"){
|
||||
{prop: 'instanceState', label: '流程状态'},
|
||||
],
|
||||
formData: {},
|
||||
showApprovalForm: false
|
||||
showApprovalForm: false,
|
||||
// 审核提交请求期间控制按钮转圈,避免重复提交审批意见。
|
||||
submitLoading: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -150,6 +158,7 @@ layout("/layouts/platform.html"){
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/flow/common/executeTask", {
|
||||
data: JSON.stringify({
|
||||
...this.formData,
|
||||
@@ -161,6 +170,8 @@ layout("/layouts/platform.html"){
|
||||
this.$message.success(res.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
+15
-4
@@ -108,9 +108,15 @@ layout("/layouts/platform.html"){
|
||||
</el-form>
|
||||
<el-row type="flex" justify="end">
|
||||
<el-button @click="$refs.guava.index()" size="small">取消</el-button>
|
||||
<el-button @click="handleTaskAction(6)" size="small" type="info">退回到发起人</el-button>
|
||||
<el-button @click="handleTaskAction(2)" size="small" type="danger">拒绝申请</el-button>
|
||||
<el-button @click="handleTaskAction(1)" size="small" type="primary">同意申请</el-button>
|
||||
<el-button @click="handleTaskAction(6)" size="small" type="info" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "退回到发起人" }}
|
||||
</el-button>
|
||||
<el-button @click="handleTaskAction(2)" size="small" type="danger" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "拒绝申请" }}
|
||||
</el-button>
|
||||
<el-button @click="handleTaskAction(1)" size="small" type="primary" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "同意申请" }}
|
||||
</el-button>
|
||||
</el-row>
|
||||
</div>
|
||||
</condolence-info>
|
||||
@@ -147,7 +153,9 @@ layout("/layouts/platform.html"){
|
||||
unionList: [],
|
||||
unitList: [],
|
||||
formData: {},
|
||||
showApprovalForm: false
|
||||
showApprovalForm: false,
|
||||
// 审核提交请求期间控制按钮转圈,避免重复提交审批意见。
|
||||
submitLoading: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -173,6 +181,7 @@ layout("/layouts/platform.html"){
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/flow/common/executeTask", {
|
||||
data: JSON.stringify({
|
||||
...this.formData,
|
||||
@@ -184,6 +193,8 @@ layout("/layouts/platform.html"){
|
||||
this.$message.success(res.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
+15
-4
@@ -108,9 +108,15 @@ layout("/layouts/platform.html"){
|
||||
</el-form>
|
||||
<el-row type="flex" justify="end">
|
||||
<el-button @click="$refs.guava.index()" size="small">取消</el-button>
|
||||
<el-button @click="handleTaskAction(6)" size="small" type="info">退回到发起人</el-button>
|
||||
<el-button @click="handleTaskAction(2)" size="small" type="danger">拒绝申请</el-button>
|
||||
<el-button @click="handleTaskAction(1)" size="small" type="primary">同意申请</el-button>
|
||||
<el-button @click="handleTaskAction(6)" size="small" type="info" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "退回到发起人" }}
|
||||
</el-button>
|
||||
<el-button @click="handleTaskAction(2)" size="small" type="danger" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "拒绝申请" }}
|
||||
</el-button>
|
||||
<el-button @click="handleTaskAction(1)" size="small" type="primary" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "同意申请" }}
|
||||
</el-button>
|
||||
</el-row>
|
||||
</div>
|
||||
</condolence-info>
|
||||
@@ -147,7 +153,9 @@ layout("/layouts/platform.html"){
|
||||
unionList: [],
|
||||
unitList: [],
|
||||
formData: {},
|
||||
showApprovalForm: false
|
||||
showApprovalForm: false,
|
||||
// 审核提交请求期间控制按钮转圈,避免重复提交审批意见。
|
||||
submitLoading: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -173,6 +181,7 @@ layout("/layouts/platform.html"){
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/flow/common/executeTask", {
|
||||
data: JSON.stringify({
|
||||
...this.formData,
|
||||
@@ -184,6 +193,8 @@ layout("/layouts/platform.html"){
|
||||
this.$message.success(res.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
@@ -377,9 +377,15 @@ layout("/layouts/platform_h5.html"){
|
||||
|
||||
<!-- 提交按钮 -->
|
||||
<div class="form-actions">
|
||||
<van-button native-type="button" @click="onSave" round type="info" plain>保存申请</van-button>
|
||||
<van-button @click="onSubmit" round type="info" v-if="!taskId">提交申请</van-button>
|
||||
<van-button @click="onFinishTask" round type="info" v-else>提交申请</van-button>
|
||||
<van-button native-type="button" @click="onSave" round type="info" plain :loading="saveLoading">
|
||||
{{ saveLoading ? "保存中..." : "保存申请" }}
|
||||
</van-button>
|
||||
<van-button @click="onSubmit" round type="info" :loading="submitLoading" v-if="!taskId">
|
||||
{{ submitLoading ? "提交中..." : "提交申请" }}
|
||||
</van-button>
|
||||
<van-button @click="onFinishTask" round type="info" :loading="submitLoading" v-else>
|
||||
{{ submitLoading ? "提交中..." : "提交申请" }}
|
||||
</van-button>
|
||||
</div>
|
||||
</van-form>
|
||||
</div>
|
||||
@@ -394,6 +400,9 @@ layout("/layouts/platform_h5.html"){
|
||||
bizId: GetQueryString("bizId"),
|
||||
taskId: GetQueryString("taskId"),
|
||||
formData: {},
|
||||
// 保存和提交请求期间控制按钮转圈,避免用户重复点击。
|
||||
saveLoading: false,
|
||||
submitLoading: false,
|
||||
|
||||
chooseType: {},
|
||||
userOptions: [],
|
||||
@@ -540,11 +549,14 @@ layout("/layouts/platform_h5.html"){
|
||||
title: "提示",
|
||||
message: "您确定保存吗?"
|
||||
}).then(() => {
|
||||
this.saveLoading = true
|
||||
this.$axios.post("/platform/condolence/apply/save", { data: JSON.stringify(this.formData) }).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$toast(res.msg)
|
||||
this.$pjaxReplace("/platform/condolence/mine/h5")
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
@@ -558,11 +570,14 @@ layout("/layouts/platform_h5.html"){
|
||||
title: "提示",
|
||||
message: "您确定要提交申请吗?"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/platform/condolence/apply/submit", { data: JSON.stringify(this.formData) }).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$toast(res.msg)
|
||||
this.$pjaxReplace("/platform/condolence/mine/h5")
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
})
|
||||
})
|
||||
@@ -577,6 +592,7 @@ layout("/layouts/platform_h5.html"){
|
||||
title: "提示",
|
||||
message: "您确定要提交申请吗?"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/platform/condolence/apply/submitAgain", {
|
||||
data: JSON.stringify(this.formData),
|
||||
taskId: GetQueryString("taskId")
|
||||
@@ -585,6 +601,8 @@ layout("/layouts/platform_h5.html"){
|
||||
this.$toast(res.msg)
|
||||
this.$pjaxReplace("/platform/condolence/mine/h5")
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
+15
-4
@@ -79,9 +79,15 @@ layout("/layouts/platform_h5.html"){
|
||||
</van-cell-group>
|
||||
</van-form>
|
||||
<div style="display: flex; justify-content: space-between; column-gap: 10px; padding: 10px">
|
||||
<van-button type="danger" block @click="handleTaskAction(6)">退回</van-button>
|
||||
<van-button type="danger" block @click="handleTaskAction(20)">不同意</van-button>
|
||||
<van-button type="primary" block @click="handleTaskAction(1)">同意</van-button>
|
||||
<van-button type="danger" block @click="handleTaskAction(6)" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "退回" }}
|
||||
</van-button>
|
||||
<van-button type="danger" block @click="handleTaskAction(20)" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "不同意" }}
|
||||
</van-button>
|
||||
<van-button type="primary" block @click="handleTaskAction(1)" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "同意" }}
|
||||
</van-button>
|
||||
</div>
|
||||
</div>
|
||||
</info>
|
||||
@@ -109,7 +115,9 @@ layout("/layouts/platform_h5.html"){
|
||||
},
|
||||
typeOptions: [],
|
||||
formData: {},
|
||||
showApprovalForm: false
|
||||
showApprovalForm: false,
|
||||
// 审核提交请求期间控制按钮转圈,避免重复提交审批意见。
|
||||
submitLoading: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -145,6 +153,7 @@ layout("/layouts/platform_h5.html"){
|
||||
title: "提示",
|
||||
message: "您确定要提交吗?"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/flow/common/executeTask", {
|
||||
data: JSON.stringify({
|
||||
...this.formData,
|
||||
@@ -156,6 +165,8 @@ layout("/layouts/platform_h5.html"){
|
||||
this.$toast.success(res.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
|
||||
+15
-4
@@ -79,9 +79,15 @@ layout("/layouts/platform_h5.html"){
|
||||
</van-cell-group>
|
||||
</van-form>
|
||||
<div style="display: flex; justify-content: space-between; column-gap: 10px; padding: 10px">
|
||||
<van-button type="danger" block @click="handleTaskAction(6)">退回</van-button>
|
||||
<van-button type="danger" block @click="handleTaskAction(20)">不同意</van-button>
|
||||
<van-button type="primary" block @click="handleTaskAction(1)">同意</van-button>
|
||||
<van-button type="danger" block @click="handleTaskAction(6)" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "退回" }}
|
||||
</van-button>
|
||||
<van-button type="danger" block @click="handleTaskAction(20)" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "不同意" }}
|
||||
</van-button>
|
||||
<van-button type="primary" block @click="handleTaskAction(1)" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "同意" }}
|
||||
</van-button>
|
||||
</div>
|
||||
</div>
|
||||
</info>
|
||||
@@ -109,7 +115,9 @@ layout("/layouts/platform_h5.html"){
|
||||
},
|
||||
typeOptions: [],
|
||||
formData: {},
|
||||
showApprovalForm: false
|
||||
showApprovalForm: false,
|
||||
// 审核提交请求期间控制按钮转圈,避免重复提交审批意见。
|
||||
submitLoading: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -145,6 +153,7 @@ layout("/layouts/platform_h5.html"){
|
||||
title: "提示",
|
||||
message: "您确定要提交吗?"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/flow/common/executeTask", {
|
||||
data: JSON.stringify({
|
||||
...this.formData,
|
||||
@@ -156,6 +165,8 @@ layout("/layouts/platform_h5.html"){
|
||||
this.$toast.success(res.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
|
||||
+15
-4
@@ -79,9 +79,15 @@ layout("/layouts/platform_h5.html"){
|
||||
</van-cell-group>
|
||||
</van-form>
|
||||
<div style="display: flex; justify-content: space-between; column-gap: 10px; padding: 10px">
|
||||
<van-button type="danger" block @click="handleTaskAction(6)">退回</van-button>
|
||||
<van-button type="danger" block @click="handleTaskAction(20)">不同意</van-button>
|
||||
<van-button type="primary" block @click="handleTaskAction(1)">同意</van-button>
|
||||
<van-button type="danger" block @click="handleTaskAction(6)" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "退回" }}
|
||||
</van-button>
|
||||
<van-button type="danger" block @click="handleTaskAction(20)" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "不同意" }}
|
||||
</van-button>
|
||||
<van-button type="primary" block @click="handleTaskAction(1)" :loading="submitLoading">
|
||||
{{ submitLoading ? "提交中..." : "同意" }}
|
||||
</van-button>
|
||||
</div>
|
||||
</div>
|
||||
</info>
|
||||
@@ -109,7 +115,9 @@ layout("/layouts/platform_h5.html"){
|
||||
},
|
||||
typeOptions: [],
|
||||
formData: {},
|
||||
showApprovalForm: false
|
||||
showApprovalForm: false,
|
||||
// 审核提交请求期间控制按钮转圈,避免重复提交审批意见。
|
||||
submitLoading: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -145,6 +153,7 @@ layout("/layouts/platform_h5.html"){
|
||||
title: "提示",
|
||||
message: "您确定要提交吗?"
|
||||
}).then(() => {
|
||||
this.submitLoading = true
|
||||
this.$axios.post("/flow/common/executeTask", {
|
||||
data: JSON.stringify({
|
||||
...this.formData,
|
||||
@@ -156,6 +165,8 @@ layout("/layouts/platform_h5.html"){
|
||||
this.$toast.success(res.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
}).finally(() => {
|
||||
this.submitLoading = false
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user