发证
Showing
4 changed files
with
132 additions
and
9 deletions
... | @@ -162,3 +162,11 @@ export function getCertificateList (data) { | ... | @@ -162,3 +162,11 @@ export function getCertificateList (data) { |
162 | data | 162 | data |
163 | }) | 163 | }) |
164 | } | 164 | } |
165 | // 发证 | ||
166 | export function issueCertificate (data) { | ||
167 | return request({ | ||
168 | url: '/business/workFlow/issueCertificate', | ||
169 | method: 'post', | ||
170 | data | ||
171 | }) | ||
172 | } | ... | ... |
... | @@ -21,16 +21,14 @@ | ... | @@ -21,16 +21,14 @@ |
21 | </el-col> | 21 | </el-col> |
22 | <el-col :span="6" class="btnCol"> | 22 | <el-col :span="6" class="btnCol"> |
23 | <el-form-item> | 23 | <el-form-item> |
24 | <el-button type="primary" icon="el-icon-search">查询</el-button> | 24 | <el-button type="primary" icon="el-icon-search" @click="fetchData()">查询</el-button> |
25 | </el-form-item> | 25 | </el-form-item> |
26 | </el-col> | 26 | </el-col> |
27 | </el-row> | 27 | </el-row> |
28 | </el-form> | 28 | </el-form> |
29 | </div> | 29 | </div> |
30 | <div class="from-clues-content"> | 30 | <div class="from-clues-content"> |
31 | <lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage" :total="tableData.total" | 31 | <lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false"> |
32 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | ||
33 | :data="tableData.data"> | ||
34 | </lb-table> | 32 | </lb-table> |
35 | </div> | 33 | </div> |
36 | </div> | 34 | </div> |
... | @@ -69,10 +67,7 @@ export default { | ... | @@ -69,10 +67,7 @@ export default { |
69 | this.ruleForm.bsmSldy = this.$parent._data.unitData[0].bsmSldy | 67 | this.ruleForm.bsmSldy = this.$parent._data.unitData[0].bsmSldy |
70 | getCertificateList(this.ruleForm).then(res => { | 68 | getCertificateList(this.ruleForm).then(res => { |
71 | if (res.code === 200) { | 69 | if (res.code === 200) { |
72 | let { total, records } = res.result | 70 | this.tableData.data = res.result |
73 | this.tableData.total = total; | ||
74 | this.tableData.data = records ? records : [] | ||
75 | |||
76 | } | 71 | } |
77 | }) | 72 | }) |
78 | }, | 73 | }, | ... | ... |
src/views/ywbl/fqsq/components/zslq.vue
0 → 100644
1 | <template> | ||
2 | <dialogBox title="证书领取" @submitForm="submitForm" saveButton="保存" width="60%" | ||
3 | height='30%' @closeDialog="closeDialog" v-model="value"> | ||
4 | <div class="from-clues-content"> | ||
5 | <lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false" :heightNum="600"> | ||
6 | </lb-table> | ||
7 | </div> | ||
8 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" style="display:flex;"> | ||
9 | <el-form-item label="领证人" prop="lzrxm"> | ||
10 | <el-input v-model="ruleForm.lzrxm"></el-input> | ||
11 | </el-form-item> | ||
12 | <el-form-item label="证件类型" prop="lzrzjlb"> | ||
13 | <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> | ||
14 | <el-option v-for="item in dictData['A30']" :key="item.dcode" :label="item.dname" :value="item.dcode"> | ||
15 | </el-option> | ||
16 | </el-select> | ||
17 | </el-form-item> | ||
18 | <el-form-item label="证件号" prop="lzrzjh"> | ||
19 | <el-input v-model="ruleForm.lzrzjh"></el-input> | ||
20 | </el-form-item> | ||
21 | <el-form-item label="领证人电话" prop="lzrdh"> | ||
22 | <el-input v-model="ruleForm.lzrdh"></el-input> | ||
23 | </el-form-item> | ||
24 | </el-form> | ||
25 | </dialogBox> | ||
26 | </template> | ||
27 | |||
28 | <script> | ||
29 | import table from "@/utils/mixin/table"; | ||
30 | import { getCertificateList,issueCertificate } from "@/api/fqsq.js"; | ||
31 | import { datas } from "./fzxxdata"; | ||
32 | import { mapGetters } from 'vuex' | ||
33 | export default { | ||
34 | mixins: [table], | ||
35 | components: { | ||
36 | ...mapGetters(['dictData']), | ||
37 | }, | ||
38 | props: { | ||
39 | value: { type: Boolean, default: false }, | ||
40 | }, | ||
41 | data () { | ||
42 | return { | ||
43 | ruleForm: { | ||
44 | bsmBdcqz: [], | ||
45 | lzrxm: '', | ||
46 | lzrzjlb: '', | ||
47 | lzrzjh: '', | ||
48 | lzrdh: '' | ||
49 | }, | ||
50 | rules: { | ||
51 | lzrxm: [ | ||
52 | { required: true, message: '请输入领证人', trigger: 'blur' } | ||
53 | ], | ||
54 | lzrzjlb: [ | ||
55 | { required: true, message: '请选择证件类型', trigger: 'change' } | ||
56 | ], | ||
57 | lzrzjh: [ | ||
58 | { required: true, message: '请输入证件号', trigger: 'blur' } | ||
59 | ], | ||
60 | lzrdh: [ | ||
61 | { required: true, message: '请输入电话号码', trigger: 'blur' } | ||
62 | ], | ||
63 | }, | ||
64 | tableData: { | ||
65 | total: 0, | ||
66 | columns: datas.columns(), | ||
67 | data: [], | ||
68 | }, | ||
69 | } | ||
70 | }, | ||
71 | methods: { | ||
72 | //列表初始化 | ||
73 | tablelistFn(){ | ||
74 | var bsmSldy = this.$parent._data.unitData[0].bsmSldy | ||
75 | getCertificateList({"bsmSldy":bsmSldy}).then(res => { | ||
76 | if (res.code === 200) { | ||
77 | this.tableData.data = res.result | ||
78 | if(res.result){ | ||
79 | res.result.forEach((item,index)=>{ | ||
80 | this.ruleForm.bsmBdcqz.push(item.bsmBdcqz) | ||
81 | }) | ||
82 | } | ||
83 | } | ||
84 | }) | ||
85 | }, | ||
86 | submitForm(){ | ||
87 | this.$refs.ruleForm.validate(valid => { | ||
88 | if (valid) { | ||
89 | issueCertificate(this.ruleForm).then(res => { | ||
90 | if(res.code == 200){ | ||
91 | this.$message.success('保存成功') | ||
92 | this.$emit("input", false); | ||
93 | this.$refs.ruleForm.resetFields(); | ||
94 | }else{ | ||
95 | this.$message.error(res.message) | ||
96 | } | ||
97 | }) | ||
98 | } else { | ||
99 | return false; | ||
100 | } | ||
101 | }); | ||
102 | }, | ||
103 | closeDialog () { | ||
104 | this.$emit("input", false); | ||
105 | this.$refs.ruleForm.resetFields(); | ||
106 | }, | ||
107 | } | ||
108 | } | ||
109 | </script> | ||
110 | <style scoped lang="scss"> | ||
111 | @import "~@/styles/mixin.scss"; | ||
112 | |||
113 | </style> |
... | @@ -89,6 +89,7 @@ | ... | @@ -89,6 +89,7 @@ |
89 | :bsmBusiness="bsmBusiness" | 89 | :bsmBusiness="bsmBusiness" |
90 | :queryForm="queryForm" | 90 | :queryForm="queryForm" |
91 | /> | 91 | /> |
92 | <zslqDialog ref="zslqDialog" v-model="zslqDialog" /> | ||
92 | <zsylDialog v-model="zsylFlag" /> | 93 | <zsylDialog v-model="zsylFlag" /> |
93 | </div> | 94 | </div> |
94 | </template> | 95 | </template> |
... | @@ -98,14 +99,16 @@ import comMsg from "@/views/components/comMsg.vue"; | ... | @@ -98,14 +99,16 @@ import comMsg from "@/views/components/comMsg.vue"; |
98 | import zc from "./components/zc.vue"; | 99 | import zc from "./components/zc.vue"; |
99 | import thDialog from "./components/th.vue"; | 100 | import thDialog from "./components/th.vue"; |
100 | import zsylDialog from "./components/zsyl"; | 101 | import zsylDialog from "./components/zsyl"; |
102 | import zslqDialog from "./components/zslq"; | ||
101 | export default { | 103 | export default { |
102 | /**注册组件*/ | 104 | /**注册组件*/ |
103 | components: { zc, thDialog, zsylDialog, comMsg }, | 105 | components: { zc, thDialog, zsylDialog, comMsg,zslqDialog}, |
104 | data() { | 106 | data() { |
105 | return { | 107 | return { |
106 | zsylFlag: false, | 108 | zsylFlag: false, |
107 | zcDialog: false, | 109 | zcDialog: false, |
108 | thflag: false, | 110 | thflag: false, |
111 | zslqDialog: false, | ||
109 | queryForm: { | 112 | queryForm: { |
110 | bsmSlsq: "", | 113 | bsmSlsq: "", |
111 | bestepid: "", | 114 | bestepid: "", |
... | @@ -231,6 +234,10 @@ export default { | ... | @@ -231,6 +234,10 @@ export default { |
231 | case "tc": | 234 | case "tc": |
232 | window.close(); | 235 | window.close(); |
233 | break; | 236 | break; |
237 | case "zslq": | ||
238 | this.zslqDialog = true; | ||
239 | this.$refs.zslqDialog.tablelistFn(); | ||
240 | break; | ||
234 | case "db": | 241 | case "db": |
235 | var formdata = new FormData(); | 242 | var formdata = new FormData(); |
236 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 243 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | ... | ... |
-
Please register or sign in to post a comment