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