52385f8c by renchao@pashanhoo.com

style:申请单元列表

1 parent 3b1a059f
1 <!-- 1 <!--
2 * @Description: workFrame左侧菜单列表-普通 2 * @Description: workFrame左侧菜单列表-普通
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-30 13:59:09 4 * @LastEditTime: 2023-09-12 11:18:27
5 --> 5 -->
6 <template> 6 <template>
7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 申请单元列表({{ unitData.length }}) 15 申请单元列表({{ unitData.length }})
16 <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length > 1">批量删除</el-button> 16 <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length > 1">批量删除</el-button>
17 </div> 17 </div>
18 <el-menu :default-active="activeIndex" @select="unitClick"> 18 <el-menu v-model="activeIndex" :default-active="activeIndex" @select="unitClick">
19 <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index"> 19 <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index">
20 <p class="dot" v-if="item.issave == '0'"></p> 20 <p class="dot" v-if="item.issave == '0'"></p>
21 <div class="menu-con"> 21 <div class="menu-con">
...@@ -74,18 +74,20 @@ ...@@ -74,18 +74,20 @@
74 watch: { 74 watch: {
75 isRefresh: { 75 isRefresh: {
76 handler (newVal, oldVal) { 76 handler (newVal, oldVal) {
77 if (newVal) this.loadBdcdylist() 77 if (newVal) {
78 this.loadBdcdylist()
79 }
78 }, 80 },
79 immediate: true 81 immediate: true
80 } 82 }
81 }, 83 },
82 methods: { 84 methods: {
83 //读取申请单元信息
84 /** 85 /**
85 * @description: 读取申请单元信息 86 * @description: 读取申请单元信息
86 * @author: renchao 87 * @author: renchao
87 */ 88 */
88 loadBdcdylist () { 89 loadBdcdylist () {
90 let that = this
89 var formdata = new FormData(); 91 var formdata = new FormData();
90 formdata.append("bsmSlsq", this.bsmSlsq); 92 formdata.append("bsmSlsq", this.bsmSlsq);
91 if (this.$route.query.bestepid) { 93 if (this.$route.query.bestepid) {
...@@ -97,24 +99,28 @@ ...@@ -97,24 +99,28 @@
97 if (this.$route.query.type == 'jdcx') { 99 if (this.$route.query.type == 'jdcx') {
98 jdcxLeftMenu(formdata).then((res) => { 100 jdcxLeftMenu(formdata).then((res) => {
99 if (res.code === 200 && res.result) { 101 if (res.code === 200 && res.result) {
100 this.unitData = res.result; 102 that.unitData = res.result;
101 window.unitData = res.result; 103 window.unitData = res.result;
102 this.currentSelectProps = res.result[0]; 104 that.currentSelectProps = res.result[0];
103 this.$emit('getCurrentSelectProps', this.currentSelectProps); 105 that.$emit('getCurrentSelectProps', this.currentSelectProps);
104 this.judgeBatchShow(); 106 that.judgeBatchShow();
105 if (this.showBatch) { 107 if (that.showBatch) {
106 //满足批量查封/批量抵押按钮出现 即先展示批量表单 108 //满足批量查封/批量抵押按钮出现 即先展示批量表单
107 this.batchUnitClick(); 109 that.batchUnitClick();
108 } else { 110 } else {
109 //默认选择单元列表第一个 111 //默认选择单元列表第一个
110 this.unitClick(0); 112 if (sessionStorage.getItem('keyPath')) {
113 that.unitClick(sessionStorage.getItem('keyPath') - 0)
114 } else {
115 that.unitClick(0);
116 }
111 } 117 }
112 } 118 }
113 }) 119 })
114 } else { 120 } else {
115 leftMenu(formdata).then((res) => { 121 leftMenu(formdata).then((res) => {
116 if (res.code === 200 && res.result) { 122 if (res.code === 200 && res.result) {
117 this.unitData = res.result; 123 that.unitData = res.result;
118 window.unitData = res.result; 124 window.unitData = res.result;
119 this.currentSelectProps = res.result[0]; 125 this.currentSelectProps = res.result[0];
120 this.$emit('getCurrentSelectProps', this.currentSelectProps); 126 this.$emit('getCurrentSelectProps', this.currentSelectProps);
...@@ -124,13 +130,16 @@ ...@@ -124,13 +130,16 @@
124 this.batchUnitClick(); 130 this.batchUnitClick();
125 } else { 131 } else {
126 //默认选择单元列表第一个 132 //默认选择单元列表第一个
127 this.unitClick(0); 133 if (sessionStorage.getItem('keyPath')) {
134 that.unitClick(sessionStorage.getItem('keyPath') - 0)
135 } else {
136 that.unitClick(0);
137 }
128 } 138 }
129 } 139 }
130 }) 140 })
131 } 141 }
132 }, 142 },
133 //批量按钮判断
134 /** 143 /**
135 * @description: 批量按钮判断 144 * @description: 批量按钮判断
136 * @author: renchao 145 * @author: renchao
...@@ -224,6 +233,7 @@ ...@@ -224,6 +233,7 @@
224 this.currentSelectProps = this.unitData[index]; 233 this.currentSelectProps = this.unitData[index];
225 this.currentSelectProps.batchOperation = false; 234 this.currentSelectProps.batchOperation = false;
226 this.activeIndex = index.toString(); 235 this.activeIndex = index.toString();
236 sessionStorage.setItem('keyPath', this.activeIndex);
227 //选中表单传递数据 237 //选中表单传递数据
228 this.$emit('getCurrentSelectProps', this.currentSelectProps); 238 this.$emit('getCurrentSelectProps', this.currentSelectProps);
229 this.$parent.stepForm(index); 239 this.$parent.stepForm(index);
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-17 15:34:33 4 * @LastEditTime: 2023-09-12 09:41:27
5 */ 5 */
6 //流程环节操作按钮 6 //流程环节操作按钮
7 /** 7 /**
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
10 * @param {*} djywbm 10 * @param {*} djywbm
11 * @author: renchao 11 * @author: renchao
12 */ 12 */
13 export function getForm(tabName, djywbm) { 13 export function getForm (tabName, djywbm) {
14 let form; 14 let form;
15 switch (tabName) { 15 switch (tabName) {
16 case "tdsyqslxx": 16 case "tdsyqslxx":
...@@ -72,7 +72,7 @@ export function getForm(tabName, djywbm) { ...@@ -72,7 +72,7 @@ export function getForm(tabName, djywbm) {
72 case "sfxx": 72 case "sfxx":
73 form = require("@/views/workflow/components/sfxx.vue"); 73 form = require("@/views/workflow/components/sfxx.vue");
74 break; 74 break;
75 case "sdqxx": 75 case "sdqxx":
76 form = require("@/views/workflow/components/sdqxx.vue"); 76 form = require("@/views/workflow/components/sdqxx.vue");
77 break; 77 break;
78 case "zdjbxx": 78 case "zdjbxx":
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-05 15:05:56 4 * @LastEditTime: 2023-09-12 10:52:24
5 */ 5 */
6 import { getForm } from "../flowform"; 6 import { getForm } from "../flowform";
7 import { getHomeNoticeList } from "@/api/home.js" 7 import { getHomeNoticeList } from "@/api/home.js"
...@@ -32,7 +32,6 @@ export default { ...@@ -32,7 +32,6 @@ export default {
32 } 32 }
33 }) 33 })
34 }, 34 },
35 //右侧表单选项卡事件
36 /** 35 /**
37 * @description: 右侧表单选项卡事件 36 * @description: 右侧表单选项卡事件
38 * @param {*} activeName 37 * @param {*} activeName
...@@ -40,9 +39,9 @@ export default { ...@@ -40,9 +39,9 @@ export default {
40 * @author: renchao 39 * @author: renchao
41 */ 40 */
42 beforeLeave (activeName, oldActiveName) { 41 beforeLeave (activeName, oldActiveName) {
42 sessionStorage.setItem('activeName', activeName);
43 if (activeName && activeName != 0) this.getFromRouter(activeName) 43 if (activeName && activeName != 0) this.getFromRouter(activeName)
44 }, 44 },
45 //切换选项卡内容组件
46 /** 45 /**
47 * @description: 切换选项卡内容组件 46 * @description: 切换选项卡内容组件
48 * @param {*} tabname 47 * @param {*} tabname
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-30 14:14:55 4 * @LastEditTime: 2023-09-12 10:52:18
5 --> 5 -->
6 <template> 6 <template>
7 <div class="container"> 7 <div class="container">
...@@ -162,7 +162,6 @@ ...@@ -162,7 +162,6 @@
162 stepForm (index) { 162 stepForm (index) {
163 getStepFormInfo(this.currentSelectProps).then((res) => { 163 getStepFormInfo(this.currentSelectProps).then((res) => {
164 if (res.code === 200) { 164 if (res.code === 200) {
165 // this.fresh++;
166 //获取单元对应的所有表单信息 165 //获取单元对应的所有表单信息
167 this.tabList = res.result; 166 this.tabList = res.result;
168 //默认加载第一个表单信息 167 //默认加载第一个表单信息
...@@ -172,6 +171,9 @@ ...@@ -172,6 +171,9 @@
172 } else { 171 } else {
173 this.tabName = res.result[0].value; 172 this.tabName = res.result[0].value;
174 } 173 }
174 if (sessionStorage.getItem('activeName') == this.tabName) {
175 this.fresh++;
176 }
175 this.ableOperation = this.tabList[0].ableOperation 177 this.ableOperation = this.tabList[0].ableOperation
176 //批量操作无分屏按钮 178 //批量操作无分屏按钮
177 if (index != null) { 179 if (index != null) {
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-12 09:01:09 4 * @LastEditTime: 2023-09-12 09:59:18
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 受理信息 --> 7 <!-- 受理信息 -->
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
9 <el-form 9 <el-form
10 :model="ruleForm" 10 :model="ruleForm"
11 :rules="rules" 11 :rules="rules"
12 class="loadingtext" 12 v-Loading="loading"
13 ref="ruleForm" 13 ref="ruleForm"
14 :label-position="flag ? 'top' : ''" 14 :label-position="flag ? 'top' : ''"
15 :inline="flag" 15 :inline="flag"
...@@ -365,18 +365,21 @@ ...@@ -365,18 +365,21 @@
365 import { mapGetters } from "vuex"; 365 import { mapGetters } from "vuex";
366 export default { 366 export default {
367 mounted () { 367 mounted () {
368 this.loading = true
368 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 369 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
369 this.propsParam = this.$attrs; 370 this.propsParam = this.$attrs;
370 var formdata = new FormData(); 371 var formdata = new FormData();
371 if (this.propsParam.djlx == "400") { 372 if (this.propsParam.djlx == "400") {
372 this.isJfOperation = true; 373 this.isJfOperation = true;
373 } 374 }
374 this.$startLoading();
375 formdata.append("bsmSldy", this.propsParam.bsmSldy); 375 formdata.append("bsmSldy", this.propsParam.bsmSldy);
376 formdata.append("bsmSlsq", this.$route.query.bsmSlsq); 376 formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
377 formdata.append("djlx", this.propsParam.djlx); 377 formdata.append("djlx", this.propsParam.djlx);
378 formdata.append("isEdit", this.viewEdit); 378 formdata.append("isEdit", this.viewEdit);
379 Init(formdata).then((res) => { 379 Init(formdata).then((res) => {
380 setTimeout(() => {
381 this.loading = false
382 }, 200)
380 if (res.code === 200 && res.result) { 383 if (res.code === 200 && res.result) {
381 this.ruleForm = res.result; 384 this.ruleForm = res.result;
382 this.czrOptions = this.ruleForm.qlrList; 385 this.czrOptions = this.ruleForm.qlrList;
...@@ -386,8 +389,9 @@ ...@@ -386,8 +389,9 @@
386 this.czr = item.sqrmc; 389 this.czr = item.sqrmc;
387 } 390 }
388 }); 391 });
389 this.$endLoading(); 392 }).catch(() => {
390 }); 393 this.loading = false
394 })
391 }, 395 },
392 components: { qlrCommonTable }, 396 components: { qlrCommonTable },
393 computed: { 397 computed: {
...@@ -395,6 +399,7 @@ ...@@ -395,6 +399,7 @@
395 }, 399 },
396 data () { 400 data () {
397 return { 401 return {
402 loading: false,
398 //表单是否可操作 403 //表单是否可操作
399 viewEdit: true, 404 viewEdit: true,
400 disabled: true, 405 disabled: true,
......
1 <!-- 1 <!--
2 * @Description: 房屋多幢受理信息 2 * @Description: 房屋多幢受理信息
3 * @Autor: ssq 3 * @Autor: ssq
4 * @LastEditTime: 2023-09-11 16:28:02 4 * @LastEditTime: 2023-09-12 09:55:25
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -271,6 +271,9 @@ ...@@ -271,6 +271,9 @@
271 formdata.append("djlx", this.propsParam.djlx); 271 formdata.append("djlx", this.propsParam.djlx);
272 formdata.append("isEdit", this.viewEdit); 272 formdata.append("isEdit", this.viewEdit);
273 Init(formdata).then((res) => { 273 Init(formdata).then((res) => {
274 setTimeout(() => {
275 this.loading = false
276 }, 200)
274 if (res.code === 200 && res.result) { 277 if (res.code === 200 && res.result) {
275 this.ruleForm = { 278 this.ruleForm = {
276 ...res.result, 279 ...res.result,
...@@ -281,16 +284,9 @@ ...@@ -281,16 +284,9 @@
281 this.czr = item.sqrmc; 284 this.czr = item.sqrmc;
282 } 285 }
283 }); 286 });
284 setTimeout(() => {
285 this.loading = false
286 }, 200)
287 //初始化发证方式,1:小证,2:大正
288 this.ruleForm.slsq.fzfs == null
289 ? (this.ruleForm.slsq.fzfs = "1")
290 : this.ruleForm.slsq.fzfs;
291 this.czrOptions = this.ruleForm.qlrList; 287 this.czrOptions = this.ruleForm.qlrList;
292 } 288 }
293 }); 289 })
294 }, 290 },
295 components: { qlrCommonTable, tdytTable, fdcqxmTable, ywrCommonTable }, 291 components: { qlrCommonTable, tdytTable, fdcqxmTable, ywrCommonTable },
296 computed: { 292 computed: {
......
1 <!-- 1 <!--
2 * @Description: 受理信息 2 * @Description: 受理信息
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-11 16:28:20 4 * @LastEditTime: 2023-09-12 10:04:14
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
9 :model="ruleForm" 9 :model="ruleForm"
10 :rules="rules" 10 :rules="rules"
11 ref="ruleForm" 11 ref="ruleForm"
12 v-Loading="loading"
12 :label-position="flag ? 'top' : ''" 13 :label-position="flag ? 'top' : ''"
13 :inline="flag" 14 :inline="flag"
14 label-width="120px"> 15 label-width="120px">
...@@ -417,6 +418,7 @@ ...@@ -417,6 +418,7 @@
417 export default { 418 export default {
418 mixins: [ywmix], 419 mixins: [ywmix],
419 mounted () { 420 mounted () {
421 this.loading = true
420 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 422 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
421 this.propsParam = this.$attrs; 423 this.propsParam = this.$attrs;
422 var formdata = new FormData(); 424 var formdata = new FormData();
...@@ -424,6 +426,9 @@ ...@@ -424,6 +426,9 @@
424 formdata.append("djlx", this.propsParam.djlx); 426 formdata.append("djlx", this.propsParam.djlx);
425 formdata.append("isEdit", this.viewEdit); 427 formdata.append("isEdit", this.viewEdit);
426 Init(formdata).then((res) => { 428 Init(formdata).then((res) => {
429 setTimeout(() => {
430 this.loading = false
431 }, 200)
427 if (res.code === 200 && res.result) { 432 if (res.code === 200 && res.result) {
428 this.ruleForm = { 433 this.ruleForm = {
429 ...res.result, 434 ...res.result,
...@@ -434,13 +439,11 @@ ...@@ -434,13 +439,11 @@
434 this.czr = item.sqrmc; 439 this.czr = item.sqrmc;
435 } 440 }
436 }); 441 });
437 //初始化发证方式,1:小证,2:大正
438 this.ruleForm.slsq.fzfs == null
439 ? (this.ruleForm.slsq.fzfs = "1")
440 : this.ruleForm.slsq.fzfs;
441 this.czrOptions = this.ruleForm.qlrList; 442 this.czrOptions = this.ruleForm.qlrList;
442 } 443 }
443 }); 444 }).catch(() => {
445 this.loading = false
446 })
444 }, 447 },
445 components: { qlrCommonTable, tdytTable, ywrCommonTable }, 448 components: { qlrCommonTable, tdytTable, ywrCommonTable },
446 computed: { 449 computed: {
...@@ -448,6 +451,7 @@ ...@@ -448,6 +451,7 @@
448 }, 451 },
449 data () { 452 data () {
450 return { 453 return {
454 loading: false,
451 mjdw: "1", 455 mjdw: "1",
452 // 键名转换,方法默认是label和children进行树状渲染 456 // 键名转换,方法默认是label和children进行树状渲染
453 normalizer (node) { 457 normalizer (node) {
...@@ -602,6 +606,7 @@ ...@@ -602,6 +606,7 @@
602 }); 606 });
603 } 607 }
604 } 608 }
609 this.$store.dispatch("user/refreshPage", false);
605 saveData(this.ruleForm).then((res) => { 610 saveData(this.ruleForm).then((res) => {
606 if (res.code === 200) { 611 if (res.code === 200) {
607 this.$message({ 612 this.$message({
...@@ -615,10 +620,10 @@ ...@@ -615,10 +620,10 @@
615 showClose: true, 620 showClose: true,
616 message: res.message, 621 message: res.message,
617 type: "error", 622 type: "error",
618 }); 623 })
619 } 624 }
620 }); 625 })
621 }, 626 }
622 }, 627 },
623 }; 628 };
624 </script> 629 </script>
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
136 label-width="200px"> 136 label-width="200px">
137 <el-radio-group 137 <el-radio-group
138 v-model="ruleForm.ygdj.sfczjzhxz" 138 v-model="ruleForm.ygdj.sfczjzhxz"
139 :disabled="!viewEdit || isJfOperation"> 139 :disabled="!viewEdit">
140 <el-radio label="1"></el-radio> 140 <el-radio label="1"></el-radio>
141 <el-radio label="0"></el-radio> 141 <el-radio label="0"></el-radio>
142 </el-radio-group> 142 </el-radio-group>
...@@ -318,14 +318,14 @@ ...@@ -318,14 +318,14 @@
318 Init(formdata).then((res) => { 318 Init(formdata).then((res) => {
319 if (res.code === 200 && res.result) { 319 if (res.code === 200 && res.result) {
320 that.ruleForm = res.result; 320 that.ruleForm = res.result;
321 this.czrOptions = this.ruleForm.qlrList; 321 that.czrOptions = this.ruleForm.qlrList;
322 this.ruleForm.qlrList.forEach((item) => { 322 that.ruleForm.qlrList.forEach((item) => {
323 if (item.sfczr == 1) { 323 if (item.sfczr == 1) {
324 this.czr = item.sqrmc; 324 that.czr = item.sqrmc;
325 } 325 }
326 }); 326 });
327 setTimeout(() => { 327 setTimeout(() => {
328 this.loading = false 328 that.loading = false
329 }, 200) 329 }, 200)
330 } 330 }
331 }) 331 })
......