01ac4244 by 田浩浩
2 parents e6ec279a f591d658
...@@ -39,3 +39,42 @@ export function removeZsgl (params) { ...@@ -39,3 +39,42 @@ export function removeZsgl (params) {
39 params: params 39 params: params
40 }) 40 })
41 } 41 }
42 /*
43 证书管理-审核证书入库
44 */
45 export function verifyZsrk (params) {
46 return request({
47 url: '/sys/zsgl/verifyZsrk',
48 method: 'get',
49 params: params
50 })
51 }
52 /*
53 证书管理-证书分发列表
54 */
55 export function getZsglffList (data) {
56 return request({
57 url: '/sys/zsgl/getZsglffList',
58 method: 'post',
59 data
60 })
61 }
62 /*
63 证书管理-证书分发列表
64 */
65 export function getZsStartNo () {
66 return request({
67 url: '/sys/zsgl/getZsStartNo',
68 method: 'get'
69 })
70 }
71 /*
72 证书管理-获取结束序列号
73 */
74 export function getZsEndNo (params) {
75 return request({
76 url: '/sys/zsgl/getZsEndNo',
77 method: 'get',
78 params
79 })
80 }
...\ No newline at end of file ...\ No newline at end of file
......
1 <template>
2 <dialogBox title="证书分发" @submitForm="submitForm" saveButton="保存" width="45%" @closeDialog="closeDialog" v-model="value">
3 <div>
4 <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules">
5 <el-row>
6 <el-col :span="12">
7 <el-form-item label="发放编号:" prop="batchno">
8 <el-input v-model="ruleForm.batchno" :disabled="true"></el-input>
9 </el-form-item>
10 </el-col>
11 <el-col :span="12">
12 <el-form-item label="领取时间:" prop="rksj">
13 <el-date-picker v-model="ruleForm.rksj" type="datetime" placeholder="选择日期时间"></el-date-picker>
14 </el-form-item>
15 </el-col>
16 </el-row>
17 <el-row>
18 <el-col :span="12">
19 <el-form-item label="发放人员:" prop="rkry">
20 <el-input v-model="ruleForm.rkry" :disabled="true"></el-input>
21 </el-form-item>
22 </el-col>
23 <el-col :span="12">
24 <el-form-item label="领取人:" prop="lqr">
25 <el-select v-model="ruleForm.lqr" placeholder="请选择">
26 <el-option v-for="item in usernames" :key="item" :label="item" :value="item"></el-option>
27 </el-select>
28 </el-form-item>
29 </el-col>
30 </el-row>
31 <div>
32 <el-table :data="tableForm" border style="width: 100%" :header-cell-style="{'text-align':'center',background: 'rgb(236, 245, 255)'}" :cell-style="{'text-align':'center'}">
33 <el-table-column prop="name" 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="本数">
36 <template slot-scope="scope">
37 <el-input v-model="scope.row.bs" @blur="ysxlhDeal(scope.row)"></el-input>
38 </template>
39 </el-table-column>
40 <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200">
41 <template slot-scope="scope">
42 <span v-if="scope.row.jsysxlh == ''" style="color:red">系统计算</span>
43 <span v-else>{{scope.row.jsysxlh}}</span>
44 </template>
45 </el-table-column>
46 </el-table>
47 </div>
48 <el-form-item label="备注" style="margin-top:20px">
49 <el-input type="textarea" v-model="ruleForm.bz" :rows="4"></el-input>
50 </el-form-item>
51 </el-form>
52 </div>
53 </dialogBox>
54 </template>
55
56 <script>
57 import { getZsStartNo,getSysSerialSingle, getZsEndNo} from "@/api/zsgl.js"
58 export default {
59 components: {
60 },
61 computed: {
62 },
63 props: {
64 value: { type: Boolean, default: false },
65 },
66 data () {
67 return {
68 tableData: {},
69 ruleForm: {
70 batchno: '',
71 lqr: '',
72 rkry: '超级管理员',
73 rksj: '',
74 bz: '',
75 zsstarno: '',
76 zsendno: '',
77 zsnum: '',
78 zmstarno: '',
79 zmendno: '',
80 zmnum: ''
81 },
82 tableForm: [
83 {
84 name: '不动产权证书',
85 ksysxlh: '',
86 jsysxlh: '',
87 bs: '',
88 zslx: 'zs'
89 },
90 {
91 name: '不动产权登记证明',
92 ksysxlh: '',
93 jsysxlh: '',
94 bs: '',
95 zslx: 'zm'
96 }
97 ],
98 ywhQueryForm: {
99 serialtype: 'zsffbh',
100 serialname: '证书分发编号',
101 serialcode: 'zsff',
102 digit: '5'
103 },
104 usernames: ['张三','李四'],
105 rules: {
106 batchNo: [
107 { required: true, message: '入库编号不能为空', trigger: 'blur' }
108 ],
109 lqr: [
110 { required: true, message: '请选择领取人', trigger: 'change' }
111 ],
112 rkry: [
113 { required: true, message: '入库人员不能为空', trigger: 'blur' }
114 ],
115 rksj: [
116 { required: true, message: '请选择入库时间', trigger: 'change' }
117 ],
118 },
119 }
120 },
121 methods: {
122 //表单提交
123 submitForm () {
124
125 },
126 //序列号获取
127 ywhSerial(){
128 // getSysSerialSingle(this.ywhQueryForm).then(res => {
129 // if(res.code == 200){
130 // this.ruleForm.batchno = res.message;
131 // }
132 // })
133 },
134 initStartNo(){
135 getZsStartNo().then(res => {
136 if(res.code == 200){
137 this.tableForm[0].ksysxlh = res.result.zsstarno
138 this.tableForm[1].ksysxlh = res.result.zmstarno
139 }
140 })
141 },
142 //印刷序列号处理
143 ysxlhDeal(item){
144 getZsEndNo({"bookNumber": item.bs,"zslx": item.zslx}).then(res => {
145 if(res.code == 200){
146 item.jsysxlh = res.result.endno
147 item.bs = res.result.bookNumber
148 }else{
149 this.$message.error(res.message)
150 }
151 })
152 },
153 resetTableFields() {
154 this.tableForm = [
155 {
156 name: '不动产权证书',
157 ksysxlh: '',
158 jsysxlh: '',
159 bs: 0,
160 zslx:1
161 },
162 {
163 name: '不动产权登记证明',
164 ksysxlh: '',
165 jsysxlh: '',
166 bs: 0,
167 zslx:2
168 }
169 ]
170 },
171 closeDialog () {
172 this.$emit("input", false);
173 },
174 }
175 }
176 </script>
177 <style scoped lang="scss">
178 @import "~@/styles/mixin.scss";
179
180 </style>
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
18 </el-col> 18 </el-col>
19 <el-col :span="11" class="btnCol"> 19 <el-col :span="11" class="btnCol">
20 <el-form-item> 20 <el-form-item>
21 <el-button type="primary" @click="fetchData">查询</el-button> 21 <el-button type="primary" @click="queryClick()">查询</el-button>
22 <el-button @click="moreQueryClick()">高级查询</el-button> 22 <el-button type="primary" @click="openDialog()">新增</el-button>
23 </el-form-item> 23 </el-form-item>
24 </el-col> 24 </el-col>
25 </el-row> 25 </el-row>
...@@ -32,20 +32,24 @@ ...@@ -32,20 +32,24 @@
32 :data="tableData.data"> 32 :data="tableData.data">
33 </lb-table> 33 </lb-table>
34 </div> 34 </div>
35 <addDialog ref="addDialog" v-model="isDialog"/>
35 </div> 36 </div>
36 </template> 37 </template>
37 <script> 38 <script>
38 import table from "@/utils/mixin/table"; 39 import table from "@/utils/mixin/table";
39 import { datas, sendThis } from "./zsffdata"; 40 import { datas, sendThis } from "./zsffdata";
41 import { getZsglffList} from "@/api/zsgl.js"
42 import addDialog from "./components/addDialog.vue"
40 export default { 43 export default {
41 name: "zsff", 44 name: "zsff",
42 components: {}, 45 components: {addDialog},
43 mixins: [table], 46 mixins: [table],
44 mounted () { 47 mounted () {
45 sendThis(this); 48 sendThis(this);
46 }, 49 },
47 data () { 50 data () {
48 return { 51 return {
52 isDialog: false,
49 value: '', 53 value: '',
50 ruleForm: { 54 ruleForm: {
51 rkbh: "", 55 rkbh: "",
...@@ -54,19 +58,30 @@ export default { ...@@ -54,19 +58,30 @@ export default {
54 tableData: { 58 tableData: {
55 total: 0, 59 total: 0,
56 columns: datas.columns(), 60 columns: datas.columns(),
57 data: [ 61 data: [],
58 { 62 },
59 slsj: "2022-5-12",
60 }
61 ]
62 }
63 } 63 }
64 }, 64 },
65 methods: { 65 methods: {
66 // 初始化数据 66 init (e) {
67 fetchData () { }, 67 this.fetchData()
68 },
69 // 列表渲染接口
70 fetchData () {
71 getZsglffList({ ...this.ruleForm, ...this.pageData }).then(res => {
72 if (res.code === 200) {
73 let { total, records } = res.result
74 this.tableData.total = total;
75 this.tableData.data = records ? records : []
76 }
77 })
78 },
68 openDialog () { 79 openDialog () {
69 console.log(999999999999999); 80 this.isDialog = true;
81 this.$nextTick(()=> {
82 this.$refs.addDialog.ywhSerial();
83 this.$refs.addDialog.initStartNo();
84 })
70 }, 85 },
71 }, 86 },
72 }; 87 };
......
...@@ -16,58 +16,55 @@ class data extends filter { ...@@ -16,58 +16,55 @@ class data extends filter {
16 width: '50' 16 width: '50'
17 }, 17 },
18 { 18 {
19 prop: "ywly", 19 prop: "batchno",
20 label: "业务来源", 20 label: "分发编号",
21 }, 21 },
22 { 22 {
23 prop: "lczt", 23 prop: "operator",
24 label: "流程状态", 24 label: "分发人员",
25 }, 25 },
26 { 26 {
27 prop: "zbhj", 27 prop: "zmnum",
28 label: "在办环节", 28 label: "不动产登记证明(本)",
29 }, 29 },
30 { 30 {
31 prop: "ywh", 31 prop: "zsnum",
32 label: "业务号", 32 label: "不动产权证书(本)",
33 }, 33 },
34 { 34 {
35 prop: "sqywmc", 35 prop: "operationtime",
36 label: "申请业务名称", 36 label: "领取时间",
37 }, 37 },
38 { 38 {
39 prop: "qlr", 39 prop: "receiver",
40 label: "权利人", 40 label: "领取人员",
41 }, 41 },
42 { 42 {
43 prop: "ywr", 43 label: "状态",
44 label: "义务人", 44 render: (h, scope) => {
45 }, 45 switch (scope.row.state) {
46 { 46 case '0':
47 prop: "zl", 47 return <span>正在分发</span>
48 label: "坐落", 48 case '1':
49 }, 49 return <span>已分发</span>
50 { 50 }
51 prop: "slsj", 51 }
52 label: "受理时间",
53 sortable: 'custom'
54 },
55 {
56 prop: "slry",
57 label: "受理人员",
58 },
59 {
60 prop: "zrsj",
61 label: "转入时间",
62 sortable: 'custom'
63 }, 52 },
64 { 53 {
65 label: '操作', 54 label: '操作',
66 width: '80', 55 width: '200',
67 align: 'center', 56 align: 'center',
68 fixed: 'right', 57 fixed: 'right',
69 render: (h, scope) => { 58 render: (h, scope) => {
70 return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.openDialog(scope) }}>编辑</el-button> 59 switch (scope.row.state) {
60 case '0':
61 return <div>
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>
64 </div>
65 case '1':
66 return <el-button type="text" onClick={() => { }}>查看</el-button>
67 }
71 } 68 }
72 } 69 }
73 ] 70 ]
......
...@@ -136,10 +136,9 @@ export default { ...@@ -136,10 +136,9 @@ export default {
136 if(res.code == 200){ 136 if(res.code == 200){
137 this.$message.success('保存成功') 137 this.$message.success('保存成功')
138 this.$emit("input", false); 138 this.$emit("input", false);
139 this.$refs.ruleForm.resetFields(); 139 this.ruleForm = {};
140 this.resetTableFields(); 140 this.resetTableFields();
141 console.log(this.ruleForm); 141 this.$parent.fetchData();
142 console.log(this.tableForm)
143 }else{ 142 }else{
144 this.$message.error(res.message); 143 this.$message.error(res.message);
145 } 144 }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
39 import table from "@/utils/mixin/table"; 39 import table from "@/utils/mixin/table";
40 import { datas, sendThis } from "./zsrkdata"; 40 import { datas, sendThis } from "./zsrkdata";
41 import addDialog from "./components/addDialog.vue" 41 import addDialog from "./components/addDialog.vue"
42 import { getZsglrkList ,removeZsgl} from "@/api/zsgl.js" 42 import { getZsglrkList ,removeZsgl,verifyZsrk} from "@/api/zsgl.js"
43 export default { 43 export default {
44 name: "zsrk", 44 name: "zsrk",
45 components: {addDialog}, 45 components: {addDialog},
...@@ -81,6 +81,10 @@ export default { ...@@ -81,6 +81,10 @@ export default {
81 this.$refs.addDialog.ywhSerial(); 81 this.$refs.addDialog.ywhSerial();
82 }) 82 })
83 }, 83 },
84 queryClick () {
85 this.fetchData()
86 },
87 //删除证书入库数据
84 delZsrk(item){ 88 delZsrk(item){
85 this.$confirm('确定要删除吗, 是否继续?', '提示', { 89 this.$confirm('确定要删除吗, 是否继续?', '提示', {
86 confirmButtonText: '确定', 90 confirmButtonText: '确定',
...@@ -101,6 +105,28 @@ export default { ...@@ -101,6 +105,28 @@ export default {
101 message: '已取消删除' 105 message: '已取消删除'
102 }); 106 });
103 }); 107 });
108 },
109 //审核证书入库数据
110 confrimVerify(item){
111 this.$confirm('审核是否通过', '提示', {
112 confirmButtonText: '确定',
113 cancelButtonText: '取消',
114 type: 'warning'
115 }).then(() => {
116 verifyZsrk({"bsmBatch":item.bsmBatch}).then(res => {
117 if(res.code == 200){
118 this.$message.success("审核成功")
119 this.fetchData();
120 }else{
121 this.$message.error(res.message)
122 }
123 })
124 }).catch(() => {
125 this.$message({
126 type: 'info',
127 message: '已取消审核'
128 });
129 });
104 } 130 }
105 }, 131 },
106 }; 132 };
......
...@@ -59,11 +59,11 @@ class data extends filter { ...@@ -59,11 +59,11 @@ class data extends filter {
59 switch (scope.row.state) { 59 switch (scope.row.state) {
60 case '0': 60 case '0':
61 return <div> 61 return <div>
62 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(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.delZsrk(scope.row) }}>删除</el-button>
64 </div> 64 </div>
65 case '1': 65 case '1':
66 return <el-button type="text" onClick={() => { vm.openDialog(scope) }}>查看</el-button> 66 return <el-button type="text" onClick={() => { }}>查看</el-button>
67 } 67 }
68 } 68 }
69 } 69 }
......