0c4da8cd by renchao@pashanhoo.com

style:受理申请

1 parent b58f1363
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) {
......