证书管理
Showing
7 changed files
with
183 additions
and
52 deletions
| ... | @@ -77,4 +77,34 @@ export function getZsEndNo (params) { | ... | @@ -77,4 +77,34 @@ export function getZsEndNo (params) { |
| 77 | method: 'get', | 77 | method: 'get', |
| 78 | params | 78 | params |
| 79 | }) | 79 | }) |
| 80 | } | ||
| 81 | /* | ||
| 82 | 证书管理-新增证书分发 | ||
| 83 | */ | ||
| 84 | export function zsff (data) { | ||
| 85 | return request({ | ||
| 86 | url: '/sys/zsgl/zsff', | ||
| 87 | method: 'post', | ||
| 88 | data | ||
| 89 | }) | ||
| 90 | } | ||
| 91 | /* | ||
| 92 | 证书管理-确定分发 | ||
| 93 | */ | ||
| 94 | export function confirmZsff (params) { | ||
| 95 | return request({ | ||
| 96 | url: '/sys/zsgl/confirmZsff', | ||
| 97 | method: 'get', | ||
| 98 | params: params | ||
| 99 | }) | ||
| 100 | } | ||
| 101 | /* | ||
| 102 | 证书管理-证书使用情况 | ||
| 103 | */ | ||
| 104 | export function getZssyqkList (data) { | ||
| 105 | return request({ | ||
| 106 | url: '/sys/zsgl/getZssyqkList', | ||
| 107 | method: 'post', | ||
| 108 | data | ||
| 109 | }) | ||
| 80 | } | 110 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -21,8 +21,8 @@ | ... | @@ -21,8 +21,8 @@ |
| 21 | </el-form-item> | 21 | </el-form-item> |
| 22 | </el-col> | 22 | </el-col> |
| 23 | <el-col :span="12"> | 23 | <el-col :span="12"> |
| 24 | <el-form-item label="领取人:" prop="lqr"> | 24 | <el-form-item label="领取人:" prop="receiver"> |
| 25 | <el-select v-model="ruleForm.lqr" placeholder="请选择"> | 25 | <el-select v-model="ruleForm.receiver" placeholder="请选择"> |
| 26 | <el-option v-for="item in usernames" :key="item" :label="item" :value="item"></el-option> | 26 | <el-option v-for="item in usernames" :key="item" :label="item" :value="item"></el-option> |
| 27 | </el-select> | 27 | </el-select> |
| 28 | </el-form-item> | 28 | </el-form-item> |
| ... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
| 34 | <el-table-column prop="ksysxlh" label="开始印刷序列号" width="200"></el-table-column> | 34 | <el-table-column prop="ksysxlh" label="开始印刷序列号" width="200"></el-table-column> |
| 35 | <el-table-column prop="bs" label="本数"> | 35 | <el-table-column prop="bs" label="本数"> |
| 36 | <template slot-scope="scope"> | 36 | <template slot-scope="scope"> |
| 37 | <el-input v-model="scope.row.bs" @blur="ysxlhDeal(scope.row)"></el-input> | 37 | <el-input v-model="scope.row.bs" @blur="ysxlhDeal(scope.row)"></el-input> |
| 38 | </template> | 38 | </template> |
| 39 | </el-table-column> | 39 | </el-table-column> |
| 40 | <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200"> | 40 | <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200"> |
| ... | @@ -54,7 +54,7 @@ | ... | @@ -54,7 +54,7 @@ |
| 54 | </template> | 54 | </template> |
| 55 | 55 | ||
| 56 | <script> | 56 | <script> |
| 57 | import { getZsStartNo,getSysSerialSingle, getZsEndNo} from "@/api/zsgl.js" | 57 | import { getZsStartNo,getSysSerialSingle, getZsEndNo,zsff} from "@/api/zsgl.js" |
| 58 | export default { | 58 | export default { |
| 59 | components: { | 59 | components: { |
| 60 | }, | 60 | }, |
| ... | @@ -65,10 +65,10 @@ export default { | ... | @@ -65,10 +65,10 @@ export default { |
| 65 | }, | 65 | }, |
| 66 | data () { | 66 | data () { |
| 67 | return { | 67 | return { |
| 68 | tableData: {}, | 68 | //表单提交数据 |
| 69 | ruleForm: { | 69 | ruleForm: { |
| 70 | batchno: '', | 70 | batchno: '', |
| 71 | lqr: '', | 71 | receiver: '', |
| 72 | rkry: '超级管理员', | 72 | rkry: '超级管理员', |
| 73 | rksj: '', | 73 | rksj: '', |
| 74 | bz: '', | 74 | bz: '', |
| ... | @@ -79,6 +79,7 @@ export default { | ... | @@ -79,6 +79,7 @@ export default { |
| 79 | zmendno: '', | 79 | zmendno: '', |
| 80 | zmnum: '' | 80 | zmnum: '' |
| 81 | }, | 81 | }, |
| 82 | //表格数据 | ||
| 82 | tableForm: [ | 83 | tableForm: [ |
| 83 | { | 84 | { |
| 84 | name: '不动产权证书', | 85 | name: '不动产权证书', |
| ... | @@ -95,12 +96,14 @@ export default { | ... | @@ -95,12 +96,14 @@ export default { |
| 95 | zslx: 'zm' | 96 | zslx: 'zm' |
| 96 | } | 97 | } |
| 97 | ], | 98 | ], |
| 99 | //证书分发业务号固定参数 | ||
| 98 | ywhQueryForm: { | 100 | ywhQueryForm: { |
| 99 | serialtype: 'zsffbh', | 101 | serialtype: 'zsffbh', |
| 100 | serialname: '证书分发编号', | 102 | serialname: '证书分发编号', |
| 101 | serialcode: 'zsff', | 103 | serialcode: 'zsff', |
| 102 | digit: '5' | 104 | digit: '5' |
| 103 | }, | 105 | }, |
| 106 | //用户列表 | ||
| 104 | usernames: ['张三','李四'], | 107 | usernames: ['张三','李四'], |
| 105 | rules: { | 108 | rules: { |
| 106 | batchNo: [ | 109 | batchNo: [ |
| ... | @@ -121,15 +124,25 @@ export default { | ... | @@ -121,15 +124,25 @@ export default { |
| 121 | methods: { | 124 | methods: { |
| 122 | //表单提交 | 125 | //表单提交 |
| 123 | submitForm () { | 126 | submitForm () { |
| 124 | 127 | zsff(this.ruleForm).then(res => { | |
| 128 | if(res.code == 200){ | ||
| 129 | this.$message.success('保存成功') | ||
| 130 | this.$emit("input", false); | ||
| 131 | this.ruleForm = {}; | ||
| 132 | this.resetTableFields(); | ||
| 133 | this.$parent.fetchData(); | ||
| 134 | }else{ | ||
| 135 | this.$message.error(res.message) | ||
| 136 | } | ||
| 137 | }) | ||
| 125 | }, | 138 | }, |
| 126 | //序列号获取 | 139 | //序列号获取 |
| 127 | ywhSerial(){ | 140 | ywhSerial(){ |
| 128 | // getSysSerialSingle(this.ywhQueryForm).then(res => { | 141 | getSysSerialSingle(this.ywhQueryForm).then(res => { |
| 129 | // if(res.code == 200){ | 142 | if(res.code == 200){ |
| 130 | // this.ruleForm.batchno = res.message; | 143 | this.ruleForm.batchno = res.message; |
| 131 | // } | 144 | } |
| 132 | // }) | 145 | }) |
| 133 | }, | 146 | }, |
| 134 | initStartNo(){ | 147 | initStartNo(){ |
| 135 | getZsStartNo().then(res => { | 148 | getZsStartNo().then(res => { |
| ... | @@ -141,14 +154,35 @@ export default { | ... | @@ -141,14 +154,35 @@ export default { |
| 141 | }, | 154 | }, |
| 142 | //印刷序列号处理 | 155 | //印刷序列号处理 |
| 143 | ysxlhDeal(item){ | 156 | ysxlhDeal(item){ |
| 144 | getZsEndNo({"bookNumber": item.bs,"zslx": item.zslx}).then(res => { | 157 | if(item.bs){ |
| 158 | //存在本数 | ||
| 159 | getZsEndNo({"bookNumber": item.bs,"zslx": item.zslx}).then(res => { | ||
| 145 | if(res.code == 200){ | 160 | if(res.code == 200){ |
| 146 | item.jsysxlh = res.result.endno | 161 | item.jsysxlh = res.result.endno |
| 147 | item.bs = res.result.bookNumber | 162 | item.bs = res.result.bookNumber |
| 163 | this.updateRuleForm(res.result.endno,res.result.bookNumber,item); | ||
| 148 | }else{ | 164 | }else{ |
| 149 | this.$message.error(res.message) | 165 | this.$message.error(res.message) |
| 150 | } | 166 | } |
| 151 | }) | 167 | }) |
| 168 | }else{ | ||
| 169 | //不存在本数 | ||
| 170 | item.bs = 0; | ||
| 171 | item.jsysxlh = ''; | ||
| 172 | this.updateRuleForm('',0,item); | ||
| 173 | } | ||
| 174 | }, | ||
| 175 | //更新表单数据 | ||
| 176 | updateRuleForm(endno,bookNumber,item){ | ||
| 177 | if(item.zslx == 'zs'){ | ||
| 178 | this.ruleForm.zsstarno = item.ksysxlh; | ||
| 179 | this.ruleForm.zsendno = endno; | ||
| 180 | this.ruleForm.zsnum = bookNumber; | ||
| 181 | }else if(item.zslx == 'zm'){ | ||
| 182 | this.ruleForm.zmstarno = item.ksysxlh; | ||
| 183 | this.ruleForm.zmendno = endno; | ||
| 184 | this.ruleForm.zmnum = bookNumber; | ||
| 185 | } | ||
| 152 | }, | 186 | }, |
| 153 | resetTableFields() { | 187 | resetTableFields() { |
| 154 | this.tableForm = [ | 188 | this.tableForm = [ |
| ... | @@ -157,14 +191,14 @@ export default { | ... | @@ -157,14 +191,14 @@ export default { |
| 157 | ksysxlh: '', | 191 | ksysxlh: '', |
| 158 | jsysxlh: '', | 192 | jsysxlh: '', |
| 159 | bs: 0, | 193 | bs: 0, |
| 160 | zslx:1 | 194 | zslx: 'zs' |
| 161 | }, | 195 | }, |
| 162 | { | 196 | { |
| 163 | name: '不动产权登记证明', | 197 | name: '不动产权登记证明', |
| 164 | ksysxlh: '', | 198 | ksysxlh: '', |
| 165 | jsysxlh: '', | 199 | jsysxlh: '', |
| 166 | bs: 0, | 200 | bs: 0, |
| 167 | zslx:2 | 201 | zslx: 'zm' |
| 168 | } | 202 | } |
| 169 | ] | 203 | ] |
| 170 | }, | 204 | }, |
| ... | @@ -176,5 +210,4 @@ export default { | ... | @@ -176,5 +210,4 @@ export default { |
| 176 | </script> | 210 | </script> |
| 177 | <style scoped lang="scss"> | 211 | <style scoped lang="scss"> |
| 178 | @import "~@/styles/mixin.scss"; | 212 | @import "~@/styles/mixin.scss"; |
| 179 | |||
| 180 | </style> | 213 | </style> | ... | ... |
| ... | @@ -38,7 +38,7 @@ | ... | @@ -38,7 +38,7 @@ |
| 38 | <script> | 38 | <script> |
| 39 | import table from "@/utils/mixin/table"; | 39 | import table from "@/utils/mixin/table"; |
| 40 | import { datas, sendThis } from "./zsffdata"; | 40 | import { datas, sendThis } from "./zsffdata"; |
| 41 | import { getZsglffList} from "@/api/zsgl.js" | 41 | import { getZsglffList,removeZsgl,confirmZsff} from "@/api/zsgl.js" |
| 42 | import addDialog from "./components/addDialog.vue" | 42 | import addDialog from "./components/addDialog.vue" |
| 43 | export default { | 43 | export default { |
| 44 | name: "zsff", | 44 | name: "zsff", |
| ... | @@ -83,6 +83,50 @@ export default { | ... | @@ -83,6 +83,50 @@ export default { |
| 83 | this.$refs.addDialog.initStartNo(); | 83 | this.$refs.addDialog.initStartNo(); |
| 84 | }) | 84 | }) |
| 85 | }, | 85 | }, |
| 86 | //确定证书分发 | ||
| 87 | confrimVerify(item){ | ||
| 88 | this.$confirm('是否确定分发', '提示', { | ||
| 89 | confirmButtonText: '确定', | ||
| 90 | cancelButtonText: '取消', | ||
| 91 | type: 'warning' | ||
| 92 | }).then(() => { | ||
| 93 | confirmZsff({"bsmBatch":item.bsmBatch}).then(res => { | ||
| 94 | if(res.code == 200){ | ||
| 95 | this.$message.success("分发成功") | ||
| 96 | this.fetchData(); | ||
| 97 | }else{ | ||
| 98 | this.$message.error(res.message) | ||
| 99 | } | ||
| 100 | }) | ||
| 101 | }).catch(() => { | ||
| 102 | this.$message({ | ||
| 103 | type: 'info', | ||
| 104 | message: '已取消审核' | ||
| 105 | }); | ||
| 106 | }); | ||
| 107 | }, | ||
| 108 | //删除证书分发数据 | ||
| 109 | delZsff(item){ | ||
| 110 | this.$confirm('确定要删除吗, 是否继续?', '提示', { | ||
| 111 | confirmButtonText: '确定', | ||
| 112 | cancelButtonText: '取消', | ||
| 113 | type: 'warning' | ||
| 114 | }).then(() => { | ||
| 115 | removeZsgl({"bsmBatch":item.bsmBatch}).then(res => { | ||
| 116 | if(res.code == 200){ | ||
| 117 | this.$message.success("删除成功") | ||
| 118 | this.fetchData(); | ||
| 119 | }else{ | ||
| 120 | this.$message.error(res.message) | ||
| 121 | } | ||
| 122 | }) | ||
| 123 | }).catch(() => { | ||
| 124 | this.$message({ | ||
| 125 | type: 'info', | ||
| 126 | message: '已取消删除' | ||
| 127 | }); | ||
| 128 | }); | ||
| 129 | }, | ||
| 86 | }, | 130 | }, |
| 87 | }; | 131 | }; |
| 88 | </script> | 132 | </script> | ... | ... |
| ... | @@ -60,7 +60,7 @@ class data extends filter { | ... | @@ -60,7 +60,7 @@ class data extends filter { |
| 60 | case '0': | 60 | case '0': |
| 61 | return <div> | 61 | return <div> |
| 62 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.confrimVerify(scope.row) }}>确认分发</el-button> | 62 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.confrimVerify(scope.row) }}>确认分发</el-button> |
| 63 | <el-button type="text" icon="el-icon-delete" onClick={() => { vm.delZsrk(scope.row) }}>删除</el-button> | 63 | <el-button type="text" icon="el-icon-delete" onClick={() => { vm.delZsff(scope.row) }}>删除</el-button> |
| 64 | </div> | 64 | </div> |
| 65 | case '1': | 65 | case '1': |
| 66 | return <el-button type="text" onClick={() => { }}>查看</el-button> | 66 | return <el-button type="text" onClick={() => { }}>查看</el-button> | ... | ... |
| ... | @@ -72,7 +72,7 @@ export default { | ... | @@ -72,7 +72,7 @@ export default { |
| 72 | }, | 72 | }, |
| 73 | data () { | 73 | data () { |
| 74 | return { | 74 | return { |
| 75 | tableData: {}, | 75 | //表单提交数据 |
| 76 | ruleForm: { | 76 | ruleForm: { |
| 77 | batchno: '', | 77 | batchno: '', |
| 78 | djjg: '', | 78 | djjg: '', |
| ... | @@ -86,6 +86,7 @@ export default { | ... | @@ -86,6 +86,7 @@ export default { |
| 86 | zmendno: '', | 86 | zmendno: '', |
| 87 | zmnum: '' | 87 | zmnum: '' |
| 88 | }, | 88 | }, |
| 89 | //表格数据 | ||
| 89 | tableForm: [ | 90 | tableForm: [ |
| 90 | { | 91 | { |
| 91 | name: '不动产权证书', | 92 | name: '不动产权证书', |
| ... | @@ -102,6 +103,7 @@ export default { | ... | @@ -102,6 +103,7 @@ export default { |
| 102 | zslx:2 | 103 | zslx:2 |
| 103 | } | 104 | } |
| 104 | ], | 105 | ], |
| 106 | //证书入库业务号参数 | ||
| 105 | ywhQueryForm: { | 107 | ywhQueryForm: { |
| 106 | serialtype: 'zsrkbh', | 108 | serialtype: 'zsrkbh', |
| 107 | serialname: '证书入库编号', | 109 | serialname: '证书入库编号', | ... | ... |
| ... | @@ -47,6 +47,7 @@ | ... | @@ -47,6 +47,7 @@ |
| 47 | <script> | 47 | <script> |
| 48 | import viewDialog from "./components/viewDialog.vue" | 48 | import viewDialog from "./components/viewDialog.vue" |
| 49 | import table from "@/utils/mixin/table"; | 49 | import table from "@/utils/mixin/table"; |
| 50 | import { getZssyqkList} from "@/api/zsgl.js" | ||
| 50 | import { datas, sendThis } from "./zssyjldata"; | 51 | import { datas, sendThis } from "./zssyjldata"; |
| 51 | export default { | 52 | export default { |
| 52 | name: "zssyjl", | 53 | name: "zssyjl", |
| ... | @@ -67,20 +68,24 @@ export default { | ... | @@ -67,20 +68,24 @@ export default { |
| 67 | tableData: { | 68 | tableData: { |
| 68 | total: 0, | 69 | total: 0, |
| 69 | columns: datas.columns(), | 70 | columns: datas.columns(), |
| 70 | data: [ | 71 | data: [], |
| 71 | { | ||
| 72 | slsj: "2022-5-12", | ||
| 73 | }, | ||
| 74 | { | ||
| 75 | slsj: "2022-5-13", | ||
| 76 | }, | ||
| 77 | ], | ||
| 78 | }, | 72 | }, |
| 79 | }; | 73 | }; |
| 80 | }, | 74 | }, |
| 81 | methods: { | 75 | methods: { |
| 82 | // 初始化数据 | 76 | init (e) { |
| 83 | fetchData () { }, | 77 | this.fetchData() |
| 78 | }, | ||
| 79 | // 列表渲染接口 | ||
| 80 | fetchData () { | ||
| 81 | getZssyqkList({ ...this.ruleForm, ...this.pageData }).then(res => { | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records ? records : [] | ||
| 86 | } | ||
| 87 | }) | ||
| 88 | }, | ||
| 84 | openDialog () { | 89 | openDialog () { |
| 85 | this.isDialog = true | 90 | this.isDialog = true |
| 86 | }, | 91 | }, | ... | ... |
| ... | @@ -16,41 +16,58 @@ class data extends filter { | ... | @@ -16,41 +16,58 @@ class data extends filter { |
| 16 | width: '50' | 16 | width: '50' |
| 17 | }, | 17 | }, |
| 18 | { | 18 | { |
| 19 | prop: "ywly", | 19 | label: "状态", |
| 20 | label: "业务来源", | 20 | render: (h, scope) => { |
| 21 | switch (scope.row.state) { | ||
| 22 | case '1': | ||
| 23 | return <span>已入库未分发</span> | ||
| 24 | case '2': | ||
| 25 | return <span>已领取未使用</span> | ||
| 26 | case '3': | ||
| 27 | return <span>已制证</span> | ||
| 28 | case '4': | ||
| 29 | return <span>已作废</span> | ||
| 30 | } | ||
| 31 | } | ||
| 21 | }, | 32 | }, |
| 22 | { | 33 | { |
| 23 | prop: "lczt", | 34 | prop: "djjg", |
| 24 | label: "流程状态", | 35 | label: "登记机构", |
| 25 | }, | 36 | }, |
| 26 | { | 37 | { |
| 27 | prop: "zbhj", | 38 | prop: "operationtime", |
| 28 | label: "在办环节", | 39 | label: "入库时间", |
| 29 | }, | 40 | }, |
| 30 | { | 41 | { |
| 31 | prop: "ywh", | 42 | prop: "operator", |
| 32 | label: "业务号", | 43 | label: "入库人员", |
| 33 | }, | 44 | }, |
| 34 | { | 45 | { |
| 35 | prop: "sqywmc", | 46 | prop: "usedate", |
| 36 | label: "申请业务名称", | 47 | label: "领取时间", |
| 37 | }, | 48 | }, |
| 38 | { | 49 | { |
| 39 | prop: "ywr", | 50 | prop: "receiver", |
| 40 | label: "义务人", | 51 | label: "领取人员", |
| 41 | }, | 52 | }, |
| 42 | { | 53 | { |
| 43 | prop: "zl", | 54 | label: "证书类型", |
| 44 | label: "坐落", | 55 | render: (h, scope) => { |
| 56 | switch (scope.row.zslx) { | ||
| 57 | case 'zs': | ||
| 58 | return <span>不动产权证书</span> | ||
| 59 | case 'zm': | ||
| 60 | return <span>不动产登记证明</span> | ||
| 61 | } | ||
| 62 | } | ||
| 45 | }, | 63 | }, |
| 46 | { | 64 | { |
| 47 | prop: "slsj", | 65 | prop: "ysxlh", |
| 48 | label: "受理时间" | 66 | label: "序列号" |
| 49 | }, | 67 | }, |
| 50 | { | 68 | { |
| 51 | prop: "zrsj", | 69 | prop: "bdcqzh", |
| 52 | label: "转入时间", | 70 | label: "不动产权证号" |
| 53 | sortable: 'custom' | ||
| 54 | }, | 71 | }, |
| 55 | { | 72 | { |
| 56 | label: '操作', | 73 | label: '操作', |
| ... | @@ -58,7 +75,7 @@ class data extends filter { | ... | @@ -58,7 +75,7 @@ class data extends filter { |
| 58 | align: 'center', | 75 | align: 'center', |
| 59 | fixed: 'right', | 76 | fixed: 'right', |
| 60 | render: (h, scope) => { | 77 | render: (h, scope) => { |
| 61 | return <el-button type="text" icon="el-icon-view" onClick={() => { vm.openDialog(scope) }}>查看</el-button> | 78 | return <el-button type="text" icon="el-icon-view" onClick={() => { }}>查看</el-button> |
| 62 | } | 79 | } |
| 63 | } | 80 | } |
| 64 | ] | 81 | ] | ... | ... |
-
Please register or sign in to post a comment