0c4da8cd by renchao@pashanhoo.com

style:受理申请

1 parent b58f1363
<!--
* @Description: 受理信息
* @Autor: renchao
* @LastEditTime: 2023-08-16 16:36:31
* @LastEditTime: 2023-08-17 14:14:53
-->
<template>
<div class="slxx">
......@@ -342,6 +342,15 @@
* @author: renchao
*/
onSubmit () {
let that = this
if (this.ruleForm.qlrList.length == 0) {
this.$message({
showClose: true,
message: "请确认权利人信息",
type: "error",
});
return false;
}
if (this.ruleForm.sldyList[0].gyfs == "0") {
if (this.ruleForm.qlrList.length > 1) {
this.$message({
......@@ -351,6 +360,7 @@
});
return false;
}
this.ruleForm.qlrList[0].sfczr = "1";
} else {
if (this.ruleForm.qlrList.length <= 1) {
this.$message({
......@@ -361,6 +371,29 @@
});
return false;
}
//是否分别持证
if (this.ruleForm.sldyList[0].sqfbcz == "1") {
//是
this.ruleForm.qlrList.forEach((item, index) => {
item.sfczr = "1";
});
} else {
if (!that.ruleForm.czr) {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == this.ruleForm.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
}
});
}
}
saveBatchData(this.ruleForm).then((res) => {
if (res.code === 200) {
......