在建工程抵押权
Showing
1 changed file
with
213 additions
and
254 deletions
... | @@ -7,8 +7,7 @@ | ... | @@ -7,8 +7,7 @@ |
7 | :label-position="flag ? 'top' : ''" | 7 | :label-position="flag ? 'top' : ''" |
8 | :inline="flag" | 8 | :inline="flag" |
9 | ref="ruleForm" | 9 | ref="ruleForm" |
10 | label-width="140px" | 10 | label-width="140px"> |
11 | > | ||
12 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> | 11 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> |
13 | <div class="slxx_title title-block"> | 12 | <div class="slxx_title title-block"> |
14 | 申请业务信息 | 13 | 申请业务信息 |
... | @@ -36,16 +35,14 @@ | ... | @@ -36,16 +35,14 @@ |
36 | <el-form-item label="权利类型:"> | 35 | <el-form-item label="权利类型:"> |
37 | <el-input | 36 | <el-input |
38 | disabled | 37 | disabled |
39 | v-model="ruleForm.sldyList[0].qllxmc" | 38 | v-model="ruleForm.sldyList[0].qllxmc"></el-input> |
40 | ></el-input> | ||
41 | </el-form-item> | 39 | </el-form-item> |
42 | </el-col> | 40 | </el-col> |
43 | <el-col :span="8"> | 41 | <el-col :span="8"> |
44 | <el-form-item label="登记类型:"> | 42 | <el-form-item label="登记类型:"> |
45 | <el-input | 43 | <el-input |
46 | disabled | 44 | disabled |
47 | v-model="ruleForm.sldyList[0].djlxmc" | 45 | v-model="ruleForm.sldyList[0].djlxmc"></el-input> |
48 | ></el-input> | ||
49 | </el-form-item> | 46 | </el-form-item> |
50 | </el-col> | 47 | </el-col> |
51 | <el-col :span="8"> | 48 | <el-col :span="8"> |
... | @@ -57,8 +54,7 @@ | ... | @@ -57,8 +54,7 @@ |
57 | 54 | ||
58 | <div | 55 | <div |
59 | class="slxx_title title-block" | 56 | class="slxx_title title-block" |
60 | v-if="ruleForm.slsq.djywbm.includes('400')" | 57 | v-if="ruleForm.slsq.djywbm.includes('400')"> |
61 | > | ||
62 | 在建工程抵押信息列表({{ ruleForm.qlxxList.length }} 户) | 58 | 在建工程抵押信息列表({{ ruleForm.qlxxList.length }} 户) |
63 | <div class="triangle"></div> | 59 | <div class="triangle"></div> |
64 | </div> | 60 | </div> |
... | @@ -68,8 +64,7 @@ | ... | @@ -68,8 +64,7 @@ |
68 | </div> | 64 | </div> |
69 | <qlxxTable | 65 | <qlxxTable |
70 | :tableData="ruleForm.qlxxList" | 66 | :tableData="ruleForm.qlxxList" |
71 | v-if="ruleForm.slsq.djywbm.includes('400')" | 67 | v-if="ruleForm.slsq.djywbm.includes('400')" /> |
72 | /> | ||
73 | <qjhTable v-else :tableData="ruleForm.hlist" /> | 68 | <qjhTable v-else :tableData="ruleForm.hlist" /> |
74 | <div class="slxx_title title-block"> | 69 | <div class="slxx_title title-block"> |
75 | 抵押信息 | 70 | 抵押信息 |
... | @@ -77,8 +72,7 @@ | ... | @@ -77,8 +72,7 @@ |
77 | </div> | 72 | </div> |
78 | <el-row | 73 | <el-row |
79 | :gutter="10" | 74 | :gutter="10" |
80 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0" | 75 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0"> |
81 | > | ||
82 | <el-col :span="8"> | 76 | <el-col :span="8"> |
83 | <el-form-item label="抵押方式:"> | 77 | <el-form-item label="抵押方式:"> |
84 | <el-radio-group disabled v-model="ruleForm.diyaqList[0].dyfs"> | 78 | <el-radio-group disabled v-model="ruleForm.diyaqList[0].dyfs"> |
... | @@ -91,8 +85,7 @@ | ... | @@ -91,8 +85,7 @@ |
91 | <el-form-item label="抵押金额类型:"> | 85 | <el-form-item label="抵押金额类型:"> |
92 | <el-radio-group | 86 | <el-radio-group |
93 | v-model="ruleForm.diyaqList[0].dyjelx" | 87 | v-model="ruleForm.diyaqList[0].dyjelx" |
94 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 88 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> |
95 | > | ||
96 | <el-radio label="0">独立抵押</el-radio> | 89 | <el-radio label="0">独立抵押</el-radio> |
97 | <el-radio label="1">整体抵押</el-radio> | 90 | <el-radio label="1">整体抵押</el-radio> |
98 | </el-radio-group> | 91 | </el-radio-group> |
... | @@ -102,12 +95,10 @@ | ... | @@ -102,12 +95,10 @@ |
102 | <el-form-item | 95 | <el-form-item |
103 | label="是否禁止或者限制转让约定:" | 96 | label="是否禁止或者限制转让约定:" |
104 | label-width="200px" | 97 | label-width="200px" |
105 | prop="diyaqList[0].sfczjzhxz" | 98 | prop="diyaqList[0].sfczjzhxz"> |
106 | > | ||
107 | <el-radio-group | 99 | <el-radio-group |
108 | v-model="ruleForm.diyaqList[0].sfczjzhxz" | 100 | v-model="ruleForm.diyaqList[0].sfczjzhxz" |
109 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 101 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> |
110 | > | ||
111 | <el-radio label="1">启用</el-radio> | 102 | <el-radio label="1">启用</el-radio> |
112 | <el-radio label="0">禁用</el-radio> | 103 | <el-radio label="0">禁用</el-radio> |
113 | </el-radio-group> | 104 | </el-radio-group> |
... | @@ -116,29 +107,24 @@ | ... | @@ -116,29 +107,24 @@ |
116 | </el-row> | 107 | </el-row> |
117 | <el-row | 108 | <el-row |
118 | :gutter="10" | 109 | :gutter="10" |
119 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0" | 110 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0"> |
120 | > | ||
121 | <el-col :span="8" v-show="ruleForm.diyaqList[0].dyfs == 1"> | 111 | <el-col :span="8" v-show="ruleForm.diyaqList[0].dyfs == 1"> |
122 | <el-form-item | 112 | <el-form-item |
123 | label="被担保主债权数额:" | 113 | label="被担保主债权数额:" |
124 | prop="diyaqList[0].bdbzzqse" | 114 | prop="diyaqList[0].bdbzzqse"> |
125 | > | ||
126 | <div style="display: flex"> | 115 | <div style="display: flex"> |
127 | <el-input | 116 | <el-input |
128 | v-model="ruleForm.diyaqList[0].bdbzzqse" | 117 | v-model="ruleForm.diyaqList[0].bdbzzqse" |
129 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 118 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
130 | ></el-input> | ||
131 | <el-select | 119 | <el-select |
132 | style="width: 68px" | 120 | style="width: 68px" |
133 | v-model="ruleForm.diyaqList[0].jedw" | 121 | v-model="ruleForm.diyaqList[0].jedw" |
134 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 122 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> |
135 | > | ||
136 | <el-option | 123 | <el-option |
137 | v-for="item in dictData['A57']" | 124 | v-for="item in dictData['A57']" |
138 | :key="item.dcode" | 125 | :key="item.dcode" |
139 | :label="item.dname" | 126 | :label="item.dname" |
140 | :value="item.dcode" | 127 | :value="item.dcode"> |
141 | > | ||
142 | </el-option> | 128 | </el-option> |
143 | </el-select> | 129 | </el-select> |
144 | </div> | 130 | </div> |
... | @@ -149,18 +135,15 @@ | ... | @@ -149,18 +135,15 @@ |
149 | <el-form-item label="最高债权额:" prop="diyaqList[0].zgzqse"> | 135 | <el-form-item label="最高债权额:" prop="diyaqList[0].zgzqse"> |
150 | <el-input | 136 | <el-input |
151 | v-model="ruleForm.diyaqList[0].zgzqse" | 137 | v-model="ruleForm.diyaqList[0].zgzqse" |
152 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 138 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
153 | ></el-input> | ||
154 | <el-select | 139 | <el-select |
155 | v-model="ruleForm.diyaqList[0].jedw" | 140 | v-model="ruleForm.diyaqList[0].jedw" |
156 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 141 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> |
157 | > | ||
158 | <el-option | 142 | <el-option |
159 | v-for="item in dictData['A57']" | 143 | v-for="item in dictData['A57']" |
160 | :key="item.dcode" | 144 | :key="item.dcode" |
161 | :label="item.dname" | 145 | :label="item.dname" |
162 | :value="item.dcode" | 146 | :value="item.dcode"> |
163 | > | ||
164 | </el-option> | 147 | </el-option> |
165 | </el-select> | 148 | </el-select> |
166 | </el-form-item> | 149 | </el-form-item> |
... | @@ -169,26 +152,22 @@ | ... | @@ -169,26 +152,22 @@ |
169 | <el-col :span="8"> | 152 | <el-col :span="8"> |
170 | <el-form-item | 153 | <el-form-item |
171 | label="债务履行起始时间:" | 154 | label="债务履行起始时间:" |
172 | prop="diyaqList[0].zwlxqssj" | 155 | prop="diyaqList[0].zwlxqssj"> |
173 | > | ||
174 | <el-date-picker | 156 | <el-date-picker |
175 | v-model="ruleForm.diyaqList[0].zwlxqssj" | 157 | v-model="ruleForm.diyaqList[0].zwlxqssj" |
176 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 158 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" |
177 | type="date" | 159 | type="date"> |
178 | > | ||
179 | </el-date-picker> | 160 | </el-date-picker> |
180 | </el-form-item> | 161 | </el-form-item> |
181 | </el-col> | 162 | </el-col> |
182 | <el-col :span="8"> | 163 | <el-col :span="8"> |
183 | <el-form-item | 164 | <el-form-item |
184 | label="债务履行结束时间:" | 165 | label="债务履行结束时间:" |
185 | prop="diyaqList[0].zwlxjssj" | 166 | prop="diyaqList[0].zwlxjssj"> |
186 | > | ||
187 | <el-date-picker | 167 | <el-date-picker |
188 | v-model="ruleForm.diyaqList[0].zwlxjssj" | 168 | v-model="ruleForm.diyaqList[0].zwlxjssj" |
189 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 169 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" |
190 | type="date" | 170 | type="date"> |
191 | > | ||
192 | </el-date-picker> | 171 | </el-date-picker> |
193 | </el-form-item> | 172 | </el-form-item> |
194 | </el-col> | 173 | </el-col> |
... | @@ -199,8 +178,7 @@ | ... | @@ -199,8 +178,7 @@ |
199 | <el-form-item label="担保范围:"> | 178 | <el-form-item label="担保范围:"> |
200 | <el-input | 179 | <el-input |
201 | v-model="ruleForm.diyaqList[0].dbfw" | 180 | v-model="ruleForm.diyaqList[0].dbfw" |
202 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 181 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
203 | ></el-input> | ||
204 | </el-form-item> | 182 | </el-form-item> |
205 | </el-col> | 183 | </el-col> |
206 | </el-row> | 184 | </el-row> |
... | @@ -208,12 +186,10 @@ | ... | @@ -208,12 +186,10 @@ |
208 | <el-col :span="24"> | 186 | <el-col :span="24"> |
209 | <el-form-item | 187 | <el-form-item |
210 | label="最高债权确定事实和数额:" | 188 | label="最高债权确定事实和数额:" |
211 | prop="diyaqList[0].zgzqqdss" | 189 | prop="diyaqList[0].zgzqqdss"> |
212 | > | ||
213 | <el-input | 190 | <el-input |
214 | v-model="ruleForm.diyaqList[0].zgzqqdss" | 191 | v-model="ruleForm.diyaqList[0].zgzqqdss" |
215 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 192 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
216 | ></el-input> | ||
217 | </el-form-item> | 193 | </el-form-item> |
218 | </el-col> | 194 | </el-col> |
219 | </el-row> | 195 | </el-row> |
... | @@ -225,8 +201,7 @@ | ... | @@ -225,8 +201,7 @@ |
225 | maxlength="500" | 201 | maxlength="500" |
226 | show-word-limit | 202 | show-word-limit |
227 | v-model="ruleForm.diyaqList[0].fj" | 203 | v-model="ruleForm.diyaqList[0].fj" |
228 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 204 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
229 | ></el-input> | ||
230 | </el-form-item> | 205 | </el-form-item> |
231 | </el-col> | 206 | </el-col> |
232 | </el-row> | 207 | </el-row> |
... | @@ -237,14 +212,12 @@ | ... | @@ -237,14 +212,12 @@ |
237 | </div> | 212 | </div> |
238 | <el-row | 213 | <el-row |
239 | :gutter="10" | 214 | :gutter="10" |
240 | v-if="ruleForm.sldyList && ruleForm.sldyList.length > 0" | 215 | v-if="ruleForm.sldyList && ruleForm.sldyList.length > 0"> |
241 | > | ||
242 | <el-col :span="14"> | 216 | <el-col :span="14"> |
243 | <el-form-item label="共有方式:"> | 217 | <el-form-item label="共有方式:"> |
244 | <el-radio-group | 218 | <el-radio-group |
245 | :disabled="!viewEdit" | 219 | :disabled="!viewEdit" |
246 | v-model="ruleForm.sldyList[0].gyfs" | 220 | v-model="ruleForm.sldyList[0].gyfs"> |
247 | > | ||
248 | <el-radio label="0">单独所有</el-radio> | 221 | <el-radio label="0">单独所有</el-radio> |
249 | <el-radio label="1">共同共有</el-radio> | 222 | <el-radio label="1">共同共有</el-radio> |
250 | <el-radio label="2">按份所有</el-radio> | 223 | <el-radio label="2">按份所有</el-radio> |
... | @@ -257,8 +230,7 @@ | ... | @@ -257,8 +230,7 @@ |
257 | <el-radio-group | 230 | <el-radio-group |
258 | v-model="ruleForm.sldyList[0].sqfbcz" | 231 | v-model="ruleForm.sldyList[0].sqfbcz" |
259 | :disabled="!viewEdit" | 232 | :disabled="!viewEdit" |
260 | @input="updaterow()" | 233 | @input="updaterow()"> |
261 | > | ||
262 | <el-radio :label="1">是</el-radio> | 234 | <el-radio :label="1">是</el-radio> |
263 | <el-radio :label="0">否</el-radio> | 235 | <el-radio :label="0">否</el-radio> |
264 | </el-radio-group> | 236 | </el-radio-group> |
... | @@ -269,20 +241,17 @@ | ... | @@ -269,20 +241,17 @@ |
269 | v-show=" | 241 | v-show=" |
270 | ruleForm.sldyList[0].gyfs != '0' && | 242 | ruleForm.sldyList[0].gyfs != '0' && |
271 | ruleForm.sldyList[0].sqfbcz == '0' | 243 | ruleForm.sldyList[0].sqfbcz == '0' |
272 | " | 244 | "> |
273 | > | ||
274 | <el-form-item label="持证人:"> | 245 | <el-form-item label="持证人:"> |
275 | <el-select | 246 | <el-select |
276 | v-model="czr" | 247 | v-model="czr" |
277 | placeholder="持证人" | 248 | placeholder="持证人" |
278 | :disabled="!viewEdit" | 249 | :disabled="!viewEdit"> |
279 | > | ||
280 | <el-option | 250 | <el-option |
281 | v-for="(item, index) in czrOptions" | 251 | v-for="(item, index) in czrOptions" |
282 | :key="index" | 252 | :key="index" |
283 | :label="item.sqrmc" | 253 | :label="item.sqrmc" |
284 | :value="item.id" | 254 | :value="item.id"> |
285 | > | ||
286 | </el-option> | 255 | </el-option> |
287 | </el-select> | 256 | </el-select> |
288 | </el-form-item> | 257 | </el-form-item> |
... | @@ -293,8 +262,7 @@ | ... | @@ -293,8 +262,7 @@ |
293 | :tableData="ruleForm.qlrList" | 262 | :tableData="ruleForm.qlrList" |
294 | @upDateQlrxxList="upDateQlrxxList" | 263 | @upDateQlrxxList="upDateQlrxxList" |
295 | :disabled="viewEdit" | 264 | :disabled="viewEdit" |
296 | :gyfs="ruleForm.sldyList[0].gyfs" | 265 | :gyfs="ruleForm.sldyList[0].gyfs" /> |
297 | /> | ||
298 | <div class="slxx_title title-block"> | 266 | <div class="slxx_title title-block"> |
299 | 抵押人信息 | 267 | 抵押人信息 |
300 | <div class="triangle"></div> | 268 | <div class="triangle"></div> |
... | @@ -302,8 +270,7 @@ | ... | @@ -302,8 +270,7 @@ |
302 | <qlrCommonTable | 270 | <qlrCommonTable |
303 | :tableData="ruleForm.ywrList" | 271 | :tableData="ruleForm.ywrList" |
304 | @upDateQlrxxList="upDateYwrxxList" | 272 | @upDateQlrxxList="upDateYwrxxList" |
305 | :disabled="viewEdit" | 273 | :disabled="viewEdit" /> |
306 | /> | ||
307 | 274 | ||
308 | <div class="slxx_title title-block"> | 275 | <div class="slxx_title title-block"> |
309 | 登记原因 | 276 | 登记原因 |
... | @@ -311,31 +278,27 @@ | ... | @@ -311,31 +278,27 @@ |
311 | </div> | 278 | </div> |
312 | <el-row | 279 | <el-row |
313 | :gutter="10" | 280 | :gutter="10" |
314 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0" | 281 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0"> |
315 | > | ||
316 | <el-col> | 282 | <el-col> |
317 | <el-form-item | 283 | <el-form-item |
318 | v-if="ruleForm.sldyList[0].djlx == '400'" | 284 | v-if="ruleForm.sldyList[0].djlx == '400'" |
319 | label="注销抵押原因:" | 285 | label="注销抵押原因:" |
320 | prop="diyaqList[0].zxdyyy" | 286 | :prop="'diyaqList.'+0+'.zxdyyy'" :rules="{ required: true, message: '请输入注销抵押原因', trigger: 'blur' }"> |
321 | > | ||
322 | <el-input | 287 | <el-input |
323 | class="textArea" | 288 | class="textArea" |
324 | type="textarea" | 289 | type="textarea" |
325 | :disabled="!viewEdit" | 290 | :disabled="!viewEdit" |
326 | v-model="ruleForm.diyaqList[0].zxdyyy" | 291 | v-model="ruleForm.diyaqList[0].zxdyyy"> |
327 | > | ||
328 | </el-input> | 292 | </el-input> |
329 | </el-form-item> | 293 | </el-form-item> |
330 | <el-form-item v-else label="登记原因:" prop="diyaqList[0].djyy"> | 294 | <el-form-item v-else label="登记原因:" :prop="'diyaqList.'+0+'.djyy'" :rules="{ required: true, message: '请输入注销抵押原因', trigger: 'blur' }"> |
331 | <el-input | 295 | <el-input |
332 | class="textArea" | 296 | class="textArea" |
333 | type="textarea" | 297 | type="textarea" |
334 | maxlength="500" | 298 | maxlength="500" |
335 | show-word-limit | 299 | show-word-limit |
336 | :disabled="!viewEdit" | 300 | :disabled="!viewEdit" |
337 | v-model="ruleForm.diyaqList[0].djyy" | 301 | v-model="ruleForm.diyaqList[0].djyy"> |
338 | > | ||
339 | </el-input> | 302 | </el-input> |
340 | </el-form-item> | 303 | </el-form-item> |
341 | </el-col> | 304 | </el-col> |
... | @@ -350,209 +313,205 @@ | ... | @@ -350,209 +313,205 @@ |
350 | </div> | 313 | </div> |
351 | </template> | 314 | </template> |
352 | <script> | 315 | <script> |
353 | import qjhTable from "../commonTable/qjhTable"; | 316 | import qjhTable from "../commonTable/qjhTable"; |
354 | import qlxxTable from "../commonTable/qlxxTable.vue"; | 317 | import qlxxTable from "../commonTable/qlxxTable.vue"; |
355 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 318 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
356 | import { bacthInit, saveBatchData } from "@/api/workflow/zjgcdyFlow.js"; | 319 | import { bacthInit, saveBatchData } from "@/api/workflow/zjgcdyFlow.js"; |
357 | import { formValidate } from "./bacthSlxxValidate"; | 320 | import { formValidate } from "./bacthSlxxValidate"; |
358 | import { mapGetters } from "vuex"; | 321 | import { mapGetters } from "vuex"; |
359 | export default { | 322 | export default { |
360 | mounted() { | 323 | mounted () { |
361 | let that = this; | ||
362 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | ||
363 | this.propsParam = this.$attrs; | ||
364 | var formdata = new FormData(); | ||
365 | |||
366 | this.loading = true; | ||
367 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | ||
368 | formdata.append("djlx", this.propsParam.djlx); | ||
369 | formdata.append("isEdit", this.viewEdit); | ||
370 | bacthInit(formdata) | ||
371 | .then((res) => { | ||
372 | setTimeout(() => { | ||
373 | that.loading = false; | ||
374 | }, 200); | ||
375 | if (res.code === 200 && res.result) { | ||
376 | this.ruleForm = res.result; | ||
377 | this.ruleForm.qlrList.forEach((item) => { | ||
378 | item.id = item.bsmSqr; | ||
379 | if (item.sfczr == "1") { | ||
380 | that.czr = item.bsmSqr; | ||
381 | } | ||
382 | }); | ||
383 | that.czrOptions = that.ruleForm.qlrList; | ||
384 | that.isSave = that.viewEdit; | ||
385 | // that.rules = formValidate( | ||
386 | // that.ruleForm.sldyList[0].djlx, | ||
387 | // that.ruleForm.diyaqList[0].dyfs | ||
388 | // ); | ||
389 | } else { | ||
390 | that.isSave = false; | ||
391 | that.$confirm(res.message, "提示", { | ||
392 | cancelButtonText: "取消", | ||
393 | showConfirmButton: false, | ||
394 | type: "warning", | ||
395 | }); | ||
396 | } | ||
397 | }) | ||
398 | .catch(() => { | ||
399 | this.loading = false; | ||
400 | }); | ||
401 | }, | ||
402 | components: { qlrCommonTable, qjhTable, qlxxTable }, | ||
403 | computed: { | ||
404 | ...mapGetters(["dictData", "flag"]), | ||
405 | }, | ||
406 | data() { | ||
407 | return { | ||
408 | isSave: true, | ||
409 | loading: false, | ||
410 | //表单是否可操作 | ||
411 | viewEdit: true, | ||
412 | disabled: true, | ||
413 | czrOptions: [], | ||
414 | czr: "", | ||
415 | ruleForm: {}, | ||
416 | //传递参数 | ||
417 | propsParam: {}, | ||
418 | rules: { | ||
419 | 'diyaqList[0].djyy': [ | ||
420 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
421 | ] | ||
422 | }, | ||
423 | tableData: [], | ||
424 | }; | ||
425 | }, | ||
426 | methods: { | ||
427 | /** | ||
428 | * @description: onSubmitClick | ||
429 | * @author: renchao | ||
430 | */ | ||
431 | onSubmitClick() { | ||
432 | let that = this; | 324 | let that = this; |
433 | if (this.ruleForm.qlrList.length == 0) { | 325 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
434 | this.$message({ | 326 | this.propsParam = this.$attrs; |
435 | showClose: true, | 327 | var formdata = new FormData(); |
436 | message: "请确认抵押权人信息", | 328 | |
437 | type: "error", | 329 | this.loading = true; |
330 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | ||
331 | formdata.append("djlx", this.propsParam.djlx); | ||
332 | formdata.append("isEdit", this.viewEdit); | ||
333 | bacthInit(formdata) | ||
334 | .then((res) => { | ||
335 | setTimeout(() => { | ||
336 | that.loading = false; | ||
337 | }, 200); | ||
338 | if (res.code === 200 && res.result) { | ||
339 | this.ruleForm = res.result; | ||
340 | this.ruleForm.qlrList.forEach((item) => { | ||
341 | item.id = item.bsmSqr; | ||
342 | if (item.sfczr == "1") { | ||
343 | that.czr = item.bsmSqr; | ||
344 | } | ||
345 | }); | ||
346 | that.czrOptions = that.ruleForm.qlrList; | ||
347 | that.isSave = that.viewEdit; | ||
348 | // that.rules = formValidate( | ||
349 | // that.ruleForm.sldyList[0].djlx, | ||
350 | // that.ruleForm.diyaqList[0].dyfs | ||
351 | // ); | ||
352 | } else { | ||
353 | that.isSave = false; | ||
354 | that.$confirm(res.message, "提示", { | ||
355 | cancelButtonText: "取消", | ||
356 | showConfirmButton: false, | ||
357 | type: "warning", | ||
358 | }); | ||
359 | } | ||
360 | }) | ||
361 | .catch(() => { | ||
362 | this.loading = false; | ||
438 | }); | 363 | }); |
439 | return false; | 364 | }, |
365 | components: { qlrCommonTable, qjhTable, qlxxTable }, | ||
366 | computed: { | ||
367 | ...mapGetters(["dictData", "flag"]), | ||
368 | }, | ||
369 | data () { | ||
370 | return { | ||
371 | isSave: true, | ||
372 | loading: false, | ||
373 | //表单是否可操作 | ||
374 | viewEdit: true, | ||
375 | disabled: true, | ||
376 | czrOptions: [], | ||
377 | czr: "", | ||
378 | ruleForm: {}, | ||
379 | //传递参数 | ||
380 | propsParam: {}, | ||
381 | rules: {}, | ||
382 | tableData: [] | ||
440 | } | 383 | } |
441 | if (this.ruleForm.sldyList[0].gyfs == "0") { | 384 | }, |
442 | if (this.ruleForm.qlrList.length > 1) { | 385 | methods: { |
443 | this.$message({ | 386 | /** |
444 | showClose: true, | 387 | * @description: onSubmitClick |
445 | message: "共有方式:单独所有,抵押权人只能是一个人", | 388 | * @author: renchao |
446 | type: "error", | 389 | */ |
447 | }); | 390 | onSubmitClick () { |
448 | return false; | 391 | let that = this; |
449 | } | 392 | if (this.ruleForm.qlrList.length == 0) { |
450 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
451 | } else { | ||
452 | if (this.ruleForm.qlrList.length <= 1) { | ||
453 | this.$message({ | 393 | this.$message({ |
454 | showClose: true, | 394 | showClose: true, |
455 | message: | 395 | message: "请确认抵押权人信息", |
456 | "共有方式:共同所有,按份所有,其他所有,抵押权人必须是两个以上", | ||
457 | type: "error", | 396 | type: "error", |
458 | }); | 397 | }); |
459 | return false; | 398 | return false; |
460 | } | 399 | } |
461 | //是否分别持证 | 400 | if (this.ruleForm.sldyList[0].gyfs == "0") { |
462 | if (this.ruleForm.sldyList[0].sqfbcz == "1") { | 401 | if (this.ruleForm.qlrList.length > 1) { |
463 | //是 | 402 | this.$message({ |
464 | this.ruleForm.qlrList.forEach((item, index) => { | 403 | showClose: true, |
465 | item.sfczr = "1"; | 404 | message: "共有方式:单独所有,抵押权人只能是一个人", |
466 | }); | 405 | type: "error", |
406 | }); | ||
407 | return false; | ||
408 | } | ||
409 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
467 | } else { | 410 | } else { |
468 | if (that.czr === "") { | 411 | if (this.ruleForm.qlrList.length <= 1) { |
469 | that.$message({ | 412 | this.$message({ |
470 | showClose: true, | 413 | showClose: true, |
471 | message: "请选择持证人", | 414 | message: |
415 | "共有方式:共同所有,按份所有,其他所有,抵押权人必须是两个以上", | ||
472 | type: "error", | 416 | type: "error", |
473 | }); | 417 | }); |
474 | return false; | 418 | return false; |
475 | } | 419 | } |
476 | this.ruleForm.qlrList.forEach((item, index) => { | 420 | //是否分别持证 |
477 | if (item.id == that.czr) { | 421 | if (this.ruleForm.sldyList[0].sqfbcz == "1") { |
422 | //是 | ||
423 | this.ruleForm.qlrList.forEach((item, index) => { | ||
478 | item.sfczr = "1"; | 424 | item.sfczr = "1"; |
479 | } else { | 425 | }); |
480 | item.sfczr = "0"; | 426 | } else { |
481 | } | 427 | if (that.czr === "") { |
482 | }); | ||
483 | } | ||
484 | } | ||
485 | this.$refs["ruleForm"].validate((valid) => { | ||
486 | if (valid) { | ||
487 | that.$store.dispatch("user/refreshPage", false); | ||
488 | saveBatchData(that.ruleForm, that.propsParam.djlx).then((res) => { | ||
489 | if (res.code === 200) { | ||
490 | that.$message({ | ||
491 | showClose: true, | ||
492 | message: "保存成功!", | ||
493 | type: "success", | ||
494 | }); | ||
495 | that.$store.dispatch("user/refreshPage", true); | ||
496 | } else { | ||
497 | that.$message({ | 428 | that.$message({ |
498 | showClose: true, | 429 | showClose: true, |
499 | message: res.message, | 430 | message: "请选择持证人", |
500 | type: "error", | 431 | type: "error", |
501 | }); | 432 | }); |
433 | return false; | ||
502 | } | 434 | } |
503 | }); | 435 | this.ruleForm.qlrList.forEach((item, index) => { |
504 | } else { | 436 | if (item.id == that.czr) { |
505 | that.$message({ | 437 | item.sfczr = "1"; |
506 | showClose: true, | 438 | } else { |
507 | message: "请输入红框内的相关信息!", | 439 | item.sfczr = "0"; |
508 | type: "error", | 440 | } |
509 | }); | 441 | }); |
510 | return false; | 442 | } |
511 | } | ||
512 | }); | ||
513 | }, | ||
514 | /** | ||
515 | * @description: 是否持证人变化 | ||
516 | * @param {*} val | ||
517 | * @author: renchao | ||
518 | */ | ||
519 | updaterow() { | ||
520 | this.czr = ""; | ||
521 | }, | ||
522 | /** | ||
523 | * @description: 更新抵押权人信息 | ||
524 | * @param {*} val | ||
525 | * @author: renchao | ||
526 | */ | ||
527 | upDateQlrxxList(val) { | ||
528 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | ||
529 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
530 | this.czrOptions = this.ruleForm.qlrList; | ||
531 | } | ||
532 | this.num = 0; | ||
533 | this.ruleForm.qlrList.forEach((item) => { | ||
534 | if (item.id == this.czr) { | ||
535 | this.num++; | ||
536 | } | 443 | } |
537 | }); | 444 | this.$refs["ruleForm"].validate((valid) => { |
538 | if (this.num == 0) { | 445 | if (valid) { |
446 | that.$store.dispatch("user/refreshPage", false); | ||
447 | saveBatchData(that.ruleForm, that.propsParam.djlx).then((res) => { | ||
448 | if (res.code === 200) { | ||
449 | that.$message({ | ||
450 | showClose: true, | ||
451 | message: "保存成功!", | ||
452 | type: "success", | ||
453 | }); | ||
454 | that.$store.dispatch("user/refreshPage", true); | ||
455 | } else { | ||
456 | that.$message({ | ||
457 | showClose: true, | ||
458 | message: res.message, | ||
459 | type: "error", | ||
460 | }); | ||
461 | } | ||
462 | }); | ||
463 | } else { | ||
464 | that.$message({ | ||
465 | showClose: true, | ||
466 | message: "请输入红框内的相关信息!", | ||
467 | type: "error", | ||
468 | }); | ||
469 | return false; | ||
470 | } | ||
471 | }); | ||
472 | }, | ||
473 | /** | ||
474 | * @description: 是否持证人变化 | ||
475 | * @param {*} val | ||
476 | * @author: renchao | ||
477 | */ | ||
478 | updaterow () { | ||
539 | this.czr = ""; | 479 | this.czr = ""; |
540 | } | 480 | }, |
541 | }, | 481 | /** |
542 | /** | 482 | * @description: 更新抵押权人信息 |
543 | * @description: 更新义务人信息 | 483 | * @param {*} val |
544 | * @param {*} val | 484 | * @author: renchao |
545 | * @author: renchao | 485 | */ |
546 | */ | 486 | upDateQlrxxList (val) { |
547 | upDateYwrxxList(val) { | 487 | if (!_.isEqual(val, this.ruleForm.qlrList)) { |
548 | if (!_.isEqual(val, this.ruleForm.ywrList)) { | 488 | this.ruleForm.qlrList = _.cloneDeep(val); |
549 | this.ruleForm.ywrList = _.cloneDeep(val); | 489 | this.czrOptions = this.ruleForm.qlrList; |
550 | } | 490 | } |
491 | this.num = 0; | ||
492 | this.ruleForm.qlrList.forEach((item) => { | ||
493 | if (item.id == this.czr) { | ||
494 | this.num++; | ||
495 | } | ||
496 | }); | ||
497 | if (this.num == 0) { | ||
498 | this.czr = ""; | ||
499 | } | ||
500 | }, | ||
501 | /** | ||
502 | * @description: 更新义务人信息 | ||
503 | * @param {*} val | ||
504 | * @author: renchao | ||
505 | */ | ||
506 | upDateYwrxxList (val) { | ||
507 | if (!_.isEqual(val, this.ruleForm.ywrList)) { | ||
508 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
509 | } | ||
510 | }, | ||
551 | }, | 511 | }, |
552 | }, | 512 | }; |
553 | }; | ||
554 | </script> | 513 | </script> |
555 | <style scoped lang="scss"> | 514 | <style scoped lang="scss"> |
556 | @import "~@/styles/public.scss"; | 515 | @import "~@/styles/public.scss"; |
557 | @import "~@/styles/slxx/slxx.scss"; | 516 | @import "~@/styles/slxx/slxx.scss"; |
558 | </style> | 517 | </style> | ... | ... |
-
Please register or sign in to post a comment