111
Showing
2 changed files
with
191 additions
and
1 deletions
1 | <template> | ||
2 | <div class="from-clues"> | ||
3 | <!-- 表单部分 国有建设用地使用权 --> | ||
4 | <div class="from-clues-header"> | ||
5 | <el-form :model="queryForm" ref="queryForm" label-width="120px"> | ||
6 | <el-row> | ||
7 | <el-col :span="10"> | ||
8 | <el-form-item label="不动产单元号"> | ||
9 | <el-input placeholder="请输入不动产单元号" v-model="queryForm.bdcdyh" clearable class="width300px"> | ||
10 | </el-input> | ||
11 | </el-form-item> | ||
12 | </el-col> | ||
13 | <el-col :span="10"> | ||
14 | <el-form-item label="坐落"> | ||
15 | <el-input placeholder="请输入坐落" v-model="queryForm.zl" clearable class="width300px"> | ||
16 | </el-input> | ||
17 | </el-form-item> | ||
18 | </el-col> | ||
19 | <el-col :span="4" class="btnColRight"> | ||
20 | <el-form-item> | ||
21 | <el-button type="primary" @click="fetchData">查询</el-button> | ||
22 | </el-form-item> | ||
23 | </el-col> | ||
24 | </el-row> | ||
25 | </el-form> | ||
26 | </div> | ||
27 | <!-- 表格 --> | ||
28 | <div class="from-clues-content"> | ||
29 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :heightNum="400" | ||
30 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | ||
31 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | ||
32 | :data="tableData.data"> | ||
33 | </lb-table> | ||
34 | </div> | ||
35 | <div class="submit_button"> | ||
36 | <el-button @click="closeDialog">取消</el-button> | ||
37 | <el-button type="primary" plain @click="submitForm">发起申请</el-button> | ||
38 | </div> | ||
39 | </div> | ||
40 | </template> | ||
41 | <script> | ||
42 | //首次登记 | ||
43 | import { datas, sendThis } from "../javascript/jsydsyq100.js"; | ||
44 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | ||
45 | import table from "@/utils/mixin/table"; | ||
46 | import jump from "./mixin/jump"; | ||
47 | import { startBusinessFlow, selectZdjbxx } from "@/api/ywbl.js"; | ||
48 | export default { | ||
49 | mixins: [table, jump], | ||
50 | props: { | ||
51 | isJump: { type: Boolean, default: false }, | ||
52 | djywbm: { type: String, default: '' }, | ||
53 | djqxObj: {type: Object, default: {}}, | ||
54 | bsmSqyw: { type: String, default: '' }, | ||
55 | }, | ||
56 | data () { | ||
57 | return { | ||
58 | queryForm: defaultParameters.defaultParameters(), | ||
59 | |||
60 | qllxs: [], | ||
61 | tableData: { | ||
62 | total: 0, | ||
63 | columns: datas.columns(), | ||
64 | data: [], | ||
65 | }, | ||
66 | bdcdysz: [] | ||
67 | }; | ||
68 | }, | ||
69 | mounted () { | ||
70 | sendThis(this); | ||
71 | }, | ||
72 | methods: { | ||
73 | //点击行选中或取消复选框 | ||
74 | handleRowClick (row, column, event) { | ||
75 | //通过ref绑定后这里使用$refs.table来操作bom元素 | ||
76 | this.$refs.table.toggleRowSelection(row); | ||
77 | }, | ||
78 | closeDialog () { | ||
79 | this.$emit("closeDialog"); | ||
80 | }, | ||
81 | queryClick () { | ||
82 | this.fetchData() | ||
83 | }, | ||
84 | fetchData () { | ||
85 | this.queryForm.sqywbm = this.djywbm; | ||
86 | selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
87 | if (res.code === 200) { | ||
88 | let { total, records } = res.result; | ||
89 | this.tableData.total = total; | ||
90 | this.tableData.data = records; | ||
91 | } | ||
92 | }); | ||
93 | }, | ||
94 | submitForm () { | ||
95 | if (this.bdcdysz.length == 0) { | ||
96 | this.$message.error("请至少选择一条数据"); | ||
97 | return; | ||
98 | } | ||
99 | startBusinessFlow({ | ||
100 | bsmSqyw: this.bsmSqyw, | ||
101 | bdcdysz: this.bdcdysz, | ||
102 | djqxbm: this.djqxObj?.djqxbm, | ||
103 | djqxmc: this.djqxObj?.djqxmc | ||
104 | }).then((res) => { | ||
105 | if (res.code == 200) { | ||
106 | this.$message({ | ||
107 | showClose: true, | ||
108 | message: '发起申请成功', | ||
109 | type: 'success' | ||
110 | }) | ||
111 | if (!this.isJump) { | ||
112 | this.jump(res.result, this.djywbm) | ||
113 | } else { | ||
114 | this.$emit('updateDialog', true) | ||
115 | } | ||
116 | } else { | ||
117 | this.$message.error(res.message); | ||
118 | } | ||
119 | }) | ||
120 | }, | ||
121 | handleSelectionChange (val) { | ||
122 | this.bdcdysz = val; | ||
123 | } | ||
124 | } | ||
125 | } | ||
126 | </script> | ||
127 | <style scoped lang="scss"> | ||
128 | @import "~@/styles/mixin.scss"; | ||
129 | @import "~@/styles/public.scss"; | ||
130 | </style> | ||
131 |
1 | export function queueDjywmc (djywbm) { | 1 | export function queueDjywmc(djywbm) { |
2 | let vm = null; | 2 | let vm = null; |
3 | switch (djywbm) { | 3 | switch (djywbm) { |
4 | case "A03100"://建设用地使用权(首次登记) | 4 | case "A03100"://建设用地使用权(首次登记) |
... | @@ -48,3 +48,62 @@ export function queueDjywmc (djywbm) { | ... | @@ -48,3 +48,62 @@ export function queueDjywmc (djywbm) { |
48 | } | 48 | } |
49 | return vm; | 49 | return vm; |
50 | } | 50 | } |
51 | |||
52 | //获取查询业务子组件 | ||
53 | export function getComponent(djywbm) { | ||
54 | let vm = null; | ||
55 | switch (djywbm) { | ||
56 | case "A03100"://建设用地使用权(首次登记) | ||
57 | case "A05100"://宅基地使用权(首次登记) | ||
58 | case "A07100"://集体建设用地使用权(首次登记) | ||
59 | vm = "selectQjzdjbxx"; | ||
60 | break; | ||
61 | case "A03200": | ||
62 | case "A03300": | ||
63 | case "A03400": | ||
64 | case "A05200": | ||
65 | case "A05300": | ||
66 | case "A05400": | ||
67 | case "A07200": | ||
68 | case "A07300": | ||
69 | case "A07400": | ||
70 | vm = "selectJsydsyq"; | ||
71 | break; | ||
72 | case "A04100"://国有建设用地使用权/房屋所有权(首次登记) | ||
73 | vm = "fwsyq"; | ||
74 | break; | ||
75 | case "A23100"://农用地使用权(首次登记) | ||
76 | case "A09100"://土地经营权(首次登记) | ||
77 | vm = "nydsyq100"; | ||
78 | break; | ||
79 | case "A23200": | ||
80 | case "A23300": | ||
81 | case "A23400": | ||
82 | case "A09200": | ||
83 | case "A09300": | ||
84 | case "A09400": | ||
85 | vm = "nydsyq200"; | ||
86 | break; | ||
87 | case "A05200": | ||
88 | case "A05300": | ||
89 | case "A05400": | ||
90 | case "A07200": | ||
91 | case "A07300": | ||
92 | case "A07400": | ||
93 | vm = "jsydsyq200"; | ||
94 | break; | ||
95 | case "A37200"://抵押权转移 | ||
96 | case "A37300"://抵押权变更 | ||
97 | case "A37400"://抵押权注销 | ||
98 | vm = "diyaq"; | ||
99 | break; | ||
100 | case "B39300"://续封 | ||
101 | case "B39400"://解封 | ||
102 | vm = "cfdj"; | ||
103 | break; | ||
104 | default: | ||
105 | vm = "selecBdcql"; | ||
106 | } | ||
107 | return vm; | ||
108 | } | ||
109 | ... | ... |
-
Please register or sign in to post a comment