style:备案
Showing
1 changed file
with
28 additions
and
3 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-11 15:44:33 | 4 | * @LastEditTime: 2023-09-11 16:12:27 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <dialogBox | 7 | <dialogBox |
... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
28 | label-width="120px"> | 28 | label-width="120px"> |
29 | <el-form-item label="身份证读卡器"> | 29 | <el-form-item label="身份证读卡器"> |
30 | <el-button type="text" icon="el-icon-tickets" :disabled="!showButton" @click="readClick">读取</el-button> | 30 | <el-button type="text" icon="el-icon-tickets" :disabled="!showButton" @click="readClick">读取</el-button> |
31 | <el-button type="primary">信息备案</el-button> | 31 | <el-button type="primary" v-if="isBz" @click="handleFilings">信息备案</el-button> |
32 | </el-form-item> | 32 | </el-form-item> |
33 | <el-row> | 33 | <el-row> |
34 | <el-col :span="8"> | 34 | <el-col :span="8"> |
... | @@ -62,6 +62,7 @@ | ... | @@ -62,6 +62,7 @@ |
62 | clearable | 62 | clearable |
63 | v-model="ruleForm.zjzl" | 63 | v-model="ruleForm.zjzl" |
64 | :disabled="!showButton" | 64 | :disabled="!showButton" |
65 | @change="handleZjzl" | ||
65 | class="width100" | 66 | class="width100" |
66 | placeholder="请选择"> | 67 | placeholder="请选择"> |
67 | <el-option | 68 | <el-option |
... | @@ -340,7 +341,7 @@ | ... | @@ -340,7 +341,7 @@ |
340 | import { mapGetters } from "vuex"; | 341 | import { mapGetters } from "vuex"; |
341 | import store from '@/store/index.js' | 342 | import store from '@/store/index.js' |
342 | import { getIdCardInfo } from '@/utils/operation.js' | 343 | import { getIdCardInfo } from '@/utils/operation.js' |
343 | import { queryQyByPage, queryYhByPage } from "@/api/xxba.js"; | 344 | import { queryQyByPage, queryYhByPage, addQy } from "@/api/xxba.js"; |
344 | import { dataYh, dataQy, sendThis } from "../../javascript/addQlrData"; | 345 | import { dataYh, dataQy, sendThis } from "../../javascript/addQlrData"; |
345 | export default { | 346 | export default { |
346 | props: { | 347 | props: { |
... | @@ -354,6 +355,7 @@ | ... | @@ -354,6 +355,7 @@ |
354 | data () { | 355 | data () { |
355 | return { | 356 | return { |
356 | isShow: false, | 357 | isShow: false, |
358 | isBz: false, | ||
357 | activeName: '1', | 359 | activeName: '1', |
358 | loading: false, | 360 | loading: false, |
359 | myValue: this.value, | 361 | myValue: this.value, |
... | @@ -430,6 +432,27 @@ | ... | @@ -430,6 +432,27 @@ |
430 | } | 432 | } |
431 | }, | 433 | }, |
432 | methods: { | 434 | methods: { |
435 | // 证件种类选择 | ||
436 | handleZjzl (val) { | ||
437 | if (['6', '7', '8'].includes(val)) { | ||
438 | this.isBz = true | ||
439 | } else { | ||
440 | this.isBz = false | ||
441 | } | ||
442 | }, | ||
443 | // 信息备案 | ||
444 | handleFilings () { | ||
445 | this.ruleForm.qymc = this.ruleForm.sqrmc | ||
446 | this.ruleForm.dwdz = this.ruleForm.txdz | ||
447 | addQy(this.ruleForm).then(res => { | ||
448 | if (res.code == 200) { | ||
449 | this.$message.success('备案成功') | ||
450 | this.$refs['ruleForm'].resetFields(); | ||
451 | } else { | ||
452 | this.$message.error(res.message); | ||
453 | } | ||
454 | }) | ||
455 | }, | ||
433 | /** | 456 | /** |
434 | * @description: handleClick | 457 | * @description: handleClick |
435 | * @param {*} event | 458 | * @param {*} event |
... | @@ -476,6 +499,7 @@ | ... | @@ -476,6 +499,7 @@ |
476 | this.tableDataQy.data.forEach(item => { | 499 | this.tableDataQy.data.forEach(item => { |
477 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') | 500 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') |
478 | item.sqrmc = item.qymc | 501 | item.sqrmc = item.qymc |
502 | item.txdz = item.dwdz | ||
479 | }) | 503 | }) |
480 | } | 504 | } |
481 | }) | 505 | }) |
... | @@ -500,6 +524,7 @@ | ... | @@ -500,6 +524,7 @@ |
500 | this.tableDataYh.data.forEach(item => { | 524 | this.tableDataYh.data.forEach(item => { |
501 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') | 525 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') |
502 | item.sqrmc = item.qymc | 526 | item.sqrmc = item.qymc |
527 | item.txdz = item.dwdz | ||
503 | }) | 528 | }) |
504 | } | 529 | } |
505 | }) | 530 | }) | ... | ... |
-
Please register or sign in to post a comment