e135fe80 by renchao@pashanhoo.com

style:证件号

1 parent 4138e202
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++
......