Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
13 changed files
with
359 additions
and
428 deletions
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-05-30 15:28:52 | 4 | * @LastEditTime: 2023-06-20 10:02:14 |
5 | */ | 5 | */ |
6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
7 | import App from './App' | 7 | import App from './App' |
... | @@ -16,12 +16,10 @@ import Loading from '@/components/Loading/index.js'; | ... | @@ -16,12 +16,10 @@ import Loading from '@/components/Loading/index.js'; |
16 | import { startLoadingAddCount, endLoadingSubCount } from './utils/requestLoading' | 16 | import { startLoadingAddCount, endLoadingSubCount } from './utils/requestLoading' |
17 | Vue.mixin(mixin); | 17 | Vue.mixin(mixin); |
18 | Vue.use(Loading.directive); | 18 | Vue.use(Loading.directive); |
19 | import rules from './utils/rule.js' | ||
20 | // 引入xml | 19 | // 引入xml |
21 | import x2js from 'x2js' | 20 | import x2js from 'x2js' |
22 | Vue.prototype.$x2js = new x2js() | 21 | Vue.prototype.$x2js = new x2js() |
23 | // 全局方法挂载 | 22 | // 全局方法挂载 |
24 | Vue.prototype.$rules = rules | ||
25 | // 全局加载 | 23 | // 全局加载 |
26 | Vue.prototype.$startLoading = startLoadingAddCount | 24 | Vue.prototype.$startLoading = startLoadingAddCount |
27 | Vue.prototype.$endLoading = endLoadingSubCount | 25 | Vue.prototype.$endLoading = endLoadingSubCount | ... | ... |
src/utils/dictionary.js
0 → 100644
src/utils/rule.js
deleted
100644 → 0
1 | // 手机号码验证 | ||
2 | const validatePhone = (rule, value, callback) => { | ||
3 | const patter = new RegExp('^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$') | ||
4 | if (!patter.test(value)) { | ||
5 | return callback(new Error('请输入正确格式的手机号!')) | ||
6 | } else { | ||
7 | callback() // 必须有此项回调,否则验证会一直不通过 | ||
8 | } | ||
9 | } | ||
10 | export default { | ||
11 | common: { | ||
12 | phone: [{// 手机号 | ||
13 | required: true, | ||
14 | message: '手机号不能为空' | ||
15 | }, { | ||
16 | validator: validatePhone, | ||
17 | trigger: 'blur' | ||
18 | }] | ||
19 | } | ||
20 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | <!-- | 1 | <!-- |
2 | * @Description : 房地产权2 | 2 | * @Description : 房地产权2 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-06-16 16:53:36 | 4 | * @LastEditTime: 2023-06-20 09:59:18 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> |
... | @@ -26,8 +26,8 @@ | ... | @@ -26,8 +26,8 @@ |
26 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 26 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
27 | ]"> | 27 | ]"> |
28 | <div class="setbut" v-if="item.prop == 'cz'"> | 28 | <div class="setbut" v-if="item.prop == 'cz'"> |
29 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | 29 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> |
30 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | 30 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> |
31 | </div> | 31 | </div> |
32 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | 32 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
33 | 正在办理 | 33 | 正在办理 |
... | @@ -47,68 +47,67 @@ | ... | @@ -47,68 +47,67 @@ |
47 | </template> | 47 | </template> |
48 | 48 | ||
49 | <script> | 49 | <script> |
50 | import { getFdcq2List } from "@/api/registerBook.js"; | 50 | import { getFdcq2List } from "@/api/registerBook.js"; |
51 | import { datas } from "./qlxxFormData.js"; | 51 | import { datas } from "./qlxxFormData.js"; |
52 | export default { | 52 | export default { |
53 | data () { | 53 | data () { |
54 | return { | 54 | return { |
55 | title: "房地产权登记信息(独幢、层、套、间房屋)", | 55 | title: "房地产权登记信息(独幢、层、套、间房屋)", |
56 | qsztList: datas.columns().qsztList, | 56 | qsztList: datas.columns().qsztList, |
57 | checkList: datas.columns().checkList, | 57 | checkList: datas.columns().checkList, |
58 | //传递参数 | 58 | //传递参数 |
59 | propsParam: this.$attrs, | 59 | propsParam: this.$attrs, |
60 | //列表数据 | 60 | //列表数据 |
61 | tableData: [], | 61 | tableData: [], |
62 | //空列值个数 | 62 | //空列值个数 |
63 | emptycolNum: datas.columns().emptycolNum, | 63 | emptycolNum: datas.columns().emptycolNum, |
64 | //列名称对象 | 64 | //列名称对象 |
65 | columns: datas.columns().FDCQ2, | 65 | columns: datas.columns().FDCQ2, |
66 | }; | 66 | }; |
67 | }, | ||
68 | created () { | ||
69 | this.loadData(); | ||
70 | }, | ||
71 | methods: { | ||
72 | loadData () { | ||
73 | getFdcq2List({ | ||
74 | bdcdyid: this.propsParam.bdcdyid, | ||
75 | qllx: this.propsParam.qllx, | ||
76 | qszt: this.checkList, | ||
77 | }).then((res) => { | ||
78 | if (res.code === 200) { | ||
79 | console.log("国有建设",res); | ||
80 | this.tableData = res.result; | ||
81 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
82 | this.emptycolNum = | ||
83 | datas.columns().emptycolNum - this.tableData.length; | ||
84 | } else { | ||
85 | this.emptycolNum = 0; | ||
86 | } | ||
87 | } | ||
88 | }); | ||
89 | }, | 67 | }, |
90 | checkChange () { | 68 | created () { |
91 | if (this.checkList.length === 0) { | 69 | this.loadData(); |
92 | this.tableData = []; | ||
93 | this.emptycolNum = datas.columns().emptycolNum; | ||
94 | } else { | ||
95 | this.loadData(); | ||
96 | } | ||
97 | }, | 70 | }, |
98 | getQsztName (code) { | 71 | methods: { |
99 | let name = ""; | 72 | loadData () { |
100 | for (let item of this.qsztList) { | 73 | getFdcq2List({ |
101 | if (item.value == code) { | 74 | bdcdyid: this.propsParam.bdcdyid, |
102 | name = item.label; | 75 | qllx: this.propsParam.qllx, |
103 | break; | 76 | qszt: this.checkList, |
77 | }).then((res) => { | ||
78 | if (res.code === 200) { | ||
79 | this.tableData = res.result; | ||
80 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
81 | this.emptycolNum = | ||
82 | datas.columns().emptycolNum - this.tableData.length; | ||
83 | } else { | ||
84 | this.emptycolNum = 0; | ||
85 | } | ||
86 | } | ||
87 | }); | ||
88 | }, | ||
89 | checkChange () { | ||
90 | if (this.checkList.length === 0) { | ||
91 | this.tableData = []; | ||
92 | this.emptycolNum = datas.columns().emptycolNum; | ||
93 | } else { | ||
94 | this.loadData(); | ||
104 | } | 95 | } |
105 | } | 96 | }, |
106 | return name; | 97 | getQsztName (code) { |
107 | }, | 98 | let name = ""; |
99 | for (let item of this.qsztList) { | ||
100 | if (item.value == code) { | ||
101 | name = item.label; | ||
102 | break; | ||
103 | } | ||
104 | } | ||
105 | return name; | ||
106 | }, | ||
108 | 107 | ||
109 | // 编辑 | 108 | // 编辑 |
110 | editDialog(row){ | 109 | editDialog (row) { |
111 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | 110 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { |
112 | confirmButtonText: '确定', | 111 | confirmButtonText: '确定', |
113 | cancelButtonText: '取消', | 112 | cancelButtonText: '取消', |
114 | type: 'warning' | 113 | type: 'warning' |
... | @@ -126,21 +125,21 @@ export default { | ... | @@ -126,21 +125,21 @@ export default { |
126 | }); | 125 | }); |
127 | }); | 126 | }); |
128 | 127 | ||
129 | // this.$popupDialog("编辑", "djbworkflow/djbBook/components/djbeditDialog", { | 128 | // this.$popupDialog("编辑", "djbworkflow/djbBook/components/djbeditDialog", { |
130 | // datalist:this.columns, | 129 | // datalist:this.columns, |
131 | // data: row, | 130 | // data: row, |
132 | 131 | ||
133 | // }) | 132 | // }) |
134 | 133 | ||
135 | }, | 134 | }, |
136 | // 删除 | 135 | // 删除 |
137 | deleteDialog(row){ | 136 | deleteDialog (row) { |
138 | this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | 137 | this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { |
139 | confirmButtonText: '确定', | 138 | confirmButtonText: '确定', |
140 | cancelButtonText: '取消', | 139 | cancelButtonText: '取消', |
141 | type: 'warning' | 140 | type: 'warning' |
142 | }).then(() => { | 141 | }).then(() => { |
143 | // let bsmClmx = this.previewImg.imgList[this.previewImg.index].bsmClmx | 142 | // let bsmClmx = this.previewImg.imgList[this.previewImg.index].bsmClmx |
144 | // deleteClmx(bsmClmx).then(res => { | 143 | // deleteClmx(bsmClmx).then(res => { |
145 | // if (res.code == 200) { | 144 | // if (res.code == 200) { |
146 | // that.$emit('updateList', res.result) | 145 | // that.$emit('updateList', res.result) |
... | @@ -163,10 +162,10 @@ export default { | ... | @@ -163,10 +162,10 @@ export default { |
163 | 162 | ||
164 | } | 163 | } |
165 | 164 | ||
166 | }, | 165 | }, |
167 | }; | 166 | }; |
168 | </script> | 167 | </script> |
169 | 168 | ||
170 | <style lang="scss" scoped> | 169 | <style lang="scss" scoped> |
171 | @import "./qlxxCommon.scss"; | 170 | @import "./qlxxCommon.scss"; |
172 | </style> | 171 | </style> | ... | ... |
... | @@ -8,8 +8,7 @@ | ... | @@ -8,8 +8,7 @@ |
8 | <el-checkbox | 8 | <el-checkbox |
9 | v-for="item in qsztList" | 9 | v-for="item in qsztList" |
10 | :key="item.value" | 10 | :key="item.value" |
11 | :label="item.value" | 11 | :label="item.value">{{ item.label }}</el-checkbox> |
12 | >{{ item.label }}</el-checkbox> | ||
13 | </el-checkbox-group> | 12 | </el-checkbox-group> |
14 | </div> | 13 | </div> |
15 | </div> | 14 | </div> |
... | @@ -24,12 +23,7 @@ | ... | @@ -24,12 +23,7 @@ |
24 | row.qszt == '2' ? 'lishi' : '', | 23 | row.qszt == '2' ? 'lishi' : '', |
25 | row.qszt == '0' ? 'linshi' : '', | 24 | row.qszt == '0' ? 'linshi' : '', |
26 | item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))? 'linshiIcon' : '', | 25 | item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))? 'linshiIcon' : '', |
27 | ]" | 26 | ]"> |
28 | > | ||
29 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
30 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
31 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
32 | </div> | ||
33 | <div class="icon" v-if="item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))">正在办理</div> | 27 | <div class="icon" v-if="item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))">正在办理</div> |
34 | <span v-if="item.prop == 'qszt'">{{ getQsztName(row[item.prop]) }}</span> | 28 | <span v-if="item.prop == 'qszt'">{{ getQsztName(row[item.prop]) }}</span> |
35 | 29 | ||
... | @@ -44,79 +38,78 @@ | ... | @@ -44,79 +38,78 @@ |
44 | </template> | 38 | </template> |
45 | 39 | ||
46 | <script> | 40 | <script> |
47 | import { getCfdjList } from "@/api/registerBook.js"; | 41 | import { datas } from "./qlxxFormData.js"; |
48 | import { datas } from "./qlxxFormData.js"; | 42 | import { getSjlx } from "@/utils/dictionary.js"; |
49 | export default { | 43 | import { getCfdjList } from "@/api/registerBook.js"; |
50 | data() { | 44 | export default { |
51 | return { | 45 | data () { |
52 | title: "查封登记信息", | 46 | return { |
53 | qsztList: datas.columns().qsztList, | 47 | title: "查封登记信息", |
54 | checkList: datas.columns().checkList, | 48 | qsztList: datas.columns().qsztList, |
55 | //传递参数 | 49 | checkList: datas.columns().checkList, |
56 | propsParam: this.$attrs, | 50 | //传递参数 |
57 | //列表数据 | 51 | propsParam: this.$attrs, |
58 | tableData: [], | 52 | //列表数据 |
59 | //空列值个数 | 53 | tableData: [], |
60 | emptycolNum: datas.columns().emptycolNum, | 54 | //空列值个数 |
61 | //列名称对象 | 55 | emptycolNum: datas.columns().emptycolNum, |
62 | columns: datas.columns().CFDJ, | 56 | //列名称对象 |
63 | }; | 57 | columns: datas.columns().CFDJ, |
64 | }, | 58 | }; |
65 | created() { | 59 | }, |
66 | this.loadData(); | 60 | created () { |
67 | }, | 61 | this.loadData(); |
68 | methods: { | 62 | }, |
69 | loadData() { | 63 | methods: { |
70 | if(this.$parent.addRepairRecord){ | 64 | loadData () { |
71 | this.columns.unshift({prop:"cz", | 65 | getCfdjList({ |
72 | label:"操作" | 66 | bdcdyid: this.propsParam.bdcdyid, |
73 | }) | 67 | qllx: this.propsParam.qllx, |
74 | } | 68 | qszt: this.checkList, |
75 | getCfdjList({ | 69 | }).then((res) => { |
76 | bdcdyid: this.propsParam.bdcdyid, | 70 | if (res.code === 200) { |
77 | qllx: this.propsParam.qllx, | 71 | this.tableData = res.result; |
78 | qszt: this.checkList, | 72 | this.tableData.forEach(item => { |
79 | }).then((res) => { | 73 | item.sjlx = getSjlx(item.sjlx) |
80 | if (res.code === 200) { | 74 | }) |
81 | this.tableData = res.result; | 75 | this.tableData.forEach((item, index) => { |
82 | this.tableData.forEach((item, index) => { | 76 | if (item.sfbxf == "1") { |
83 | if (item.sfbxf == "1") { | 77 | item.zxywh = ""; |
84 | item.zxywh = ""; | 78 | item.zxdbr = ""; |
85 | item.zxdbr = ""; | 79 | item.zxsj = ""; |
86 | item.zxsj = ""; | 80 | } |
81 | }); | ||
82 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
83 | this.emptycolNum = | ||
84 | datas.columns().emptycolNum - this.tableData.length; | ||
85 | } else { | ||
86 | this.emptycolNum = 0; | ||
87 | } | 87 | } |
88 | }); | ||
89 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
90 | this.emptycolNum = | ||
91 | datas.columns().emptycolNum - this.tableData.length; | ||
92 | } else { | ||
93 | this.emptycolNum = 0; | ||
94 | } | 88 | } |
89 | }); | ||
90 | }, | ||
91 | checkChange () { | ||
92 | if (this.checkList.length === 0) { | ||
93 | this.tableData = []; | ||
94 | this.emptycolNum = datas.columns().emptycolNum; | ||
95 | } else { | ||
96 | this.loadData(); | ||
95 | } | 97 | } |
96 | }); | 98 | }, |
97 | }, | 99 | getQsztName (code) { |
98 | checkChange() { | 100 | let name = ""; |
99 | if (this.checkList.length === 0) { | 101 | for (let item of this.qsztList) { |
100 | this.tableData = []; | 102 | if (item.value == code) { |
101 | this.emptycolNum = datas.columns().emptycolNum; | 103 | name = item.label; |
102 | } else { | 104 | break; |
103 | this.loadData(); | 105 | } |
104 | } | ||
105 | }, | ||
106 | getQsztName(code) { | ||
107 | let name = ""; | ||
108 | for (let item of this.qsztList) { | ||
109 | if (item.value == code) { | ||
110 | name = item.label; | ||
111 | break; | ||
112 | } | 106 | } |
113 | } | 107 | return name; |
114 | return name; | 108 | }, |
115 | }, | 109 | }, |
116 | }, | 110 | }; |
117 | }; | ||
118 | </script> | 111 | </script> |
119 | 112 | ||
120 | <style lang="scss" scoped> | 113 | <style lang="scss" scoped> |
121 | @import "./qlxxCommon.scss"; | 114 | @import "./qlxxCommon.scss"; |
122 | </style> | 115 | </style> | ... | ... |
... | @@ -42,72 +42,71 @@ | ... | @@ -42,72 +42,71 @@ |
42 | </template> | 42 | </template> |
43 | 43 | ||
44 | <script> | 44 | <script> |
45 | import { getDiyaqList } from "@/api/registerBook.js"; | 45 | import { datas } from "./qlxxFormData.js"; |
46 | import { datas } from "./qlxxFormData.js"; | 46 | import { getSjlx } from "@/utils/dictionary.js"; |
47 | export default { | 47 | import { getDiyaqList } from "@/api/registerBook.js"; |
48 | data () { | 48 | export default { |
49 | return { | 49 | data () { |
50 | title: "抵押权登记信息", | 50 | return { |
51 | qsztList: datas.columns().qsztList, | 51 | title: "抵押权登记信息", |
52 | checkList: datas.columns().checkList, | 52 | qsztList: datas.columns().qsztList, |
53 | //传递参数 | 53 | checkList: datas.columns().checkList, |
54 | propsParam: this.$attrs, | 54 | //传递参数 |
55 | //列表数据 | 55 | propsParam: this.$attrs, |
56 | tableData: [], | 56 | //列表数据 |
57 | //空列值个数 | 57 | tableData: [], |
58 | emptycolNum: datas.columns().emptycolNum, | 58 | //空列值个数 |
59 | //列名称对象 | 59 | emptycolNum: datas.columns().emptycolNum, |
60 | columns: datas.columns().DYAQ, | 60 | //列名称对象 |
61 | }; | 61 | columns: datas.columns().DYAQ, |
62 | }, | 62 | }; |
63 | created () { | ||
64 | this.loadData(); | ||
65 | }, | ||
66 | methods: { | ||
67 | loadData () { | ||
68 | if(this.$parent.addRepairRecord){ | ||
69 | this.columns.unshift({prop:"cz", | ||
70 | label:"操作" | ||
71 | }) | ||
72 | } | ||
73 | getDiyaqList({ | ||
74 | bdcdyid: this.propsParam.bdcdyid, | ||
75 | qllx: this.propsParam.qllx, | ||
76 | qszt: this.checkList, | ||
77 | }).then((res) => { | ||
78 | if (res.code === 200) { | ||
79 | this.tableData = res.result; | ||
80 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
81 | this.emptycolNum = | ||
82 | datas.columns().emptycolNum - this.tableData.length; | ||
83 | } else { | ||
84 | this.emptycolNum = 0; | ||
85 | } | ||
86 | } | ||
87 | }); | ||
88 | }, | 63 | }, |
89 | checkChange () { | 64 | created () { |
90 | if (this.checkList.length === 0) { | 65 | this.loadData(); |
91 | this.tableData = []; | ||
92 | this.emptycolNum = datas.columns().emptycolNum; | ||
93 | } else { | ||
94 | this.loadData(); | ||
95 | } | ||
96 | }, | 66 | }, |
97 | getQsztName (code) { | 67 | methods: { |
98 | let name = ""; | 68 | loadData () { |
99 | for (let item of this.qsztList) { | 69 | getDiyaqList({ |
100 | if (item.value == code) { | 70 | bdcdyid: this.propsParam.bdcdyid, |
101 | name = item.label; | 71 | qllx: this.propsParam.qllx, |
102 | break; | 72 | qszt: this.checkList, |
73 | }).then((res) => { | ||
74 | if (res.code === 200) { | ||
75 | this.tableData = res.result; | ||
76 | this.tableData.forEach(item => { | ||
77 | item.sjlx = getSjlx(item.sjlx) | ||
78 | }) | ||
79 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
80 | this.emptycolNum = | ||
81 | datas.columns().emptycolNum - this.tableData.length; | ||
82 | } else { | ||
83 | this.emptycolNum = 0; | ||
84 | } | ||
85 | } | ||
86 | }); | ||
87 | }, | ||
88 | checkChange () { | ||
89 | if (this.checkList.length === 0) { | ||
90 | this.tableData = []; | ||
91 | this.emptycolNum = datas.columns().emptycolNum; | ||
92 | } else { | ||
93 | this.loadData(); | ||
94 | } | ||
95 | }, | ||
96 | getQsztName (code) { | ||
97 | let name = ""; | ||
98 | for (let item of this.qsztList) { | ||
99 | if (item.value == code) { | ||
100 | name = item.label; | ||
101 | break; | ||
102 | } | ||
103 | } | 103 | } |
104 | } | 104 | return name; |
105 | return name; | 105 | }, |
106 | }, | 106 | }, |
107 | }, | 107 | }; |
108 | }; | ||
109 | </script> | 108 | </script> |
110 | 109 | ||
111 | <style lang="scss" scoped> | 110 | <style lang="scss" scoped> |
112 | @import "./qlxxCommon.scss"; | 111 | @import "./qlxxCommon.scss"; |
113 | </style> | 112 | </style> | ... | ... |
... | @@ -42,72 +42,71 @@ | ... | @@ -42,72 +42,71 @@ |
42 | </template> | 42 | </template> |
43 | 43 | ||
44 | <script> | 44 | <script> |
45 | import { getDiyiqList } from "@/api/registerBook.js"; | 45 | import { datas } from "./qlxxFormData.js"; |
46 | import { datas } from "./qlxxFormData.js"; | 46 | import { getSjlx } from "@/utils/dictionary.js"; |
47 | export default { | 47 | import { getDiyiqList } from "@/api/registerBook.js"; |
48 | data () { | 48 | export default { |
49 | return { | 49 | data () { |
50 | title: "地役权登记信息", | 50 | return { |
51 | qsztList: datas.columns().qsztList, | 51 | title: "地役权登记信息", |
52 | checkList: datas.columns().checkList, | 52 | qsztList: datas.columns().qsztList, |
53 | //传递参数 | 53 | checkList: datas.columns().checkList, |
54 | propsParam: this.$attrs, | 54 | //传递参数 |
55 | //列表数据 | 55 | propsParam: this.$attrs, |
56 | tableData: [], | 56 | //列表数据 |
57 | //空列值个数 | 57 | tableData: [], |
58 | emptycolNum: datas.columns().emptycolNum, | 58 | //空列值个数 |
59 | //列名称对象 | 59 | emptycolNum: datas.columns().emptycolNum, |
60 | columns: datas.columns().DYIQ, | 60 | //列名称对象 |
61 | }; | 61 | columns: datas.columns().DYIQ, |
62 | }, | 62 | }; |
63 | created () { | ||
64 | this.loadData(); | ||
65 | }, | ||
66 | methods: { | ||
67 | loadData () { | ||
68 | if(this.$parent.addRepairRecord){ | ||
69 | this.columns.unshift({prop:"cz", | ||
70 | label:"操作" | ||
71 | }) | ||
72 | } | ||
73 | getDiyiqList({ | ||
74 | bdcdyid: this.propsParam.bdcdyid, | ||
75 | qllx: this.propsParam.qllx, | ||
76 | qszt: this.checkList, | ||
77 | }).then((res) => { | ||
78 | if (res.code === 200) { | ||
79 | this.tableData = res.result; | ||
80 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
81 | this.emptycolNum = | ||
82 | datas.columns().emptycolNum - this.tableData.length; | ||
83 | } else { | ||
84 | this.emptycolNum = 0; | ||
85 | } | ||
86 | } | ||
87 | }); | ||
88 | }, | 63 | }, |
89 | checkChange () { | 64 | created () { |
90 | if (this.checkList.length === 0) { | 65 | this.loadData(); |
91 | this.tableData = []; | ||
92 | this.emptycolNum = datas.columns().emptycolNum; | ||
93 | } else { | ||
94 | this.loadData(); | ||
95 | } | ||
96 | }, | 66 | }, |
97 | getQsztName (code) { | 67 | methods: { |
98 | let name = ""; | 68 | loadData () { |
99 | for (let item of this.qsztList) { | 69 | getDiyiqList({ |
100 | if (item.value == code) { | 70 | bdcdyid: this.propsParam.bdcdyid, |
101 | name = item.label; | 71 | qllx: this.propsParam.qllx, |
102 | break; | 72 | qszt: this.checkList, |
73 | }).then((res) => { | ||
74 | if (res.code === 200) { | ||
75 | this.tableData = res.result; | ||
76 | this.tableData.forEach(item => { | ||
77 | item.sjlx = getSjlx(item.sjlx) | ||
78 | }) | ||
79 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
80 | this.emptycolNum = | ||
81 | datas.columns().emptycolNum - this.tableData.length; | ||
82 | } else { | ||
83 | this.emptycolNum = 0; | ||
84 | } | ||
85 | } | ||
86 | }); | ||
87 | }, | ||
88 | checkChange () { | ||
89 | if (this.checkList.length === 0) { | ||
90 | this.tableData = []; | ||
91 | this.emptycolNum = datas.columns().emptycolNum; | ||
92 | } else { | ||
93 | this.loadData(); | ||
94 | } | ||
95 | }, | ||
96 | getQsztName (code) { | ||
97 | let name = ""; | ||
98 | for (let item of this.qsztList) { | ||
99 | if (item.value == code) { | ||
100 | name = item.label; | ||
101 | break; | ||
102 | } | ||
103 | } | 103 | } |
104 | } | 104 | return name; |
105 | return name; | 105 | }, |
106 | }, | 106 | }, |
107 | }, | 107 | }; |
108 | }; | ||
109 | </script> | 108 | </script> |
110 | 109 | ||
111 | <style lang="scss" scoped> | 110 | <style lang="scss" scoped> |
112 | @import "./qlxxCommon.scss"; | 111 | @import "./qlxxCommon.scss"; |
113 | </style> | 112 | </style> | ... | ... |
... | @@ -47,8 +47,9 @@ | ... | @@ -47,8 +47,9 @@ |
47 | </template> | 47 | </template> |
48 | 48 | ||
49 | <script> | 49 | <script> |
50 | import { getJsydsyqList } from "@/api/registerBook.js"; | ||
51 | import { datas } from "./qlxxFormData.js"; | 50 | import { datas } from "./qlxxFormData.js"; |
51 | import { getSjlx } from "@/utils/dictionary.js"; | ||
52 | import { getJsydsyqList } from "@/api/registerBook.js"; | ||
52 | export default { | 53 | export default { |
53 | data () { | 54 | data () { |
54 | return { | 55 | return { |
... | @@ -82,6 +83,9 @@ | ... | @@ -82,6 +83,9 @@ |
82 | }).then((res) => { | 83 | }).then((res) => { |
83 | if (res.code === 200) { | 84 | if (res.code === 200) { |
84 | this.tableData = res.result; | 85 | this.tableData = res.result; |
86 | this.tableData.forEach(item => { | ||
87 | item.sjlx = getSjlx(item.sjlx) | ||
88 | }) | ||
85 | if (this.tableData.length < datas.columns().emptycolNum) { | 89 | if (this.tableData.length < datas.columns().emptycolNum) { |
86 | this.emptycolNum = | 90 | this.emptycolNum = |
87 | datas.columns().emptycolNum - this.tableData.length; | 91 | datas.columns().emptycolNum - this.tableData.length; | ... | ... |
... | @@ -42,128 +42,71 @@ | ... | @@ -42,128 +42,71 @@ |
42 | </template> | 42 | </template> |
43 | 43 | ||
44 | <script> | 44 | <script> |
45 | import { getFdcq2List } from "@/api/registerBook.js"; | 45 | import { datas } from "./qlxxFormData.js"; |
46 | import { datas } from "./qlxxFormData.js"; | 46 | import { getSjlx } from "@/utils/dictionary.js"; |
47 | export default { | 47 | import { getFdcq2List } from "@/api/registerBook.js"; |
48 | data () { | 48 | export default { |
49 | return { | 49 | data () { |
50 | title: "房地产权登记信息(独幢、层、套、间房屋)", | 50 | return { |
51 | qsztList: datas.columns().qsztList, | 51 | title: "房地产权登记信息(独幢、层、套、间房屋)", |
52 | checkList: datas.columns().checkList, | 52 | qsztList: datas.columns().qsztList, |
53 | //传递参数 | 53 | checkList: datas.columns().checkList, |
54 | propsParam: this.$attrs, | 54 | //传递参数 |
55 | //列表数据 | 55 | propsParam: this.$attrs, |
56 | tableData: [], | 56 | //列表数据 |
57 | //空列值个数 | 57 | tableData: [], |
58 | emptycolNum: datas.columns().emptycolNum, | 58 | //空列值个数 |
59 | //列名称对象 | 59 | emptycolNum: datas.columns().emptycolNum, |
60 | columns: datas.columns().FDCQ2, | 60 | //列名称对象 |
61 | }; | 61 | columns: datas.columns().FDCQ2, |
62 | }, | 62 | }; |
63 | created () { | ||
64 | this.loadData(); | ||
65 | }, | ||
66 | methods: { | ||
67 | loadData () { | ||
68 | if(this.$parent.addRepairRecord){ | ||
69 | this.columns.unshift({prop:"cz", | ||
70 | label:"操作" | ||
71 | }) | ||
72 | } | ||
73 | getFdcq2List({ | ||
74 | bdcdyid: this.propsParam.bdcdyid, | ||
75 | qllx: this.propsParam.qllx, | ||
76 | qszt: this.checkList, | ||
77 | }).then((res) => { | ||
78 | if (res.code === 200) { | ||
79 | this.tableData = res.result; | ||
80 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
81 | this.emptycolNum = | ||
82 | datas.columns().emptycolNum - this.tableData.length; | ||
83 | } else { | ||
84 | this.emptycolNum = 0; | ||
85 | } | ||
86 | } | ||
87 | }); | ||
88 | }, | 63 | }, |
89 | checkChange () { | 64 | created () { |
90 | if (this.checkList.length === 0) { | 65 | this.loadData(); |
91 | this.tableData = []; | ||
92 | this.emptycolNum = datas.columns().emptycolNum; | ||
93 | } else { | ||
94 | this.loadData(); | ||
95 | } | ||
96 | }, | 66 | }, |
97 | getQsztName (code) { | 67 | methods: { |
98 | let name = ""; | 68 | loadData () { |
99 | for (let item of this.qsztList) { | 69 | getFdcq2List({ |
100 | if (item.value == code) { | 70 | bdcdyid: this.propsParam.bdcdyid, |
101 | name = item.label; | 71 | qllx: this.propsParam.qllx, |
102 | break; | 72 | qszt: this.checkList, |
103 | } | 73 | }).then((res) => { |
104 | } | 74 | if (res.code === 200) { |
105 | return name; | 75 | this.tableData = res.result; |
106 | }, | 76 | this.tableData.forEach(item => { |
107 | // 编辑 | 77 | item.sjlx = getSjlx(item.sjlx) |
108 | editDialog(row){ | 78 | }) |
109 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | 79 | if (this.tableData.length < datas.columns().emptycolNum) { |
110 | confirmButtonText: '确定', | 80 | this.emptycolNum = |
111 | cancelButtonText: '取消', | 81 | datas.columns().emptycolNum - this.tableData.length; |
112 | type: 'warning' | 82 | } else { |
113 | }).then(() => { | 83 | this.emptycolNum = 0; |
114 | this.$parent.addRepairRecord(row) | 84 | } |
115 | 85 | } | |
116 | this.$message({ | ||
117 | type: 'success', | ||
118 | message: '补录成功!' | ||
119 | }); | ||
120 | }).catch(() => { | ||
121 | this.$message({ | ||
122 | type: 'info', | ||
123 | message: '取消编辑' | ||
124 | }); | ||
125 | }); | 86 | }); |
126 | |||
127 | // this.$popupDialog("编辑", "djbworkflow/djbBook/components/djbeditDialog", { | ||
128 | // datalist:this.columns, | ||
129 | // data: row, | ||
130 | |||
131 | // }) | ||
132 | |||
133 | }, | 87 | }, |
134 | // 删除 | 88 | checkChange () { |
135 | deleteDialog(row){ | 89 | if (this.checkList.length === 0) { |
136 | this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | 90 | this.tableData = []; |
137 | confirmButtonText: '确定', | 91 | this.emptycolNum = datas.columns().emptycolNum; |
138 | cancelButtonText: '取消', | 92 | } else { |
139 | type: 'warning' | 93 | this.loadData(); |
140 | }).then(() => { | 94 | } |
141 | // let bsmClmx = this.previewImg.imgList[this.previewImg.index].bsmClmx | 95 | }, |
142 | // deleteClmx(bsmClmx).then(res => { | 96 | getQsztName (code) { |
143 | // if (res.code == 200) { | 97 | let name = ""; |
144 | // that.$emit('updateList', res.result) | 98 | for (let item of this.qsztList) { |
145 | // that.$message({ | 99 | if (item.value == code) { |
146 | // message: '删除成功!', | 100 | name = item.label; |
147 | // type: 'success' | 101 | break; |
148 | // }) | 102 | } |
149 | // } | 103 | } |
150 | // }) | 104 | return name; |
151 | this.$message({ | 105 | }, |
152 | type: 'success', | 106 | }, |
153 | message: '删除成功!' | 107 | }; |
154 | }); | ||
155 | }).catch(() => { | ||
156 | this.$message({ | ||
157 | type: 'info', | ||
158 | message: '已取消删除' | ||
159 | }); | ||
160 | }); | ||
161 | |||
162 | } | ||
163 | }, | ||
164 | }; | ||
165 | </script> | 108 | </script> |
166 | 109 | ||
167 | <style lang="scss" scoped> | 110 | <style lang="scss" scoped> |
168 | @import "./qlxxCommon.scss"; | 111 | @import "./qlxxCommon.scss"; |
169 | </style> | 112 | </style> | ... | ... |
... | @@ -47,8 +47,9 @@ | ... | @@ -47,8 +47,9 @@ |
47 | </template> | 47 | </template> |
48 | 48 | ||
49 | <script> | 49 | <script> |
50 | import { getJsydsyqList } from "@/api/registerBook.js"; | ||
51 | import { datas } from "./qlxxFormData.js"; | 50 | import { datas } from "./qlxxFormData.js"; |
51 | import { getSjlx } from "@/utils/dictionary.js"; | ||
52 | import { getJsydsyqList } from "@/api/registerBook.js"; | ||
52 | export default { | 53 | export default { |
53 | data () { | 54 | data () { |
54 | return { | 55 | return { |
... | @@ -82,6 +83,9 @@ | ... | @@ -82,6 +83,9 @@ |
82 | }).then((res) => { | 83 | }).then((res) => { |
83 | if (res.code === 200) { | 84 | if (res.code === 200) { |
84 | this.tableData = res.result; | 85 | this.tableData = res.result; |
86 | this.tableData.forEach(item => { | ||
87 | item.sjlx = getSjlx(item.sjlx) | ||
88 | }) | ||
85 | if (this.tableData.length < datas.columns().emptycolNum) { | 89 | if (this.tableData.length < datas.columns().emptycolNum) { |
86 | this.emptycolNum = | 90 | this.emptycolNum = |
87 | datas.columns().emptycolNum - this.tableData.length; | 91 | datas.columns().emptycolNum - this.tableData.length; | ... | ... |
... | @@ -70,8 +70,9 @@ | ... | @@ -70,8 +70,9 @@ |
70 | </template> | 70 | </template> |
71 | 71 | ||
72 | <script> | 72 | <script> |
73 | import { getNydsyqList } from "@/api/registerBook.js"; | ||
74 | import { datas } from "./qlxxFormData.js"; | 73 | import { datas } from "./qlxxFormData.js"; |
74 | import { getSjlx } from "@/utils/dictionary.js"; | ||
75 | import { getNydsyqList } from "@/api/registerBook.js"; | ||
75 | export default { | 76 | export default { |
76 | data () { | 77 | data () { |
77 | return { | 78 | return { |
... | @@ -111,6 +112,9 @@ | ... | @@ -111,6 +112,9 @@ |
111 | }).then((res) => { | 112 | }).then((res) => { |
112 | if (res.code === 200) { | 113 | if (res.code === 200) { |
113 | this.tableData = res.result; | 114 | this.tableData = res.result; |
115 | this.tableData.forEach(item => { | ||
116 | item.sjlx = getSjlx(item.sjlx) | ||
117 | }) | ||
114 | if (this.tableData.length < datas.columns().emptycolNum) { | 118 | if (this.tableData.length < datas.columns().emptycolNum) { |
115 | this.emptycolNum = | 119 | this.emptycolNum = |
116 | datas.columns().emptycolNum - this.tableData.length; | 120 | datas.columns().emptycolNum - this.tableData.length; | ... | ... |
... | @@ -4,7 +4,7 @@ class data extends filter { | ... | @@ -4,7 +4,7 @@ class data extends filter { |
4 | constructor() { | 4 | constructor() { |
5 | super() | 5 | super() |
6 | } | 6 | } |
7 | columns() { | 7 | columns () { |
8 | return { | 8 | return { |
9 | //空列值个数 | 9 | //空列值个数 |
10 | emptycolNum: 3, | 10 | emptycolNum: 3, |
... | @@ -24,7 +24,7 @@ class data extends filter { | ... | @@ -24,7 +24,7 @@ class data extends filter { |
24 | label: "历史", | 24 | label: "历史", |
25 | }, | 25 | }, |
26 | ], | 26 | ], |
27 | JSYDSYQ: [ | 27 | JSYDSYQ: [ |
28 | { | 28 | { |
29 | prop: "qszt", | 29 | prop: "qszt", |
30 | label: "权属状态", | 30 | label: "权属状态", |
... | @@ -134,7 +134,7 @@ class data extends filter { | ... | @@ -134,7 +134,7 @@ class data extends filter { |
134 | label: "附记", | 134 | label: "附记", |
135 | }, | 135 | }, |
136 | ], | 136 | ], |
137 | FDCQ2: [ | 137 | FDCQ2: [ |
138 | { | 138 | { |
139 | prop: "qszt", | 139 | prop: "qszt", |
140 | label: "权属状态", | 140 | label: "权属状态", |
... | @@ -172,7 +172,7 @@ class data extends filter { | ... | @@ -172,7 +172,7 @@ class data extends filter { |
172 | label: "坐落", | 172 | label: "坐落", |
173 | }, | 173 | }, |
174 | { | 174 | { |
175 | prop: "gyfs", | 175 | prop: "gyqk", |
176 | label: "共有情况", | 176 | label: "共有情况", |
177 | }, | 177 | }, |
178 | { | 178 | { |
... | @@ -216,7 +216,7 @@ class data extends filter { | ... | @@ -216,7 +216,7 @@ class data extends filter { |
216 | label: "房地产交易价格(万元)", | 216 | label: "房地产交易价格(万元)", |
217 | }, | 217 | }, |
218 | { | 218 | { |
219 | prop: "ytmc", | 219 | prop: "ghyt", |
220 | label: "规划用途", | 220 | label: "规划用途", |
221 | }, | 221 | }, |
222 | { | 222 | { |
... | @@ -273,7 +273,7 @@ class data extends filter { | ... | @@ -273,7 +273,7 @@ class data extends filter { |
273 | label: "附记", | 273 | label: "附记", |
274 | }, | 274 | }, |
275 | ], | 275 | ], |
276 | NYDSYQ: [ | 276 | NYDSYQ: [ |
277 | { | 277 | { |
278 | prop: "qszt", | 278 | prop: "qszt", |
279 | label: "权属状态", | 279 | label: "权属状态", |
... | @@ -403,7 +403,7 @@ class data extends filter { | ... | @@ -403,7 +403,7 @@ class data extends filter { |
403 | label: "附记", | 403 | label: "附记", |
404 | }, | 404 | }, |
405 | ], | 405 | ], |
406 | DYAQ: [ | 406 | DYAQ: [ |
407 | { | 407 | { |
408 | prop: "qszt", | 408 | prop: "qszt", |
409 | label: "权属状态", | 409 | label: "权属状态", |
... | @@ -440,12 +440,12 @@ class data extends filter { | ... | @@ -440,12 +440,12 @@ class data extends filter { |
440 | prop: "zl", | 440 | prop: "zl", |
441 | label: "在建建筑物坐落", | 441 | label: "在建建筑物坐落", |
442 | }, | 442 | }, |
443 | { | 443 | { |
444 | prop: "dyfs", | 444 | prop: "dyfs", |
445 | label: "抵押方式", | 445 | label: "抵押方式", |
446 | render: (h, scope) => { | 446 | render: (h, scope) => { |
447 | return ( | 447 | return ( |
448 | <div> | 448 | <div> |
449 | <span v-show={scope.row.dyfs == '1'}>一般抵押权</span> | 449 | <span v-show={scope.row.dyfs == '1'}>一般抵押权</span> |
450 | <span v-show={scope.row.dyfs == '2'}>最高额抵押权</span> | 450 | <span v-show={scope.row.dyfs == '2'}>最高额抵押权</span> |
451 | </div> | 451 | </div> |
... | @@ -480,7 +480,7 @@ class data extends filter { | ... | @@ -480,7 +480,7 @@ class data extends filter { |
480 | prop: "ywrzjhm", | 480 | prop: "ywrzjhm", |
481 | label: "抵押人证件号", | 481 | label: "抵押人证件号", |
482 | }, | 482 | }, |
483 | 483 | ||
484 | { | 484 | { |
485 | prop: "sfygdj", | 485 | prop: "sfygdj", |
486 | label: "是否预告登记", | 486 | label: "是否预告登记", |
... | @@ -532,7 +532,7 @@ class data extends filter { | ... | @@ -532,7 +532,7 @@ class data extends filter { |
532 | { | 532 | { |
533 | prop: "fj", | 533 | prop: "fj", |
534 | label: "附记", | 534 | label: "附记", |
535 | }, | 535 | }, |
536 | { | 536 | { |
537 | prop: "djsj", | 537 | prop: "djsj", |
538 | label: "登记时间", | 538 | label: "登记时间", |
... | @@ -563,7 +563,7 @@ class data extends filter { | ... | @@ -563,7 +563,7 @@ class data extends filter { |
563 | }, | 563 | }, |
564 | 564 | ||
565 | ], | 565 | ], |
566 | DYIQ: [ | 566 | DYIQ: [ |
567 | { | 567 | { |
568 | prop: "qszt", | 568 | prop: "qszt", |
569 | label: "权属状态", | 569 | label: "权属状态", |
... | @@ -657,7 +657,7 @@ class data extends filter { | ... | @@ -657,7 +657,7 @@ class data extends filter { |
657 | label: "登记时间", | 657 | label: "登记时间", |
658 | }, | 658 | }, |
659 | ], | 659 | ], |
660 | YGDJ: [ | 660 | YGDJ: [ |
661 | { | 661 | { |
662 | prop: "qszt", | 662 | prop: "qszt", |
663 | label: "权属状态", | 663 | label: "权属状态", |
... | @@ -783,7 +783,7 @@ class data extends filter { | ... | @@ -783,7 +783,7 @@ class data extends filter { |
783 | label: "注销时间", | 783 | label: "注销时间", |
784 | } | 784 | } |
785 | ], | 785 | ], |
786 | CFDJ: [ | 786 | CFDJ: [ |
787 | { | 787 | { |
788 | prop: "qszt", | 788 | prop: "qszt", |
789 | label: "权属状态", | 789 | label: "权属状态", | ... | ... |
... | @@ -5,8 +5,8 @@ | ... | @@ -5,8 +5,8 @@ |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
8 | <div class="slxx"> | 8 | <div class="slxx loadingtext"> |
9 | <el-form :model="ruleForm" :rules="rules" class="loadingtext" ref="ruleForm" :label-position="flag ? 'top' : ''" | 9 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" |
10 | :inline="flag" label-width="120px"> | 10 | :inline="flag" label-width="120px"> |
11 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> | 11 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> |
12 | <div class="slxx_title title-block"> | 12 | <div class="slxx_title title-block"> |
... | @@ -202,8 +202,8 @@ | ... | @@ -202,8 +202,8 @@ |
202 | Init(formdata).then((res) => { | 202 | Init(formdata).then((res) => { |
203 | if (res.code === 200 && res.result) { | 203 | if (res.code === 200 && res.result) { |
204 | this.ruleForm = res.result; | 204 | this.ruleForm = res.result; |
205 | this.$endLoading(); | ||
206 | } | 205 | } |
206 | this.$endLoading(); | ||
207 | }); | 207 | }); |
208 | }, | 208 | }, |
209 | components: { qlrCommonTable }, | 209 | components: { qlrCommonTable }, | ... | ... |
-
Please register or sign in to post a comment