feat: There is no way the,Laws

This commit is contained in:
super_liu
2021-11-01 18:03:00 +08:00
parent ad80f31390
commit 54eacdc5e8
3 changed files with 14 additions and 6 deletions
+8
View File
@@ -76,6 +76,14 @@ export function processCreateStand (data) {
data data
}) })
} }
export function processCreateLaws (data) {
return axios({
url: '/api/lawss/actSarItemsLaws/processCreateLaws',
method: 'post',
data
})
}
// 流程3 法规流程入库 // 流程3 法规流程入库
export function processCreatePG (data) { export function processCreatePG (data) {
return axios({ return axios({
@@ -603,7 +603,7 @@
import ProcessHeader from '../../components/ProcessHeader' import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process' import {inboundLiaisonDetail,processCreateLaws,changeAssigneeNew} from 'api/process'
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from '@/components/treeSelect/treeSelect.vue';
export default { export default {
@@ -1081,6 +1081,7 @@
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
this.form.approvalOpinion = this.formTongGuo.approvalOpinion this.form.approvalOpinion = this.formTongGuo.approvalOpinion
const json = JSON.stringify(this.form); const json = JSON.stringify(this.form);
this.processCreateLaws(json)
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId : this.userId, userId : this.userId,
@@ -1095,8 +1096,7 @@
// 流程提交之后,应该流转至待办任务页面 // 流程提交之后,应该流转至待办任务页面
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else{ }else{
// ?????????????????????????????/ this.processCreateLaws(json)
// this.processCreateStand(json)
} }
} }
}) })
@@ -1108,10 +1108,10 @@
* @date: 2020-11-18 21:47:58 * @date: 2020-11-18 21:47:58
* @auth: chenxiaoxi * @auth: chenxiaoxi
*/ */
processCreateStand(json) { processCreateLaws(json) {
const _formData = new FormData() const _formData = new FormData()
_formData.append('infoJson', json) _formData.append('infoJson', json)
processCreateStand(_formData).then(res => { processCreateLaws(_formData).then(res => {
if (res.result === '操作成功' || res.data === '入库成功') { if (res.result === '操作成功' || res.data === '入库成功') {
this.$message.success(res.data) this.$message.success(res.data)
setTimeout(() => { setTimeout(() => {
@@ -378,7 +378,7 @@ export default {
case 'laws1': case 'laws1':
// 政策入库流程 // 政策入库流程
this.$router.push({ this.$router.push({
name: 'zcrkStep1' name: 'zcrkwStep1'
}) })
break break
case '1': case '1':