383a07c7 by renchao@pashanhoo.com

style:申请查询

1 parent 904af2b4
1 /* 1 /*
2 * @Description:workFramezu.vue组件的方法 头部按钮弹框方法 2 * @Description:workFramezu.vue组件的方法 头部按钮弹框方法
3 * @Autor: miaofang 3 * @Autor: miaofang
4 * @LastEditTime: 2023-07-17 14:20:28 4 * @LastEditTime: 2023-07-17 16:14:23
5 */ 5 */
6 import { getPrintTemplateByCode } from "@/api/print"; 6 import { getPrintTemplateByCode } from "@/api/print";
7 import { getQllxByBdcdyid } from "@/api/djbDetail.js"; 7 import { getQllxByBdcdyid } from "@/api/djbDetail.js";
...@@ -18,7 +18,6 @@ import { ...@@ -18,7 +18,6 @@ import {
18 unClaimTask 18 unClaimTask
19 } from "@/api/workFlow.js"; 19 } from "@/api/workFlow.js";
20 import { mapGetters } from 'vuex' 20 import { mapGetters } from 'vuex'
21 import { log } from "bpmn-js-token-simulation";
22 export default { 21 export default {
23 data () { 22 data () {
24 return { 23 return {
......
1 <!-- 1 <!--
2 * @Description: workFrame左侧菜单列表-普通 2 * @Description: workFrame左侧菜单列表-普通
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-05-25 10:42:50 4 * @LastEditTime: 2023-07-17 16:20:37
5 --> 5 -->
6 <template> 6 <template>
7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
...@@ -39,157 +39,160 @@ ...@@ -39,157 +39,160 @@
39 </div> 39 </div>
40 </template> 40 </template>
41 <script> 41 <script>
42 import { mapGetters } from 'vuex' 42 import { mapGetters } from 'vuex'
43 import { leftMenu, deleteSlbdcdy } from "@/api/workFlow.js" 43 import { leftMenu, deleteSlbdcdy } from "@/api/workFlow.js"
44 export default { 44 export default {
45 data () { 45 data () {
46 return { 46 return {
47 //受理申请标识码 47 //受理申请标识码
48 bsmSlsq: this.$route.query.bsmSlsq, 48 bsmSlsq: this.$route.query.bsmSlsq,
49 //当前流程所在环节 49 //当前流程所在环节
50 bestepid: this.$route.query.bestepid, 50 bestepid: this.$route.query.bestepid,
51 // 默认选中 51 // 默认选中
52 activeIndex: '0', 52 activeIndex: '0',
53 // 折叠 53 // 折叠
54 isShowdrawer: true, 54 isShowdrawer: true,
55 // 批量操作 55 // 批量操作
56 showBatch: false, 56 showBatch: false,
57 //批量操作按钮名称 57 //批量操作按钮名称
58 batchButtonName: '', 58 batchButtonName: '',
59 //左侧菜单数据集合 59 //左侧菜单数据集合
60 unitData: [], 60 unitData: [],
61 // 设置表单传递数据 61 // 设置表单传递数据
62 currentSelectProps: {} 62 currentSelectProps: {}
63 } 63 }
64 },
65 mounted () {
66 this.loadBdcdylist();
67 },
68 computed: {
69 ...mapGetters(['isRefresh'])
70 },
71 watch: {
72 isRefresh: {
73 handler (newVal, oldVal) {
74 if (newVal) this.loadBdcdylist()
75 },
76 immediate: true
77 }
78 },
79 methods: {
80 //读取申请单元信息
81 loadBdcdylist () {
82 var formdata = new FormData();
83 formdata.append("bsmSlsq", this.bsmSlsq);
84 formdata.append("bestepid", this.bestepid);
85 leftMenu(formdata).then((res) => {
86 if (res.code === 200 && res.result) {
87 this.unitData = res.result;
88 this.currentSelectProps = res.result[0];
89 this.$emit('getCurrentSelectProps', this.currentSelectProps);
90 this.judgeBatchShow();
91 if (this.showBatch) {
92 //满足批量查封/批量抵押按钮出现 即先展示批量表单
93 this.batchUnitClick();
94 } else {
95 //默认选择单元列表第一个
96 this.unitClick(0);
97 }
98 }
99 })
100 }, 64 },
101 //批量按钮判断 65 mounted () {
102 judgeBatchShow () { 66 this.loadBdcdylist();
103 this.showBatch = false; 67 },
104 if (this.unitData.length > 1) { 68 computed: {
105 let qllx = this.$route.query?.sqywbm?.substring(0, 3); 69 ...mapGetters(['isRefresh'])
106 switch (qllx) { 70 },
107 case 'A04': 71 watch: {
108 this.showBatch = true; 72 isRefresh: {
109 this.batchButtonName = '房屋批量操作'; 73 handler (newVal, oldVal) {
110 break; 74 if (newVal) this.loadBdcdylist()
111 case 'B39': 75 },
112 this.showBatch = true; 76 immediate: true
113 this.batchButtonName = '查封批量操作';
114 break;
115 case 'A37':
116 this.showBatch = true;
117 this.batchButtonName = '抵押批量操作';
118 break;
119 case 'B37':
120 this.showBatch = true;
121 this.batchButtonName = '在建工程抵押批量操作';
122 break;
123 }
124 } 77 }
125 }, 78 },
126 /** 79 methods: {
127 * @description: 删除左侧列表 80 //读取申请单元信息
128 * @param {*} item 81 loadBdcdylist () {
129 * @author: renchao 82 var formdata = new FormData();
130 */ 83 formdata.append("bsmSlsq", this.bsmSlsq);
131 handleDel (item) { 84 formdata.append("bestepid", this.bestepid);
132 this.$confirm("确定要删除吗, 是否继续?", "提示", { 85 if (this.$route.query.bsmBusiness) {
133 confirmButtonText: "确定", 86 formdata.append("bsmBusiness", this.$route.query.bsmBusiness);
134 cancelButtonText: "取消", 87 }
135 type: "warning", 88 leftMenu(formdata).then((res) => {
136 }) 89 if (res.code === 200 && res.result) {
137 .then(() => { 90 this.unitData = res.result;
138 var formdata = new FormData(); 91 this.currentSelectProps = res.result[0];
139 formdata.append("bsmSldyList", item.bsmSldy.split(",")); 92 this.$emit('getCurrentSelectProps', this.currentSelectProps);
140 // formdata.append("bsmSlsq", this.bsmSlsq); 93 this.judgeBatchShow();
141 deleteSlbdcdy(formdata).then((res) => { 94 if (this.showBatch) {
142 if (res.code == 200) { 95 //满足批量查封/批量抵押按钮出现 即先展示批量表单
143 this.$message.success("删除成功"); 96 this.batchUnitClick();
144 /**
145 * @description: 更新列表
146 * @author: miaofang
147 */
148 this.loadBdcdylist()
149 // this.$parent.updateDialog();
150 } else { 97 } else {
151 this.$message.error(res.message); 98 //默认选择单元列表第一个
99 this.unitClick(0);
152 } 100 }
153 }); 101 }
154 }) 102 })
155 .catch(() => { 103 },
156 this.$message({ 104 //批量按钮判断
157 type: "info", 105 judgeBatchShow () {
158 message: "已取消删除", 106 this.showBatch = false;
107 if (this.unitData.length > 1) {
108 let qllx = this.$route.query?.sqywbm?.substring(0, 3);
109 switch (qllx) {
110 case 'A04':
111 this.showBatch = true;
112 this.batchButtonName = '房屋批量操作';
113 break;
114 case 'B39':
115 this.showBatch = true;
116 this.batchButtonName = '查封批量操作';
117 break;
118 case 'A37':
119 this.showBatch = true;
120 this.batchButtonName = '抵押批量操作';
121 break;
122 case 'B37':
123 this.showBatch = true;
124 this.batchButtonName = '在建工程抵押批量操作';
125 break;
126 }
127 }
128 },
129 /**
130 * @description: 删除左侧列表
131 * @param {*} item
132 * @author: renchao
133 */
134 handleDel (item) {
135 this.$confirm("确定要删除吗, 是否继续?", "提示", {
136 confirmButtonText: "确定",
137 cancelButtonText: "取消",
138 type: "warning",
139 })
140 .then(() => {
141 var formdata = new FormData();
142 formdata.append("bsmSldyList", item.bsmSldy.split(","));
143 // formdata.append("bsmSlsq", this.bsmSlsq);
144 deleteSlbdcdy(formdata).then((res) => {
145 if (res.code == 200) {
146 this.$message.success("删除成功");
147 /**
148 * @description: 更新列表
149 * @author: miaofang
150 */
151 this.loadBdcdylist()
152 // this.$parent.updateDialog();
153 } else {
154 this.$message.error(res.message);
155 }
156 });
157 })
158 .catch(() => {
159 this.$message({
160 type: "info",
161 message: "已取消删除",
162 });
159 }); 163 });
160 }); 164 },
161 }, 165 //批量按钮点击事件
162 //批量按钮点击事件 166 batchUnitClick () {
163 batchUnitClick () { 167 this.currentSelectProps.batchOperation = true;
164 this.currentSelectProps.batchOperation = true; 168 this.activeIndex = "-1";
165 this.activeIndex = "-1"; 169 this.$parent.stepForm();
166 this.$parent.stepForm();
167 170
168 }, 171 },
169 //批量操作 172 //批量操作
170 handleBatchDel () { 173 handleBatchDel () {
171 this.$popupDialog("批量删除", "workflow/components/batchDel", { 174 this.$popupDialog("批量删除", "workflow/components/batchDel", {
172 bsmSlsq: this.bsmSlsq, 175 bsmSlsq: this.bsmSlsq,
173 dataList: this.unitData, 176 dataList: this.unitData,
174 }, '50%', true) 177 }, '50%', true)
175 }, 178 },
176 //申请单元点击事件 179 //申请单元点击事件
177 unitClick (index) { 180 unitClick (index) {
178 this.currentSelectProps = this.unitData[index]; 181 this.currentSelectProps = this.unitData[index];
179 this.currentSelectProps.batchOperation = false; 182 this.currentSelectProps.batchOperation = false;
180 this.activeIndex = index.toString(); 183 this.activeIndex = index.toString();
181 //选中表单传递数据 184 //选中表单传递数据
182 this.$emit('getCurrentSelectProps', this.currentSelectProps); 185 this.$emit('getCurrentSelectProps', this.currentSelectProps);
183 this.$parent.stepForm(index); 186 this.$parent.stepForm(index);
184 this.$store.dispatch('user/refreshPage', false); 187 this.$store.dispatch('user/refreshPage', false);
188 }
185 } 189 }
186 } 190 }
187 }
188 </script> 191 </script>
189 <style scoped lang='scss'> 192 <style scoped lang='scss'>
190 @import "~@/styles/mixin.scss"; 193 @import "~@/styles/mixin.scss";
191 @import "../../workFrame.scss"; 194 @import "../../workFrame.scss";
192 .leftmenu ul { 195 .leftmenu ul {
193 height: calc(100vh - 120px); 196 height: calc(100vh - 120px);
194 } 197 }
195 </style> 198 </style>
......
1 <!-- 1 <!--
2 * @Description: workFrame左侧菜单列表-分割 2 * @Description: workFrame左侧菜单列表-分割
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-05-25 10:18:02 4 * @LastEditTime: 2023-07-17 16:21:24
5 --> 5 -->
6 <template> 6 <template>
7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
...@@ -99,6 +99,9 @@ ...@@ -99,6 +99,9 @@
99 var formdata = new FormData(); 99 var formdata = new FormData();
100 formdata.append("bsmSlsq", this.bsmSlsq); 100 formdata.append("bsmSlsq", this.bsmSlsq);
101 formdata.append("bestepid", this.bestepid); 101 formdata.append("bestepid", this.bestepid);
102 if (this.$route.query.bsmBusiness) {
103 formdata.append("bsmBusiness", this.$route.query.bsmBusiness);
104 }
102 leftMenu(formdata).then((res) => { 105 leftMenu(formdata).then((res) => {
103 if (res.code === 200 && res.result) { 106 if (res.code === 200 && res.result) {
104 this.aroundUnitData = res.result.filter(item => item.bglx == '1') 107 this.aroundUnitData = res.result.filter(item => item.bglx == '1')
......