@@ -319,7 +333,7 @@
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
-import {startProcess, saveTaskFirst, completeTask} from '@/api/process.js'
+import {startProcess, queryTaskFirst, saveTaskFirst, completeTask} from '@/api/process.js'
export default {
components: {
@@ -393,6 +407,13 @@ export default {
roleShowflagOne: false,
isSubmit: false,
saveLoading: false,
+ commentText: ''
+ }
+ },
+ mounted() {
+ this.bpnId = this.$route.query.bpnId
+ if (this.bpnId !== undefined) {
+ this.getData()
}
},
methods: {
@@ -400,6 +421,16 @@ export default {
handleTabs(name) {
this.active = name
},
+ getData() {
+ queryTaskFirst({
+ bpnId: this.$route.query.bpnId
+ }).then(res => {
+ let mes = JSON.parse(res.mes)
+ this.ch_pageData = mes.ch_pageData
+ this.commentText = mes.commentText
+ this.roleForm = mes.roleForm
+ });
+ },
//上传按钮
/* uploadFile(val) {
@@ -557,10 +588,12 @@ export default {
_formData.append('id', this.bpnId || '')
_formData.append('createUser', this.$store.getters.userInfo.userId)
_formData.append('createUserName', this.$store.getters.userInfo.userName)
- _formData.append('prcType', '20')
+ _formData.append('prcType', '21')
_formData.append('json', JSON.stringify({
roleForm: this.roleForm,
- ch_pageData: this.ch_pageData
+ ch_pageData: this.ch_pageData,
+ commentText: this.commentText
+
}))
saveTaskFirst(_formData).then(res => {
this.saveLoading = false
@@ -572,39 +605,44 @@ export default {
},
/** 提交按钮*/
handleSubmit() {
- let json = {
- prcCreateUser: this.$store.getters.userInfo.userId,
- prcCreateUserName: this.$store.getters.userInfo.userName,
- roleList: this.roleForm,
- ch_pageData: this.ch_pageData,
- directorList: this.roleForm.dockUser,
- }
- this.$refs['ch_pageData'].validate((valid) => {
- if (valid) {
- this.$refs['roleForm'].validate((valid) => {
- if (valid) {
- this.isSubmit = true
- const paramsInfo = {
- type: '21'
- }
- startProcess(paramsInfo).then(res => {
- this.taskID = res.data
- const params = new FormData();
- params.set('json', JSON.stringify(json))
- params.set('userId', this.$store.getters.userInfo.userId)
- params.set('taskId', this.taskID)
- completeTask(params).then(res => {
- if (res.success === true) {
- this.$message.success('提交成功')
- this.$router.push("/processCenter");
- }
- this.isSubmit = false
- })
- })
- }
- })
+ if (this.commentText === '') {
+ this.$message.warning('请输入回执说明')
+ } else {
+ let json = {
+ prcCreateUser: this.$store.getters.userInfo.userId,
+ prcCreateUserName: this.$store.getters.userInfo.userName,
+ roleList: this.roleForm,
+ ch_pageData: this.ch_pageData,
+ commentText: this.commentText,
+ directorList: this.roleForm.dockUser,
}
- })
+ this.$refs['ch_pageData'].validate((valid) => {
+ if (valid) {
+ this.$refs['roleForm'].validate((valid) => {
+ if (valid) {
+ this.isSubmit = true
+ const paramsInfo = {
+ type: '21'
+ }
+ startProcess(paramsInfo).then(res => {
+ this.taskID = res.data
+ const params = new FormData();
+ params.set('json', JSON.stringify(json))
+ params.set('userId', this.$store.getters.userInfo.userId)
+ params.set('taskId', this.taskID)
+ completeTask(params).then(res => {
+ if (res.success === true) {
+ this.$message.success('提交成功')
+ this.$router.push("/processCenter");
+ }
+ this.isSubmit = false
+ })
+ })
+ }
+ })
+ }
+ })
+ }
}
}
diff --git a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step2.vue b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step2.vue
index ae2d7683e..85d3a435c 100644
--- a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step2.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step2.vue
@@ -59,19 +59,18 @@
-
+ {{ '-' }}
+
+ {{ item.name }} {{ ';'}}
+
- {{ ch_pageData.sort || '-'}}
+ 计划内
+ 计划外
@@ -104,14 +103,14 @@