e135fe80 by renchao@pashanhoo.com

style:证件号

1 parent 4138e202
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-17 14:30:26
* @LastEditTime: 2023-08-17 16:43:18
-->
<template>
<div>
......@@ -165,15 +165,20 @@
* @author: renchao
*/
handleupdateDetail (value) {
let arr = this.tableData.map(item => item.zjh)
if (this.isaddupdate) {
if (!_.isEqual(value, this.tableData)) {
if (!arr.includes(value.zjh)) {
this.tableDataList[this.tableDataList.length] = _.cloneDeep(value);
this.$emit('upDateQlrxxList', this.tableDataList)
} else {
this.$message.error('证件号不能重复');
}
} else {
if (!_.isEqual(value, this.tableData)) {
if (!arr.includes(value.zjh)) {
this.tableDataList[this.dataIndex] = _.cloneDeep(value);
this.$emit('upDateQlrxxList', this.tableDataList)
} else {
this.$message.error('证件号不能重复');
}
}
this.key++
......