d27b5075 by renchao@pashanhoo.com

Merge branch 'dev'

2 parents ba024b79 79da88d2
...@@ -258,7 +258,57 @@ ...@@ -258,7 +258,57 @@
258 */ 258 */
259 onSubmitClick () { 259 onSubmitClick () {
260 let that = this 260 let that = this
261 261 if (this.ruleForm.qlrList.length == 0) {
262 this.$message({
263 showClose: true,
264 message: "请确认抵押权人信息",
265 type: "error",
266 });
267 return false;
268 }
269 if (ruleForm.sldyList[0].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.sldyList[0].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 }
262 saveBatchData(this.ruleForm, this.propsParam.djlx).then((res) => { 312 saveBatchData(this.ruleForm, this.propsParam.djlx).then((res) => {
263 if (res.code === 200) { 313 if (res.code === 200) {
264 this.$message({ 314 this.$message({
......