ef48ed1e by xiaomiao

--no commit message

1 parent 5fea91c9
...@@ -5,8 +5,14 @@ ...@@ -5,8 +5,14 @@
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
8 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" :inline="flag" 8 <el-form
9 label-width="130px"> 9 :model="ruleForm"
10 :rules="rules"
11 ref="ruleForm"
12 :label-position="flag ? 'top' : ''"
13 :inline="flag"
14 label-width="130px"
15 >
10 <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> 16 <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
11 <div class="slxx_title title-block"> 17 <div class="slxx_title title-block">
12 受理信息 18 受理信息
...@@ -30,14 +36,20 @@ ...@@ -30,14 +36,20 @@
30 </el-col> 36 </el-col>
31 </el-row> 37 </el-row>
32 <el-row :gutter="10" v-if="ruleForm.slsq"> 38 <el-row :gutter="10" v-if="ruleForm.slsq">
33 <el-col :span="8" v-if="ruleForm.sldyList.length>0"> 39 <el-col :span="8" v-if="ruleForm.sldyList.length > 0">
34 <el-form-item label="权利类型:"> 40 <el-form-item label="权利类型:">
35 <el-input disabled v-model="ruleForm.sldyList[0].qllxmc"></el-input> 41 <el-input
42 disabled
43 v-model="ruleForm.sldyList[0].qllxmc"
44 ></el-input>
36 </el-form-item> 45 </el-form-item>
37 </el-col> 46 </el-col>
38 <el-col :span="8" v-if="ruleForm.sldyList.length>0"> 47 <el-col :span="8" v-if="ruleForm.sldyList.length > 0">
39 <el-form-item label="登记类型:"> 48 <el-form-item label="登记类型:">
40 <el-input disabled v-model="ruleForm.sldyList[0].djlxmc"></el-input> 49 <el-input
50 disabled
51 v-model="ruleForm.sldyList[0].djlxmc"
52 ></el-input>
41 </el-form-item> 53 </el-form-item>
42 </el-col> 54 </el-col>
43 <el-col :span="8"> 55 <el-col :span="8">
...@@ -99,10 +111,13 @@ ...@@ -99,10 +111,13 @@
99 <div class="triangle"></div> 111 <div class="triangle"></div>
100 </div> 112 </div>
101 <el-row :gutter="10"> 113 <el-row :gutter="10">
102 <el-col :span="14" v-if="ruleForm.sldyList.length>0"> 114 <el-col :span="14" v-if="ruleForm.sldyList.length > 0">
103 <el-form-item label="共有方式:"> 115 <el-form-item label="共有方式:">
104 <el-radio-group :disabled="!ableOperation" @change="showCZInfo" 116 <el-radio-group
105 v-model="ruleForm.sldyList[0].gyfs"> 117 :disabled="!ableOperation"
118 @change="showCZInfo"
119 v-model="ruleForm.sldyList[0].gyfs"
120 >
106 <el-radio label="0">单独所有</el-radio> 121 <el-radio label="0">单独所有</el-radio>
107 <el-radio label="1">共同共有</el-radio> 122 <el-radio label="1">共同共有</el-radio>
108 <el-radio label="2">按份所有</el-radio> 123 <el-radio label="2">按份所有</el-radio>
...@@ -111,31 +126,49 @@ ...@@ -111,31 +126,49 @@
111 </el-form-item> 126 </el-form-item>
112 </el-col> 127 </el-col>
113 128
114 <el-col :span="5" v-show="ruleForm.sldyList.length>0 && ruleForm.slsq.gyfs != '0'"> 129 <el-col
115 <el-form-item label="是否分别持证:" v-if="ruleForm.sldyList.length>0"> 130 :span="5"
131 v-show="ruleForm.sldyList.length > 0 && ruleForm.slsq.gyfs != '0'"
132 >
133 <el-form-item
134 label="是否分别持证:"
135 v-if="ruleForm.sldyList.length > 0"
136 >
116 <el-radio-group v-model="ruleForm.sldyList[0].sqfbcz"> 137 <el-radio-group v-model="ruleForm.sldyList[0].sqfbcz">
117 <el-radio label="1"></el-radio> 138 <el-radio label="1"></el-radio>
118 <el-radio label="0"></el-radio> 139 <el-radio label="0"></el-radio>
119 </el-radio-group> 140 </el-radio-group>
120 </el-form-item> 141 </el-form-item>
121 </el-col> 142 </el-col>
122 <el-col :span="5" v-show="ruleForm.sldyList.length>0 && ruleForm.sldyList[0].gyfs != '0'"> 143 <el-col
144 :span="5"
145 v-show="
146 ruleForm.sldyList.length > 0 && ruleForm.sldyList[0].gyfs != '0'
147 "
148 >
123 <el-form-item label="持证人:"> 149 <el-form-item label="持证人:">
124 <el-input v-model="ruleForm.slsq.czr"></el-input> 150 <el-input v-model="ruleForm.slsq.czr"></el-input>
125 </el-form-item> 151 </el-form-item>
126 </el-col> 152 </el-col>
127 </el-row> 153 </el-row>
128 <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" 154 <qlrCommonTable
129 :gyfs="ruleForm.slsq.gyfs" /> 155 @upDateQlrxxList="upDateQlrxxList"
156 :tableData="ruleForm.qlrList"
157 :gyfs="ruleForm.slsq.gyfs"
158 />
130 <div class="slxx_title title-block"> 159 <div class="slxx_title title-block">
131 登记原因 160 登记原因
132 <div class="triangle"></div> 161 <div class="triangle"></div>
133 </div> 162 </div>
134 <el-row :gutter="10"> 163 <el-row :gutter="10">
135 <el-col v-if="ruleForm.fdcq2List.length>0"> 164 <el-col v-if="ruleForm.fdcq2List.length > 0">
136 <el-form-item v-if="ruleForm.slsq" label="登记原因:" prop="djyy"> 165 <el-form-item v-if="ruleForm.slsq" label="登记原因:" prop="djyy">
137 <el-input class="textArea" type="textarea" :disabled="!ableOperation" 166 <el-input
138 v-model="ruleForm.fdcq2List[0].djyy"> 167 class="textArea"
168 type="textarea"
169 :disabled="!ableOperation"
170 v-model="ruleForm.fdcq2List[0].djyy"
171 >
139 </el-input> 172 </el-input>
140 </el-form-item> 173 </el-form-item>
141 </el-col> 174 </el-col>
...@@ -150,14 +183,19 @@ ...@@ -150,14 +183,19 @@
150 </div> 183 </div>
151 </template> 184 </template>
152 <script> 185 <script>
153 import ywmix from "@/views/ywbl/mixin/index" 186 import ywmix from "@/views/ywbl/mixin/index";
154 import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; 187 import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
155 import { BatchInit, Init, saveBatchData, saveData } from "@/api/workflow/fwsyqFlow.js"; 188 import {
156 import { mapGetters } from "vuex"; 189 BatchInit,
157 export default { 190 Init,
191 saveBatchData,
192 saveData,
193 } from "@/api/workflow/fwsyqFlow.js";
194 import { mapGetters } from "vuex";
195 export default {
158 mixins: [ywmix], 196 mixins: [ywmix],
159 mounted (callbackfn, thisArg) { 197 mounted(callbackfn, thisArg) {
160 this.ableOperation = this.$parent.currentSelectTab.ableOperation 198 this.ableOperation = this.$parent.currentSelectTab.ableOperation;
161 this.propsParam = this.$attrs; 199 this.propsParam = this.$attrs;
162 var formdata = new FormData(); 200 var formdata = new FormData();
163 formdata.append("bsmSldy", this.propsParam.bsmSldy); 201 formdata.append("bsmSldy", this.propsParam.bsmSldy);
...@@ -169,44 +207,45 @@ ...@@ -169,44 +207,45 @@
169 this.ruleForm = res.result; 207 this.ruleForm = res.result;
170 this.splicingFdcq2Info(); 208 this.splicingFdcq2Info();
171 } 209 }
172 }) 210 });
173 }, 211 },
174 components: { qlrCommonTable }, 212 components: { qlrCommonTable },
175 computed: { 213 computed: {
176 ...mapGetters(["dictData", "flag"]) 214 ...mapGetters(["dictData", "flag"]),
177 }, 215 },
178 data () { 216 data() {
179 return { 217 return {
180 disabled: true, 218 disabled: true,
181 tdytOption: [], 219 tdytOption: [],
182 ruleForm: { 220 ruleForm: {
183 cfdjList: []//查封登记 221 cfdjList: [], //查封登记
184 , diyaqList: []//抵押权 222 diyaqList: [], //抵押权
185 , fdcq2List: []//房屋信息集合 223 fdcq2List: [], //房屋信息集合
186 , qlrList: []//权利人 224 qlrList: [], //权利人
187 , ywrList: []//义务人 225 ywrList: [], //义务人
188 , qlxxList: []//权利信息集合 226 qlxxList: [], //权利信息集合
189 , sldyList: []//受理不动产单元集合 227 sldyList: [], //受理不动产单元集合
190 , slsq: {}//受理申请流程明细 228 slsq: {}, //受理申请流程明细
191 , flow: {}//受理申请流程明细 229 flow: {}, //受理申请流程明细
192 , sqrList: []//申请人 230 sqrList: [], //申请人
193 , ssQlxxList: []//上手权利信息 231 ssQlxxList: [], //上手权利信息
194 , user: {}//用户 232 user: {}, //用户
195 , zdjbxx: {}//宗地基本信息 233 zdjbxx: {}, //宗地基本信息
196 }, 234 },
197 //传递参数 235 //传递参数
198 propsParam: this.$attrs, 236 propsParam: this.$attrs,
199 //表单是否可操作 237 //表单是否可操作
200 ableOperation: true, 238 ableOperation: true,
201 rules: {}, 239 rules: {},
202 bsmSlsq: this.$route.query.bsmSlsq,//受理申请标识码 240 bsmSlsq: this.$route.query.bsmSlsq, //受理申请标识码
203 splicingFdcq2: {//前端根据后台数组组装展示内容 241 splicingFdcq2: {
204 fwxz: ''//房屋性质 242 //前端根据后台数组组装展示内容
205 , fwjg: ''//房屋结构 243 fwxz: "", //房屋性质
206 , jzmj: '' //建筑面积 244 fwjg: "", //房屋结构
207 , zts: ''//房屋总套数 245 jzmj: "", //建筑面积
208 } 246 zts: "", //房屋总套数
209 } 247 },
248 };
210 }, 249 },
211 methods: { 250 methods: {
212 //组装房地产权通用信息 251 //组装房地产权通用信息
...@@ -214,16 +253,16 @@ ...@@ -214,16 +253,16 @@
214 * @description: 组装房地产权通用信息 253 * @description: 组装房地产权通用信息
215 * @author: renchao 254 * @author: renchao
216 */ 255 */
217 splicingFdcq2Info () { 256 splicingFdcq2Info() {
218 let fdcq2List = this.ruleForm.fdcq2List; 257 let fdcq2List = this.ruleForm.fdcq2List;
219 let fwxzArr = []; 258 let fwxzArr = [];
220 let fwjgArr = []; 259 let fwjgArr = [];
221 let jzmj = 0; 260 let jzmj = 0;
222 fdcq2List.forEach(fdcq2 => { 261 fdcq2List.forEach((fdcq2) => {
223 fwxzArr.push(fdcq2.fwxzmc); 262 fwxzArr.push(fdcq2.fwxzmc);
224 fwjgArr.push(fdcq2.fwjgmc); 263 fwjgArr.push(fdcq2.fwjgmc);
225 jzmj += parseFloat(fdcq2.jzmj); 264 jzmj += parseFloat(fdcq2.jzmj);
226 }) 265 });
227 //将数据转为字符串 266 //将数据转为字符串
228 //房屋性质 267 //房屋性质
229 let fwxz = Array.from(new Set(fwxzArr)).join(","); 268 let fwxz = Array.from(new Set(fwxzArr)).join(",");
...@@ -233,7 +272,6 @@ ...@@ -233,7 +272,6 @@
233 this.splicingFdcq2.fwjg = fwjg; 272 this.splicingFdcq2.fwjg = fwjg;
234 this.splicingFdcq2.jzmj = jzmj == null ? 0 : jzmj; 273 this.splicingFdcq2.jzmj = jzmj == null ? 0 : jzmj;
235 this.splicingFdcq2.zts = fdcq2List.length; 274 this.splicingFdcq2.zts = fdcq2List.length;
236
237 }, 275 },
238 276
239 // 更新权利人信息 277 // 更新权利人信息
...@@ -242,14 +280,14 @@ ...@@ -242,14 +280,14 @@
242 * @param {*} val 280 * @param {*} val
243 * @author: renchao 281 * @author: renchao
244 */ 282 */
245 upDateQlrxxList (val) { 283 upDateQlrxxList(val) {
246 this.ruleForm.qlrList = _.cloneDeep(val); 284 this.ruleForm.qlrList = _.cloneDeep(val);
247 }, 285 },
248 /** 286 /**
249 * @description: showCZInfo 287 * @description: showCZInfo
250 * @author: renchao 288 * @author: renchao
251 */ 289 */
252 showCZInfo () { 290 showCZInfo() {
253 console.log(this.ruleForm.slsq.gyfs); 291 console.log(this.ruleForm.slsq.gyfs);
254 }, 292 },
255 // 更新义务人信息 293 // 更新义务人信息
...@@ -258,14 +296,14 @@ ...@@ -258,14 +296,14 @@
258 * @param {*} val 296 * @param {*} val
259 * @author: renchao 297 * @author: renchao
260 */ 298 */
261 upDateYwrxxList (val) { 299 upDateYwrxxList(val) {
262 this.ruleForm.ywrList = _.cloneDeep(val); 300 this.ruleForm.ywrList = _.cloneDeep(val);
263 }, 301 },
264 /** 302 /**
265 * @description: onSubmit 303 * @description: onSubmit
266 * @author: renchao 304 * @author: renchao
267 */ 305 */
268 onSubmit () { 306 onSubmit() {
269 saveBatchData(this.ruleForm).then((res) => { 307 saveBatchData(this.ruleForm).then((res) => {
270 if (res.code === 200) { 308 if (res.code === 200) {
271 this.$message({ 309 this.$message({
...@@ -273,66 +311,66 @@ ...@@ -273,66 +311,66 @@
273 message: "保存成功!", 311 message: "保存成功!",
274 type: "success", 312 type: "success",
275 }); 313 });
276 this.$store.dispatch('user/refreshPage', true); 314 this.$store.dispatch("user/refreshPage", true);
277 } else { 315 } else {
278 this.$message({ 316 this.$message({
279 showClose: true, 317 showClose: true,
280 message: res.message, 318 message: res.message,
281 type: "error" 319 type: "error",
282 }) 320 });
283 }
284 })
285 }
286 }
287 } 321 }
322 });
323 },
324 },
325 };
288 </script> 326 </script>
289 <style scoped lang='scss'> 327 <style scoped lang="scss">
290 @import "~@/styles/public.scss"; 328 @import "~@/styles/public.scss";
291 329
292 /deep/.el-form { 330 /deep/.el-form {
293 display: flex; 331 display: flex;
294 flex-direction: column; 332 flex-direction: column;
295 height: calc(100vh - 130px); 333 height: calc(100vh - 130px);
296 } 334 }
297 335
298 /deep/.el-form-item__label { 336 /deep/.el-form-item__label {
299 padding: 0; 337 padding: 0;
300 } 338 }
301 339
302 /deep/.el-radio { 340 /deep/.el-radio {
303 margin-right: 10px; 341 margin-right: 10px;
304 } 342 }
305 343
306 /deep/.el-select { 344 /deep/.el-select {
307 width: 100%; 345 width: 100%;
308 } 346 }
309 347
310 /deep/.el-form-item { 348 /deep/.el-form-item {
311 margin-bottom: 8px; 349 margin-bottom: 8px;
312 } 350 }
313 351
314 .marginBot0 { 352 .marginBot0 {
315 margin-bottom: 0 !important; 353 margin-bottom: 0 !important;
316 } 354 }
317 355
318 .slxx { 356 .slxx {
319 box-sizing: border-box; 357 box-sizing: border-box;
320 } 358 }
321 359
322 .slxx_con { 360 .slxx_con {
323 flex: 1; 361 flex: 1;
324 height: 100%; 362 height: 100%;
325 background-color: #ffffff; 363 background-color: #ffffff;
326 overflow-y: auto; 364 overflow-y: auto;
327 padding-right: 3px; 365 padding-right: 3px;
328 overflow-x: hidden; 366 overflow-x: hidden;
329 } 367 }
330 368
331 .submit_btn { 369 .submit_btn {
332 height: 50px; 370 height: 50px;
333 } 371 }
334 372
335 .slxx_title { 373 .slxx_title {
336 border-bottom: 1px solid $borderColor; 374 border-bottom: 1px solid $borderColor;
337 padding-left: 10px; 375 padding-left: 10px;
338 padding-bottom: 5px; 376 padding-bottom: 5px;
...@@ -341,23 +379,23 @@ ...@@ -341,23 +379,23 @@
341 font-size: 16px; 379 font-size: 16px;
342 font-weight: 500; 380 font-weight: 500;
343 color: #4a4a4a; 381 color: #4a4a4a;
344 } 382 }
345 383
346 .btn { 384 .btn {
347 text-align: center; 385 text-align: center;
348 padding-top: 10px; 386 padding-top: 10px;
349 height: 36px; 387 height: 36px;
350 background-color: #ffffff; 388 background-color: #ffffff;
351 padding: 5px 0; 389 padding: 5px 0;
352 } 390 }
353 391
354 .textArea { 392 .textArea {
355 /deep/.el-textarea__inner { 393 /deep/.el-textarea__inner {
356 min-height: 90px !important; 394 min-height: 90px !important;
357 } 395 }
358 } 396 }
359 397
360 /deep/.el-form-item__label { 398 /deep/.el-form-item__label {
361 padding-bottom: 0px; 399 padding-bottom: 0px;
362 } 400 }
363 </style> 401 </style>
......