草稿删除
This commit is contained in:
@@ -137,6 +137,15 @@ export function queryTaskFirst (data) {
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 草稿删除
|
||||
export function taskDel (data) {
|
||||
return axios({
|
||||
url: '/api/lawss/activiti/delCG',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
// 整改流程 详情查询nonconformity
|
||||
export function getNonconformity (data) {
|
||||
return axios({
|
||||
|
||||
@@ -269,6 +269,9 @@ export default {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
phoneClick () {
|
||||
this.$router.push('/phoneBzrhStep2')
|
||||
},
|
||||
processTable() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
|
||||
@@ -292,6 +292,9 @@ export default {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
phoneClick () {
|
||||
this.$router.push('/phoneBzrhStep4')
|
||||
},
|
||||
// 右上标签页面切换
|
||||
handleTabs(name) {
|
||||
this.active = name
|
||||
|
||||
@@ -303,6 +303,11 @@ export default {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
phoneClick () {
|
||||
if (this.taskInfo !== '标准法规工程师汇总修订完毕') {
|
||||
this.$router.push('/phoneBzrhStep6')
|
||||
}
|
||||
},
|
||||
// 右上标签页面切换
|
||||
handleTabs(name) {
|
||||
this.active = name
|
||||
|
||||
@@ -274,6 +274,9 @@ export default {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
phoneClick () {
|
||||
this.$router.push('/phoneBzhhStep2')
|
||||
},
|
||||
// 右上标签页面切换
|
||||
handleTabs(name) {
|
||||
this.active = name
|
||||
|
||||
@@ -241,6 +241,9 @@ export default {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
phoneClick () {
|
||||
this.$router.push('/phoneBzchStep2')
|
||||
},
|
||||
// 右上标签页面切换
|
||||
handleTabs(name) {
|
||||
this.active = name
|
||||
|
||||
@@ -246,6 +246,9 @@ export default {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
phoneClick () {
|
||||
this.$router.push('/phoneBzchStep4')
|
||||
},
|
||||
// 右上标签页面切换
|
||||
handleTabs(name) {
|
||||
this.active = name
|
||||
|
||||
@@ -260,6 +260,11 @@ export default {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
phoneClick () {
|
||||
if (this.taskInfo !== '标准法规工程师修订完毕') {
|
||||
this.$router.push('/phoneBzchStep6')
|
||||
}
|
||||
},
|
||||
// 右上标签页面切换
|
||||
handleTabs(name) {
|
||||
this.active = name
|
||||
|
||||
@@ -235,9 +235,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
phoneClick () {
|
||||
this.$router.push('/phoneWfhxStep4')
|
||||
},
|
||||
processTable() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
|
||||
@@ -225,6 +225,9 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
phoneClick () {
|
||||
this.$router.push('/phoneWfhxStep5')
|
||||
},
|
||||
queryFile(row) {
|
||||
this.fileTextList = row.fileText
|
||||
this.fileMadel = true
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
</el-collapse>
|
||||
</div>
|
||||
<div class="content" v-show="active === '3'">
|
||||
<div class="flow-list">
|
||||
<div style="flex: auto;">
|
||||
<el-table
|
||||
height="100%"
|
||||
ref="selection"
|
||||
@@ -73,7 +73,8 @@
|
||||
border
|
||||
row-key="id"
|
||||
:no-data-text="listNoDataText"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
class="common-button-default"
|
||||
size="mini"
|
||||
@click="resetSelect">清空</el-button>
|
||||
<el-button size="mini" type="danger" @click="dataDel">删除</el-button>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="search-area-item">
|
||||
@@ -115,16 +116,17 @@
|
||||
<span>{{ scope.row.overTime ? $moment(scope.row.overTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('m.operation')" align="center" width="50">
|
||||
<el-table-column :label="$t('m.operation')" align="center" width="80">
|
||||
<template slot-scope="scope">
|
||||
<div @click.stop style="display: inline-block">
|
||||
<el-button size="mini" type="primary" @click="dealWith(scope.row)">办理</el-button>
|
||||
<!-- <div @click.stop style="display: inline-block">
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
<i class="iconfont"></i>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="[scope.row, '办理']">办理</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</div>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -144,6 +146,7 @@
|
||||
<script>
|
||||
import {mapMutations, mapActions} from 'vuex'
|
||||
import ProcessMixin from '../../../components/ProcessMixin'
|
||||
import { taskDel } from '@/api/process.js'
|
||||
export default {
|
||||
name: 'ProcessCenter',
|
||||
mixins: [ProcessMixin],
|
||||
@@ -198,6 +201,45 @@ export default {
|
||||
handleSelectionChange (selected) { // 待办流程列表选中事件
|
||||
this.processListSelect = selected
|
||||
},
|
||||
|
||||
/** 删除按钮 */
|
||||
dataDel() {
|
||||
if (this.processListSelect.length > 0) {
|
||||
let msgIds = []
|
||||
for (let i = 0; i < this.processListSelect.length; i++) {
|
||||
let msgId = this.processListSelect[i].id
|
||||
msgIds.push(msgId)
|
||||
}
|
||||
let delId = {
|
||||
id: msgIds.join(',')
|
||||
}
|
||||
this.$confirm('确定删除这些数据?', '提示', {
|
||||
confirmButtonText: this.$t('m.determine'),
|
||||
cancelButtonText: this.$t('m.cancel'),
|
||||
type: 'warning',
|
||||
confirmButtonClass: 'common-button-primary',
|
||||
roundButton: true
|
||||
}).then(() => {
|
||||
taskDel(delId).then(res => {
|
||||
if (res === 'success') {
|
||||
this.$message.success('删除成功')
|
||||
this.pageNo = 1
|
||||
this.processListSelect = []
|
||||
this.queryProcess()
|
||||
} else {
|
||||
this.$message.warning('删除失败')
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消删除'
|
||||
})
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择一条数据进行删除')
|
||||
}
|
||||
},
|
||||
pageChange (pageNo) { // 页码改变
|
||||
this.pageNo = pageNo
|
||||
this.queryProcess()
|
||||
|
||||
@@ -1776,6 +1776,16 @@ const routes = [
|
||||
title: '外部标准化协会入会流程(选择代表)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/phoneBzrhStep2',
|
||||
name: 'phoneBzrhStep2',
|
||||
component: () => import('@/pages/processCenter/pages/phone/bzhHd-rh/step2.vue'),
|
||||
meta: {
|
||||
isBoolean: true,
|
||||
requireAuth: true,
|
||||
title: '外部标准化协会入会流程(选择代表)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bzrhStep3',
|
||||
name: 'bzrhStep3',
|
||||
@@ -1794,6 +1804,16 @@ const routes = [
|
||||
title: '外部标准化协会入会流程(责任负责人审批)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/phoneBzrhStep4',
|
||||
name: 'phoneBzrhStep4',
|
||||
component: () => import('@/pages/processCenter/pages/phone/bzhHd-rh/step4.vue'),
|
||||
meta: {
|
||||
isBoolean: true,
|
||||
requireAuth: true,
|
||||
title: '外部标准化协会入会流程(责任负责人审批)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bzrhStep5',
|
||||
name: 'bzrhStep5',
|
||||
@@ -1812,6 +1832,16 @@ const routes = [
|
||||
title: '外部标准化协会入会流程(审批)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/phoneBzrhStep6',
|
||||
name: 'phoneBzrhStep6',
|
||||
component: () => import('@/pages/processCenter/pages/phone/bzhHd-rh/step6.vue'),
|
||||
meta: {
|
||||
isBoolean: true,
|
||||
requireAuth: true,
|
||||
title: '外部标准化协会入会流程(审批)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bzrhStep6-1',
|
||||
name: 'bzrhStep6-1',
|
||||
@@ -1841,6 +1871,16 @@ const routes = [
|
||||
title: '外部标准化协会参会流程(选择入会代表)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/phoneBzchStep2',
|
||||
name: 'phoneBzchStep2',
|
||||
component: () => import('@/pages/processCenter/pages/phone/bzhHd-ch/step2.vue'),
|
||||
meta: {
|
||||
isBoolean: true,
|
||||
requireAuth: true,
|
||||
title: '外部标准化协会参会流程(选择入会代表)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bzchStep3',
|
||||
name: 'bzchStep3',
|
||||
@@ -1859,6 +1899,16 @@ const routes = [
|
||||
title: '外部标准化协会参会流程(审批)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/phoneBzchStep4',
|
||||
name: 'phoneBzchStep4',
|
||||
component: () => import('@/pages/processCenter/pages/phone/bzhHd-ch/step4.vue'),
|
||||
meta: {
|
||||
isBoolean: true,
|
||||
requireAuth: true,
|
||||
title: '外部标准化协会参会流程(审批)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bzchStep5',
|
||||
name: 'bzchStep5',
|
||||
@@ -1877,6 +1927,16 @@ const routes = [
|
||||
title: '外部标准化协会参会流程(审定)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/phoneBzchStep6',
|
||||
name: 'phoneBzchStep6',
|
||||
component: () => import('@/pages/processCenter/pages/phone/bzhHd-ch/step6.vue'),
|
||||
meta: {
|
||||
isBoolean: true,
|
||||
requireAuth: true,
|
||||
title: '外部标准化协会参会流程(审定)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/bzchStep6-1',
|
||||
name: 'bzchStep6-1',
|
||||
@@ -1904,6 +1964,16 @@ const routes = [
|
||||
title: '外部标准化会后管理流程(审批)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/phoneBzhhStep2',
|
||||
name: 'phoneBzhhStep2',
|
||||
component: () => import('@/pages/processCenter/pages/phone/bzhHd-hh/step2.vue'),
|
||||
meta: {
|
||||
isBoolean: true,
|
||||
requireAuth: true,
|
||||
title: '外部标准化会后管理流程(审批)'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/phoneBzjdStep4',
|
||||
name: 'phoneBzjdStep4',
|
||||
|
||||
Reference in New Issue
Block a user