bee6edb8 by 单帅旗

新增:批量房屋首次登记

1 parent c30c2bea
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-05-17 10:30:58 4 * @LastEditTime: 2023-05-17 10:30:58
5 */ 5 */
6 import request from '@/utils/request' 6 import request from '@/utils/request'
7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) 7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
8
9 /**
10 * 国有建设用地使用权/房屋所有权-批量房屋初始化
11 * @param data
12 * @author ssq 2023年5月26日14点29分
13 */
14 export function BatchInit(data){
15 let apiUrl = "";
16 switch (data.get("djlx")) {
17 case "100":
18 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/fristBatchInit";
19 break;
20 case "200":
21 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/transferInit";
22 break;
23 case "300":
24 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/changeInit";
25 break;
26 case "400":
27 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/logoutBatchSave";
28 break;
29 case "500":
30 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/riviseInit";
31 break;
32 case "901":
33 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/renewalInit";
34 break;
35 case "902":
36 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/replaceInit";
37 break;
38 }
39 return request({
40 url: apiUrl,
41 method: 'post',
42 data
43 })
44 }
8 /** 45 /**
9 * @description: 初始化内容 46 * @description: 初始化内容
10 * @param {*} data 47 * @param {*} data
11 * @author: renchao 48 * @author: renchao
12 */ 49 */
13 export function Init (data) { 50 export function Init (data) {
14 let apiUrl = ""; 51 let apiUrl = "";
15 switch (data.get("djlx")) { 52 switch (data.get("djlx")) {
16 case "100": 53 case "100":
17 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/fristInit"; 54 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/fristInit";
18 break; 55 break;
19 case "200": 56 case "200":
20 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/transferInit"; 57 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/transferInit";
21 break; 58 break;
22 case "300": 59 case "300":
23 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/changeInit"; 60 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/changeInit";
24 break; 61 break;
25 case "400": 62 case "400":
26 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/logoutInit"; 63 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/logoutInit";
27 break; 64 break;
28 case "500": 65 case "500":
29 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/riviseInit"; 66 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/riviseInit";
30 break; 67 break;
31 case "901": 68 case "901":
32 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/renewalInit"; 69 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/renewalInit";
33 break; 70 break;
34 case "902": 71 case "902":
35 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/replaceInit"; 72 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/replaceInit";
36 break; 73 break;
37 } 74 }
38 return request({ 75 return request({
39 url: apiUrl, 76 url: apiUrl,
40 method: 'post', 77 method: 'post',
41 data 78 data
42 }) 79 })
43 } 80 }
44 /** 81 /**
45 * @description: 首次登记提交 82 * @description: 首次登记提交
...@@ -47,11 +84,11 @@ export function Init (data) { ...@@ -47,11 +84,11 @@ export function Init (data) {
47 * @author: renchao 84 * @author: renchao
48 */ 85 */
49 export function saveBatchData (data) { 86 export function saveBatchData (data) {
50 return request({ 87 return request({
51 url: SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/saveBatchData", 88 url: SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/saveBatchData",
52 method: 'post', 89 method: 'post',
53 data 90 data
54 }) 91 })
55 } 92 }
56 93
57 /** 94 /**
...@@ -60,10 +97,10 @@ export function saveBatchData (data) { ...@@ -60,10 +97,10 @@ export function saveBatchData (data) {
60 * @author: renchao 97 * @author: renchao
61 */ 98 */
62 export function saveData (data) { 99 export function saveData (data) {
63 return request({ 100 return request({
64 url: SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/saveData", 101 url: SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/saveData",
65 method: 'post', 102 method: 'post',
66 data 103 data
67 }) 104 })
68 } 105 }
69 106
......
...@@ -39,151 +39,156 @@ ...@@ -39,151 +39,156 @@
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 } from "@/api/fqsq.js" 43 import { leftMenu } from "@/api/fqsq.js"
44 import { deleteSlbdcdy } from "@/api/ywbl.js"; 44 import { deleteSlbdcdy } from "@/api/ywbl.js";
45 export default { 45 export default {
46 data () { 46 data () {
47 return { 47 return {
48 //受理申请标识码 48 //受理申请标识码
49 bsmSlsq: this.$route.query.bsmSlsq, 49 bsmSlsq: this.$route.query.bsmSlsq,
50 //当前流程所在环节 50 //当前流程所在环节
51 bestepid: this.$route.query.bestepid, 51 bestepid: this.$route.query.bestepid,
52 // 默认选中 52 // 默认选中
53 activeIndex: '0', 53 activeIndex: '0',
54 // 折叠 54 // 折叠
55 isShowdrawer: true, 55 isShowdrawer: true,
56 // 批量操作 56 // 批量操作
57 showBatch: false, 57 showBatch: false,
58 //批量操作按钮名称 58 //批量操作按钮名称
59 batchButtonName: '', 59 batchButtonName: '',
60 //左侧菜单数据集合 60 //左侧菜单数据集合
61 unitData: [], 61 unitData: [],
62 // 设置表单传递数据 62 // 设置表单传递数据
63 currentSelectProps: {} 63 currentSelectProps: {}
64 } 64 }
65 }, 65 },
66 mounted () { 66 mounted () {
67 this.loadBdcdylist(); 67 this.loadBdcdylist();
68 }, 68 },
69 computed: { 69 computed: {
70 ...mapGetters(['isRefresh']) 70 ...mapGetters(['isRefresh'])
71 },
72 watch: {
73 isRefresh: {
74 handler (newVal, oldVal) {
75 if (newVal) this.loadBdcdylist()
76 },
77 immediate: true
78 }
79 },
80 methods: {
81 //读取申请单元信息
82 loadBdcdylist () {
83 var formdata = new FormData();
84 formdata.append("bsmSlsq", this.bsmSlsq);
85 formdata.append("bestepid", this.bestepid);
86 leftMenu(formdata).then((res) => {
87 if (res.code === 200 && res.result) {
88 this.unitData = res.result;
89 this.currentSelectProps = res.result[0];
90 this.$emit('getCurrentSelectProps', this.currentSelectProps);
91 this.judgeBatchShow();
92 if (this.showBatch) {
93 //满足批量查封/批量抵押按钮出现 即先展示批量表单
94 this.batchUnitClick();
95 } else {
96 //默认选择单元列表第一个
97 this.unitClick(0);
98 }
99 }
100 })
71 }, 101 },
72 watch: { 102 //批量按钮判断
73 isRefresh: { 103 judgeBatchShow () {
74 handler (newVal, oldVal) { 104 this.showBatch = false;
75 if (newVal) this.loadBdcdylist() 105 if (this.unitData.length > 1) {
76 }, 106 let qllx = this.$route.query?.sqywbm?.substring(0, 3);
77 immediate: true 107 switch (qllx) {
108 case 'A04':
109 this.showBatch = true;
110 this.batchButtonName = '批量单元信息';
111 break;
112 case 'B39':
113 this.showBatch = true;
114 this.batchButtonName = '批量查封清单信息';
115 break;
116 case 'A37':
117 this.showBatch = true;
118 this.batchButtonName = '批量抵押';
119 break;
120 default:
121 this.batchButtonName = '批量操作';
122 }
78 } 123 }
79 }, 124 },
80 methods: { 125 /**
81 //读取申请单元信息 126 * @description: 删除左侧列表
82 loadBdcdylist () { 127 * @param {*} item
83 var formdata = new FormData(); 128 * @author: renchao
84 formdata.append("bsmSlsq", this.bsmSlsq); 129 */
85 formdata.append("bestepid", this.bestepid); 130 handleDel (item) {
86 leftMenu(formdata).then((res) => { 131 this.$confirm("确定要删除吗, 是否继续?", "提示", {
87 if (res.code === 200 && res.result) { 132 confirmButtonText: "确定",
88 this.unitData = res.result; 133 cancelButtonText: "取消",
89 this.currentSelectProps = res.result[0]; 134 type: "warning",
90 this.$emit('getCurrentSelectProps', this.currentSelectProps); 135 })
91 this.judgeBatchShow(); 136 .then(() => {
92 if (this.showBatch) { 137 var formdata = new FormData();
93 //满足批量查封/批量抵押按钮出现 即先展示批量表单 138 formdata.append("bsmSldyList", item.bsmSldy.split(","));
94 this.batchUnitClick(); 139 // formdata.append("bsmSlsq", this.bsmSlsq);
140 deleteSlbdcdy(formdata).then((res) => {
141 if (res.code == 200) {
142 this.$message.success("删除成功");
143 /**
144 * @description: 更新列表
145 * @author: miaofang
146 */
147 this.loadBdcdylist()
148 // this.$parent.updateDialog();
95 } else { 149 } else {
96 //默认选择单元列表第一个 150 this.$message.error(res.message);
97 this.unitClick(0);
98 } 151 }
99 } 152 });
100 })
101 },
102 //批量按钮判断
103 judgeBatchShow () {
104 this.showBatch = false;
105 if (this.unitData.length > 1) {
106 let qllx = this.$route.query?.sqywbm?.substring(0, 3);
107 switch (qllx) {
108 case 'B39':
109 this.showBatch = true;
110 this.batchButtonName = '批量查封清单信息';
111 break;
112 case 'A37':
113 this.showBatch = true;
114 this.batchButtonName = '批量抵押';
115 break;
116 default:
117 this.batchButtonName = '批量操作';
118 }
119 }
120 },
121 /**
122 * @description: 删除左侧列表
123 * @param {*} item
124 * @author: renchao
125 */
126 handleDel (item) {
127 this.$confirm("确定要删除吗, 是否继续?", "提示", {
128 confirmButtonText: "确定",
129 cancelButtonText: "取消",
130 type: "warning",
131 }) 153 })
132 .then(() => { 154 .catch(() => {
133 var formdata = new FormData(); 155 this.$message({
134 formdata.append("bsmSldyList", item.bsmSldy.split(",")); 156 type: "info",
135 // formdata.append("bsmSlsq", this.bsmSlsq); 157 message: "已取消删除",
136 deleteSlbdcdy(formdata).then((res) => {
137 if (res.code == 200) {
138 this.$message.success("删除成功");
139 /**
140 * @description: 更新列表
141 * @author: miaofang
142 */
143 this.loadBdcdylist()
144 // this.$parent.updateDialog();
145 } else {
146 this.$message.error(res.message);
147 }
148 });
149 })
150 .catch(() => {
151 this.$message({
152 type: "info",
153 message: "已取消删除",
154 });
155 }); 158 });
156 }, 159 });
157 //批量按钮点击事件 160 },
158 batchUnitClick () { 161 //批量按钮点击事件
159 this.currentSelectProps.batchOperation = true; 162 batchUnitClick () {
160 this.activeIndex = "-1"; 163 this.currentSelectProps.batchOperation = true;
161 this.$parent.stepForm(); 164 this.activeIndex = "-1";
162 }, 165 this.$parent.stepForm();
163 //批量操作 166
164 handleBatchDel () { 167 },
165 this.$popupDialog("批量删除", "workflow/components/batchDel", { 168 //批量操作
166 bsmSlsq: this.bsmSlsq, 169 handleBatchDel () {
167 dataList: this.unitData, 170 this.$popupDialog("批量删除", "workflow/components/batchDel", {
168 }, '50%', true) 171 bsmSlsq: this.bsmSlsq,
169 }, 172 dataList: this.unitData,
170 //申请单元点击事件 173 }, '50%', true)
171 unitClick (index) { 174 },
172 this.currentSelectProps = this.unitData[index]; 175 //申请单元点击事件
173 this.currentSelectProps.batchOperation = false; 176 unitClick (index) {
174 this.activeIndex = index.toString(); 177 this.currentSelectProps = this.unitData[index];
175 //选中表单传递数据 178 this.currentSelectProps.batchOperation = false;
176 this.$emit('getCurrentSelectProps', this.currentSelectProps); 179 this.activeIndex = index.toString();
177 this.$parent.stepForm(index); 180 //选中表单传递数据
178 this.$store.dispatch('user/refreshPage', false); 181 this.$emit('getCurrentSelectProps', this.currentSelectProps);
179 } 182 this.$parent.stepForm(index);
183 this.$store.dispatch('user/refreshPage', false);
180 } 184 }
181 } 185 }
186 }
182 </script> 187 </script>
183 <style scoped lang='scss'> 188 <style scoped lang='scss'>
184 @import "~@/styles/mixin.scss"; 189 @import "~@/styles/mixin.scss";
185 @import "../../workFrame.scss"; 190 @import "../../workFrame.scss";
186 .leftmenu ul { 191 .leftmenu ul {
187 height: calc(100vh - 120px); 192 height: calc(100vh - 120px);
188 } 193 }
189 </style> 194 </style>
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-05-29 14:39:11 4 * @LastEditTime: 2023-05-29 14:39:11
5 */ 5 */
6 //流程环节操作按钮 6 //流程环节操作按钮
7 export function getForm (tabName, djywbm) { 7 export function getForm(tabName, djywbm) {
8 let form; 8 let form;
9 switch (tabName) { 9 switch (tabName) {
10 case "jsydsyqslxx100": 10 case "jsydsyqslxx100":
11 form = require("@/views/ywbl/slsqxx/jsydsyq/slxx.vue"); 11 form = require("@/views/ywbl/slsqxx/jsydsyq/slxx.vue");
12 break; 12 break;
13 case "jsydsyqslxx300": 13 case "jsydsyqslxx300":
14 form = require("@/views/ywbl/slsqxx/jsydsyq/slxx300.vue"); 14 form = require("@/views/ywbl/slsqxx/jsydsyq/slxx300.vue");
15 break; 15 break;
16 case "fwsyqslxx100": 16 case "fwsyqslxx100":
17 form = require("@/views/ywbl/slsqxx/fdcq2/slxx.vue"); 17 form = require("@/views/ywbl/slsqxx/fdcq2/slxx.vue");
18 break; 18 break;
19 case "fwsyqslxx300": 19 case "fwsyqslxx300":
20 form = require("@/views/ywbl/slsqxx/fdcq2/slxx300.vue"); 20 form = require("@/views/ywbl/slsqxx/fdcq2/slxx300.vue");
21 break; 21 break;
22 case "nydsyqslxx100": 22 case "nydsyqslxx100":
23 form = require("@/views/ywbl/slsqxx/nydsyq/slxx.vue"); 23 form = require("@/views/ywbl/slsqxx/nydsyq/slxx.vue");
24 break; 24 break;
25 case "nydsyqslxx200": 25 case "plfdcq2":
26 form = require("@/views/ywbl/slsqxx/nydsyq/slxx200.vue"); 26 form = require("@/views/ywbl/slsqxx/fdcq2/slxxOverview.vue");
27 break; 27 break;
28 case "tdslxxCfdj": 28 case "nydsyqslxx200":
29 form = require("@/views/ywbl/slsqxx/cfdj/tdslxx.vue"); 29 form = require("@/views/ywbl/slsqxx/nydsyq/slxx200.vue");
30 break; 30 break;
31 case "plslxxCfdj": 31 case "tdslxxCfdj":
32 form = require("@/views/ywbl/slsqxx/cfdj/plcfslxx.vue"); 32 form = require("@/views/ywbl/slsqxx/cfdj/tdslxx.vue");
33 break; 33 break;
34 case "diyaqSlxx": 34 case "plslxxCfdj":
35 form = require("@/views/ywbl/slsqxx/diyaq/slxx.vue"); 35 form = require("@/views/ywbl/slsqxx/cfdj/plcfslxx.vue");
36 break; 36 break;
37 case "diyaqSlxx200": 37 case "diyaqSlxx":
38 form = require("@/views/ywbl/slsqxx/diyaq/slxx200.vue"); 38 form = require("@/views/ywbl/slsqxx/diyaq/slxx.vue");
39 break; 39 break;
40 case "diyaqSlxx300": 40 case "diyaqSlxx200":
41 form = require("@/views/ywbl/slsqxx/diyaq/slxx200.vue"); 41 form = require("@/views/ywbl/slsqxx/diyaq/slxx200.vue");
42 break; 42 break;
43 case "clxx": 43 case "diyaqSlxx300":
44 form = require("@/views/workflow/components/clxxUnify.vue"); 44 form = require("@/views/ywbl/slsqxx/diyaq/slxx200.vue");
45 break; 45 break;
46 case "spyj": 46 case "clxx":
47 form = require("@/views/workflow/components/spyj.vue"); 47 form = require("@/views/workflow/components/clxxUnify.vue");
48 break; 48 break;
49 case "zdjbxx": 49 case "spyj":
50 form = require("@/views/registerBook/zdjbxx.vue"); 50 form = require("@/views/workflow/components/spyj.vue");
51 break; 51 break;
52 case "ygmm100": 52 case "zdjbxx":
53 form = require("@/views/ywbl/slsqxx/ygdj/slxx.vue"); 53 form = require("@/views/registerBook/zdjbxx.vue");
54 break; 54 break;
55 case "ygmm300": 55 case "ygmm100":
56 form = require("@/views/ywbl/slsqxx/ygdj/slxx300.vue"); 56 form = require("@/views/ywbl/slsqxx/ygdj/slxx.vue");
57 break; 57 break;
58 case "ygdy100": 58 case "ygmm300":
59 case "ygdy300": 59 form = require("@/views/ywbl/slsqxx/ygdj/slxx300.vue");
60 form = require("@/views/ywbl/slsqxx/ygdy/slxx.vue"); 60 break;
61 break; 61 case "ygdy100":
62 case "zjgcdyqSlxx": 62 case "ygdy300":
63 form = require("@/views/ywbl/slsqxx/zjgcdy/slxx.vue"); 63 form = require("@/views/ywbl/slsqxx/ygdy/slxx.vue");
64 break; 64 break;
65 case "cfdjxx": 65 case "zjgcdyqSlxx":
66 form = require("@/views/registerBook/cfdj.vue"); 66 form = require("@/views/ywbl/slsqxx/zjgcdy/slxx.vue");
67 break; 67 break;
68 case "jsydsyqQlxx": 68 case "cfdjxx":
69 form = require("@/views/registerBook/jsydsyq.vue"); 69 form = require("@/views/registerBook/cfdj.vue");
70 break; 70 break;
71 case "nydsyqQlxx": 71 case "jsydsyqQlxx":
72 form = require("@/views/registerBook/nydsyq.vue"); 72 form = require("@/views/registerBook/jsydsyq.vue");
73 break; 73 break;
74 case "fdcq2Qlxx": 74 case "nydsyqQlxx":
75 form = require("@/views/registerBook/fdcq2.vue"); 75 form = require("@/views/registerBook/nydsyq.vue");
76 break; 76 break;
77 case "diyaqQlxx": 77 case "fdcq2Qlxx":
78 form = require("@/views/registerBook/diyaq.vue"); 78 form = require("@/views/registerBook/fdcq2.vue");
79 break; 79 break;
80 case "ygdjQlxx": 80 case "diyaqQlxx":
81 form = require("@/views/registerBook/ygdj.vue"); 81 form = require("@/views/registerBook/diyaq.vue");
82 break; 82 break;
83 case "szxx": 83 case "ygdjQlxx":
84 form = require("@/views/workflow/components/szxx.vue"); 84 form = require("@/views/registerBook/ygdj.vue");
85 break; 85 break;
86 case "fzxx": 86 case "szxx":
87 form = require("@/views/workflow/components/fzxx.vue"); 87 form = require("@/views/workflow/components/szxx.vue");
88 break; 88 break;
89 case "zdt": 89 case "fzxx":
90 form = require("@/views/workflow/components/zdt.vue"); 90 form = require("@/views/workflow/components/fzxx.vue");
91 break; 91 break;
92 default: 92 case "zdt":
93 form = require("@/views/error-page/404.vue"); 93 form = require("@/views/workflow/components/zdt.vue");
94 break; 94 break;
95 } 95 default:
96 return (r) => require.ensure([], () => r(form)); 96 form = require("@/views/error-page/404.vue");
97 break;
98 }
99 return (r) => require.ensure([], () => r(form));
97 } 100 }
......