style:添加义务人功能的完善
Showing
2 changed files
with
27 additions
and
15 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-26 15:38:25 | 4 | * @LastEditTime: 2023-09-28 15:15:37 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div> | 7 | <div> |
| ... | @@ -282,14 +282,6 @@ | ... | @@ -282,14 +282,6 @@ |
| 282 | }) | 282 | }) |
| 283 | }, | 283 | }, |
| 284 | /** | 284 | /** |
| 285 | * @description: 身份证读取按钮禁用 | ||
| 286 | * @author: renchao | ||
| 287 | */ | ||
| 288 | onreadClick () { | ||
| 289 | this.$message.error("此阶段不可编辑"); | ||
| 290 | }, | ||
| 291 | // 修改 | ||
| 292 | /** | ||
| 293 | * @description: 修改 | 285 | * @description: 修改 |
| 294 | * @param {*} index | 286 | * @param {*} index |
| 295 | * @param {*} row | 287 | * @param {*} row | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-01 13:43:42 | 4 | * @LastEditTime: 2023-09-28 15:15:21 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div> | 7 | <div> |
| ... | @@ -21,8 +21,9 @@ | ... | @@ -21,8 +21,9 @@ |
| 21 | </div> | 21 | </div> |
| 22 | </template> | 22 | </template> |
| 23 | <script> | 23 | <script> |
| 24 | import addYwr from "./dialog/addYwr.vue"; | ||
| 25 | import { mapGetters } from "vuex"; | 24 | import { mapGetters } from "vuex"; |
| 25 | import addYwr from "./dialog/addYwr.vue"; | ||
| 26 | import { getIdCardInfo } from '@/utils/operation.js' | ||
| 26 | export default { | 27 | export default { |
| 27 | components: { | 28 | components: { |
| 28 | addYwr, | 29 | addYwr, |
| ... | @@ -102,7 +103,7 @@ | ... | @@ -102,7 +103,7 @@ |
| 102 | icon="el-icon-tickets" | 103 | icon="el-icon-tickets" |
| 103 | disabled={!this.ableOperation} | 104 | disabled={!this.ableOperation} |
| 104 | onClick={() => { | 105 | onClick={() => { |
| 105 | this.readClick(scope); | 106 | this.readClick(scope.row); |
| 106 | }} | 107 | }} |
| 107 | > | 108 | > |
| 108 | 读取 | 109 | 读取 |
| ... | @@ -255,14 +256,33 @@ | ... | @@ -255,14 +256,33 @@ |
| 255 | this.$emit("upDateQlrxxList", this.tableDataList); | 256 | this.$emit("upDateQlrxxList", this.tableDataList); |
| 256 | }, | 257 | }, |
| 257 | 258 | ||
| 258 | // 身份证读取 | ||
| 259 | /** | 259 | /** |
| 260 | * @description: 身份证读取 | 260 | * @description: 身份证读取 |
| 261 | * @author: renchao | 261 | * @author: renchao |
| 262 | */ | 262 | */ |
| 263 | readClick () { }, | 263 | readClick (row) { |
| 264 | getIdCardInfo().then(res => { | ||
| 265 | if (res.data.code == 0) { | ||
| 266 | let data = res.data.IDCardInfo | ||
| 267 | row.ywrmc = data.name | ||
| 268 | row.zjzl = '1' | ||
| 269 | row.zjh = data.cardID | ||
| 270 | row.xb = data.sexCode | ||
| 271 | row.txdz = data.address | ||
| 272 | row.fzjg = data.issueOrgan | ||
| 273 | this.$message({ | ||
| 274 | message: '读取成功!', | ||
| 275 | type: 'success' | ||
| 276 | }) | ||
| 277 | } else { | ||
| 278 | this.$message({ | ||
| 279 | message: res.data.message, | ||
| 280 | type: 'warning' | ||
| 281 | }) | ||
| 282 | } | ||
| 283 | }) | ||
| 284 | }, | ||
| 264 | 285 | ||
| 265 | // 修改 | ||
| 266 | /** | 286 | /** |
| 267 | * @description: 修改 | 287 | * @description: 修改 |
| 268 | * @param {*} index | 288 | * @param {*} index | ... | ... |
-
Please register or sign in to post a comment