Browse Source

如果审批通过没有输入审批意见,默认设置为“批准通过”

ecss-tx
han\hanst 3 weeks ago
parent
commit
d8871cf730
  1. 7
      src/views/modules/erf/expApplyApproval.vue

7
src/views/modules/erf/expApplyApproval.vue

@ -740,7 +740,7 @@ export default {
action: '',
comment: '',
operatorUserId: this.$store.state.user.id,
operatorName: this.$store.state.user.name
operatorName: this.$store.state.user.userDisplay
}
this.approvalDialogVisible = true
} else {
@ -777,7 +777,10 @@ export default {
*/
doApproval() {
this.approvalLoading = true
//
if (this.approvalData.action === '批准' && (!this.approvalData.comment || this.approvalData.comment.trim() === '')) {
this.approvalData.comment = '批准通过'
}
approveExpApply(this.approvalData).then(({data}) => {
this.approvalLoading = false
if (data && data.code === 0) {

Loading…
Cancel
Save