a403ebff by xiaomiao

流程图逻辑处理

1 parent 6aa657ab
1 /* 1 /*
2 * @Description: 引入公共组件 2 * @Description: 引入公共组件
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-04-25 15:18:20 4 * @LastEditTime: 2023-04-26 17:26:12
5 */ 5 */
6 import dialogBox from '@/components/DialogBox/dialogBox.vue' 6 import dialogBox from '@/components/dialogBox/dialogBox.vue'
7 import LbTable from '@/components/LbTable/lb-table.vue' 7 import LbTable from '@/components/LbTable/lb-table.vue'
8 import Theme from '@/components/Theme/theme.vue' 8 import Theme from '@/components/Theme/theme.vue'
9 import Popup from '@/components/Popup/index' 9 import Popup from '@/components/Popup/index'
......
1 <!--
2 * @Author: xiaomiao 1158771342@qq.com
3 * @Date: 2023-03-09 14:54:49
4 * @LastEditors: xiaomiao 1158771342@qq.com
5 * @LastEditTime: 2023-04-27 10:39:11
6 * @FilePath: \不动产登记系统\bdcdj-web\src\views\workflow\components\batchDel.vue
7 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8 -->
1 <template> 9 <template>
2 <div class='batchDel'> 10 <div class='batchDel'>
3 <lb-table :column="columns" :data="formData.dataList" :maxHeight="460" :heightNumSetting="true" :pagination="false" 11 <lb-table :column="columns" :data="formData.dataList" :maxHeight="460" :heightNumSetting="true" :pagination="false"
...@@ -5,7 +13,7 @@ ...@@ -5,7 +13,7 @@
5 </lb-table> 13 </lb-table>
6 <div class="text-center"> 14 <div class="text-center">
7 <el-button @click="$popupCacel">取消</el-button> 15 <el-button @click="$popupCacel">取消</el-button>
8 <el-button type="primary" @click="childFn" plain>确定</el-button> 16 <el-button type="primary" @click="submitdelclick" plain>确定</el-button>
9 </div> 17 </div>
10 </div> 18 </div>
11 </template> 19 </template>
...@@ -46,7 +54,8 @@ ...@@ -46,7 +54,8 @@
46 } 54 }
47 }, 55 },
48 methods: { 56 methods: {
49 childFn () { 57 // 批量删除确定按钮
58 submitdelclick () {
50 var formdata = new FormData(); 59 var formdata = new FormData();
51 formdata.append("bsmSldyList", this.selectBdcdy); 60 formdata.append("bsmSldyList", this.selectBdcdy);
52 formdata.append("bsmSlsq", this.formData.bsmSlsq); 61 formdata.append("bsmSlsq", this.formData.bsmSlsq);
...@@ -60,6 +69,7 @@ ...@@ -60,6 +69,7 @@
60 } 69 }
61 }) 70 })
62 }, 71 },
72 // 批量删除勾选事件
63 handleSelectionChange (e) { 73 handleSelectionChange (e) {
64 this.selectBdcdy = []; 74 this.selectBdcdy = [];
65 e.forEach((item, index) => { 75 e.forEach((item, index) => {
......
...@@ -53,6 +53,12 @@ ...@@ -53,6 +53,12 @@
53 </el-select> 53 </el-select>
54 <el-table :data="taskCommentList" size="mini" border header-cell-class-name="table-header-gray"> 54 <el-table :data="taskCommentList" size="mini" border header-cell-class-name="table-header-gray">
55 <el-table-column label="序号" header-align="center" align="center" type="index" width="55px" /> 55 <el-table-column label="序号" header-align="center" align="center" type="index" width="55px" />
56 <el-table-column label="流程状态" header-align="center" align="center">
57 <template slot-scope="scope">
58 <div v-if="scope.row.finishTime == null">正在办理</div>
59 <div v-else>已完结</div>
60 </template>
61 </el-table-column>
56 <el-table-column label="环节名称" prop="taskName" minWidth="150px" align="center" /> 62 <el-table-column label="环节名称" prop="taskName" minWidth="150px" align="center" />
57 <el-table-column label="办理人" prop="assigneeName" minWidth="100px" align="center" /> 63 <el-table-column label="办理人" prop="assigneeName" minWidth="100px" align="center" />
58 <el-table-column label="处理时间" prop="createTime" width="140px" align="center" /> 64 <el-table-column label="处理时间" prop="createTime" width="140px" align="center" />
...@@ -150,13 +156,12 @@ ...@@ -150,13 +156,12 @@
150 onSelectElement (element) { 156 onSelectElement (element) {
151 this.selectTaskId = undefined 157 this.selectTaskId = undefined
152 this.dlgTitle = undefined 158 this.dlgTitle = undefined
153 159 let allfinishedTaskSet = [...this.processNodeInfo.finishedTaskSet, ...this.processNodeInfo.unfinishedTaskSet]
154 if (this.processNodeInfo == null || this.processNodeInfo.finishedTaskSet == null) return 160 if (this.processNodeInfo == null || allfinishedTaskSet == null)
155 161 return
156 if (element == null || this.processNodeInfo.finishedTaskSet.indexOf(element.id) === -1) { 162 if (element == null || allfinishedTaskSet.indexOf(element.id) === -1) {
157 return 163 return
158 } 164 }
159
160 this.selectTaskId = element.id 165 this.selectTaskId = element.id
161 this.selectValue = element.id 166 this.selectValue = element.id
162 this.dlgTitle = element.businessObject ? element.businessObject.name : undefined 167 this.dlgTitle = element.businessObject ? element.businessObject.name : undefined
...@@ -182,6 +187,9 @@ ...@@ -182,6 +187,9 @@
182 if (this.formData.finishedInfo.finishedTaskSet.includes(item.value)) { 187 if (this.formData.finishedInfo.finishedTaskSet.includes(item.value)) {
183 return item 188 return item
184 } 189 }
190 if (this.formData.finishedInfo.unfinishedTaskSet.includes(item.value)) {
191 return item
192 }
185 }).filter(Boolean); 193 }).filter(Boolean);
186 this.selectValue = xmlData.startEvent._id 194 this.selectValue = xmlData.startEvent._id
187 this.clearViewer('a') 195 this.clearViewer('a')
......
...@@ -95,14 +95,14 @@ ...@@ -95,14 +95,14 @@
95 </div> 95 </div>
96 </template> 96 </template>
97 <script> 97 <script>
98 import { mapGetters } from "vuex"; 98 import { mapGetters } from "vuex";
99 import searchBox from "../components/search.vue"; 99 import searchBox from "../components/search.vue";
100 import table from "@/utils/mixin/table"; 100 import table from "@/utils/mixin/table";
101 import searchMin from "../components/mixin/index"; 101 import searchMin from "../components/mixin/index";
102 import { datas, sendThis } from "./dbxdata"; 102 import { datas, sendThis } from "./dbxdata";
103 import { searchTaskToDo, deleteFlow, claimTask } from "@/api/ywbl"; 103 import { searchTaskToDo, deleteFlow, claimTask } from "@/api/ywbl";
104 import { judgeUserTaskPermission } from "@/api/fqsq"; 104 import { judgeUserTaskPermission } from "@/api/fqsq";
105 export default { 105 export default {
106 name: "dbx", 106 name: "dbx",
107 components: { searchBox }, 107 components: { searchBox },
108 mixins: [table, searchMin], 108 mixins: [table, searchMin],
...@@ -230,8 +230,8 @@ export default { ...@@ -230,8 +230,8 @@ export default {
230 }); 230 });
231 }, 231 },
232 }, 232 },
233 }; 233 };
234 </script> 234 </script>
235 <style scoped lang="scss"> 235 <style scoped lang="scss">
236 @import "~@/styles/public.scss"; 236 @import "~@/styles/public.scss";
237 </style> 237 </style>
......