证书入库
Showing
4 changed files
with
100 additions
and
16 deletions
... | @@ -29,3 +29,13 @@ export function zsrk (data) { | ... | @@ -29,3 +29,13 @@ export function zsrk (data) { |
29 | data | 29 | data |
30 | }) | 30 | }) |
31 | } | 31 | } |
32 | /* | ||
33 | 证书管理-删除证书入库 | ||
34 | */ | ||
35 | export function removeZsgl (params) { | ||
36 | return request({ | ||
37 | url: '/sys/zsgl/removeZsgl', | ||
38 | method: 'get', | ||
39 | params: params | ||
40 | }) | ||
41 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -4,8 +4,8 @@ | ... | @@ -4,8 +4,8 @@ |
4 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> | 4 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> |
5 | <el-row> | 5 | <el-row> |
6 | <el-col :span="12"> | 6 | <el-col :span="12"> |
7 | <el-form-item label="入库编号:" prop="batchNo"> | 7 | <el-form-item label="入库编号:" prop="batchno"> |
8 | <el-input v-model="ruleForm.batchNo" :disabled="true"></el-input> | 8 | <el-input v-model="ruleForm.batchno" :disabled="true"></el-input> |
9 | </el-form-item> | 9 | </el-form-item> |
10 | </el-col> | 10 | </el-col> |
11 | <el-col :span="12"> | 11 | <el-col :span="12"> |
... | @@ -74,7 +74,7 @@ export default { | ... | @@ -74,7 +74,7 @@ export default { |
74 | return { | 74 | return { |
75 | tableData: {}, | 75 | tableData: {}, |
76 | ruleForm: { | 76 | ruleForm: { |
77 | batchNo: '', | 77 | batchno: '', |
78 | djjg: '', | 78 | djjg: '', |
79 | rkry: '超级管理员', | 79 | rkry: '超级管理员', |
80 | rksj: '', | 80 | rksj: '', |
... | @@ -91,13 +91,15 @@ export default { | ... | @@ -91,13 +91,15 @@ export default { |
91 | name: '不动产权证书', | 91 | name: '不动产权证书', |
92 | ksysxlh: '', | 92 | ksysxlh: '', |
93 | jsysxlh: '', | 93 | jsysxlh: '', |
94 | bs: 0 | 94 | bs: 0, |
95 | zslx:1 | ||
95 | }, | 96 | }, |
96 | { | 97 | { |
97 | name: '不动产权登记证明', | 98 | name: '不动产权登记证明', |
98 | ksysxlh: '', | 99 | ksysxlh: '', |
99 | jsysxlh: '', | 100 | jsysxlh: '', |
100 | bs: 0 | 101 | bs: 0, |
102 | zslx:2 | ||
101 | } | 103 | } |
102 | ], | 104 | ], |
103 | ywhQueryForm: { | 105 | ywhQueryForm: { |
... | @@ -125,12 +127,19 @@ export default { | ... | @@ -125,12 +127,19 @@ export default { |
125 | methods: { | 127 | methods: { |
126 | //表单提交 | 128 | //表单提交 |
127 | submitForm () { | 129 | submitForm () { |
128 | zsrk().then(res => { | 130 | this.tableForm.forEach((item,index)=>{ |
131 | if(item.bs < 0){ | ||
132 | return; | ||
133 | } | ||
134 | }) | ||
135 | zsrk(this.ruleForm).then(res => { | ||
129 | if(res.code == 200){ | 136 | if(res.code == 200){ |
130 | this.$message.sucess("保存成功"); | 137 | this.$message.success('保存成功') |
131 | this.$emit("input", false); | 138 | this.$emit("input", false); |
132 | this.$refs.ruleForm.resetFields(); | 139 | this.$refs.ruleForm.resetFields(); |
133 | this.$refs.tableForm.resetFields(); | 140 | this.resetTableFields(); |
141 | console.log(this.ruleForm); | ||
142 | console.log(this.tableForm) | ||
134 | }else{ | 143 | }else{ |
135 | this.$message.error(res.message); | 144 | this.$message.error(res.message); |
136 | } | 145 | } |
... | @@ -138,11 +147,11 @@ export default { | ... | @@ -138,11 +147,11 @@ export default { |
138 | }, | 147 | }, |
139 | //序列号获取 | 148 | //序列号获取 |
140 | ywhSerial(){ | 149 | ywhSerial(){ |
141 | // getSysSerialSingle(this.ywhQueryForm).then(res => { | 150 | getSysSerialSingle(this.ywhQueryForm).then(res => { |
142 | // if(res.code == 200){ | 151 | if(res.code == 200){ |
143 | // this.ruleForm.batchNo = res.message; | 152 | this.ruleForm.batchno = res.message; |
144 | // } | 153 | } |
145 | // }) | 154 | }) |
146 | }, | 155 | }, |
147 | //印刷序列号处理 | 156 | //印刷序列号处理 |
148 | ysxlhDeal(item){ | 157 | ysxlhDeal(item){ |
... | @@ -152,9 +161,53 @@ export default { | ... | @@ -152,9 +161,53 @@ export default { |
152 | item.bs = -1; | 161 | item.bs = -1; |
153 | return; | 162 | return; |
154 | } | 163 | } |
155 | item.bs = item.jsysxlh - item.ksysxlh; | 164 | if(item.ksysxlh > item.jsysxlh){ |
165 | item.bs = -1; | ||
166 | return; | ||
167 | } | ||
168 | item.bs = item.jsysxlh - item.ksysxlh + 1; | ||
169 | if(item.zslx == 1){ | ||
170 | this.ruleForm.zsstarno = item.ksysxlh; | ||
171 | this.ruleForm.zsendno = item.jsysxlh; | ||
172 | this.ruleForm.zsnum = item.bs | ||
173 | }else if(item.zslx == 2){ | ||
174 | this.ruleForm.zmstarno = item.ksysxlh; | ||
175 | this.ruleForm.zmendno = item.jsysxlh; | ||
176 | this.ruleForm.zmnum = item.bs | ||
177 | } | ||
178 | }else{ | ||
179 | item.bs = -1; | ||
156 | } | 180 | } |
181 | }else{ | ||
182 | item.bs = 0; | ||
183 | if(item.zslx == 1){ | ||
184 | this.ruleForm.zsstarno = ''; | ||
185 | this.ruleForm.zsendno = ''; | ||
186 | this.ruleForm.zsnum = item.bs | ||
187 | }else if(item.zslx == 2){ | ||
188 | this.ruleForm.zmstarno = ''; | ||
189 | this.ruleForm.zmendno = ''; | ||
190 | this.ruleForm.zmnum = item.bs | ||
191 | } | ||
192 | } | ||
193 | }, | ||
194 | resetTableFields() { | ||
195 | this.tableForm = [ | ||
196 | { | ||
197 | name: '不动产权证书', | ||
198 | ksysxlh: '', | ||
199 | jsysxlh: '', | ||
200 | bs: 0, | ||
201 | zslx:1 | ||
202 | }, | ||
203 | { | ||
204 | name: '不动产权登记证明', | ||
205 | ksysxlh: '', | ||
206 | jsysxlh: '', | ||
207 | bs: 0, | ||
208 | zslx:2 | ||
157 | } | 209 | } |
210 | ] | ||
158 | }, | 211 | }, |
159 | closeDialog () { | 212 | closeDialog () { |
160 | this.$emit("input", false); | 213 | this.$emit("input", false); | ... | ... |
... | @@ -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 } from "@/api/zsgl.js" | 42 | import { getZsglrkList ,removeZsgl} 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,27 @@ export default { | ... | @@ -81,6 +81,27 @@ export default { |
81 | this.$refs.addDialog.ywhSerial(); | 81 | this.$refs.addDialog.ywhSerial(); |
82 | }) | 82 | }) |
83 | }, | 83 | }, |
84 | delZsrk(item){ | ||
85 | this.$confirm('确定要删除吗, 是否继续?', '提示', { | ||
86 | confirmButtonText: '确定', | ||
87 | cancelButtonText: '取消', | ||
88 | type: 'warning' | ||
89 | }).then(() => { | ||
90 | removeZsgl({"bsmBatch":item.bsmBatch}).then(res => { | ||
91 | if(res.code == 200){ | ||
92 | this.$message.success("删除成功") | ||
93 | this.fetchData(); | ||
94 | }else{ | ||
95 | this.$message.error(res.message) | ||
96 | } | ||
97 | }) | ||
98 | }).catch(() => { | ||
99 | this.$message({ | ||
100 | type: 'info', | ||
101 | message: '已取消删除' | ||
102 | }); | ||
103 | }); | ||
104 | } | ||
84 | }, | 105 | }, |
85 | }; | 106 | }; |
86 | </script> | 107 | </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.openDialog(scope.row) }}>确认审核</el-button> | 62 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>确认审核</el-button> |
63 | <el-button type="text" icon="el-icon-delete" onClick={() => { vm.openDialog(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={() => { vm.openDialog(scope) }}>查看</el-button> | ... | ... |
-
Please register or sign in to post a comment