style:补录权利人信息模块功能的完善
Showing
4 changed files
with
121 additions
and
16 deletions
This diff is collapsed.
Click to expand it.
| 1 | /* | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-09-21 15:45:27 | ||
| 5 | */ | ||
| 6 | import filter from '@/utils/filter.js' | ||
| 7 | let vm = null | ||
| 8 | |||
| 9 | const sendThis = (_this) => { | ||
| 10 | vm = _this | ||
| 11 | } | ||
| 12 | class data1 extends filter { | ||
| 13 | constructor() { | ||
| 14 | super() | ||
| 15 | } | ||
| 16 | columns () { | ||
| 17 | return [ | ||
| 18 | { | ||
| 19 | prop: "qlrmc", | ||
| 20 | label: "姓名/名称", | ||
| 21 | }, | ||
| 22 | { | ||
| 23 | prop: "zjzlMc", | ||
| 24 | label: "证件种类" | ||
| 25 | }, | ||
| 26 | { | ||
| 27 | prop: "zjh", | ||
| 28 | label: "证件号", | ||
| 29 | }, | ||
| 30 | { | ||
| 31 | prop: "frmc", | ||
| 32 | label: "法人名称", | ||
| 33 | }, | ||
| 34 | { | ||
| 35 | prop: "dwdz", | ||
| 36 | label: "地址", | ||
| 37 | }, | ||
| 38 | { | ||
| 39 | prop: "dh", | ||
| 40 | label: "联系电话", | ||
| 41 | } | ||
| 42 | ] | ||
| 43 | } | ||
| 44 | |||
| 45 | } | ||
| 46 | class data2 extends filter { | ||
| 47 | constructor() { | ||
| 48 | super() | ||
| 49 | |||
| 50 | } | ||
| 51 | columns () { | ||
| 52 | return [ | ||
| 53 | { | ||
| 54 | prop: "qlrmc", | ||
| 55 | label: "姓名/名称", | ||
| 56 | }, | ||
| 57 | { | ||
| 58 | prop: "zjzlMc", | ||
| 59 | label: "证件种类", | ||
| 60 | }, | ||
| 61 | { | ||
| 62 | prop: "zjh", | ||
| 63 | label: "证件号", | ||
| 64 | }, | ||
| 65 | { | ||
| 66 | prop: "frmc", | ||
| 67 | label: "法人名称", | ||
| 68 | }, | ||
| 69 | { | ||
| 70 | prop: "dwdz", | ||
| 71 | label: "地址", | ||
| 72 | }, | ||
| 73 | { | ||
| 74 | prop: "dh", | ||
| 75 | label: "联系电话", | ||
| 76 | }, | ||
| 77 | ] | ||
| 78 | } | ||
| 79 | |||
| 80 | } | ||
| 81 | let dataYh = new data1() | ||
| 82 | let dataQy = new data2() | ||
| 83 | export { | ||
| 84 | dataYh, | ||
| 85 | dataQy, | ||
| 86 | sendThis | ||
| 87 | } |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: workFrame左侧菜单列表-普通 | 2 | * @Description: workFrame左侧菜单列表-普通 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-17 16:16:13 | 4 | * @LastEditTime: 2023-09-21 16:02:05 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> |
| ... | @@ -171,7 +171,6 @@ | ... | @@ -171,7 +171,6 @@ |
| 171 | this.$parent.loadComponent(this.currentSelectProps, data); | 171 | this.$parent.loadComponent(this.currentSelectProps, data); |
| 172 | this.$parent.tabset(); | 172 | this.$parent.tabset(); |
| 173 | }, | 173 | }, |
| 174 | //申请单元点击事件 | ||
| 175 | /** | 174 | /** |
| 176 | * @description: 申请单元点击事件 | 175 | * @description: 申请单元点击事件 |
| 177 | * @param {*} index | 176 | * @param {*} index |
| ... | @@ -180,6 +179,7 @@ | ... | @@ -180,6 +179,7 @@ |
| 180 | unitClick (index) { | 179 | unitClick (index) { |
| 181 | this.clickindex = index | 180 | this.clickindex = index |
| 182 | this.currentSelectProps = this.supplementarylist[index]; | 181 | this.currentSelectProps = this.supplementarylist[index]; |
| 182 | window.currentSelect = this.supplementarylist[index] | ||
| 183 | this.$emit("getCurrentSelectProps", this.currentSelectProps); | 183 | this.$emit("getCurrentSelectProps", this.currentSelectProps); |
| 184 | }, | 184 | }, |
| 185 | /** | 185 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-01 13:30:54 | 4 | * @LastEditTime: 2023-09-21 16:02:53 |
| 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 addQlr from "./dialog/addQlr.vue"; | ||
| 25 | import { mapGetters } from "vuex"; | 24 | import { mapGetters } from "vuex"; |
| 25 | import addQlr from "./dialog/addQlr.vue"; | ||
| 26 | import { getIdCardInfo } from '@/utils/operation.js' | ||
| 26 | export default { | 27 | export default { |
| 27 | components: { | 28 | components: { |
| 28 | addQlr, | 29 | addQlr, |
| ... | @@ -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 | 读取 |
| ... | @@ -178,12 +179,12 @@ | ... | @@ -178,12 +179,12 @@ |
| 178 | this.$nextTick(() => { | 179 | this.$nextTick(() => { |
| 179 | if (val.length == 0 || !val) { | 180 | if (val.length == 0 || !val) { |
| 180 | that.tableDataList = _.cloneDeep([ | 181 | that.tableDataList = _.cloneDeep([ |
| 181 | { | 182 | // { |
| 182 | qlrmc: "", | 183 | // qlrmc: "", |
| 183 | dlrzjlx: "", | 184 | // dlrzjlx: "", |
| 184 | dlrzjh: "", | 185 | // dlrzjh: "", |
| 185 | fr: "", | 186 | // fr: "", |
| 186 | }, | 187 | // }, |
| 187 | ]); | 188 | ]); |
| 188 | } else { | 189 | } else { |
| 189 | that.tableDataList = _.cloneDeep(val); | 190 | that.tableDataList = _.cloneDeep(val); |
| ... | @@ -255,15 +256,32 @@ | ... | @@ -255,15 +256,32 @@ |
| 255 | this.tableDataList.splice(index, 1); | 256 | this.tableDataList.splice(index, 1); |
| 256 | this.$emit("upDateQlrxxList", this.tableDataList); | 257 | this.$emit("upDateQlrxxList", this.tableDataList); |
| 257 | }, | 258 | }, |
| 258 | |||
| 259 | // 身份证读取 | ||
| 260 | /** | 259 | /** |
| 261 | * @description: 身份证读取 | 260 | * @description: 身份证读取 |
| 262 | * @author: renchao | 261 | * @author: renchao |
| 263 | */ | 262 | */ |
| 264 | readClick () { }, | 263 | readClick (row) { |
| 265 | 264 | getIdCardInfo().then(res => { | |
| 266 | // 身份证读取按钮禁用 | 265 | if (res.data.code == 0) { |
| 266 | let data = res.data.IDCardInfo | ||
| 267 | row.qlrmc = data.name | ||
| 268 | row.zjzl = '1' | ||
| 269 | row.zjh = data.cardID | ||
| 270 | row.xb = data.sexCode | ||
| 271 | row.dz = 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 | }, | ||
| 267 | /** | 285 | /** |
| 268 | * @description: 身份证读取按钮禁用 | 286 | * @description: 身份证读取按钮禁用 |
| 269 | * @author: renchao | 287 | * @author: renchao | ... | ... |
-
Please register or sign in to post a comment