610a6876 by xiaomiao

--no commit message

2 parents e62bc02f 79da88d2
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-17 14:30:26 4 * @LastEditTime: 2023-08-17 16:43:18
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -165,15 +165,20 @@ ...@@ -165,15 +165,20 @@
165 * @author: renchao 165 * @author: renchao
166 */ 166 */
167 handleupdateDetail (value) { 167 handleupdateDetail (value) {
168 let arr = this.tableData.map(item => item.zjh)
168 if (this.isaddupdate) { 169 if (this.isaddupdate) {
169 if (!_.isEqual(value, this.tableData)) { 170 if (!arr.includes(value.zjh)) {
170 this.tableDataList[this.tableDataList.length] = _.cloneDeep(value); 171 this.tableDataList[this.tableDataList.length] = _.cloneDeep(value);
171 this.$emit('upDateQlrxxList', this.tableDataList) 172 this.$emit('upDateQlrxxList', this.tableDataList)
173 } else {
174 this.$message.error('证件号不能重复');
172 } 175 }
173 } else { 176 } else {
174 if (!_.isEqual(value, this.tableData)) { 177 if (!arr.includes(value.zjh)) {
175 this.tableDataList[this.dataIndex] = _.cloneDeep(value); 178 this.tableDataList[this.dataIndex] = _.cloneDeep(value);
176 this.$emit('upDateQlrxxList', this.tableDataList) 179 this.$emit('upDateQlrxxList', this.tableDataList)
180 } else {
181 this.$message.error('证件号不能重复');
177 } 182 }
178 } 183 }
179 this.key++ 184 this.key++
......
...@@ -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({
......