1af1b44f by 田浩浩

修改选择单元查询页面

1 parent c9a5f6f3
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
53 </template> 53 </template>
54 <script> 54 <script>
55 //查封登记 55 //查封登记
56 import { datas, sendThis } from "./cfdj.js"; 56 import { datas, sendThis } from "./cfdj/cfdj.js";
57 import table from "@/utils/mixin/table"; 57 import table from "@/utils/mixin/table";
58 import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; 58 import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
59 export default { 59 export default {
......
1 <template>
2 <div class="from-clues">
3 <!-- 表单部分 -->
4 <div class="from-clues-header">
5 <el-form :model="queryForm" ref="queryForm" label-width="100px">
6 <el-row>
7 <el-col :span="5">
8 <el-form-item label="权利类型">
9 <el-select v-model="queryForm.qllx" filterable clearable placeholder="请选择权利类型">
10 <el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value">
11 </el-option>
12 </el-select>
13 </el-form-item>
14 </el-col>
15 <el-col :span="6">
16 <el-form-item label="不动产单元号">
17 <el-input placeholder="请输入不动产单元号" v-model="queryForm.bdcdyh" clearable class="width200px">
18 </el-input>
19 </el-form-item>
20 </el-col>
21 <el-col :span="5">
22 <el-form-item label="业务号">
23 <el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width200px">
24 </el-input>
25 </el-form-item>
26 </el-col>
27 <el-col :span="6">
28 <el-form-item label="不动产权证号">
29 <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width200px">
30 </el-input>
31 </el-form-item>
32 </el-col>
33 <el-col :span="2" class="btnCol">
34 <el-form-item>
35 <el-button type="primary" @click="queryClick()">查询</el-button>
36 </el-form-item>
37 </el-col>
38 </el-row>
39 </el-form>
40 </div>
41 <!-- 表格 -->
42 <div class="from-clues-content">
43 <lb-table :page-size="pageData.pageSize" :heightNum="400" :current-page.sync="pageData.currentPage"
44 :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
45 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
46 </lb-table>
47 </div>
48 <div class="submit_button">
49 <el-button @click="closeDialog">取消</el-button>
50 <el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
51 </div>
52 </div>
53 </template>
54 <script>
55 //查封登记
56 import { datas, sendThis } from "./cfdj/cfdj.js";
57 import table from "@/utils/mixin/table";
58 import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
59 export default {
60 props: {
61 bsmSqyw: { type: String, default: '' },
62 },
63 mixins: [table],
64 data () {
65 return {
66 queryForm: {
67 qllx: "",
68 bdcdyh: "",
69 ywh: "",
70 bdcqzh: "",
71 sqywbm: "B39800",
72 },
73 qllxs: [],
74 tableData: {
75 total: 0,
76 columns: datas.columns(),
77 data: [],
78 },
79 bdcdysz: [],
80 saveloding: false
81 };
82 },
83 watch: {
84 bsmSqyw (val) {
85 this.fetchData()
86 },
87 },
88 mounted () {
89 sendThis(this);
90 },
91 methods: {
92 closeDialog () {
93 this.$emit("closeDialog")
94 },
95 fetchData () {
96 if (this.bsmSqyw) {
97 selectQlxx({ ...this.queryForm, ...this.pageData })
98 .then((res) => {
99 if (res.code === 200) {
100 let { total, records } = res.result;
101 this.tableData.total = total;
102 this.tableData.data = records;
103 }
104 })
105 }
106 },
107 submitForm() {
108 if (this.bdcdysz.length == 0) {
109 this.$message.error("请至少选择一条数据");
110 return;
111 }
112 this.saveloding = true;
113 startBusinessFlow({
114 bsmSqyw: this.bsmSqyw,
115 bdcdysz: this.bdcdysz,
116 }).then((res) => {
117 this.saveloding = false;
118 if (res.code == 200) {
119 this.$emit("closeDialog");
120 const { href } = this.$router.resolve(
121 "/fqsq?bsmSlsq=" +
122 res.result.bsmSlsq +
123 "&bestepid=" +
124 res.result.bestepid
125 );
126 window.open(href, "_blank");
127 } else {
128 this.$message.error(res.message);
129 }
130 });
131 },
132 handleSelectionChange (val) {
133 this.bdcdysz = val
134 }
135 },
136 };
137 </script>
138 <style scoped lang="scss">
139 @import "~@/styles/mixin.scss";
140 @import "~@/styles/public.scss";
141 </style>
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
4 </dialogBox> 4 </dialogBox>
5 </template> 5 </template>
6 <script> 6 <script>
7 import {queueDjywmc} from './fqsqdata.js';
7 export default { 8 export default {
8 props: { 9 props: {
9 value: { type: Boolean, default: true }, 10 value: { type: Boolean, default: true },
...@@ -22,24 +23,27 @@ export default { ...@@ -22,24 +23,27 @@ export default {
22 this.myValue = val 23 this.myValue = val
23 }, 24 },
24 djywbm (val) { 25 djywbm (val) {
25 let itemObj = { 'A03100': 'scdj','A37100': 'scdy','B39800':'cfdj', default: 'scdj' } 26 //let itemObj = { 'A03100': 'scdj','A37100': 'scdy','B39800':'cfdj', default: 'scdj' };
26 this.editItem = this.loadView(itemObj[val]) 27 // this.editItem = this.loadView(itemObj[val]);
28 let dd=queueDjywmc(val);
29 this.editItem = this.loadView(dd);
27 }, 30 },
28 }, 31 },
29 methods: { 32 methods: {
30 loadView (view) { 33 loadView (view) {
31 return r => require.ensure([], () => r(require(`../${view}/${view}.vue`))) 34 console.log(view);
35 return r => require.ensure([], () => r(require(`../${view}.vue`)))
32 }, 36 },
33 closeDialog () { 37 closeDialog () {
34 this.$emit("input", false); 38 this.$emit("input", false);
35 } 39 }
40
36 }, 41 },
37 }; 42 };
38 </script> 43 </script>
39 <style scoped lang="scss"> 44 <style scoped lang="scss">
40 @import "~@/styles/mixin.scss"; 45 @import "~@/styles/mixin.scss";
41 @import "~@/styles/public.scss"; 46 @import "~@/styles/public.scss";
42
43 /deep/.submit_button { 47 /deep/.submit_button {
44 text-align: center; 48 text-align: center;
45 padding: 10px; 49 padding: 10px;
......
1 export function queueDjywmc(djywbm) {
2 let vm = null;
3 switch (djywbm) {
4 case "A03100"://建设用地使用权(首次登记)
5 case "A05100"://宅基地使用权(首次登记)
6 case "A07100"://集体建设用地使用权(首次登记)
7 vm = "jsydsyq100";
8 break;
9 case "A03200":
10 case "A03300":
11 case "A03400":
12 case "A05200":
13 case "A05300":
14 case "A05400":
15 case "A07200":
16 case "A07300":
17 case "A07400":
18 vm = "jsydsyq200";
19 break;
20 // case "A37100"://抵押权首次
21 // vm = "scdy";
22 // break;
23 case "B39800"://查封
24 vm = "cfdj";
25 break;
26 default:
27 vm = "bdcql";
28 }
29 return vm;
30 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
91 </template> 91 </template>
92 <script> 92 <script>
93 //首次登记 93 //首次登记
94 import { datas, sendThis } from "./scdj.js"; 94 import { datas, sendThis } from "./jsydsyq/scdj.js";
95 import table from "@/utils/mixin/table"; 95 import table from "@/utils/mixin/table";
96 import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js"; 96 import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js";
97 export default { 97 export default {
......
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="权利类型200">
9 <el-select
10 v-model="queryForm.qllx"
11 filterable
12 clearable
13 placeholder="请选择权利类型"
14 class="width300px"
15 >
16 <el-option
17 v-for="item in qllxs"
18 :key="item.value"
19 :label="item.label"
20 :value="item.value"
21 >
22 </el-option>
23 </el-select>
24 </el-form-item>
25 </el-col>
26 <el-col :span="10">
27 <el-form-item label="不动产单元号">
28 <el-input
29 placeholder="请输入不动产单元号"
30 v-model="queryForm.bdcdyh"
31 clearable
32 class="width300px"
33 >
34 </el-input>
35 </el-form-item>
36 </el-col>
37 </el-row>
38 <el-row>
39 <el-col :span="10">
40 <el-form-item label="业务号">
41 <el-input
42 placeholder="请输入业务号"
43 v-model="queryForm.ywh"
44 clearable
45 class="width300px"
46 >
47 </el-input>
48 </el-form-item>
49 </el-col>
50 <el-col :span="10">
51 <el-form-item label="不动产权证号">
52 <el-input
53 placeholder="请输入不动产权证号"
54 v-model="queryForm.bdcqzh"
55 clearable
56 class="width300px"
57 >
58 </el-input>
59 </el-form-item>
60 </el-col>
61 <el-col :span="2" class="btnCol">
62 <el-form-item>
63 <el-button type="primary" @click="queryClick()">查询</el-button>
64 </el-form-item>
65 </el-col>
66 </el-row>
67 </el-form>
68 </div>
69 <!-- 表格 -->
70 <div class="from-clues-content">
71 <lb-table
72 :page-size="pageData.pageSize"
73 :heightNum="400"
74 :current-page.sync="pageData.currentPage"
75 :total="tableData.total"
76 @size-change="handleSizeChange"
77 @p-current-change="handleCurrentChange"
78 @selection-change="handleSelectionChange"
79 :column="tableData.columns"
80 :data="tableData.data"
81 >
82 </lb-table>
83 </div>
84 <div class="submit_button">
85 <el-button @click="closeDialog">取消</el-button>
86 <el-button type="primary" plain @click="submitForm" :loading="saveloding"
87 >发起申请</el-button
88 >
89 </div>
90 </div>
91 </template>
92 <script>
93 //首次登记
94 import { datas, sendThis } from "./jsydsyq/scdj.js";
95 import table from "@/utils/mixin/table";
96 import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js";
97 export default {
98 props: {
99 bsmSqyw: { type: String, default: "" },
100 djqxObj: { type: Object, default: "" },
101 },
102 mixins: [table],
103 data() {
104 return {
105 queryForm: {
106 qllx: "",
107 bdcdyh: "",
108 ywh: "",
109 bdcqzh: "",
110 sqywbm: "A03100",
111 },
112 qllxs: [],
113 tableData: {
114 total: 0,
115 columns: datas.columns(),
116 data: [],
117 },
118 bdcdysz: [],
119 saveloding: false,
120 };
121 },
122 watch: {
123 bsmSqyw(val) {
124 this.fetchData();
125 },
126 },
127 mounted() {
128 sendThis(this);
129 },
130 methods: {
131 closeDialog() {
132 this.$emit("closeDialog");
133 },
134 fetchData() {
135 if (this.bsmSqyw) {
136 selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => {
137 if (res.code === 200) {
138 let { total, records } = res.result;
139 this.tableData.total = total;
140 this.tableData.data = records;
141 }
142 });
143 }
144 },
145 submitForm() {
146 if (this.bdcdysz.length == 0) {
147 this.$message.error("请至少选择一条数据");
148 return;
149 }
150 this.saveloding = true;
151 startBusinessFlow({
152 bsmSqyw: this.bsmSqyw,
153 bdcdysz: this.bdcdysz,
154 djqxbm: this.djqxObj.djqxbm,
155 djqxmc: this.djqxObj.djqxmc,
156 }).then((res) => {
157 this.saveloding = false;
158 if (res.code == 200) {
159 this.$emit("closeDialog");
160 const { href } = this.$router.resolve(
161 "/fqsq?bsmSlsq=" +
162 res.result.bsmSlsq +
163 "&bestepid=" +
164 res.result.bestepid
165 );
166 window.open(href, "_blank");
167 } else {
168 this.$message.error(res.message);
169 }
170 });
171 },
172 handleSelectionChange(val) {
173 this.bdcdysz = val;
174 },
175 queryClick() {
176 this.fetchData();
177 },
178 },
179 };
180 </script>
181 <style scoped lang="scss">
182 @import "~@/styles/mixin.scss";
183 @import "~@/styles/public.scss";
184 </style>
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
75 n: 0, 75 n: 0,
76 activeNames: ['1'], 76 activeNames: ['1'],
77 leftList: [ 77 leftList: [
78 '常办业务', '一并申请', '补申请', 78 '常办业务', '一并申请', '登记簿补录',
79 ], 79 ],
80 list: [], 80 list: [],
81 djlxList: [], 81 djlxList: [],
...@@ -191,6 +191,7 @@ export default { ...@@ -191,6 +191,7 @@ export default {
191 this.isDialog = true 191 this.isDialog = true
192 }, 192 },
193 loadView (view) { 193 loadView (view) {
194 console.log(view);
194 return r => require.ensure([], () => r(require(`./components/${view}/${view}.vue`))) 195 return r => require.ensure([], () => r(require(`./components/${view}/${view}.vue`)))
195 }, 196 },
196 } 197 }
......