Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
1 changed file
with
156 additions
and
93 deletions
... | @@ -11,7 +11,11 @@ | ... | @@ -11,7 +11,11 @@ |
11 | </ul> | 11 | </ul> |
12 | <!-- 右侧流程按钮 --> | 12 | <!-- 右侧流程按钮 --> |
13 | <ul> | 13 | <ul> |
14 | <li @click="operation(index, item)" v-for="(item, index) in rightButtonList" :key="index"> | 14 | <li |
15 | @click="operation(index, item)" | ||
16 | v-for="(item, index) in rightButtonList" | ||
17 | :key="index" | ||
18 | > | ||
15 | <svg-icon class="icon" :icon-class="item.icon" /> | 19 | <svg-icon class="icon" :icon-class="item.icon" /> |
16 | <span class="iconName">{{ item.name }}</span> | 20 | <span class="iconName">{{ item.name }}</span> |
17 | </li> | 21 | </li> |
... | @@ -22,29 +26,52 @@ | ... | @@ -22,29 +26,52 @@ |
22 | <!-- 左侧菜单栏 --> | 26 | <!-- 左侧菜单栏 --> |
23 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 27 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> |
24 | <div v-if="this.isShowdrawer"> | 28 | <div v-if="this.isShowdrawer"> |
25 | <div class="title">申请单元列表({{ unitData.length }}) | 29 | <div class="title"> |
26 | <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length>1">批量删除</el-button> | 30 | 申请单元列表({{ unitData.length }}) |
31 | <el-button | ||
32 | type="text" | ||
33 | class="batchDel" | ||
34 | @click="handleBatchDel" | ||
35 | v-if="unitData.length > 1" | ||
36 | >批量删除</el-button | ||
37 | > | ||
27 | </div> | 38 | </div> |
28 | <el-menu :default-active="activeIndex" @select="unitClick"> | 39 | <el-menu :default-active="activeIndex" @select="unitClick"> |
29 | <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index"> | 40 | <el-menu-item |
41 | v-for="(item, index) in unitData" | ||
42 | :index="index.toString()" | ||
43 | :key="index" | ||
44 | > | ||
30 | <div> | 45 | <div> |
31 | <p>{{ item.bdcdyh }}</p> | 46 | <p>{{ item.bdcdyh }}</p> |
32 | <p class="title-detail">{{ item.zl }}</p> | 47 | <p class="title-detail">{{ item.zl }}</p> |
33 | </div> | 48 | </div> |
34 | <i class="el-icon-delete" v-if="unitData.length>1" @click.stop="handleDel(item)"></i> | 49 | <i |
50 | class="el-icon-delete" | ||
51 | v-if="unitData.length > 1" | ||
52 | @click.stop="handleDel(item)" | ||
53 | ></i> | ||
35 | </el-menu-item> | 54 | </el-menu-item> |
36 | </el-menu> | 55 | </el-menu> |
37 | </div> | 56 | </div> |
38 | <div class="map-drawer-click map-drawer" v-if="!isShowdrawer" @click=" | 57 | <div |
39 | () => { | 58 | class="map-drawer-click map-drawer" |
40 | this.isShowdrawer = !this.isShowdrawer; | 59 | v-if="!isShowdrawer" |
41 | } | 60 | @click=" |
42 | "></div> | 61 | () => { |
43 | <div class="map-drawer-expand map-drawer" v-else @click=" | 62 | this.isShowdrawer = !this.isShowdrawer; |
44 | () => { | 63 | } |
45 | this.isShowdrawer = !this.isShowdrawer; | 64 | " |
46 | } | 65 | ></div> |
47 | "></div> | 66 | <div |
67 | class="map-drawer-expand map-drawer" | ||
68 | v-else | ||
69 | @click=" | ||
70 | () => { | ||
71 | this.isShowdrawer = !this.isShowdrawer; | ||
72 | } | ||
73 | " | ||
74 | ></div> | ||
48 | </div> | 75 | </div> |
49 | <div class="leftCon"> | 76 | <div class="leftCon"> |
50 | <!-- 分屏左侧预览 --> | 77 | <!-- 分屏左侧预览 --> |
... | @@ -54,14 +81,28 @@ | ... | @@ -54,14 +81,28 @@ |
54 | <!-- 表单内容区域 --> | 81 | <!-- 表单内容区域 --> |
55 | <div class="rightContainer"> | 82 | <div class="rightContainer"> |
56 | <el-tabs v-model="tabName" @tab-click="tabClick"> | 83 | <el-tabs v-model="tabName" @tab-click="tabClick"> |
57 | <el-tab-pane :label="item.name" :name="item.value" v-for="(item, index) in tabList" :key="index"> | 84 | <el-tab-pane |
85 | :label="item.name" | ||
86 | :name="item.value" | ||
87 | v-for="item in tabList" | ||
88 | :key="item.value" | ||
89 | > | ||
58 | </el-tab-pane> | 90 | </el-tab-pane> |
59 | </el-tabs> | 91 | </el-tabs> |
60 | <component :key="fresh" :is="componentTag" v-bind="currentSelectProps" /> | 92 | <component |
93 | :key="fresh" | ||
94 | :is="componentTag" | ||
95 | v-bind="currentSelectProps" | ||
96 | /> | ||
61 | </div> | 97 | </div> |
62 | </div> | 98 | </div> |
63 | </div> | 99 | </div> |
64 | <fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" @updateDialog="updateDialog" /> | 100 | <fqsqDialog |
101 | v-model="isDialog" | ||
102 | :djywbm="$route.query.sqywbm" | ||
103 | :isJump="true" | ||
104 | @updateDialog="updateDialog" | ||
105 | /> | ||
65 | </div> | 106 | </div> |
66 | </template> | 107 | </template> |
67 | 108 | ||
... | @@ -76,25 +117,25 @@ import { | ... | @@ -76,25 +117,25 @@ import { |
76 | record, | 117 | record, |
77 | getNextLinkInfo, | 118 | getNextLinkInfo, |
78 | completeTask, | 119 | completeTask, |
79 | } from "@/api/fqsq.js" | 120 | } from "@/api/fqsq.js"; |
80 | import { deleteBdcdy } from "@/api/ywbl.js" | 121 | import { deleteBdcdy } from "@/api/ywbl.js"; |
81 | import { getWorkFlowImage } from "@/api/jsydsyqFlow.js" | 122 | import { getWorkFlowImage } from "@/api/jsydsyqFlow.js"; |
82 | import { getForm } from "./flowform.js" | 123 | import { getForm } from "./flowform.js"; |
83 | import fqsqDialog from "@/views/ywbl/ywsq/slectBdc.vue" | 124 | import fqsqDialog from "@/views/ywbl/ywsq/slectBdc.vue"; |
84 | import { queueDjywmc } from '@/views/ywbl/ywsq/slectBdcdata.js'; | 125 | import { queueDjywmc } from "@/views/ywbl/ywsq/slectBdcdata.js"; |
85 | export default { | 126 | export default { |
86 | components: { | 127 | components: { |
87 | fqsqDialog | 128 | fqsqDialog, |
88 | }, | 129 | }, |
89 | data () { | 130 | data() { |
90 | return { | 131 | return { |
91 | isDialog: false, | 132 | isDialog: false, |
92 | // 流程图 | 133 | // 流程图 |
93 | imgSrc: '', | 134 | imgSrc: "", |
94 | // 折叠 | 135 | // 折叠 |
95 | isShowdrawer: true, | 136 | isShowdrawer: true, |
96 | // 默认选中 | 137 | // 默认选中 |
97 | activeIndex: '0', | 138 | activeIndex: "0", |
98 | //受理申请标识码 | 139 | //受理申请标识码 |
99 | bsmSlsq: this.$route.query.bsmSlsq, | 140 | bsmSlsq: this.$route.query.bsmSlsq, |
100 | //当前流程所在环节 | 141 | //当前流程所在环节 |
... | @@ -123,62 +164,64 @@ export default { | ... | @@ -123,62 +164,64 @@ export default { |
123 | clxxIndex: "", | 164 | clxxIndex: "", |
124 | //材料信息选项卡对象 | 165 | //材料信息选项卡对象 |
125 | clxxTab: {}, | 166 | clxxTab: {}, |
126 | } | 167 | }; |
127 | }, | 168 | }, |
128 | mounted () { | 169 | mounted() { |
129 | this.loadBdcdylist(); | 170 | this.loadBdcdylist(); |
130 | this.flowInitParam(); | 171 | this.flowInitParam(); |
131 | }, | 172 | }, |
132 | methods: { | 173 | methods: { |
133 | // 更新列表 | 174 | // 更新列表 |
134 | updateDialog () { | 175 | updateDialog() { |
135 | this.loadBdcdylist(); | 176 | this.loadBdcdylist(); |
136 | }, | 177 | }, |
137 | // 删除左侧列表 | 178 | // 删除左侧列表 |
138 | handleDel (item) { | 179 | handleDel(item) { |
139 | this.$confirm('确定要删除吗, 是否继续?', '提示', { | 180 | this.$confirm("确定要删除吗, 是否继续?", "提示", { |
140 | confirmButtonText: '确定', | 181 | confirmButtonText: "确定", |
141 | cancelButtonText: '取消', | 182 | cancelButtonText: "取消", |
142 | type: 'warning' | 183 | type: "warning", |
143 | }).then(() => { | ||
144 | deleteBdcdy({ | ||
145 | bsmSlsq: this.bsmSlsq, | ||
146 | bsmSldyList: item.bsmSldy.split(',') | ||
147 | }).then(res => { | ||
148 | if (res.code == 200) { | ||
149 | this.$message.success("删除成功"); | ||
150 | this.loadBdcdylist(); | ||
151 | }else{ | ||
152 | this.$message.error(res.message) | ||
153 | } | ||
154 | }) | ||
155 | }).catch(() => { | ||
156 | this.$message({ | ||
157 | type: 'info', | ||
158 | message: '已取消删除' | ||
159 | }) | ||
160 | }) | 184 | }) |
185 | .then(() => { | ||
186 | deleteBdcdy({ | ||
187 | bsmSlsq: this.bsmSlsq, | ||
188 | bsmSldyList: item.bsmSldy.split(","), | ||
189 | }).then((res) => { | ||
190 | if (res.code == 200) { | ||
191 | this.$message.success("删除成功"); | ||
192 | this.loadBdcdylist(); | ||
193 | } else { | ||
194 | this.$message.error(res.message); | ||
195 | } | ||
196 | }); | ||
197 | }) | ||
198 | .catch(() => { | ||
199 | this.$message({ | ||
200 | type: "info", | ||
201 | message: "已取消删除", | ||
202 | }); | ||
203 | }); | ||
161 | }, | 204 | }, |
162 | handleBatchDel () { | 205 | handleBatchDel() { |
163 | let that = this; | 206 | let that = this; |
164 | this.$popup({ | 207 | this.$popup({ |
165 | title: '批量删除', | 208 | title: "批量删除", |
166 | width: '50%', | 209 | width: "50%", |
167 | btnShow: true, | 210 | btnShow: true, |
168 | editItem: 'workflow/components/batchDel', | 211 | editItem: "workflow/components/batchDel", |
169 | height: '600px', | 212 | height: "600px", |
170 | formData: { | 213 | formData: { |
171 | bsmSlsq: this.bsmSlsq, | 214 | bsmSlsq: this.bsmSlsq, |
172 | dataList: this.unitData | 215 | dataList: this.unitData, |
173 | }, | 216 | }, |
174 | cancel: function () { }, //取消事件的回调 | 217 | cancel: function () {}, //取消事件的回调 |
175 | confirm: function () { | 218 | confirm: function () { |
176 | that.loadBdcdylist(); | 219 | that.loadBdcdylist(); |
177 | }, //确认事件的回调 | 220 | }, //确认事件的回调 |
178 | }) | 221 | }); |
179 | }, | 222 | }, |
180 | //加载流程初始参数 | 223 | //加载流程初始参数 |
181 | flowInitParam () { | 224 | flowInitParam() { |
182 | var formdata = new FormData(); | 225 | var formdata = new FormData(); |
183 | formdata.append("bsmSlsq", this.bsmSlsq); | 226 | formdata.append("bsmSlsq", this.bsmSlsq); |
184 | formdata.append("bestepid", this.bestepid); | 227 | formdata.append("bestepid", this.bestepid); |
... | @@ -200,49 +243,69 @@ export default { | ... | @@ -200,49 +243,69 @@ export default { |
200 | //默认加载第一个选项卡的组件内容 | 243 | //默认加载第一个选项卡的组件内容 |
201 | this.getFromRouter(res.result.form[0].value); | 244 | this.getFromRouter(res.result.form[0].value); |
202 | } | 245 | } |
203 | }) | 246 | }); |
204 | }, | 247 | }, |
205 | //流程环节操作按钮 | 248 | //流程环节操作按钮 |
206 | operation (index, item) { | 249 | operation(index, item) { |
207 | //按钮 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书 | 250 | //按钮 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书 |
208 | //操作按钮 登簿:record 转件:transfer 退回:back 退出:signout | 251 | //操作按钮 登簿:record 转件:transfer 退回:back 退出:signout |
209 | let that = this; | 252 | let that = this; |
210 | switch (item.value) { | 253 | switch (item.value) { |
211 | case "B0": | 254 | case "B0": |
212 | // let type = queueDjywmc(this.$route.query.sqywbm) | 255 | // let type = queueDjywmc(this.$route.query.sqywbm) |
213 | this.isDialog = true | 256 | this.isDialog = true; |
214 | break; | 257 | break; |
215 | case "B1": | 258 | case "B1": |
216 | getWorkFlowImage(this.bsmSlsq).then(res => { | 259 | getWorkFlowImage(this.bsmSlsq).then((res) => { |
217 | this.imgSrc = URL.createObjectURL(res) | 260 | this.imgSrc = URL.createObjectURL(res); |
218 | this.$popup({ | 261 | this.$popup({ |
219 | title: '流程图', | 262 | title: "流程图", |
220 | btnShow: true, | 263 | btnShow: true, |
221 | editItem: 'workflow/components/flowChart', | 264 | editItem: "workflow/components/flowChart", |
222 | formData: this.imgSrc | 265 | formData: this.imgSrc, |
223 | }) | 266 | }); |
224 | }) | 267 | }); |
225 | break; | ||
226 | case "B5": | ||
227 | this.zsylFlag = true; | ||
228 | break; | 268 | break; |
229 | case "B2": //材料分屏按钮 | 269 | case "B2": //材料分屏按钮 |
230 | this.splitScreen = this.splitScreen ? false : true; | 270 | this.splitScreen = this.splitScreen ? false : true; |
231 | this.$store.dispatch('app/settScreen', this.splitScreen) | 271 | this.$store.dispatch("app/settScreen", this.splitScreen); |
232 | if (this.splitScreen) { | 272 | if (this.splitScreen) { |
233 | //如果当前选项卡为材料信息内容,递减到上一个选项卡内容 | 273 | //如果当前选项卡为材料信息内容,递减到上一个选项卡内容 |
234 | if (this.tabName == this.clxxTab.value) { | 274 | if (this.tabName == this.clxxTab.value) { |
235 | this.tabName = this.tabList[this.clxxIndex - 1].value; | 275 | this.tabName = this.tabList[this.clxxIndex - 1].value; |
236 | this.getFromRouter(this.tabList[this.clxxIndex - 1].value); | 276 | this.getFromRouter(this.tabList[this.clxxIndex - 1].value); |
237 | } | 277 | } |
278 | //删除材料信息选项卡数据 | ||
238 | this.tabList.splice(this.clxxIndex, 1); | 279 | this.tabList.splice(this.clxxIndex, 1); |
239 | } else { | 280 | } else { |
240 | this.tabList.splice(this.clxxIndex, 1, this.clxxTab); | 281 | //新增材料信息选项卡数据 |
282 | this.tabList.splice(this.clxxIndex, 0, this.clxxTab); | ||
241 | } | 283 | } |
242 | break; | 284 | break; |
285 | case "B4": | ||
286 | this.$popup({ | ||
287 | titleStyle: "left", | ||
288 | title: "登记簿详情", // 弹窗标题 | ||
289 | editItem: "registerBook/djbFrame", // 弹窗内容 | ||
290 | formData: this.currentSelectProps, | ||
291 | width: "1220px", | ||
292 | height: "790px", | ||
293 | // cancelText: '取消摆烂', // 右边按钮文本 | ||
294 | // confirmText: '确定点击', //左边按钮文本 | ||
295 | cancel: () => { | ||
296 | console.log("取消回调"); | ||
297 | }, | ||
298 | confirm: () => { | ||
299 | console.log("确认回调"); | ||
300 | }, | ||
301 | }); | ||
302 | break; | ||
303 | case "B5": | ||
304 | this.zsylFlag = true; | ||
305 | break; | ||
243 | case "back": //退回按钮 | 306 | case "back": //退回按钮 |
244 | break; | 307 | break; |
245 | case "transfer": //转件按钮 | 308 | case "transfer": //转件按钮 |
246 | getNextLinkInfo({ | 309 | getNextLinkInfo({ |
247 | bsmSlsq: this.bsmSlsq, | 310 | bsmSlsq: this.bsmSlsq, |
248 | bestepid: this.bestepid, | 311 | bestepid: this.bestepid, |
... | @@ -276,7 +339,7 @@ export default { | ... | @@ -276,7 +339,7 @@ export default { |
276 | } | 339 | } |
277 | }, | 340 | }, |
278 | //读取申请单元信息 | 341 | //读取申请单元信息 |
279 | loadBdcdylist () { | 342 | loadBdcdylist() { |
280 | var formdata = new FormData(); | 343 | var formdata = new FormData(); |
281 | formdata.append("bsmSlsq", this.bsmSlsq); | 344 | formdata.append("bsmSlsq", this.bsmSlsq); |
282 | formdata.append("bestepid", this.bestepid); | 345 | formdata.append("bestepid", this.bestepid); |
... | @@ -285,25 +348,25 @@ export default { | ... | @@ -285,25 +348,25 @@ export default { |
285 | this.unitData = res.result; | 348 | this.unitData = res.result; |
286 | this.currentSelectProps = res.result[0]; | 349 | this.currentSelectProps = res.result[0]; |
287 | } | 350 | } |
288 | }) | 351 | }); |
289 | }, | 352 | }, |
290 | //申请单元点击事件 | 353 | //申请单元点击事件 |
291 | unitClick (index) { | 354 | unitClick(index) { |
292 | if (this.currentSelectProps.bsmSldy != this.unitData[index].bsmSldy) { | 355 | if (this.currentSelectProps.bsmSldy != this.unitData[index].bsmSldy) { |
293 | this.currentSelectProps = this.unitData[index]; | 356 | this.currentSelectProps = this.unitData[index]; |
294 | this.fresh += 1; | 357 | this.fresh += 1; |
295 | } | 358 | } |
296 | }, | 359 | }, |
297 | //表单选项卡事件 | 360 | //表单选项卡事件 |
298 | tabClick (tab, event) { | 361 | tabClick(tab, event) { |
299 | this.getFromRouter(tab.name); | 362 | this.getFromRouter(tab.name); |
300 | }, | 363 | }, |
301 | //切换选项卡内容组件 | 364 | //切换选项卡内容组件 |
302 | getFromRouter (tabname) { | 365 | getFromRouter(tabname) { |
303 | this.componentTag = getForm(tabname); | 366 | this.componentTag = getForm(tabname); |
304 | }, | 367 | }, |
305 | //发送下一个环节 | 368 | //发送下一个环节 |
306 | send (obj) { | 369 | send(obj) { |
307 | const h = this.$createElement; | 370 | const h = this.$createElement; |
308 | this.$msgbox({ | 371 | this.$msgbox({ |
309 | title: "您确定转出吗?", | 372 | title: "您确定转出吗?", |
... | @@ -322,7 +385,7 @@ export default { | ... | @@ -322,7 +385,7 @@ export default { |
322 | completeTask({ | 385 | completeTask({ |
323 | bsmSlsq: this.bsmSlsq, | 386 | bsmSlsq: this.bsmSlsq, |
324 | shyj: "this.bestepid", | 387 | shyj: "this.bestepid", |
325 | stepform: JSON.stringify(this.tabList) | 388 | stepform: JSON.stringify(this.tabList), |
326 | }).then((res) => { | 389 | }).then((res) => { |
327 | if (res.code === 200) { | 390 | if (res.code === 200) { |
328 | instance.confirmButtonLoading = false; | 391 | instance.confirmButtonLoading = false; |
... | @@ -342,10 +405,10 @@ export default { | ... | @@ -342,10 +405,10 @@ export default { |
342 | }).then((action) => { | 405 | }).then((action) => { |
343 | this.$message({ | 406 | this.$message({ |
344 | type: "info", | 407 | type: "info", |
345 | message: "action: " + action | 408 | message: "action: " + action, |
346 | }) | 409 | }); |
347 | }) | 410 | }); |
348 | } | 411 | }, |
349 | } | 412 | }, |
350 | } | 413 | }; |
351 | </script> | 414 | </script> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment