21c7e09b by renchao@pashanhoo.com

style:添加义务人功能的完善

1 parent 4f756156
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-26 15:38:25
* @LastEditTime: 2023-09-28 15:15:37
-->
<template>
<div>
......@@ -282,14 +282,6 @@
})
},
/**
* @description: 身份证读取按钮禁用
* @author: renchao
*/
onreadClick () {
this.$message.error("此阶段不可编辑");
},
// 修改
/**
* @description: 修改
* @param {*} index
* @param {*} row
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-01 13:43:42
* @LastEditTime: 2023-09-28 15:15:21
-->
<template>
<div>
......@@ -21,8 +21,9 @@
</div>
</template>
<script>
import addYwr from "./dialog/addYwr.vue";
import { mapGetters } from "vuex";
import addYwr from "./dialog/addYwr.vue";
import { getIdCardInfo } from '@/utils/operation.js'
export default {
components: {
addYwr,
......@@ -102,7 +103,7 @@
icon="el-icon-tickets"
disabled={!this.ableOperation}
onClick={() => {
this.readClick(scope);
this.readClick(scope.row);
}}
>
读取
......@@ -255,14 +256,33 @@
this.$emit("upDateQlrxxList", this.tableDataList);
},
// 身份证读取
/**
* @description: 身份证读取
* @author: renchao
*/
readClick () { },
readClick (row) {
getIdCardInfo().then(res => {
if (res.data.code == 0) {
let data = res.data.IDCardInfo
row.ywrmc = data.name
row.zjzl = '1'
row.zjh = data.cardID
row.xb = data.sexCode
row.txdz = data.address
row.fzjg = data.issueOrgan
this.$message({
message: '读取成功!',
type: 'success'
})
} else {
this.$message({
message: res.data.message,
type: 'warning'
})
}
})
},
// 修改
/**
* @description: 修改
* @param {*} index
......