6bd60595 by 任超

style:国有建设用地使用权/房屋使用权

1 parent 84aa38e7
1 <template>
2 <div class="from-clues">
3 <!-- 表单部分 -->
4 <div class="from-clues-header">
5 <el-tabs v-model="activeName">
6 <el-tab-pane label="自然幢" name="first"></el-tab-pane>
7 <el-tab-pane label="户" name="second"></el-tab-pane>
8 </el-tabs>
9 <el-form :model="queryForm" ref="queryForm" label-width="100px">
10 <el-row>
11 <el-col :span="5">
12 <el-form-item label="权利类型" label-width="70px">
13 <el-select v-model="queryForm.qllx" filterable class="width100" clearable placeholder="请选择权利类型">
14 <el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode">
15 </el-option>
16 </el-select>
17 </el-form-item>
18 </el-col>
19 <el-col :span="5">
20 <el-form-item label="不动产单元号">
21 <el-input placeholder="不动产单元号" v-model="queryForm.bdcdyh" clearable>
22 </el-input>
23 </el-form-item>
24 </el-col>
25 <el-col :span="5">
26 <el-form-item label="业务号" label-width="70px">
27 <el-input placeholder="业务号" v-model="queryForm.ywh" clearable>
28 </el-input>
29 </el-form-item>
30 </el-col>
31 <el-col :span="5">
32 <el-form-item label="不动产权证号">
33 <el-input placeholder="不动产权证号" v-model="queryForm.bdcqzh" clearable>
34 </el-input>
35 </el-form-item>
36 </el-col>
37 <el-col :span="4" class="btnCol">
38 <el-form-item>
39 <el-button type="primary" @click="queryClick()">查询</el-button>
40 </el-form-item>
41 </el-col>
42 </el-row>
43 </el-form>
44 </div>
45 <!-- 表格 -->
46 <div class="from-clues-content">
47 <lb-table border :page-size="pageData.pageSize" :heightNum="400" :current-page.sync="pageData.currentPage"
48 :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
49 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
50 </lb-table>
51 </div>
52 <div class="submit_button">
53 <el-button @click="closeDialog">取消</el-button>
54 <el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
55 </div>
56 </div>
57 </template>
58 <script>
59 //国有建设用地使用权/房屋使用权
60 import { mapGetters } from 'vuex'
61 import { datas, sendThis } from "../javascript/houseOwnership.js";
62 import table from "@/utils/mixin/table";
63 import jump from "../components/mixin/jump";
64 import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js";
65 export default {
66 props: {
67 bsmSqyw: { type: String, default: "" },
68 djqxObj: { type: Object, default: "" },
69 djywbm: { type: String, default: "" }
70 },
71 mixins: [table, jump],
72 data () {
73 return {
74 activeName: 'first',
75 queryForm: {
76 qllx: '',
77 bdcdyh: '',
78 ywh: '',
79 bdcqzh: ''
80 },
81
82 tableData: {
83 total: 0,
84 columns: datas.columns(),
85 data: [],
86 },
87 bdcdysz: [],
88 saveloding: false,
89 };
90 },
91 watch: {
92 bsmSqyw (val) {
93 this.fetchData();
94 },
95 },
96 mounted () {
97 sendThis(this);
98 },
99 computed: {
100 ...mapGetters(['dictData']),
101 },
102 methods: {
103 closeDialog () {
104 this.$emit("closeDialog");
105 },
106 fetchData () {
107 if (this.bsmSqyw) {
108 this.queryForm.sqywbm = this.djywbm;
109
110 selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => {
111 if (res.code === 200) {
112 let { total, records } = res.result;
113 this.tableData.total = total;
114 this.tableData.data = records;
115 }
116 });
117 }
118 },
119 submitForm () {
120 if (this.bdcdysz.length == 0) {
121 this.$message.error("请至少选择一条数据");
122 return;
123 }
124 this.saveloding = true;
125 startBusinessFlow({
126 bsmSqyw: this.bsmSqyw,
127 bdcdysz: this.bdcdysz,
128 djqxbm: this.djqxObj.djqxbm,
129 djqxmc: this.djqxObj.djqxmc,
130 }).then((res) => {
131 this.saveloding = false;
132 if (res.code == 200) {
133 this.jump(res.result)
134 } else {
135 this.$message.error(res.message);
136 }
137 });
138 },
139 handleSelectionChange (val) {
140 this.bdcdysz = val;
141 },
142 queryClick () {
143 this.fetchData();
144 },
145 },
146 };
147 </script>
148 <style scoped lang="scss">
149 @import "~@/styles/mixin.scss";
150 @import "~@/styles/public.scss";
151 </style>
1 import filter from '@/utils/filter.js'
2 let vm = null
3
4 const sendThis = (_this) => {
5 vm = _this
6 }
7 class data extends filter {
8 constructor() {
9 super()
10 }
11 columns () {
12 return [
13 {
14 type: 'selection',
15 label: '全选'
16 },
17 {
18 label: '序号',
19 type: 'index',
20 width: '50',
21 render: (h, scope) => {
22 return (
23 <div>
24 {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
25 </div>
26 )
27 }
28 },
29 {
30 prop: "status",
31 label: "状态",
32 },
33 {
34 prop: "qllxmc",
35 label: "权利类型",
36 },
37 {
38 prop: "zrzh",
39 label: "自然幢号",
40 },
41 {
42 prop: "bdcdyh",
43 label: "不动产单元号",
44 },
45 {
46 prop: "showQlxz",
47 label: "权利性质",
48 },
49 {
50 prop: "zdmj",
51 label: "宗地面积",
52 },
53 {
54 prop: "qlsdfsmc",
55 label: "权利设定方式",
56 },
57 {
58 prop: "showFwyt",
59 label: "房屋用途",
60 },
61 {
62 prop: "zl",
63 label: "坐落",
64 },
65 ]
66 }
67
68
69 }
70 let datas = new data()
71 export {
72 datas,
73 sendThis
74 }
...@@ -23,6 +23,7 @@ export default { ...@@ -23,6 +23,7 @@ export default {
23 this.myValue = val 23 this.myValue = val
24 }, 24 },
25 djywbm (val) { 25 djywbm (val) {
26 console.log(val);
26 let dd = queueDjywmc(val); 27 let dd = queueDjywmc(val);
27 this.editItem = this.loadView(dd); 28 this.editItem = this.loadView(dd);
28 }, 29 },
......
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"://建设用地使用权(首次登记)
...@@ -9,6 +9,9 @@ export function queueDjywmc(djywbm) { ...@@ -9,6 +9,9 @@ export function queueDjywmc(djywbm) {
9 case "A03200": 9 case "A03200":
10 case "A03300": 10 case "A03300":
11 case "A03400": 11 case "A03400":
12 case "A04100":
13 vm = "houseOwnership";
14 break;
12 case "A05200": 15 case "A05200":
13 case "A05300": 16 case "A05300":
14 case "A05400": 17 case "A05400":
......