[update] 修改企标流程
This commit is contained in:
+25
-17
@@ -429,6 +429,7 @@ export default {
|
||||
// 同意(节点2,3,6有同意)
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
const data = this.$refs.baseInfoFormRef.getDataValidate()
|
||||
if (!err && data) {
|
||||
@@ -453,23 +454,30 @@ export default {
|
||||
// 驳回(节点2,3,6有驳回)
|
||||
handleReject () {
|
||||
if (this.loading) return
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
const param = {}
|
||||
param.commom = Object.assign({}, values)
|
||||
param.taskId = this.$route.query.taskId
|
||||
standardizationInitReject(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
this.validatorRules.commitText.rules[0].required = true
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.$message.warning(this.$t('pleaseEnterRemarks'))
|
||||
return
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
const param = {}
|
||||
param.commom = Object.assign({}, values)
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
standardizationInitReject(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user