首次登记和注销登记代码优化
Showing
4 changed files
with
12 additions
and
98 deletions
... | @@ -229,25 +229,10 @@ export default { | ... | @@ -229,25 +229,10 @@ export default { |
229 | upDateYwrxxList (val) { | 229 | upDateYwrxxList (val) { |
230 | this.ruleForm.ywrList = _.cloneDeep(val); | 230 | this.ruleForm.ywrList = _.cloneDeep(val); |
231 | }, | 231 | }, |
232 | list (bsmSldy) { | ||
233 | var formdata = new FormData(); | ||
234 | formdata.append("bsmSldy", bsmSldy); | ||
235 | Init(formdata).then((res) => { | ||
236 | if (res.code === 200 && res.result) { | ||
237 | this.ruleForm = { | ||
238 | ...res.result, | ||
239 | ...res.result.zdjbxxdatas, | ||
240 | ...res.result.qlxxdatas, | ||
241 | ...res.result.jsydsyqdatas, | ||
242 | }; | ||
243 | } | ||
244 | }); | ||
245 | }, | ||
246 | onSubmit () { | 232 | onSubmit () { |
247 | saveBatchData(this.ruleForm).then((res) => { | 233 | saveBatchData(this.ruleForm).then((res) => { |
248 | if (res.code === 200 && res.result) { | 234 | if (res.code === 200 && res.result) { |
249 | console.log(res); | 235 | console.log(res); |
250 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | ||
251 | } | 236 | } |
252 | }); | 237 | }); |
253 | }, | 238 | }, | ... | ... |
... | @@ -188,7 +188,6 @@ | ... | @@ -188,7 +188,6 @@ |
188 | import InformationTable from "@/views/workflow/components/InformationTable"; | 188 | import InformationTable from "@/views/workflow/components/InformationTable"; |
189 | import {Init, saveGZBatchData} from "@/api/fwsyqFlow.js"; | 189 | import {Init, saveGZBatchData} from "@/api/fwsyqFlow.js"; |
190 | import { mapGetters } from "vuex"; | 190 | import { mapGetters } from "vuex"; |
191 | import SERVER from "@/api/config"; | ||
192 | export default { | 191 | export default { |
193 | async created () { | 192 | async created () { |
194 | this.propsParam = this.$attrs; | 193 | this.propsParam = this.$attrs; |
... | @@ -257,9 +256,9 @@ export default { | ... | @@ -257,9 +256,9 @@ export default { |
257 | this.$popup({ | 256 | this.$popup({ |
258 | titleStyle: "left", | 257 | titleStyle: "left", |
259 | title: "登记簿详情", // 弹窗标题 | 258 | title: "登记簿详情", // 弹窗标题 |
260 | editItem: SERVER.SERVERAPI+"/rest/ywbl/fdcq2/slxxCompareDetai", // 弹窗内容 | 259 | editItem: "ywbl/fdcq2/slxxCompareDetai", // 弹窗内容 |
261 | formData: { | 260 | formData: { |
262 | bsmSlsq: this.propsParam.bsmSldy, | 261 | bsmSldy: this.propsParam.bsmSldy, |
263 | qllx: this.propsParam.qllx | 262 | qllx: this.propsParam.qllx |
264 | }, | 263 | }, |
265 | width: "1220px", | 264 | width: "1220px", |
... | @@ -282,20 +281,7 @@ export default { | ... | @@ -282,20 +281,7 @@ export default { |
282 | upDateYwrxxList (val) { | 281 | upDateYwrxxList (val) { |
283 | this.ruleForm.ywrList = _.cloneDeep(val); | 282 | this.ruleForm.ywrList = _.cloneDeep(val); |
284 | }, | 283 | }, |
285 | list (bsmSldy) { | 284 | |
286 | var formdata = new FormData(); | ||
287 | formdata.append("bsmSldy", bsmSldy); | ||
288 | Init(formdata).then((res) => { | ||
289 | if (res.code === 200 && res.result) { | ||
290 | this.ruleForm = { | ||
291 | ...res.result, | ||
292 | ...res.result.zdjbxxdatas, | ||
293 | ...res.result.qlxxdatas, | ||
294 | ...res.result.jsydsyqdatas, | ||
295 | }; | ||
296 | } | ||
297 | }); | ||
298 | }, | ||
299 | onSubmit () { | 285 | onSubmit () { |
300 | saveGZBatchData(this.ruleForm).then((res) => { | 286 | saveGZBatchData(this.ruleForm).then((res) => { |
301 | if (res.code === 200 && res.result) { | 287 | if (res.code === 200 && res.result) { | ... | ... |
... | @@ -190,9 +190,8 @@ | ... | @@ -190,9 +190,8 @@ |
190 | </template> | 190 | </template> |
191 | <script> | 191 | <script> |
192 | import InformationTable from "@/views/workflow/components/InformationTable"; | 192 | import InformationTable from "@/views/workflow/components/InformationTable"; |
193 | import {Init, saveData} from "@/api/fwsyqFlow.js"; | 193 | import {Init, saveData, saveLogoutData} from "@/api/fwsyqFlow.js"; |
194 | import { mapGetters } from "vuex"; | 194 | import { mapGetters } from "vuex"; |
195 | import {logoutReg} from "@/api/jsydsyqFlow"; | ||
196 | export default { | 195 | export default { |
197 | async created () { | 196 | async created () { |
198 | this.propsParam = this.$attrs; | 197 | this.propsParam = this.$attrs; |
... | @@ -257,27 +256,6 @@ export default { | ... | @@ -257,27 +256,6 @@ export default { |
257 | }; | 256 | }; |
258 | }, | 257 | }, |
259 | methods: { | 258 | methods: { |
260 | onClick(){ | ||
261 | this.$popup({ | ||
262 | titleStyle: "left", | ||
263 | title: "登记簿详情", // 弹窗标题 | ||
264 | editItem: "ywbl/fdcq2/slxxCompareDetai;", // 弹窗内容 | ||
265 | formData: { | ||
266 | bsmSlsq: this.propsParam.bsmSldy, | ||
267 | qllx: this.propsParam.qllx | ||
268 | }, | ||
269 | width: "1220px", | ||
270 | height: "790px", | ||
271 | // cancelText: '取消摆烂', // 右边按钮文本 | ||
272 | // confirmText: '确定点击', //左边按钮文本 | ||
273 | cancel: () => { | ||
274 | console.log("取消回调"); | ||
275 | }, | ||
276 | confirm: () => { | ||
277 | console.log("确认回调"); | ||
278 | }, | ||
279 | }); | ||
280 | }, | ||
281 | // 更新权利人信息 | 259 | // 更新权利人信息 |
282 | upDateQlrxxList (val) { | 260 | upDateQlrxxList (val) { |
283 | this.ruleForm.qlrList = _.cloneDeep(val); | 261 | this.ruleForm.qlrList = _.cloneDeep(val); |
... | @@ -286,22 +264,8 @@ export default { | ... | @@ -286,22 +264,8 @@ export default { |
286 | upDateYwrxxList (val) { | 264 | upDateYwrxxList (val) { |
287 | this.ruleForm.ywrList = _.cloneDeep(val); | 265 | this.ruleForm.ywrList = _.cloneDeep(val); |
288 | }, | 266 | }, |
289 | list (bsmSldy) { | ||
290 | var formdata = new FormData(); | ||
291 | formdata.append("bsmSldy", bsmSldy); | ||
292 | Init(formdata).then((res) => { | ||
293 | if (res.code === 200 && res.result) { | ||
294 | this.ruleForm = { | ||
295 | ...res.result, | ||
296 | ...res.result.zdjbxxdatas, | ||
297 | ...res.result.qlxxdatas, | ||
298 | ...res.result.jsydsyqdatas, | ||
299 | }; | ||
300 | } | ||
301 | }); | ||
302 | }, | ||
303 | onSubmit () { | 267 | onSubmit () { |
304 | saveData(this.ruleForm).then((res) => { | 268 | saveLogoutData(this.ruleForm).then((res) => { |
305 | if (res.code === 200 && res.result) { | 269 | if (res.code === 200 && res.result) { |
306 | console.log(res); | 270 | console.log(res); |
307 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 271 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | ... | ... |
... | @@ -3,8 +3,7 @@ | ... | @@ -3,8 +3,7 @@ |
3 | style="overflow-y:scroll;"> | 3 | style="overflow-y:scroll;"> |
4 | <div class="tableBox" > | 4 | <div class="tableBox" > |
5 | <div class="title"> | 5 | <div class="title"> |
6 | <span v-if="this.propsParam.formData.qllx=='A04' || this.propsParam.formData.qllx=='A06' || this.propsParam.formData.qllx=='A08'">{{ title }}</span> | 6 | <span>{{ title }}</span> |
7 | <span v-if="this.propsParam.formData.qllx=='A03' || this.propsParam.formData.qllx=='A05' || this.propsParam.formData.qllx=='A07'">{{ ydTitile }}</span> | ||
8 | </div> | 7 | </div> |
9 | <div class="xxTableBox"> | 8 | <div class="xxTableBox"> |
10 | <table class="xxTable"> | 9 | <table class="xxTable"> |
... | @@ -13,30 +12,7 @@ | ... | @@ -13,30 +12,7 @@ |
13 | <td>变更前</td> | 12 | <td>变更前</td> |
14 | <td>变更后</td> | 13 | <td>变更后</td> |
15 | </tr> | 14 | </tr> |
16 | <tr v-if="this.propsParam.formData.qllx=='A04' || this.propsParam.formData.qllx=='A06' || this.propsParam.formData.qllx=='A08'" v-for="(item, colindex) in columns" :key="colindex"> | 15 | <tr v-for="(item, colindex) in columns" :key="colindex"> |
17 | <td> | ||
18 | {{ item.label }} | ||
19 | </td> | ||
20 | <td | ||
21 | v-for="(row, index) in tableData" | ||
22 | :key="index" | ||
23 | :class="[ | ||
24 | row.qszt == '2' ? 'lishi' : '', | ||
25 | row.qszt == '0' ? 'linshi' : '', | ||
26 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | ||
27 | ]" | ||
28 | > | ||
29 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | ||
30 | 正在办理 | ||
31 | </div> | ||
32 | <span v-if="item.prop == 'qszt'"> | ||
33 | {{ getQsztName(row[item.prop]) }} | ||
34 | </span> | ||
35 | |||
36 | <span v-else> {{ row[item.prop] }}</span> | ||
37 | </td> | ||
38 | </tr> | ||
39 | <tr v-if="this.propsParam.formData.qllx=='A03' || this.propsParam.formData.qllx=='A05' || this.propsParam.formData.qllx=='A07'" v-for="(item, colindex) in tdColumns" :key="colindex"> | ||
40 | <td> | 16 | <td> |
41 | {{ item.label }} | 17 | {{ item.label }} |
42 | </td> | 18 | </td> |
... | @@ -72,7 +48,6 @@ export default { | ... | @@ -72,7 +48,6 @@ export default { |
72 | data() { | 48 | data() { |
73 | return { | 49 | return { |
74 | title: "房地产权登记信息(独幢、层、套、间房屋)", | 50 | title: "房地产权登记信息(独幢、层、套、间房屋)", |
75 | ydTitile: "土地使用权登记信息", | ||
76 | qsztList: datas.columns().qsztList, | 51 | qsztList: datas.columns().qsztList, |
77 | checkList: datas.columns().checkList, | 52 | checkList: datas.columns().checkList, |
78 | //传递参数 | 53 | //传递参数 |
... | @@ -98,7 +73,11 @@ export default { | ... | @@ -98,7 +73,11 @@ export default { |
98 | }, | 73 | }, |
99 | methods: { | 74 | methods: { |
100 | loadData() { | 75 | loadData() { |
101 | getFdcqLSInfo(this.propsParam.formData).then((res) => { | 76 | console.log(this.propsParam.formData); |
77 | var formdata = new FormData(); | ||
78 | formdata.append("bsmSldy", this.propsParam.formData.bsmSldy); | ||
79 | formdata.append("qllx", this.propsParam.formData.qllx); | ||
80 | getFdcqLSInfo(formdata).then((res) => { | ||
102 | if (res.code === 200) { | 81 | if (res.code === 200) { |
103 | this.tableData = res.result; | 82 | this.tableData = res.result; |
104 | if (this.tableData.length < datas.columns().emptycolNum) { | 83 | if (this.tableData.length < datas.columns().emptycolNum) { | ... | ... |
-
Please register or sign in to post a comment