[update] 企标流程点同意没填备注带入‘同意’
This commit is contained in:
+3
-3
@@ -38,9 +38,9 @@ export default {
|
||||
this.$router.push({
|
||||
path: '/workCenter/enterpriseStandardAnnul',
|
||||
query: {
|
||||
processInstanceId: '447681',
|
||||
taskId: '467744',
|
||||
nodeId: 'sid-0BC5B3BC-ED99-4061-84B4-7320E25DE326'
|
||||
processInstanceId: '350016',
|
||||
taskId: '350059',
|
||||
nodeId: 'sid-B4157F9F-73E5-48F5-855D-AF87C0DB91C6'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -259,6 +259,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.processInfoRules.commitText[0].required = false
|
||||
if (!this.processInfoForm.commitText) {
|
||||
this.processInfoForm.commitText = '同意'
|
||||
}
|
||||
this.$refs.processForm.validate().then(() => {
|
||||
const param = {} // 需要传给后端的数据
|
||||
param.common = Object.assign({}, this.processInfoForm)
|
||||
|
||||
@@ -766,7 +766,7 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
<!-- 确定 -->
|
||||
<van-button class="operation-common-btn" type="primary" @click="handleAgree">
|
||||
<van-button class="operation-common-btn" type="primary" @click="handleDetermine">
|
||||
<template #icon>
|
||||
<van-icon class="iconfont" class-prefix="icon" name="check" />
|
||||
</template>
|
||||
@@ -1178,6 +1178,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.processInfoRules.commitText[0].required = false
|
||||
if (!this.processInfoForm.commitText) {
|
||||
this.processInfoForm.commitText = '同意'
|
||||
}
|
||||
this.$refs.processForm.validate().then(async () => {
|
||||
const param = {} // 需要传给后端的数据
|
||||
if (this.baseInfoForm[0].projectType === this.ProjectType.RESPONSIBLE_DEPT_CHANGE.value && this.currentNode === 6) {
|
||||
@@ -1269,6 +1272,28 @@ export default {
|
||||
console.log(errorInfo)
|
||||
})
|
||||
},
|
||||
// 确定
|
||||
handleDetermine () {
|
||||
if (this.loading) return
|
||||
this.$refs.processForm.validate().then(async () => {
|
||||
const param = {} // 需要传给后端的数据
|
||||
param.common = Object.assign({}, this.processInfoForm)
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
this.loading = true
|
||||
enterprisePlanApprovalAgree(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message(res.message)
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}).catch((errorInfo) => {
|
||||
console.log(errorInfo)
|
||||
})
|
||||
},
|
||||
goBack () {
|
||||
this.$router.go(-1)
|
||||
}
|
||||
|
||||
@@ -259,6 +259,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.processInfoRules.commitText[0].required = false
|
||||
if (!this.processInfoForm.commitText) {
|
||||
this.processInfoForm.commitText = '同意'
|
||||
}
|
||||
this.$refs.processForm.validate().then(() => {
|
||||
const param = {} // 需要传给后端的数据
|
||||
param.common = Object.assign({}, this.processInfoForm)
|
||||
|
||||
@@ -259,6 +259,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.processInfoRules.commitText[0].required = false
|
||||
if (!this.processInfoForm.commitText) {
|
||||
this.processInfoForm.commitText = '同意'
|
||||
}
|
||||
this.$refs.processForm.validate().then(() => {
|
||||
const param = {} // 需要传给后端的数据
|
||||
param.common = Object.assign({}, this.processInfoForm)
|
||||
|
||||
Reference in New Issue
Block a user