Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
18 changed files
with
951 additions
and
182 deletions
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | :show-message="false" | 4 | :show-message="false" |
5 | * @LastEditTime: 2023-08-04 16:35:53 | 5 | * @LastEditTime: 2023-08-17 13:23:51 |
6 | --> | 6 | --> |
7 | <template> | 7 | <template> |
8 | <!-- 受理信息 --> | 8 | <!-- 受理信息 --> |
... | @@ -212,15 +212,6 @@ | ... | @@ -212,15 +212,6 @@ |
212 | </el-select> | 212 | </el-select> |
213 | </el-form-item> | 213 | </el-form-item> |
214 | </el-col> | 214 | </el-col> |
215 | <!-- <el-col :span="8"> | ||
216 | <el-form-item | ||
217 | label="不动产权证号:" | ||
218 | prop="qlxx.bdcqzh" | ||
219 | :rules="rules.bdcqzhrules" | ||
220 | > | ||
221 | <el-input v-model="ruleForm.qlxx.bdcqzh"></el-input> | ||
222 | </el-form-item> | ||
223 | </el-col> --> | ||
224 | <el-col :span="8"> | 215 | <el-col :span="8"> |
225 | <el-form-item label="查封机关:"> | 216 | <el-form-item label="查封机关:"> |
226 | <el-input v-model="ruleForm.cfdj.cfjg"></el-input> | 217 | <el-input v-model="ruleForm.cfdj.cfjg"></el-input> |
... | @@ -274,15 +265,6 @@ | ... | @@ -274,15 +265,6 @@ |
274 | <el-input v-model="ruleForm.cfdj.cffw"></el-input> | 265 | <el-input v-model="ruleForm.cfdj.cffw"></el-input> |
275 | </el-form-item> | 266 | </el-form-item> |
276 | </el-col> | 267 | </el-col> |
277 | <!-- <el-col :span="8"> | ||
278 | <el-form-item | ||
279 | label="区县代码:" | ||
280 | prop="qlxx.qxdm" | ||
281 | :rules="rules.qxdmrules" | ||
282 | > | ||
283 | <el-input v-model="ruleForm.qlxx.qxdm"></el-input> | ||
284 | </el-form-item> | ||
285 | </el-col> --> | ||
286 | <el-col :span="8"> | 268 | <el-col :span="8"> |
287 | <el-form-item | 269 | <el-form-item |
288 | label="登记机构:" | 270 | label="登记机构:" |
... | @@ -315,7 +297,7 @@ | ... | @@ -315,7 +297,7 @@ |
315 | </el-date-picker> | 297 | </el-date-picker> |
316 | </el-form-item> | 298 | </el-form-item> |
317 | </el-col> | 299 | </el-col> |
318 | <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'"> | 300 | <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'"> |
319 | <el-form-item label="解封业务号:"> | 301 | <el-form-item label="解封业务号:"> |
320 | <el-input maxlength="11" v-model="ruleForm.qlxx.zxywh"></el-input> | 302 | <el-input maxlength="11" v-model="ruleForm.qlxx.zxywh"></el-input> |
321 | </el-form-item> | 303 | </el-form-item> |
... | @@ -355,7 +337,7 @@ | ... | @@ -355,7 +337,7 @@ |
355 | </el-date-picker> | 337 | </el-date-picker> |
356 | </el-form-item> | 338 | </el-form-item> |
357 | </el-col> | 339 | </el-col> |
358 | <el-col :span="24"> | 340 | <el-col :span="24"> |
359 | <el-form-item label="附记:"> | 341 | <el-form-item label="附记:"> |
360 | <el-input v-model="ruleForm.cfdj.fj"></el-input> | 342 | <el-input v-model="ruleForm.cfdj.fj"></el-input> |
361 | </el-form-item> | 343 | </el-form-item> |
... | @@ -560,9 +542,9 @@ | ... | @@ -560,9 +542,9 @@ |
560 | init(this.propsParam).then((res) => { | 542 | init(this.propsParam).then((res) => { |
561 | if (res.code == 200) { | 543 | if (res.code == 200) { |
562 | this.ruleForm = res.result; | 544 | this.ruleForm = res.result; |
563 | if(this.ruleForm.cfdj){ | 545 | if (this.ruleForm.cfdj) { |
564 | this.ruleForm.cfdj.sfbxf="2" | 546 | this.ruleForm.cfdj.sfbxf = "2" |
565 | } | 547 | } |
566 | this.isShow = true; | 548 | this.isShow = true; |
567 | let djlx = this.ruleForm.qlxx.djlx; | 549 | let djlx = this.ruleForm.qlxx.djlx; |
568 | this.$endLoading(); | 550 | this.$endLoading(); | ... | ... |
... | @@ -28,44 +28,107 @@ | ... | @@ -28,44 +28,107 @@ |
28 | </el-table-column> | 28 | </el-table-column> |
29 | <el-table-column prop="xmmc" label="项目名称" min-width="100"> | 29 | <el-table-column prop="xmmc" label="项目名称" min-width="100"> |
30 | <template slot-scope="scope"> | 30 | <template slot-scope="scope"> |
31 | <div style="text-align: center">{{ scope.row.xmmc }}</div> | 31 | <el-input |
32 | class="item" | ||
33 | :disabled="!ableOperation" | ||
34 | v-model="scope.row.xmmc" | ||
35 | placeholder="请输入内容" | ||
36 | @input="updaterow(scope.row)" | ||
37 | > | ||
38 | </el-input> | ||
32 | </template> | 39 | </template> |
33 | </el-table-column> | 40 | </el-table-column> |
34 | <el-table-column prop="zcs" label="总层数" min-width="100"> | 41 | |
42 | <el-table-column prop="ghyt" label="房屋用途" min-width="100"> | ||
35 | <template slot-scope="scope"> | 43 | <template slot-scope="scope"> |
36 | <div style="text-align: center">{{ scope.row.zcs }}</div> | 44 | <treeselect |
45 | v-model="scope.row.ghyt" | ||
46 | :disabled="!ableOperation" | ||
47 | noOptionsText="暂无数据" | ||
48 | placeholder="" | ||
49 | :show-count="true" | ||
50 | :options="dictData['A17']" | ||
51 | :normalizer="normalizer" | ||
52 | :appendToBody="true" | ||
53 | z-index="9999" | ||
54 | @input="updaterow(scope.row)" | ||
55 | /> | ||
37 | </template> | 56 | </template> |
38 | </el-table-column> | 57 | </el-table-column> |
39 | <el-table-column prop="ytmc" label="房屋用途" min-width="100"> | 58 | <el-table-column prop="fwjg" label="房屋结构" min-width="100"> |
40 | <template slot-scope="scope"> | 59 | <template slot-scope="scope"> |
41 | <div style="text-align: center">{{ scope.row.ytmc }}</div> | 60 | <treeselect |
61 | v-model="scope.row.fwjg" | ||
62 | :disabled="!ableOperation" | ||
63 | noOptionsText="暂无数据" | ||
64 | placeholder="" | ||
65 | :show-count="true" | ||
66 | :options="dictData['A46']" | ||
67 | :normalizer="normalizer" | ||
68 | :appendToBody="true" | ||
69 | z-index="9999" | ||
70 | @input="updaterow(scope.row)" | ||
71 | /> | ||
42 | </template> | 72 | </template> |
43 | </el-table-column> | 73 | </el-table-column> |
44 | <el-table-column prop="fwjgmc" label="房屋结构" min-width="100"> | 74 | <el-table-column prop="jzmj" label="建筑面积" min-width="100"> |
45 | <template slot-scope="scope"> | 75 | <template slot-scope="scope"> |
46 | <div style="text-align: center">{{ scope.row.fwjgmc }}</div> | 76 | <el-input |
77 | class="item" | ||
78 | :disabled="!ableOperation" | ||
79 | oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null" | ||
80 | v-model="scope.row.jzmj" | ||
81 | placeholder="请输入内容" | ||
82 | @input="updaterow(scope.row)" | ||
83 | > | ||
84 | </el-input> | ||
47 | </template> | 85 | </template> |
48 | </el-table-column> | 86 | </el-table-column> |
49 | <el-table-column prop="jzmj" label="建筑面积" min-width="100"> | 87 | <el-table-column prop="jgsj" label="竣工时间" min-width="100"> |
50 | <template slot-scope="scope"> | 88 | <template slot-scope="scope"> |
51 | <div style="text-align: center">{{ scope.row.jzmj }}</div> | 89 | <el-date-picker |
90 | v-model="scope.row.jgsj" | ||
91 | type="date" | ||
92 | :disabled="!ableOperation" | ||
93 | placeholder="选择日期" | ||
94 | value-format="yyyy-MM-dd HH:mm:ss" | ||
95 | format="yyyy-MM-dd" | ||
96 | @input="updaterow(scope.row)" | ||
97 | > | ||
98 | </el-date-picker> | ||
52 | </template> | 99 | </template> |
53 | </el-table-column> | 100 | </el-table-column> |
54 | <el-table-column prop="jgsj" label="竣工时间" min-width="100"> | 101 | <el-table-column prop="zcs" label="总层数" min-width="100"> |
55 | <template slot-scope="scope"> | 102 | <template slot-scope="scope"> |
56 | <div style="text-align: center">{{ scope.row.jgsj }}</div> | 103 | <el-input |
104 | class="item" | ||
105 | :disabled="!ableOperation" | ||
106 | oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null" | ||
107 | v-model="scope.row.zcs" | ||
108 | placeholder="请输入内容" | ||
109 | @input="updaterow(scope.row)" | ||
110 | > | ||
111 | </el-input> | ||
57 | </template> | 112 | </template> |
58 | </el-table-column> | 113 | </el-table-column> |
59 | <el-table-column prop="zts" label="总套数" min-width="100"> | 114 | <el-table-column prop="zts" label="总套数" min-width="100"> |
60 | <template slot-scope="scope"> | 115 | <template slot-scope="scope"> |
61 | <div style="text-align: center">{{ scope.row.zts }}</div> | 116 | <el-input |
117 | class="item" | ||
118 | :disabled="!ableOperation" | ||
119 | oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null" | ||
120 | v-model="scope.row.zts" | ||
121 | placeholder="请输入内容" | ||
122 | @input="updaterow(scope.row)" | ||
123 | > | ||
124 | </el-input> | ||
62 | </template> | 125 | </template> |
63 | </el-table-column> | 126 | </el-table-column> |
64 | </el-table> | 127 | </el-table> |
65 | </div> | 128 | </div> |
66 | </template> | 129 | </template> |
67 | <script> | 130 | <script> |
68 | import { mapGetters } from "vuex"; | 131 | import {mapGetters} from "vuex"; |
69 | 132 | ||
70 | export default { | 133 | export default { |
71 | computed: { | 134 | computed: { |
... | @@ -82,15 +145,27 @@ export default { | ... | @@ -82,15 +145,27 @@ export default { |
82 | type: Boolean, | 145 | type: Boolean, |
83 | default: false, | 146 | default: false, |
84 | }, | 147 | }, |
148 | |||
85 | }, | 149 | }, |
86 | data() { | 150 | data() { |
87 | return { | 151 | return { |
88 | // 键名转换,方法默认是label和children进行树状渲染 | 152 | // 键名转换,方法默认是label和children进行树状渲染 |
89 | key: 0, | 153 | key: 0, |
90 | tableDataList: [], | 154 | tableDataList: [], |
155 | normalizer(node) { | ||
156 | if (node.children == null || node.children == "null") { | ||
157 | delete node.children; | ||
158 | } | ||
159 | return { | ||
160 | id: node.dcode, | ||
161 | label: node.dname, | ||
162 | children: node.children, | ||
163 | }; | ||
164 | }, | ||
91 | }; | 165 | }; |
92 | }, | 166 | }, |
93 | mounted() {}, | 167 | mounted() { |
168 | }, | ||
94 | watch: { | 169 | watch: { |
95 | tableData: { | 170 | tableData: { |
96 | handler: function (val, oldVal) { | 171 | handler: function (val, oldVal) { |
... | @@ -122,20 +197,14 @@ export default { | ... | @@ -122,20 +197,14 @@ export default { |
122 | renderHeader() { | 197 | renderHeader() { |
123 | return ( | 198 | return ( |
124 | <div> | 199 | <div> |
125 | {" "} | 200 | {"序号"} |
126 | {!this.ableOperation ? ( | ||
127 | "序号" | ||
128 | ) : ( | ||
129 | <i | ||
130 | class="el-icon-plus pointer" | ||
131 | onClick={() => { | ||
132 | this.addClick(); | ||
133 | }} | ||
134 | ></i> | ||
135 | )} | ||
136 | </div> | 201 | </div> |
137 | ); | 202 | ); |
138 | }, | 203 | }, |
204 | updaterow(a) { | ||
205 | console.log("updaterow:"+JSON.stringify(a)); | ||
206 | this.$emit("updateFdcwxmList", this.tableDataList); | ||
207 | } | ||
139 | }, | 208 | }, |
140 | }; | 209 | }; |
141 | </script> | 210 | </script> | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-16 16:44:04 | 4 | * @LastEditTime: 2023-08-17 14:30:26 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div> | 7 | <div> |
... | @@ -124,12 +124,12 @@ | ... | @@ -124,12 +124,12 @@ |
124 | let that = this | 124 | let that = this |
125 | this.$nextTick(() => { | 125 | this.$nextTick(() => { |
126 | if (val.length == 0 || !val) { | 126 | if (val.length == 0 || !val) { |
127 | that.tableDataList = _.cloneDeep([{ | 127 | // that.tableDataList = _.cloneDeep([{ |
128 | sqrmc: '', | 128 | // sqrmc: '', |
129 | dlrzjlx: '', | 129 | // dlrzjlx: '', |
130 | dlrzjh: '', | 130 | // dlrzjh: '', |
131 | fr: '' | 131 | // fr: '' |
132 | }]) | 132 | // }]) |
133 | } else { | 133 | } else { |
134 | that.tableDataList = _.cloneDeep(val) | 134 | that.tableDataList = _.cloneDeep(val) |
135 | } | 135 | } |
... | @@ -193,7 +193,6 @@ | ... | @@ -193,7 +193,6 @@ |
193 | } | 193 | } |
194 | }, | 194 | }, |
195 | 195 | ||
196 | // 删除 | ||
197 | /** | 196 | /** |
198 | * @description: 删除 | 197 | * @description: 删除 |
199 | * @param {*} index | 198 | * @param {*} index | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-16 16:10:51 | 4 | * @LastEditTime: 2023-08-17 13:28:21 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
... | @@ -322,6 +322,59 @@ | ... | @@ -322,6 +322,59 @@ |
322 | * @author: renchao | 322 | * @author: renchao |
323 | */ | 323 | */ |
324 | onSubmitClick () { | 324 | onSubmitClick () { |
325 | let that = this | ||
326 | if (this.ruleForm.qlrList.length == 0) { | ||
327 | this.$message({ | ||
328 | showClose: true, | ||
329 | message: "请确认抵押权人信息", | ||
330 | type: "error", | ||
331 | }); | ||
332 | return false; | ||
333 | } | ||
334 | if (this.ruleForm.sldy.gyfs == "0") { | ||
335 | if (this.ruleForm.qlrList.length > 1) { | ||
336 | this.$message({ | ||
337 | showClose: true, | ||
338 | message: "共有方式:单独所有,权利人只能是一个人", | ||
339 | type: "error", | ||
340 | }); | ||
341 | return false; | ||
342 | } | ||
343 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
344 | } else { | ||
345 | if (this.ruleForm.qlrList.length <= 1) { | ||
346 | this.$message({ | ||
347 | showClose: true, | ||
348 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
349 | type: "error", | ||
350 | }); | ||
351 | return false; | ||
352 | } | ||
353 | //是否分别持证 | ||
354 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
355 | //是 | ||
356 | this.ruleForm.qlrList.forEach((item, index) => { | ||
357 | item.sfczr = "1"; | ||
358 | }); | ||
359 | } else { | ||
360 | if (!that.ruleForm.czr) { | ||
361 | that.$message({ | ||
362 | showClose: true, | ||
363 | message: "请选择持证人", | ||
364 | type: "error", | ||
365 | }); | ||
366 | return false; | ||
367 | } | ||
368 | this.ruleForm.qlrList.forEach((item, index) => { | ||
369 | if (item.zjh == this.ruleForm.czr) { | ||
370 | item.sfczr = "1"; | ||
371 | } else { | ||
372 | item.sfczr = "0"; | ||
373 | } | ||
374 | }); | ||
375 | } | ||
376 | } | ||
377 | |||
325 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { | 378 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { |
326 | if (res.code === 200) { | 379 | if (res.code === 200) { |
327 | this.$message({ | 380 | this.$message({ | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 房屋多幢受理信息 | 2 | * @Description: 房屋多幢受理信息 |
3 | * @Autor: ssq | 3 | * @Autor: ssq |
4 | * @LastEditTime: 2023-08-16 16:28:16 | 4 | * @LastEditTime: 2023-08-17 13:46:30 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -141,7 +141,7 @@ | ... | @@ -141,7 +141,7 @@ |
141 | <fdcqxmTable | 141 | <fdcqxmTable |
142 | :ableOperation="viewEdit" | 142 | :ableOperation="viewEdit" |
143 | :tableData="ruleForm.fdcqxm" | 143 | :tableData="ruleForm.fdcqxm" |
144 | @upDateTdytxxList="upDateTdytxxList" /> | 144 | @updateFdcwxmList="updateFdcwxmList" /> |
145 | <div class="slxx_title title-block"> | 145 | <div class="slxx_title title-block"> |
146 | 土地用途 | 146 | 土地用途 |
147 | <div class="triangle"></div> | 147 | <div class="triangle"></div> |
... | @@ -299,6 +299,10 @@ | ... | @@ -299,6 +299,10 @@ |
299 | }; | 299 | }; |
300 | }, | 300 | }, |
301 | methods: { | 301 | methods: { |
302 | updateFdcwxmList (val) { | ||
303 | this.ruleForm.fdcqxm && (this.ruleForm.fdcqxm = _.cloneDeep(val)); | ||
304 | this.key++; | ||
305 | }, | ||
302 | /** | 306 | /** |
303 | * @description: 更新土地用途信息 | 307 | * @description: 更新土地用途信息 |
304 | * @param {*} val | 308 | * @param {*} val |
... | @@ -339,6 +343,7 @@ | ... | @@ -339,6 +343,7 @@ |
339 | * @author: renchao | 343 | * @author: renchao |
340 | */ | 344 | */ |
341 | onSubmit () { | 345 | onSubmit () { |
346 | let that = this | ||
342 | let arr = this.ruleForm.tdytqxList.filter((item) => !item.yt); | 347 | let arr = this.ruleForm.tdytqxList.filter((item) => !item.yt); |
343 | if (arr.length > 0) { | 348 | if (arr.length > 0) { |
344 | this.$message({ | 349 | this.$message({ |
... | @@ -348,6 +353,58 @@ | ... | @@ -348,6 +353,58 @@ |
348 | }); | 353 | }); |
349 | return false; | 354 | return false; |
350 | } | 355 | } |
356 | if (this.ruleForm.qlrList.length == 0) { | ||
357 | this.$message({ | ||
358 | showClose: true, | ||
359 | message: "请确认权利人信息", | ||
360 | type: "error", | ||
361 | }); | ||
362 | return false; | ||
363 | } | ||
364 | if (this.ruleForm.sldy.gyfs == "0") { | ||
365 | if (this.ruleForm.qlrList.length > 1) { | ||
366 | this.$message({ | ||
367 | showClose: true, | ||
368 | message: "共有方式:单独所有,权利人只能是一个人", | ||
369 | type: "error", | ||
370 | }); | ||
371 | return false; | ||
372 | } | ||
373 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
374 | } else { | ||
375 | if (this.ruleForm.qlrList.length <= 1) { | ||
376 | this.$message({ | ||
377 | showClose: true, | ||
378 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
379 | type: "error", | ||
380 | }); | ||
381 | return false; | ||
382 | } | ||
383 | //是否分别持证 | ||
384 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
385 | //是 | ||
386 | this.ruleForm.qlrList.forEach((item, index) => { | ||
387 | item.sfczr = "1"; | ||
388 | }); | ||
389 | } else { | ||
390 | if (!that.ruleForm.czr) { | ||
391 | that.$message({ | ||
392 | showClose: true, | ||
393 | message: "请选择持证人", | ||
394 | type: "error", | ||
395 | }); | ||
396 | return false; | ||
397 | } | ||
398 | this.ruleForm.qlrList.forEach((item, index) => { | ||
399 | if (item.zjh == this.ruleForm.czr) { | ||
400 | item.sfczr = "1"; | ||
401 | } else { | ||
402 | item.sfczr = "0"; | ||
403 | } | ||
404 | }); | ||
405 | } | ||
406 | } | ||
407 | |||
351 | saveData(this.ruleForm).then((res) => { | 408 | saveData(this.ruleForm).then((res) => { |
352 | if (res.code === 200) { | 409 | if (res.code === 200) { |
353 | this.$message({ | 410 | this.$message({ | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-16 16:05:34 | 4 | * @LastEditTime: 2023-08-17 13:34:51 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -487,6 +487,68 @@ | ... | @@ -487,6 +487,68 @@ |
487 | * @author: renchao | 487 | * @author: renchao |
488 | */ | 488 | */ |
489 | onSubmit () { | 489 | onSubmit () { |
490 | let that = this | ||
491 | let arr = this.ruleForm.tdytqxList.filter(item => !item.yt) | ||
492 | if (arr.length > 0) { | ||
493 | this.$message({ | ||
494 | showClose: true, | ||
495 | message: "土地用途不能为空", | ||
496 | type: "error", | ||
497 | }); | ||
498 | return false; | ||
499 | } | ||
500 | if (this.ruleForm.qlrList.length == 0) { | ||
501 | this.$message({ | ||
502 | showClose: true, | ||
503 | message: "请确认权利人信息", | ||
504 | type: "error", | ||
505 | }); | ||
506 | return false; | ||
507 | } | ||
508 | |||
509 | if (this.ruleForm.sldy.gyfs == "0") { | ||
510 | if (this.ruleForm.qlrList.length > 1) { | ||
511 | this.$message({ | ||
512 | showClose: true, | ||
513 | message: "共有方式:单独所有,权利人只能是一个人", | ||
514 | type: "error", | ||
515 | }); | ||
516 | return false; | ||
517 | } | ||
518 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
519 | } else { | ||
520 | if (this.ruleForm.qlrList.length <= 1) { | ||
521 | this.$message({ | ||
522 | showClose: true, | ||
523 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
524 | type: "error", | ||
525 | }); | ||
526 | return false; | ||
527 | } | ||
528 | //是否分别持证 | ||
529 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
530 | //是 | ||
531 | this.ruleForm.qlrList.forEach((item, index) => { | ||
532 | item.sfczr = "1"; | ||
533 | }); | ||
534 | } else { | ||
535 | if (!that.ruleForm.czr) { | ||
536 | that.$message({ | ||
537 | showClose: true, | ||
538 | message: "请选择持证人", | ||
539 | type: "error", | ||
540 | }); | ||
541 | return false; | ||
542 | } | ||
543 | this.ruleForm.qlrList.forEach((item, index) => { | ||
544 | if (item.zjh == this.ruleForm.czr) { | ||
545 | item.sfczr = "1"; | ||
546 | } else { | ||
547 | item.sfczr = "0"; | ||
548 | } | ||
549 | }); | ||
550 | } | ||
551 | } | ||
490 | saveData(this.ruleForm).then((res) => { | 552 | saveData(this.ruleForm).then((res) => { |
491 | if (res.code === 200) { | 553 | if (res.code === 200) { |
492 | this.$message({ | 554 | this.$message({ | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-16 15:53:25 | 4 | * @LastEditTime: 2023-08-17 13:46:51 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -388,6 +388,7 @@ | ... | @@ -388,6 +388,7 @@ |
388 | * @author: renchao | 388 | * @author: renchao |
389 | */ | 389 | */ |
390 | onSubmit () { | 390 | onSubmit () { |
391 | let that = this | ||
391 | let arr = this.ruleForm.tdytqxList.filter(item => !item.yt) | 392 | let arr = this.ruleForm.tdytqxList.filter(item => !item.yt) |
392 | if (arr.length > 0) { | 393 | if (arr.length > 0) { |
393 | this.$message({ | 394 | this.$message({ |
... | @@ -397,6 +398,58 @@ | ... | @@ -397,6 +398,58 @@ |
397 | }); | 398 | }); |
398 | return false; | 399 | return false; |
399 | } | 400 | } |
401 | if (this.ruleForm.qlrList.length == 0) { | ||
402 | this.$message({ | ||
403 | showClose: true, | ||
404 | message: "请确认权利人信息", | ||
405 | type: "error", | ||
406 | }); | ||
407 | return false; | ||
408 | } | ||
409 | |||
410 | if (this.ruleForm.sldy.gyfs == "0") { | ||
411 | if (this.ruleForm.qlrList.length > 1) { | ||
412 | this.$message({ | ||
413 | showClose: true, | ||
414 | message: "共有方式:单独所有,权利人只能是一个人", | ||
415 | type: "error", | ||
416 | }); | ||
417 | return false; | ||
418 | } | ||
419 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
420 | } else { | ||
421 | if (this.ruleForm.qlrList.length <= 1) { | ||
422 | this.$message({ | ||
423 | showClose: true, | ||
424 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
425 | type: "error", | ||
426 | }); | ||
427 | return false; | ||
428 | } | ||
429 | //是否分别持证 | ||
430 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
431 | //是 | ||
432 | this.ruleForm.qlrList.forEach((item, index) => { | ||
433 | item.sfczr = "1"; | ||
434 | }); | ||
435 | } else { | ||
436 | if (!that.ruleForm.czr) { | ||
437 | that.$message({ | ||
438 | showClose: true, | ||
439 | message: "请选择持证人", | ||
440 | type: "error", | ||
441 | }); | ||
442 | return false; | ||
443 | } | ||
444 | this.ruleForm.qlrList.forEach((item, index) => { | ||
445 | if (item.zjh == this.ruleForm.czr) { | ||
446 | item.sfczr = "1"; | ||
447 | } else { | ||
448 | item.sfczr = "0"; | ||
449 | } | ||
450 | }); | ||
451 | } | ||
452 | } | ||
400 | saveData(this.ruleForm).then((res) => { | 453 | saveData(this.ruleForm).then((res) => { |
401 | if (res.code === 200) { | 454 | if (res.code === 200) { |
402 | this.$message({ | 455 | this.$message({ | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-16 16:36:31 | 4 | * @LastEditTime: 2023-08-17 14:14:53 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -342,6 +342,15 @@ | ... | @@ -342,6 +342,15 @@ |
342 | * @author: renchao | 342 | * @author: renchao |
343 | */ | 343 | */ |
344 | onSubmit () { | 344 | onSubmit () { |
345 | let that = this | ||
346 | if (this.ruleForm.qlrList.length == 0) { | ||
347 | this.$message({ | ||
348 | showClose: true, | ||
349 | message: "请确认权利人信息", | ||
350 | type: "error", | ||
351 | }); | ||
352 | return false; | ||
353 | } | ||
345 | if (this.ruleForm.sldyList[0].gyfs == "0") { | 354 | if (this.ruleForm.sldyList[0].gyfs == "0") { |
346 | if (this.ruleForm.qlrList.length > 1) { | 355 | if (this.ruleForm.qlrList.length > 1) { |
347 | this.$message({ | 356 | this.$message({ |
... | @@ -351,6 +360,7 @@ | ... | @@ -351,6 +360,7 @@ |
351 | }); | 360 | }); |
352 | return false; | 361 | return false; |
353 | } | 362 | } |
363 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
354 | } else { | 364 | } else { |
355 | if (this.ruleForm.qlrList.length <= 1) { | 365 | if (this.ruleForm.qlrList.length <= 1) { |
356 | this.$message({ | 366 | this.$message({ |
... | @@ -361,6 +371,29 @@ | ... | @@ -361,6 +371,29 @@ |
361 | }); | 371 | }); |
362 | return false; | 372 | return false; |
363 | } | 373 | } |
374 | //是否分别持证 | ||
375 | if (this.ruleForm.sldyList[0].sqfbcz == "1") { | ||
376 | //是 | ||
377 | this.ruleForm.qlrList.forEach((item, index) => { | ||
378 | item.sfczr = "1"; | ||
379 | }); | ||
380 | } else { | ||
381 | if (!that.ruleForm.czr) { | ||
382 | that.$message({ | ||
383 | showClose: true, | ||
384 | message: "请选择持证人", | ||
385 | type: "error", | ||
386 | }); | ||
387 | return false; | ||
388 | } | ||
389 | this.ruleForm.qlrList.forEach((item, index) => { | ||
390 | if (item.zjh == this.ruleForm.czr) { | ||
391 | item.sfczr = "1"; | ||
392 | } else { | ||
393 | item.sfczr = "0"; | ||
394 | } | ||
395 | }); | ||
396 | } | ||
364 | } | 397 | } |
365 | saveBatchData(this.ruleForm).then((res) => { | 398 | saveBatchData(this.ruleForm).then((res) => { |
366 | if (res.code === 200) { | 399 | if (res.code === 200) { | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-16 16:12:58 | 4 | * @LastEditTime: 2023-08-17 13:38:12 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
... | @@ -296,6 +296,7 @@ | ... | @@ -296,6 +296,7 @@ |
296 | * @author: renchao | 296 | * @author: renchao |
297 | */ | 297 | */ |
298 | onSubmit () { | 298 | onSubmit () { |
299 | let that = this | ||
299 | let arr = this.ruleForm.tdytqxList.filter(item => !item.yt) | 300 | let arr = this.ruleForm.tdytqxList.filter(item => !item.yt) |
300 | if (arr.length > 0) { | 301 | if (arr.length > 0) { |
301 | this.$message({ | 302 | this.$message({ |
... | @@ -305,6 +306,58 @@ | ... | @@ -305,6 +306,58 @@ |
305 | }); | 306 | }); |
306 | return false; | 307 | return false; |
307 | } | 308 | } |
309 | if (this.ruleForm.qlrList.length == 0) { | ||
310 | this.$message({ | ||
311 | showClose: true, | ||
312 | message: "请确认权利人信息", | ||
313 | type: "error", | ||
314 | }); | ||
315 | return false; | ||
316 | } | ||
317 | |||
318 | if (this.ruleForm.gyfs == "0") { | ||
319 | if (this.ruleForm.qlrList.length > 1) { | ||
320 | this.$message({ | ||
321 | showClose: true, | ||
322 | message: "共有方式:单独所有,权利人只能是一个人", | ||
323 | type: "error", | ||
324 | }); | ||
325 | return false; | ||
326 | } | ||
327 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
328 | } else { | ||
329 | if (this.ruleForm.qlrList.length <= 1) { | ||
330 | this.$message({ | ||
331 | showClose: true, | ||
332 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
333 | type: "error", | ||
334 | }); | ||
335 | return false; | ||
336 | } | ||
337 | //是否分别持证 | ||
338 | if (this.ruleForm.sqfbcz == "1") { | ||
339 | //是 | ||
340 | this.ruleForm.qlrList.forEach((item, index) => { | ||
341 | item.sfczr = "1"; | ||
342 | }); | ||
343 | } else { | ||
344 | if (!that.ruleForm.czr) { | ||
345 | that.$message({ | ||
346 | showClose: true, | ||
347 | message: "请选择持证人", | ||
348 | type: "error", | ||
349 | }); | ||
350 | return false; | ||
351 | } | ||
352 | this.ruleForm.qlrList.forEach((item, index) => { | ||
353 | if (item.zjh == this.ruleForm.czr) { | ||
354 | item.sfczr = "1"; | ||
355 | } else { | ||
356 | item.sfczr = "0"; | ||
357 | } | ||
358 | }); | ||
359 | } | ||
360 | } | ||
308 | fristReg(this.ruleForm).then((res) => { | 361 | fristReg(this.ruleForm).then((res) => { |
309 | if (res.code === 200 && res.result) { | 362 | if (res.code === 200 && res.result) { |
310 | console.log(res); | 363 | console.log(res); | ... | ... |
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | <!-- | 2 | <!-- |
3 | * @Description: | 3 | * @Description: |
4 | * @Autor: renchao | 4 | * @Autor: renchao |
5 | * @LastEditTime: 2023-08-16 16:13:20 | 5 | * @LastEditTime: 2023-08-17 13:40:24 |
6 | --> | 6 | --> |
7 | <template> | 7 | <template> |
8 | <!-- 受理信息 --> | 8 | <!-- 受理信息 --> |
... | @@ -284,6 +284,7 @@ | ... | @@ -284,6 +284,7 @@ |
284 | * @author: renchao | 284 | * @author: renchao |
285 | */ | 285 | */ |
286 | onSubmit () { | 286 | onSubmit () { |
287 | let that = this | ||
287 | let arr = this.ruleForm.tdytqxList.filter(item => !item.yt) | 288 | let arr = this.ruleForm.tdytqxList.filter(item => !item.yt) |
288 | if (arr.length > 0) { | 289 | if (arr.length > 0) { |
289 | this.$message({ | 290 | this.$message({ |
... | @@ -293,6 +294,58 @@ | ... | @@ -293,6 +294,58 @@ |
293 | }); | 294 | }); |
294 | return false; | 295 | return false; |
295 | } | 296 | } |
297 | if (this.ruleForm.qlrList.length == 0) { | ||
298 | this.$message({ | ||
299 | showClose: true, | ||
300 | message: "请确认权利人信息", | ||
301 | type: "error", | ||
302 | }); | ||
303 | return false; | ||
304 | } | ||
305 | |||
306 | if (this.ruleForm.sldy.gyfs == "0") { | ||
307 | if (this.ruleForm.qlrList.length > 1) { | ||
308 | this.$message({ | ||
309 | showClose: true, | ||
310 | message: "共有方式:单独所有,权利人只能是一个人", | ||
311 | type: "error", | ||
312 | }); | ||
313 | return false; | ||
314 | } | ||
315 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
316 | } else { | ||
317 | if (this.ruleForm.qlrList.length <= 1) { | ||
318 | this.$message({ | ||
319 | showClose: true, | ||
320 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
321 | type: "error", | ||
322 | }); | ||
323 | return false; | ||
324 | } | ||
325 | //是否分别持证 | ||
326 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
327 | //是 | ||
328 | this.ruleForm.qlrList.forEach((item, index) => { | ||
329 | item.sfczr = "1"; | ||
330 | }); | ||
331 | } else { | ||
332 | if (!that.ruleForm.czr) { | ||
333 | that.$message({ | ||
334 | showClose: true, | ||
335 | message: "请选择持证人", | ||
336 | type: "error", | ||
337 | }); | ||
338 | return false; | ||
339 | } | ||
340 | this.ruleForm.qlrList.forEach((item, index) => { | ||
341 | if (item.zjh == this.ruleForm.czr) { | ||
342 | item.sfczr = "1"; | ||
343 | } else { | ||
344 | item.sfczr = "0"; | ||
345 | } | ||
346 | }); | ||
347 | } | ||
348 | } | ||
296 | saveData(this.ruleForm).then((res) => { | 349 | saveData(this.ruleForm).then((res) => { |
297 | if (res.code === 200) { | 350 | if (res.code === 200) { |
298 | this.$message({ | 351 | this.$message({ | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 房屋多幢受理信息 | 2 | * @Description: 房屋多幢受理信息 |
3 | * @Autor: ssq | 3 | * @Autor: ssq |
4 | * @LastEditTime: 2023-08-16 16:14:03 | 4 | * @LastEditTime: 2023-08-17 13:47:17 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -339,15 +339,59 @@ | ... | @@ -339,15 +339,59 @@ |
339 | * @author: renchao | 339 | * @author: renchao |
340 | */ | 340 | */ |
341 | onSubmit () { | 341 | onSubmit () { |
342 | // let arr = this.ruleForm.tdytqxList || [] .filter(item => !item.yt) | 342 | let that = this |
343 | // if (arr.length > 0) { | 343 | if (this.ruleForm.qlrList.length == 0) { |
344 | // this.$message({ | 344 | this.$message({ |
345 | // showClose: true, | 345 | showClose: true, |
346 | // message: "土地用途不能为空", | 346 | message: "请确认权利人信息", |
347 | // type: "error", | 347 | type: "error", |
348 | // }); | 348 | }); |
349 | // return false; | 349 | return false; |
350 | // } | 350 | } |
351 | |||
352 | if (this.ruleForm.sldy.gyfs == "0") { | ||
353 | if (this.ruleForm.qlrList.length > 1) { | ||
354 | this.$message({ | ||
355 | showClose: true, | ||
356 | message: "共有方式:单独所有,权利人只能是一个人", | ||
357 | type: "error", | ||
358 | }); | ||
359 | return false; | ||
360 | } | ||
361 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
362 | } else { | ||
363 | if (this.ruleForm.qlrList.length <= 1) { | ||
364 | this.$message({ | ||
365 | showClose: true, | ||
366 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
367 | type: "error", | ||
368 | }); | ||
369 | return false; | ||
370 | } | ||
371 | //是否分别持证 | ||
372 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
373 | //是 | ||
374 | this.ruleForm.qlrList.forEach((item, index) => { | ||
375 | item.sfczr = "1"; | ||
376 | }); | ||
377 | } else { | ||
378 | if (!that.ruleForm.czr) { | ||
379 | that.$message({ | ||
380 | showClose: true, | ||
381 | message: "请选择持证人", | ||
382 | type: "error", | ||
383 | }); | ||
384 | return false; | ||
385 | } | ||
386 | this.ruleForm.qlrList.forEach((item, index) => { | ||
387 | if (item.zjh == this.ruleForm.czr) { | ||
388 | item.sfczr = "1"; | ||
389 | } else { | ||
390 | item.sfczr = "0"; | ||
391 | } | ||
392 | }); | ||
393 | } | ||
394 | } | ||
351 | saveData(this.ruleForm).then((res) => { | 395 | saveData(this.ruleForm).then((res) => { |
352 | if (res.code === 200) { | 396 | if (res.code === 200) { |
353 | this.$message({ | 397 | this.$message({ | ... | ... |
... | @@ -290,6 +290,60 @@ | ... | @@ -290,6 +290,60 @@ |
290 | * @author: renchao | 290 | * @author: renchao |
291 | */ | 291 | */ |
292 | onSubmit () { | 292 | onSubmit () { |
293 | let that = this | ||
294 | if (this.ruleForm.qlrList.length == 0) { | ||
295 | this.$message({ | ||
296 | showClose: true, | ||
297 | message: "请确认权利人信息", | ||
298 | type: "error", | ||
299 | }); | ||
300 | return false; | ||
301 | } | ||
302 | |||
303 | if (this.ruleForm.sldy.gyfs == "0") { | ||
304 | if (this.ruleForm.qlrList.length > 1) { | ||
305 | this.$message({ | ||
306 | showClose: true, | ||
307 | message: "共有方式:单独所有,权利人只能是一个人", | ||
308 | type: "error", | ||
309 | }); | ||
310 | return false; | ||
311 | } | ||
312 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
313 | } else { | ||
314 | if (this.ruleForm.qlrList.length <= 1) { | ||
315 | this.$message({ | ||
316 | showClose: true, | ||
317 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
318 | type: "error", | ||
319 | }); | ||
320 | return false; | ||
321 | } | ||
322 | //是否分别持证 | ||
323 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
324 | //是 | ||
325 | this.ruleForm.qlrList.forEach((item, index) => { | ||
326 | item.sfczr = "1"; | ||
327 | }); | ||
328 | } else { | ||
329 | if (!that.ruleForm.czr) { | ||
330 | that.$message({ | ||
331 | showClose: true, | ||
332 | message: "请选择持证人", | ||
333 | type: "error", | ||
334 | }); | ||
335 | return false; | ||
336 | } | ||
337 | this.ruleForm.qlrList.forEach((item, index) => { | ||
338 | if (item.zjh == this.ruleForm.czr) { | ||
339 | item.sfczr = "1"; | ||
340 | } else { | ||
341 | item.sfczr = "0"; | ||
342 | } | ||
343 | }); | ||
344 | } | ||
345 | } | ||
346 | |||
293 | saveData(this.ruleForm).then((res) => { | 347 | saveData(this.ruleForm).then((res) => { |
294 | if (res.code === 200) { | 348 | if (res.code === 200) { |
295 | this.$message({ | 349 | this.$message({ |
... | @@ -324,7 +378,6 @@ | ... | @@ -324,7 +378,6 @@ |
324 | upDateJtcyList (val) { | 378 | upDateJtcyList (val) { |
325 | this.ruleForm.jtcyList = _.cloneDeep(val) | 379 | this.ruleForm.jtcyList = _.cloneDeep(val) |
326 | }, | 380 | }, |
327 | //水域滩涂类型变化事件 | ||
328 | /** | 381 | /** |
329 | * @description: 水域滩涂类型变化事件 | 382 | * @description: 水域滩涂类型变化事件 |
330 | * @param {*} e | 383 | * @param {*} e |
... | @@ -337,7 +390,6 @@ | ... | @@ -337,7 +390,6 @@ |
337 | }) | 390 | }) |
338 | this.ruleForm.nydsyq.syttlxmc = itemLx.dname; | 391 | this.ruleForm.nydsyq.syttlxmc = itemLx.dname; |
339 | }, | 392 | }, |
340 | //养殖业方式变化事件 | ||
341 | /** | 393 | /** |
342 | * @description: 养殖业方式变化事件 | 394 | * @description: 养殖业方式变化事件 |
343 | * @param {*} e | 395 | * @param {*} e |
... | @@ -350,7 +402,6 @@ | ... | @@ -350,7 +402,6 @@ |
350 | }) | 402 | }) |
351 | this.ruleForm.nydsyq.yzyfsmc = itemLx.dname; | 403 | this.ruleForm.nydsyq.yzyfsmc = itemLx.dname; |
352 | }, | 404 | }, |
353 | //用地用海变化事件 | ||
354 | /** | 405 | /** |
355 | * @description: 用地用海变化事件 | 406 | * @description: 用地用海变化事件 |
356 | * @param {*} e | 407 | * @param {*} e | ... | ... |
... | @@ -291,6 +291,60 @@ | ... | @@ -291,6 +291,60 @@ |
291 | * @author: renchao | 291 | * @author: renchao |
292 | */ | 292 | */ |
293 | onSubmit () { | 293 | onSubmit () { |
294 | let that = this | ||
295 | if (this.ruleForm.qlrList.length == 0) { | ||
296 | this.$message({ | ||
297 | showClose: true, | ||
298 | message: "请确认权利人信息", | ||
299 | type: "error", | ||
300 | }); | ||
301 | return false; | ||
302 | } | ||
303 | |||
304 | if (this.ruleForm.sldy.gyfs == "0") { | ||
305 | if (this.ruleForm.qlrList.length > 1) { | ||
306 | this.$message({ | ||
307 | showClose: true, | ||
308 | message: "共有方式:单独所有,权利人只能是一个人", | ||
309 | type: "error", | ||
310 | }); | ||
311 | return false; | ||
312 | } | ||
313 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
314 | } else { | ||
315 | if (this.ruleForm.qlrList.length <= 1) { | ||
316 | this.$message({ | ||
317 | showClose: true, | ||
318 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
319 | type: "error", | ||
320 | }); | ||
321 | return false; | ||
322 | } | ||
323 | //是否分别持证 | ||
324 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
325 | //是 | ||
326 | this.ruleForm.qlrList.forEach((item, index) => { | ||
327 | item.sfczr = "1"; | ||
328 | }); | ||
329 | } else { | ||
330 | if (!that.ruleForm.czr) { | ||
331 | that.$message({ | ||
332 | showClose: true, | ||
333 | message: "请选择持证人", | ||
334 | type: "error", | ||
335 | }); | ||
336 | return false; | ||
337 | } | ||
338 | this.ruleForm.qlrList.forEach((item, index) => { | ||
339 | if (item.zjh == this.ruleForm.czr) { | ||
340 | item.sfczr = "1"; | ||
341 | } else { | ||
342 | item.sfczr = "0"; | ||
343 | } | ||
344 | }); | ||
345 | } | ||
346 | } | ||
347 | |||
294 | saveData(this.ruleForm).then((res) => { | 348 | saveData(this.ruleForm).then((res) => { |
295 | if (res.code === 200) { | 349 | if (res.code === 200) { |
296 | this.$message({ | 350 | this.$message({ | ... | ... |
... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
47 | <div class="triangle"></div> | 47 | <div class="triangle"></div> |
48 | </div> | 48 | </div> |
49 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | 49 | <el-row :gutter="10" v-if="ruleForm.qlxx"> |
50 | <el-col :span="8"> | 50 | <el-col :span="8"> |
51 | <el-form-item label="原不动产登记证明号:"> | 51 | <el-form-item label="原不动产登记证明号:"> |
52 | <el-input disabled v-model="ruleForm.sldy.ybdcqzsh"></el-input> | 52 | <el-input disabled v-model="ruleForm.sldy.ybdcqzsh"></el-input> |
53 | </el-form-item> | 53 | </el-form-item> |
... | @@ -88,7 +88,7 @@ | ... | @@ -88,7 +88,7 @@ |
88 | </el-col> | 88 | </el-col> |
89 | </el-row> | 89 | </el-row> |
90 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | 90 | <el-row :gutter="10" v-if="ruleForm.qlxx"> |
91 | <el-col :span="8"> | 91 | <el-col :span="8"> |
92 | <el-form-item label="房屋用途:"> | 92 | <el-form-item label="房屋用途:"> |
93 | <el-select v-model="ruleForm.ygdj.ghyt"> | 93 | <el-select v-model="ruleForm.ygdj.ghyt"> |
94 | <el-option | 94 | <el-option |
... | @@ -124,8 +124,8 @@ | ... | @@ -124,8 +124,8 @@ |
124 | </el-select> | 124 | </el-select> |
125 | </el-form-item> | 125 | </el-form-item> |
126 | </el-col> | 126 | </el-col> |
127 | 127 | ||
128 | <el-col :span="8"> | 128 | <el-col :span="8"> |
129 | <el-form-item label="建筑面积:"> | 129 | <el-form-item label="建筑面积:"> |
130 | <div class="flex"> | 130 | <div class="flex"> |
131 | <el-input v-model="ruleForm.ygdj.jzmj" :disabled="!viewEdit" | 131 | <el-input v-model="ruleForm.ygdj.jzmj" :disabled="!viewEdit" |
... | @@ -143,7 +143,7 @@ | ... | @@ -143,7 +143,7 @@ |
143 | </el-select> | 143 | </el-select> |
144 | </div> | 144 | </div> |
145 | </el-form-item> | 145 | </el-form-item> |
146 | </el-col> | 146 | </el-col> |
147 | <el-col :span="8"> | 147 | <el-col :span="8"> |
148 | <el-form-item label="取得价格:"> | 148 | <el-form-item label="取得价格:"> |
149 | <div class="flex"> | 149 | <div class="flex"> |
... | @@ -163,10 +163,10 @@ | ... | @@ -163,10 +163,10 @@ |
163 | </el-form-item> | 163 | </el-form-item> |
164 | </el-col> | 164 | </el-col> |
165 | </el-row> | 165 | </el-row> |
166 | <el-row :gutter="10"> | 166 | <el-row :gutter="10"> |
167 | <el-col :span="24"> | 167 | <el-col :span="24"> |
168 | <el-form-item label="附记:"> | 168 | <el-form-item label="附记:"> |
169 | <el-input v-model="ruleForm.ygdj.fj" ></el-input> | 169 | <el-input v-model="ruleForm.ygdj.fj"></el-input> |
170 | </el-form-item> | 170 | </el-form-item> |
171 | </el-col> | 171 | </el-col> |
172 | </el-row> | 172 | </el-row> |
... | @@ -272,7 +272,7 @@ | ... | @@ -272,7 +272,7 @@ |
272 | }, | 272 | }, |
273 | data () { | 273 | data () { |
274 | return { | 274 | return { |
275 | mjdw: "1", | 275 | mjdw: "1", |
276 | //表单是否可操作 | 276 | //表单是否可操作 |
277 | viewEdit: true, | 277 | viewEdit: true, |
278 | disabled: true, | 278 | disabled: true, |
... | @@ -313,6 +313,59 @@ | ... | @@ -313,6 +313,59 @@ |
313 | * @author: renchao | 313 | * @author: renchao |
314 | */ | 314 | */ |
315 | onSubmit () { | 315 | onSubmit () { |
316 | let that = this | ||
317 | if (this.ruleForm.qlrList.length == 0) { | ||
318 | this.$message({ | ||
319 | showClose: true, | ||
320 | message: "请确认权利人信息", | ||
321 | type: "error", | ||
322 | }); | ||
323 | return false; | ||
324 | } | ||
325 | |||
326 | if (this.ruleForm.sldy.gyfs == "0") { | ||
327 | if (this.ruleForm.qlrList.length > 1) { | ||
328 | this.$message({ | ||
329 | showClose: true, | ||
330 | message: "共有方式:单独所有,权利人只能是一个人", | ||
331 | type: "error", | ||
332 | }); | ||
333 | return false; | ||
334 | } | ||
335 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
336 | } else { | ||
337 | if (this.ruleForm.qlrList.length <= 1) { | ||
338 | this.$message({ | ||
339 | showClose: true, | ||
340 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
341 | type: "error", | ||
342 | }); | ||
343 | return false; | ||
344 | } | ||
345 | //是否分别持证 | ||
346 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
347 | //是 | ||
348 | this.ruleForm.qlrList.forEach((item, index) => { | ||
349 | item.sfczr = "1"; | ||
350 | }); | ||
351 | } else { | ||
352 | if (!that.ruleForm.czr) { | ||
353 | that.$message({ | ||
354 | showClose: true, | ||
355 | message: "请选择持证人", | ||
356 | type: "error", | ||
357 | }); | ||
358 | return false; | ||
359 | } | ||
360 | this.ruleForm.qlrList.forEach((item, index) => { | ||
361 | if (item.zjh == this.ruleForm.czr) { | ||
362 | item.sfczr = "1"; | ||
363 | } else { | ||
364 | item.sfczr = "0"; | ||
365 | } | ||
366 | }); | ||
367 | } | ||
368 | } | ||
316 | saveData(this.ruleForm).then((res) => { | 369 | saveData(this.ruleForm).then((res) => { |
317 | if (res.code === 200) { | 370 | if (res.code === 200) { |
318 | this.$message({ | 371 | this.$message({ | ... | ... |
... | @@ -256,6 +256,59 @@ | ... | @@ -256,6 +256,59 @@ |
256 | * @author: renchao | 256 | * @author: renchao |
257 | */ | 257 | */ |
258 | onSubmit () { | 258 | onSubmit () { |
259 | let that = this | ||
260 | if (this.ruleForm.qlrList.length == 0) { | ||
261 | this.$message({ | ||
262 | showClose: true, | ||
263 | message: "请确认权利人信息", | ||
264 | type: "error", | ||
265 | }); | ||
266 | return false; | ||
267 | } | ||
268 | |||
269 | if (this.ruleForm.sldy.gyfs == "0") { | ||
270 | if (this.ruleForm.qlrList.length > 1) { | ||
271 | this.$message({ | ||
272 | showClose: true, | ||
273 | message: "共有方式:单独所有,权利人只能是一个人", | ||
274 | type: "error", | ||
275 | }); | ||
276 | return false; | ||
277 | } | ||
278 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
279 | } else { | ||
280 | if (this.ruleForm.qlrList.length <= 1) { | ||
281 | this.$message({ | ||
282 | showClose: true, | ||
283 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
284 | type: "error", | ||
285 | }); | ||
286 | return false; | ||
287 | } | ||
288 | //是否分别持证 | ||
289 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
290 | //是 | ||
291 | this.ruleForm.qlrList.forEach((item, index) => { | ||
292 | item.sfczr = "1"; | ||
293 | }); | ||
294 | } else { | ||
295 | if (!that.ruleForm.czr) { | ||
296 | that.$message({ | ||
297 | showClose: true, | ||
298 | message: "请选择持证人", | ||
299 | type: "error", | ||
300 | }); | ||
301 | return false; | ||
302 | } | ||
303 | this.ruleForm.qlrList.forEach((item, index) => { | ||
304 | if (item.zjh == this.ruleForm.czr) { | ||
305 | item.sfczr = "1"; | ||
306 | } else { | ||
307 | item.sfczr = "0"; | ||
308 | } | ||
309 | }); | ||
310 | } | ||
311 | } | ||
259 | saveData(this.ruleForm).then((res) => { | 312 | saveData(this.ruleForm).then((res) => { |
260 | if (res.code === 200) { | 313 | if (res.code === 200) { |
261 | this.$message({ | 314 | this.$message({ | ... | ... |
... | @@ -8,8 +8,7 @@ | ... | @@ -8,8 +8,7 @@ |
8 | ref="ruleForm" | 8 | ref="ruleForm" |
9 | :label-position="flag ? 'top' : ''" | 9 | :label-position="flag ? 'top' : ''" |
10 | :inline="flag" | 10 | :inline="flag" |
11 | label-width="120px" | 11 | label-width="120px"> |
12 | > | ||
13 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> | 12 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> |
14 | <div class="slxx_title title-block"> | 13 | <div class="slxx_title title-block"> |
15 | 受理信息 | 14 | 受理信息 |
... | @@ -135,8 +134,7 @@ | ... | @@ -135,8 +134,7 @@ |
135 | <el-form-item label="是否存在禁止或限制:"> | 134 | <el-form-item label="是否存在禁止或限制:"> |
136 | <el-input | 135 | <el-input |
137 | v-model="ruleForm.ygdj.sfczjzhxz" | 136 | v-model="ruleForm.ygdj.sfczjzhxz" |
138 | :disabled="ruleForm.sldy.djlx == '300' && !viewEdit" | 137 | :disabled="ruleForm.sldy.djlx == '300' && !viewEdit"></el-input> |
139 | ></el-input> | ||
140 | </el-form-item> | 138 | </el-form-item> |
141 | </el-col> | 139 | </el-col> |
142 | <el-col :span="8"> | 140 | <el-col :span="8"> |
... | @@ -148,8 +146,7 @@ | ... | @@ -148,8 +146,7 @@ |
148 | v-for="item in dictData['A57']" | 146 | v-for="item in dictData['A57']" |
149 | :key="item.dcode" | 147 | :key="item.dcode" |
150 | :label="item.dname" | 148 | :label="item.dname" |
151 | :value="item.dcode" | 149 | :value="item.dcode"></el-option> |
152 | ></el-option> | ||
153 | </el-select> | 150 | </el-select> |
154 | </div> | 151 | </div> |
155 | </el-form-item> | 152 | </el-form-item> |
... | @@ -170,8 +167,7 @@ | ... | @@ -170,8 +167,7 @@ |
170 | <el-form-item label="担保范围:"> | 167 | <el-form-item label="担保范围:"> |
171 | <el-input | 168 | <el-input |
172 | v-model="ruleForm.ygdj.dbfw" | 169 | v-model="ruleForm.ygdj.dbfw" |
173 | :disabled="ruleForm.sldy.djlx == '300' && !viewEdit" | 170 | :disabled="ruleForm.sldy.djlx == '300' && !viewEdit"></el-input> |
174 | ></el-input> | ||
175 | </el-form-item> | 171 | </el-form-item> |
176 | </el-col> | 172 | </el-col> |
177 | </el-row> | 173 | </el-row> |
... | @@ -212,8 +208,7 @@ | ... | @@ -212,8 +208,7 @@ |
212 | v-for="item in czrOptions" | 208 | v-for="item in czrOptions" |
213 | :key="item.zjh" | 209 | :key="item.zjh" |
214 | :label="item.sqrmc" | 210 | :label="item.sqrmc" |
215 | :value="item.zjh" | 211 | :value="item.zjh"></el-option> |
216 | ></el-option> | ||
217 | </el-select> | 212 | </el-select> |
218 | </el-form-item> | 213 | </el-form-item> |
219 | </el-col> | 214 | </el-col> |
... | @@ -222,8 +217,7 @@ | ... | @@ -222,8 +217,7 @@ |
222 | @upDateQlrxxList="upDateQlrxxList" | 217 | @upDateQlrxxList="upDateQlrxxList" |
223 | :tableData="ruleForm.qlrList" | 218 | :tableData="ruleForm.qlrList" |
224 | :disabled="viewEdit" | 219 | :disabled="viewEdit" |
225 | :gyfs="ruleForm.sldy.gyfs" | 220 | :gyfs="ruleForm.sldy.gyfs" /> |
226 | /> | ||
227 | <div class="slxx_title title-block"> | 221 | <div class="slxx_title title-block"> |
228 | 义务人信息 | 222 | 义务人信息 |
229 | <div class="triangle"></div> | 223 | <div class="triangle"></div> |
... | @@ -232,8 +226,7 @@ | ... | @@ -232,8 +226,7 @@ |
232 | @upDateQlrxxList="upDateYwrxxList" | 226 | @upDateQlrxxList="upDateYwrxxList" |
233 | :tableData="ruleForm.ywrList" | 227 | :tableData="ruleForm.ywrList" |
234 | :disabled="viewEdit" | 228 | :disabled="viewEdit" |
235 | :gyfs="ruleForm.sldy.gyfs" | 229 | :gyfs="ruleForm.sldy.gyfs" /> |
236 | /> | ||
237 | <div class="slxx_title title-block"> | 230 | <div class="slxx_title title-block"> |
238 | 登记原因 | 231 | 登记原因 |
239 | <div class="triangle"></div> | 232 | <div class="triangle"></div> |
... | @@ -247,8 +240,7 @@ | ... | @@ -247,8 +240,7 @@ |
247 | maxlength="500" | 240 | maxlength="500" |
248 | show-word-limit | 241 | show-word-limit |
249 | :disabled="!viewEdit" | 242 | :disabled="!viewEdit" |
250 | v-model="ruleForm.ygdj.djyy" | 243 | v-model="ruleForm.ygdj.djyy"></el-input> |
251 | ></el-input> | ||
252 | </el-form-item> | 244 | </el-form-item> |
253 | </el-col> | 245 | </el-col> |
254 | </el-row> | 246 | </el-row> |
... | @@ -262,94 +254,147 @@ | ... | @@ -262,94 +254,147 @@ |
262 | </div> | 254 | </div> |
263 | </template> | 255 | </template> |
264 | <script> | 256 | <script> |
265 | import ywmix from "@/views/ywbl/mixin/index"; | 257 | import ywmix from "@/views/ywbl/mixin/index"; |
266 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 258 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
267 | import { Init, saveData } from "@/api/workflow/ygdyFlow.js"; | 259 | import { Init, saveData } from "@/api/workflow/ygdyFlow.js"; |
268 | import { mapGetters } from "vuex"; | 260 | import { mapGetters } from "vuex"; |
269 | export default { | 261 | export default { |
270 | mixins: [ywmix], | 262 | mixins: [ywmix], |
271 | created() { | 263 | created () { |
272 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 264 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
273 | this.propsParam = this.$attrs; | 265 | this.propsParam = this.$attrs; |
274 | var formdata = new FormData(); | 266 | var formdata = new FormData(); |
275 | let that = this; | 267 | let that = this; |
276 | this.loading = true; | 268 | this.loading = true; |
277 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 269 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
278 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 270 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); |
279 | formdata.append("djlx", this.propsParam.djlx); | 271 | formdata.append("djlx", this.propsParam.djlx); |
280 | formdata.append("isEdit", this.viewEdit); | 272 | formdata.append("isEdit", this.viewEdit); |
281 | Init(formdata).then((res) => { | 273 | Init(formdata).then((res) => { |
282 | if (res.code === 200 && res.result) { | 274 | if (res.code === 200 && res.result) { |
283 | that.ruleForm = res.result; | 275 | that.ruleForm = res.result; |
284 | this.czrOptions = this.ruleForm.qlrList; | 276 | this.czrOptions = this.ruleForm.qlrList; |
285 | setTimeout(() => { | 277 | setTimeout(() => { |
286 | that.loading = false; | 278 | that.loading = false; |
287 | }, 300); | 279 | }, 300); |
288 | } | 280 | } |
289 | }); | 281 | }); |
290 | }, | ||
291 | components: { qlrCommonTable }, | ||
292 | computed: { | ||
293 | ...mapGetters(["dictData", "flag"]), | ||
294 | }, | ||
295 | data() { | ||
296 | return { | ||
297 | //表单是否可操作 | ||
298 | viewEdit: true, | ||
299 | loading: false, | ||
300 | disabled: true, | ||
301 | tdytOption: [], | ||
302 | czrOptions: [], | ||
303 | ruleForm: {}, | ||
304 | //传递参数 | ||
305 | propsParam: this.$attrs, | ||
306 | rules: {}, | ||
307 | }; | ||
308 | }, | ||
309 | methods: { | ||
310 | /** | ||
311 | * @description: 更新权利人信息 | ||
312 | * @param {*} val | ||
313 | * @author: renchao | ||
314 | */ | ||
315 | upDateQlrxxList(val) { | ||
316 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
317 | this.czrOptions = this.ruleForm.qlrList; | ||
318 | }, | 282 | }, |
319 | /** | 283 | components: { qlrCommonTable }, |
320 | * @description: 义务人信息 | 284 | computed: { |
321 | * @param {*} val | 285 | ...mapGetters(["dictData", "flag"]), |
322 | * @author: renchao | ||
323 | */ | ||
324 | upDateYwrxxList(val) { | ||
325 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
326 | }, | 286 | }, |
327 | /** | 287 | data () { |
328 | * @description: onSubmit | 288 | return { |
329 | * @author: renchao | 289 | //表单是否可操作 |
330 | */ | 290 | viewEdit: true, |
331 | onSubmit() { | 291 | loading: false, |
332 | saveData(this.ruleForm).then((res) => { | 292 | disabled: true, |
333 | if (res.code === 200) { | 293 | tdytOption: [], |
334 | this.$message({ | 294 | czrOptions: [], |
335 | showClose: true, | 295 | ruleForm: {}, |
336 | message: "保存成功!", | 296 | //传递参数 |
337 | type: "success", | 297 | propsParam: this.$attrs, |
338 | }); | 298 | rules: {}, |
339 | this.$store.dispatch("user/refreshPage", true); | 299 | }; |
340 | } else { | 300 | }, |
301 | methods: { | ||
302 | /** | ||
303 | * @description: 更新权利人信息 | ||
304 | * @param {*} val | ||
305 | * @author: renchao | ||
306 | */ | ||
307 | upDateQlrxxList (val) { | ||
308 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
309 | this.czrOptions = this.ruleForm.qlrList; | ||
310 | }, | ||
311 | /** | ||
312 | * @description: 义务人信息 | ||
313 | * @param {*} val | ||
314 | * @author: renchao | ||
315 | */ | ||
316 | upDateYwrxxList (val) { | ||
317 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
318 | }, | ||
319 | /** | ||
320 | * @description: onSubmit | ||
321 | * @author: renchao | ||
322 | */ | ||
323 | onSubmit () { | ||
324 | let that = this | ||
325 | if (this.ruleForm.qlrList.length == 0) { | ||
341 | this.$message({ | 326 | this.$message({ |
342 | showClose: true, | 327 | showClose: true, |
343 | message: res.message, | 328 | message: "请确认权利人信息", |
344 | type: "error", | 329 | type: "error", |
345 | }); | 330 | }); |
331 | return false; | ||
346 | } | 332 | } |
347 | }); | 333 | |
334 | if (this.ruleForm.sldy.gyfs == "0") { | ||
335 | if (this.ruleForm.qlrList.length > 1) { | ||
336 | this.$message({ | ||
337 | showClose: true, | ||
338 | message: "共有方式:单独所有,权利人只能是一个人", | ||
339 | type: "error", | ||
340 | }); | ||
341 | return false; | ||
342 | } | ||
343 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
344 | } else { | ||
345 | if (this.ruleForm.qlrList.length <= 1) { | ||
346 | this.$message({ | ||
347 | showClose: true, | ||
348 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
349 | type: "error", | ||
350 | }); | ||
351 | return false; | ||
352 | } | ||
353 | //是否分别持证 | ||
354 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
355 | //是 | ||
356 | this.ruleForm.qlrList.forEach((item, index) => { | ||
357 | item.sfczr = "1"; | ||
358 | }); | ||
359 | } else { | ||
360 | if (!that.ruleForm.czr) { | ||
361 | that.$message({ | ||
362 | showClose: true, | ||
363 | message: "请选择持证人", | ||
364 | type: "error", | ||
365 | }); | ||
366 | return false; | ||
367 | } | ||
368 | this.ruleForm.qlrList.forEach((item, index) => { | ||
369 | if (item.zjh == this.ruleForm.czr) { | ||
370 | item.sfczr = "1"; | ||
371 | } else { | ||
372 | item.sfczr = "0"; | ||
373 | } | ||
374 | }); | ||
375 | } | ||
376 | } | ||
377 | saveData(this.ruleForm).then((res) => { | ||
378 | if (res.code === 200) { | ||
379 | this.$message({ | ||
380 | showClose: true, | ||
381 | message: "保存成功!", | ||
382 | type: "success", | ||
383 | }); | ||
384 | this.$store.dispatch("user/refreshPage", true); | ||
385 | } else { | ||
386 | this.$message({ | ||
387 | showClose: true, | ||
388 | message: res.message, | ||
389 | type: "error", | ||
390 | }); | ||
391 | } | ||
392 | }); | ||
393 | }, | ||
348 | }, | 394 | }, |
349 | }, | 395 | }; |
350 | }; | ||
351 | </script> | 396 | </script> |
352 | <style scoped lang='scss'> | 397 | <style scoped lang='scss'> |
353 | @import "~@/styles/public.scss"; | 398 | @import "~@/styles/public.scss"; |
354 | @import "~@/styles/slxx/slxx.scss"; | 399 | @import "~@/styles/slxx/slxx.scss"; |
355 | </style> | 400 | </style> | ... | ... |
... | @@ -252,6 +252,8 @@ | ... | @@ -252,6 +252,8 @@ |
252 | * @author: renchao | 252 | * @author: renchao |
253 | */ | 253 | */ |
254 | onSubmitClick () { | 254 | onSubmitClick () { |
255 | let that = this | ||
256 | |||
255 | saveBatchData(this.ruleForm, this.propsParam.djlx).then((res) => { | 257 | saveBatchData(this.ruleForm, this.propsParam.djlx).then((res) => { |
256 | if (res.code === 200) { | 258 | if (res.code === 200) { |
257 | this.$message({ | 259 | this.$message({ | ... | ... |
... | @@ -319,6 +319,59 @@ | ... | @@ -319,6 +319,59 @@ |
319 | * @author: renchao | 319 | * @author: renchao |
320 | */ | 320 | */ |
321 | onSubmitClick () { | 321 | onSubmitClick () { |
322 | let that = this | ||
323 | if (this.ruleForm.qlrList.length == 0) { | ||
324 | this.$message({ | ||
325 | showClose: true, | ||
326 | message: "请确认权利人信息", | ||
327 | type: "error", | ||
328 | }); | ||
329 | return false; | ||
330 | } | ||
331 | |||
332 | if (this.ruleForm.sldy.gyfs == "0") { | ||
333 | if (this.ruleForm.qlrList.length > 1) { | ||
334 | this.$message({ | ||
335 | showClose: true, | ||
336 | message: "共有方式:单独所有,权利人只能是一个人", | ||
337 | type: "error", | ||
338 | }); | ||
339 | return false; | ||
340 | } | ||
341 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
342 | } else { | ||
343 | if (this.ruleForm.qlrList.length <= 1) { | ||
344 | this.$message({ | ||
345 | showClose: true, | ||
346 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
347 | type: "error", | ||
348 | }); | ||
349 | return false; | ||
350 | } | ||
351 | //是否分别持证 | ||
352 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
353 | //是 | ||
354 | this.ruleForm.qlrList.forEach((item, index) => { | ||
355 | item.sfczr = "1"; | ||
356 | }); | ||
357 | } else { | ||
358 | if (!that.ruleForm.czr) { | ||
359 | that.$message({ | ||
360 | showClose: true, | ||
361 | message: "请选择持证人", | ||
362 | type: "error", | ||
363 | }); | ||
364 | return false; | ||
365 | } | ||
366 | this.ruleForm.qlrList.forEach((item, index) => { | ||
367 | if (item.zjh == this.ruleForm.czr) { | ||
368 | item.sfczr = "1"; | ||
369 | } else { | ||
370 | item.sfczr = "0"; | ||
371 | } | ||
372 | }); | ||
373 | } | ||
374 | } | ||
322 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { | 375 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { |
323 | if (res.code === 200) { | 376 | if (res.code === 200) { |
324 | this.$message({ | 377 | this.$message({ | ... | ... |
-
Please register or sign in to post a comment