style:受理申请批量操作
Showing
1 changed file
with
51 additions
and
1 deletions
... | @@ -253,7 +253,57 @@ | ... | @@ -253,7 +253,57 @@ |
253 | */ | 253 | */ |
254 | onSubmitClick () { | 254 | onSubmitClick () { |
255 | let that = this | 255 | let that = this |
256 | 256 | if (this.ruleForm.qlrList.length == 0) { | |
257 | this.$message({ | ||
258 | showClose: true, | ||
259 | message: "请确认抵押权人信息", | ||
260 | type: "error", | ||
261 | }); | ||
262 | return false; | ||
263 | } | ||
264 | if (ruleForm.sldyList[0].gyfs == "0") { | ||
265 | if (this.ruleForm.qlrList.length > 1) { | ||
266 | this.$message({ | ||
267 | showClose: true, | ||
268 | message: "共有方式:单独所有,权利人只能是一个人", | ||
269 | type: "error", | ||
270 | }); | ||
271 | return false; | ||
272 | } | ||
273 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
274 | } else { | ||
275 | if (this.ruleForm.qlrList.length <= 1) { | ||
276 | this.$message({ | ||
277 | showClose: true, | ||
278 | message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
279 | type: "error", | ||
280 | }); | ||
281 | return false; | ||
282 | } | ||
283 | //是否分别持证 | ||
284 | if (this.ruleForm.sldyList[0].sqfbcz == "1") { | ||
285 | //是 | ||
286 | this.ruleForm.qlrList.forEach((item, index) => { | ||
287 | item.sfczr = "1"; | ||
288 | }); | ||
289 | } else { | ||
290 | if (!that.ruleForm.czr) { | ||
291 | that.$message({ | ||
292 | showClose: true, | ||
293 | message: "请选择持证人", | ||
294 | type: "error", | ||
295 | }); | ||
296 | return false; | ||
297 | } | ||
298 | this.ruleForm.qlrList.forEach((item, index) => { | ||
299 | if (item.zjh == this.ruleForm.czr) { | ||
300 | item.sfczr = "1"; | ||
301 | } else { | ||
302 | item.sfczr = "0"; | ||
303 | } | ||
304 | }); | ||
305 | } | ||
306 | } | ||
257 | saveBatchData(this.ruleForm, this.propsParam.djlx).then((res) => { | 307 | saveBatchData(this.ruleForm, this.propsParam.djlx).then((res) => { |
258 | if (res.code === 200) { | 308 | if (res.code === 200) { |
259 | this.$message({ | 309 | this.$message({ | ... | ... |
-
Please register or sign in to post a comment