fix 81137
This commit is contained in:
@@ -743,7 +743,8 @@ export default {
|
||||
}
|
||||
],
|
||||
businessId: null,
|
||||
currentNodePrefix: null // 当前节点的固定前缀,用于人员信息组件处理
|
||||
currentNodePrefix: null, // 当前节点的固定前缀,用于人员信息组件处理
|
||||
disabledBtnClick: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -1094,9 +1095,13 @@ export default {
|
||||
* 转办
|
||||
*/
|
||||
handleTurnTo () {
|
||||
if (this.disabledBtnClick) {
|
||||
return
|
||||
}
|
||||
this.$refs.userSelectModal.open()
|
||||
},
|
||||
continueTurnTo (userId) {
|
||||
this.disabledBtnClick = true
|
||||
const params = {
|
||||
taskId: this.$route.query.taskId,
|
||||
userId,
|
||||
@@ -1109,6 +1114,7 @@ export default {
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.disabledBtnClick = false
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
@@ -1118,10 +1124,16 @@ export default {
|
||||
* 保存
|
||||
*/
|
||||
handleSave () {
|
||||
const formData = this.dealFormData(true)
|
||||
if (!formData) {
|
||||
if (this.disabledBtnClick) {
|
||||
return
|
||||
}
|
||||
this.disabledBtnClick = true
|
||||
const formData = this.dealFormData(true)
|
||||
if (!formData) {
|
||||
this.disabledBtnClick = false
|
||||
return
|
||||
}
|
||||
this.loading = true
|
||||
formData.infoJsonStr = JSON.stringify(formData)
|
||||
// saveSource:从待办进入保存--1;发起/草稿页面--2
|
||||
if (this.$route.query.processInstanceId) {
|
||||
@@ -1129,13 +1141,13 @@ export default {
|
||||
} else {
|
||||
formData.saveSource = 2
|
||||
}
|
||||
this.loading = true
|
||||
saveConsultationProcess(formData).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.disabledBtnClick = false
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
@@ -1145,8 +1157,13 @@ export default {
|
||||
* 提交
|
||||
*/
|
||||
handleSubmit () {
|
||||
if (this.disabledBtnClick) {
|
||||
return
|
||||
}
|
||||
this.disabledBtnClick = true
|
||||
const formData = this.dealFormData()
|
||||
if (!formData) {
|
||||
this.disabledBtnClick = false
|
||||
return
|
||||
}
|
||||
this.loading = true
|
||||
@@ -1166,6 +1183,7 @@ export default {
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.disabledBtnClick = false
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
@@ -1175,22 +1193,28 @@ export default {
|
||||
* 同意
|
||||
*/
|
||||
handleAgree () {
|
||||
if (this.disabledBtnClick) {
|
||||
return
|
||||
}
|
||||
this.disabledBtnClick = true
|
||||
this.validatorRules.handleText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('handleText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ handleText: '同意' })
|
||||
}
|
||||
const formData = this.dealFormData()
|
||||
if (!formData) {
|
||||
this.disabledBtnClick = false
|
||||
return
|
||||
}
|
||||
formData.basicTaskInfoDTO.commitFlag = 1 // 同意就传1,驳回传2,其他都为空
|
||||
this.loading = true
|
||||
formData.basicTaskInfoDTO.commitFlag = 1 // 同意就传1,驳回传2,其他都为空
|
||||
agreeConsultationProcess(formData).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.disabledBtnClick = false
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
@@ -1200,19 +1224,25 @@ export default {
|
||||
* 驳回
|
||||
*/
|
||||
handleReject () {
|
||||
if (this.disabledBtnClick) {
|
||||
return
|
||||
}
|
||||
this.disabledBtnClick = true
|
||||
this.validatorRules.handleText.rules[0].required = true
|
||||
const formData = this.dealFormData()
|
||||
if (!formData) {
|
||||
this.disabledBtnClick = false
|
||||
return
|
||||
}
|
||||
formData.basicTaskInfoDTO.commitFlag = 2 // 同意就传1,驳回传2,其他都为空
|
||||
this.loading = true
|
||||
formData.basicTaskInfoDTO.commitFlag = 2 // 同意就传1,驳回传2,其他都为空
|
||||
rejectConsultationProcess(formData).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.disabledBtnClick = false
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
|
||||
Reference in New Issue
Block a user