合并更改
Showing
11 changed files
with
478 additions
and
39 deletions
src/components/queryData/queryData.vue
0 → 100644
1 | <template> | ||
2 | <div> | ||
3 | <el-dialog | ||
4 | title="新增" | ||
5 | :visible.sync="isVisible" | ||
6 | width="50%" | ||
7 | @close="close" | ||
8 | center> | ||
9 | <div class="search"> | ||
10 | <el-button type="primary" @click="search">查询</el-button> | ||
11 | <el-button type="primary" @click="result">重置</el-button> | ||
12 | <el-row :gutter="10" class="shop"> | ||
13 | <el-col :span="4" class="inputtitle"> | ||
14 | 宗地编码: | ||
15 | </el-col> | ||
16 | <el-col :span="8" class=""> | ||
17 | <el-input v-model="queryData.zddm"></el-input> | ||
18 | </el-col> | ||
19 | <el-col :span="4" class="inputtitle"> | ||
20 | 不动产权证号: | ||
21 | </el-col> | ||
22 | <el-col :span="8" class=""> | ||
23 | <el-input v-model="queryData.bdcqzh"></el-input> | ||
24 | </el-col> | ||
25 | </el-row> | ||
26 | <el-row :gutter="10"> | ||
27 | <el-col :span="4" class="inputtitle"> | ||
28 | 不动产权单元号: | ||
29 | </el-col> | ||
30 | <el-col :span="8"> | ||
31 | <el-input v-model="queryData.bdcdyh"></el-input> | ||
32 | </el-col> | ||
33 | <el-col :span="4" class="inputtitle"> | ||
34 | 权利人: | ||
35 | </el-col> | ||
36 | <el-col :span="8"> | ||
37 | <el-input v-model="queryData.qlrmc"></el-input> | ||
38 | </el-col> | ||
39 | </el-row> | ||
40 | <el-row :gutter="10"> | ||
41 | <el-col :span="4" class="inputtitle"> | ||
42 | 坐落: | ||
43 | </el-col> | ||
44 | <el-col :span="8"> | ||
45 | <el-input v-model="queryData.zl"></el-input> | ||
46 | </el-col> | ||
47 | </el-row> | ||
48 | <table border="1"> | ||
49 | <tr> | ||
50 | <td>序号</td> | ||
51 | <td>操作</td> | ||
52 | <td>宗地代码</td> | ||
53 | <td>不动产单元号</td> | ||
54 | <td>项目名称</td> | ||
55 | <td>不动产权证号</td> | ||
56 | <td>权利人</td> | ||
57 | <td>坐落</td> | ||
58 | </tr> | ||
59 | <tr v-if="Data.length==0"> | ||
60 | <td colspan="8"> | ||
61 | <span class="noData">暂无数据</span> | ||
62 | </td> | ||
63 | </tr> | ||
64 | <tr v-else v-for="(item,index) in Data" :key="index"> | ||
65 | <td>{{index+1}}</td> | ||
66 | <td @click="addData(item)" class="xz"> | ||
67 | <span>选择</span> | ||
68 | </td> | ||
69 | <td>{{item.zddm}}</td> | ||
70 | <td>{{item.bdcdyh}}</td> | ||
71 | <td>{{item.xmmc}}</td> | ||
72 | <td>{{item.bdcqzh}}</td> | ||
73 | <td>{{item.qlr}}</td> | ||
74 | <td>{{item.zl}}</td> | ||
75 | </tr> | ||
76 | |||
77 | </table> | ||
78 | </div> | ||
79 | <span slot="footer" class="dialog-footer"> | ||
80 | </span> | ||
81 | </el-dialog> | ||
82 | |||
83 | </div> | ||
84 | </template> | ||
85 | |||
86 | <script> | ||
87 | import {getSearchList} from './../../api/search' | ||
88 | |||
89 | export default { | ||
90 | name: "queryData", | ||
91 | data() { | ||
92 | return { | ||
93 | queryData: { | ||
94 | bdcdyh: "", | ||
95 | bdcqzh: "", | ||
96 | dylxs: ['zd'], | ||
97 | qlrmc: "", | ||
98 | qszt: "2", | ||
99 | xmmc: "", | ||
100 | zddm: "", | ||
101 | zl: "" | ||
102 | }, | ||
103 | Data: [], | ||
104 | isVisible: false | ||
105 | } | ||
106 | }, | ||
107 | props: { | ||
108 | centerDialogVisible: { | ||
109 | type: Boolean, | ||
110 | default: function () { | ||
111 | return false | ||
112 | } | ||
113 | } | ||
114 | }, | ||
115 | mounted() { | ||
116 | this.getData(this.queryData) | ||
117 | }, | ||
118 | created() { | ||
119 | }, | ||
120 | methods: { | ||
121 | result: function () { | ||
122 | this.queryData = { | ||
123 | bdcdyh: "", | ||
124 | bdcqzh: "", | ||
125 | dylxs: ['zd'], | ||
126 | qlrmc: "", | ||
127 | qszt: "2", | ||
128 | xmmc: "", | ||
129 | zddm: "", | ||
130 | zl: "" | ||
131 | } | ||
132 | }, | ||
133 | getData: function (data) { | ||
134 | getSearchList(data).then(res => { | ||
135 | this.Data = res.result.records | ||
136 | }) | ||
137 | }, | ||
138 | search: function () { | ||
139 | this.getData(this.queryData) | ||
140 | }, | ||
141 | addData: function (val) { | ||
142 | this.$emit("getData", val) | ||
143 | }, | ||
144 | close: function () { | ||
145 | this.$emit('close') | ||
146 | this.isVisible = false | ||
147 | } | ||
148 | }, | ||
149 | watch: { | ||
150 | centerDialogVisible(val) { | ||
151 | this.isVisible = val | ||
152 | } | ||
153 | } | ||
154 | } | ||
155 | </script> | ||
156 | |||
157 | <style scoped lang="less"> | ||
158 | .main { | ||
159 | box-sizing: border-box; | ||
160 | padding: 18px; | ||
161 | height: auto; | ||
162 | width: 80%; | ||
163 | } | ||
164 | |||
165 | table { | ||
166 | margin-top: 10px; | ||
167 | background-color: #fff; | ||
168 | font-size: 14px; | ||
169 | width: 100%; | ||
170 | } | ||
171 | |||
172 | td { | ||
173 | text-align: center; | ||
174 | height: 36px; | ||
175 | min-width: 50px; | ||
176 | } | ||
177 | |||
178 | table:hover { | ||
179 | cursor: pointer; | ||
180 | } | ||
181 | |||
182 | .shop { | ||
183 | margin-top: 20px; | ||
184 | } | ||
185 | |||
186 | .xz { | ||
187 | color: blue; | ||
188 | } | ||
189 | |||
190 | .noData { | ||
191 | color: #b2b2b2; | ||
192 | } | ||
193 | |||
194 | </style> |
... | @@ -29,5 +29,9 @@ let bdcLxArray = [ | ... | @@ -29,5 +29,9 @@ let bdcLxArray = [ |
29 | label: "自然幢", | 29 | label: "自然幢", |
30 | value: "zrz", | 30 | value: "zrz", |
31 | }, | 31 | }, |
32 | { | ||
33 | label: "户", | ||
34 | value: "h", | ||
35 | }, | ||
32 | ]; | 36 | ]; |
33 | createFilter("bdcLxFilter", bdcLxArray); | 37 | createFilter("bdcLxFilter", bdcLxArray); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | <template> | 1 | <template> |
2 | <div class="">分割</div> | 2 | <div class="main"> |
3 | <div class="button"> | ||
4 | <el-button type="primary" @click="newAdd">新增</el-button> | ||
5 | </div> | ||
6 | <div class="table"> | ||
7 | <table border="1"> | ||
8 | <tr> | ||
9 | <td>序号</td> | ||
10 | <td>宗地代码</td> | ||
11 | <td>不动产单元号</td> | ||
12 | <td>项目名称</td> | ||
13 | <td>不动产权证号</td> | ||
14 | <td>权利人</td> | ||
15 | <td>坐落</td> | ||
16 | </tr> | ||
17 | <tr v-if="Object.keys(bgqData)==0"> | ||
18 | <td colspan="7"> | ||
19 | <span class="noData">暂无数据</span> | ||
20 | </td> | ||
21 | </tr> | ||
22 | <tr v-else> | ||
23 | <!--<tr v-else v-for="(item,index) in bgqData" :key="index">--> | ||
24 | <td>1</td> | ||
25 | <td><input type="text" class="formInput" v-model="bgqData.zddm" readonly="readonly"/></td> | ||
26 | <td><input type="text" class="formInput" v-model="bgqData.bdcdyh" readonly="readonly"/></td> | ||
27 | <td><input type="text" class="formInput" v-model="bgqData.xmmc" readonly="readonly"/></td> | ||
28 | <td><input type="text" class="formInput" v-model="bgqData.bdcqzh" readonly="readonly"/></td> | ||
29 | <td><input type="text" class="formInput" v-model="bgqData.qlr" readonly="readonly"/></td> | ||
30 | <td><input type="text" class="formInput" v-model="bgqData.zl" readonly="readonly"/></td> | ||
31 | </tr> | ||
32 | </table> | ||
33 | </div> | ||
34 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" @close="closepop"></query-data> | ||
35 | </div> | ||
3 | </template> | 36 | </template> |
4 | 37 | ||
5 | <script> | 38 | <script> |
6 | export default { | 39 | import QueryData from './../../../../components/queryData/queryData' |
7 | name:"", | 40 | |
8 | components:{}, | 41 | export default { |
9 | props:{}, | 42 | name: "", |
10 | data(){ | 43 | components: {QueryData}, |
44 | props: {}, | ||
45 | data() { | ||
11 | return { | 46 | return { |
47 | centerDialogVisible: false, | ||
48 | bgqData: {} | ||
12 | } | 49 | } |
13 | }, | 50 | }, |
14 | created(){}, | 51 | created() { |
15 | mounted(){}, | 52 | }, |
16 | methods:{}, | 53 | mounted() { |
54 | }, | ||
55 | methods: { | ||
56 | closepop: function () { | ||
57 | this.centerDialogVisible = false; | ||
58 | }, | ||
59 | newAdd: function () { | ||
60 | this.centerDialogVisible = true; | ||
61 | }, | ||
62 | addData: function (val) { | ||
63 | this.centerDialogVisible = false; | ||
64 | this.bgqData = val | ||
65 | }, | ||
66 | getData: function (data) { | ||
67 | this.bgqData = data | ||
68 | }, | ||
69 | }, | ||
17 | computed: {}, | 70 | computed: {}, |
18 | watch: {}, | 71 | watch: {}, |
19 | } | 72 | } |
20 | </script> | 73 | </script> |
21 | <style scoped lang="less"> | 74 | <style scoped lang="less"> |
75 | .main { | ||
76 | box-sizing: border-box; | ||
77 | padding: 18px; | ||
78 | height: auto; | ||
79 | width: 80%; | ||
80 | table { | ||
81 | margin-top: 10px; | ||
82 | background-color: #fff; | ||
83 | font-size: 14px; | ||
84 | width: 100%; | ||
85 | |||
86 | .formInput { | ||
87 | margin: 0; | ||
88 | height: 36px; | ||
89 | outline: none; | ||
90 | border: none; | ||
91 | color: #606764; | ||
92 | overflow: visible; | ||
93 | text-align: center; | ||
94 | cursor: text; | ||
95 | } | ||
96 | |||
97 | } | ||
98 | |||
99 | td { | ||
100 | text-align: center; | ||
101 | height: 36px; | ||
102 | min-width: 50px; | ||
103 | } | ||
104 | |||
105 | table:hover { | ||
106 | cursor: pointer; | ||
107 | } | ||
108 | |||
109 | .inputtitle { | ||
110 | line-height: 40px; | ||
111 | } | ||
112 | .noData { | ||
113 | color: #b2b2b2; | ||
114 | } | ||
115 | } | ||
22 | </style> | 116 | </style> | ... | ... |
1 | <template> | 1 | <template> |
2 | <div class="">合并</div> | 2 | <div class="main"> |
3 | <div class="header"> | ||
4 | <span>合并后项目名称:</span> | ||
5 | <el-input></el-input> | ||
6 | |||
7 | <el-button type="primary" @click="newAdd">新增</el-button> | ||
8 | |||
9 | <el-button type="primary">保存</el-button> | ||
10 | </div> | ||
11 | |||
12 | <table border="1"> | ||
13 | <tr> | ||
14 | <td>序号</td> | ||
15 | <td>宗地代码</td> | ||
16 | <td>不动产单元号</td> | ||
17 | <td>项目名称</td> | ||
18 | <td>不动产权证号</td> | ||
19 | <td>权利人</td> | ||
20 | <td>坐落</td> | ||
21 | </tr> | ||
22 | <tr v-if="bgqData.length==0"> | ||
23 | <td colspan="7"> | ||
24 | <span class="noData">暂无数据</span> | ||
25 | </td> | ||
26 | </tr> | ||
27 | <tr v-else v-for="(item,index) in bgqData" :key="index"> | ||
28 | <td>{{index+1}}</td> | ||
29 | <td><input type="text" class="formInput" v-model="item.zddm" readonly="readonly"/></td> | ||
30 | <td><input type="text" class="formInput" v-model="item.bdcdyh" readonly="readonly"/></td> | ||
31 | <td><input type="text" class="formInput" v-model="item.xmmc" readonly="readonly"/></td> | ||
32 | <td><input type="text" class="formInput" v-model="item.bdcqzh" readonly="readonly"/></td> | ||
33 | <td><input type="text" class="formInput" v-model="item.qlr" readonly="readonly"/></td> | ||
34 | <td><input type="text" class="formInput" v-model="item.zl" readonly="readonly"/></td> | ||
35 | </tr> | ||
36 | </table> | ||
37 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" @close="closepop"></query-data> | ||
38 | </div> | ||
3 | </template> | 39 | </template> |
4 | 40 | ||
5 | <script> | 41 | <script> |
6 | export default { | 42 | import {getSearchList} from './../../../../api/search' |
7 | name:"", | 43 | import QueryData from './../../../../components/queryData/queryData' |
8 | components:{}, | 44 | |
9 | props:{}, | 45 | export default { |
10 | data(){ | 46 | name: "", |
47 | components: {QueryData}, | ||
48 | props: {}, | ||
49 | data() { | ||
11 | return { | 50 | return { |
51 | centerDialogVisible: false, | ||
52 | bgqData: [] | ||
12 | } | 53 | } |
13 | }, | 54 | }, |
14 | created(){}, | 55 | created() { |
15 | mounted(){}, | 56 | }, |
16 | methods:{}, | 57 | mounted() { |
58 | }, | ||
59 | methods: { | ||
60 | newAdd: function () { | ||
61 | this.centerDialogVisible = true; | ||
62 | }, | ||
63 | addData: function (val) { | ||
64 | this.centerDialogVisible = false; | ||
65 | this.bgqData.push(val) | ||
66 | }, | ||
67 | getData: function (data) { | ||
68 | this.bgqData.push(data) | ||
69 | }, | ||
70 | }, | ||
17 | computed: {}, | 71 | computed: {}, |
18 | watch: {}, | 72 | watch: {}, |
19 | } | 73 | } |
20 | </script> | 74 | </script> |
21 | <style scoped lang="less"> | 75 | <style scoped lang="less"> |
76 | .main { | ||
77 | box-sizing: border-box; | ||
78 | padding: 18px; | ||
79 | height: auto; | ||
80 | width: 80%; | ||
81 | .header { | ||
82 | display: flex; | ||
83 | justify-items: left; | ||
84 | span { | ||
85 | width: 130px; | ||
86 | line-height: 40px; | ||
87 | } | ||
88 | .el-input { | ||
89 | width: 200px; | ||
90 | margin-right: 20px; | ||
91 | } | ||
92 | } | ||
93 | |||
94 | table { | ||
95 | margin-top: 10px; | ||
96 | background-color: #fff; | ||
97 | font-size: 14px; | ||
98 | width: 100%; | ||
99 | |||
100 | .formInput { | ||
101 | margin: 0; | ||
102 | height: 36px; | ||
103 | outline: none; | ||
104 | border: none; | ||
105 | color: #606764; | ||
106 | overflow: visible; | ||
107 | text-align: center; | ||
108 | cursor: text; | ||
109 | } | ||
110 | } | ||
111 | |||
112 | td { | ||
113 | text-align: center; | ||
114 | height: 36px; | ||
115 | min-width: 50px; | ||
116 | } | ||
117 | |||
118 | table:hover { | ||
119 | cursor: pointer; | ||
120 | } | ||
121 | |||
122 | .inputtitle { | ||
123 | line-height: 40px; | ||
124 | } | ||
125 | .noData { | ||
126 | color: #b2b2b2; | ||
127 | } | ||
128 | } | ||
22 | </style> | 129 | </style> | ... | ... |
... | @@ -21,7 +21,7 @@ | ... | @@ -21,7 +21,7 @@ |
21 | <td colspan="2" align="center" >不动产单元号</td> | 21 | <td colspan="2" align="center" >不动产单元号</td> |
22 | <!-- todo 此处暂时存放的是不动产单元号标识码,而不是不动产单元号--> | 22 | <!-- todo 此处暂时存放的是不动产单元号标识码,而不是不动产单元号--> |
23 | <td colspan="4" > | 23 | <td colspan="4" > |
24 | <el-input v-model="form.dyhbsm" style="width: 70%"></el-input> | 24 | <el-input v-model="form.bdcdyh" style="width: 70%"></el-input> |
25 | <el-button @click.prevent="" size="mini" type="primary" style="width:25%;margin-left:3%">生成</el-button> | 25 | <el-button @click.prevent="" size="mini" type="primary" style="width:25%;margin-left:3%">生成</el-button> |
26 | </td> | 26 | </td> |
27 | <td colspan="2" align="center" >原不动产单元</td> | 27 | <td colspan="2" align="center" >原不动产单元</td> |
... | @@ -33,11 +33,11 @@ | ... | @@ -33,11 +33,11 @@ |
33 | <tr height="30"> | 33 | <tr height="30"> |
34 | <td colspan="2" align="center" >逻辑幢号</td> | 34 | <td colspan="2" align="center" >逻辑幢号</td> |
35 | <td colspan="4" > | 35 | <td colspan="4" > |
36 | <el-input v-model="form.ljzbsm"></el-input> | 36 | <el-input v-model="form.ljzh"></el-input> |
37 | </td> | 37 | </td> |
38 | <td colspan="2" align="center" >层号</td> | 38 | <td colspan="2" align="center" >层号</td> |
39 | <td colspan="4" > | 39 | <td colspan="4" > |
40 | <el-input v-model="form.cbsm"></el-input> | 40 | <el-input v-model="form.ch"></el-input> |
41 | </td> | 41 | </td> |
42 | </tr> | 42 | </tr> |
43 | 43 | ||
... | @@ -387,10 +387,12 @@ | ... | @@ -387,10 +387,12 @@ |
387 | form:{ | 387 | form:{ |
388 | zrzbsm:'', //自然幢标识码 | 388 | zrzbsm:'', //自然幢标识码 |
389 | ljzbsm:'', //逻辑幢标识码 | 389 | ljzbsm:'', //逻辑幢标识码 |
390 | ljzh:'', //逻辑幢号 | ||
390 | zdybsm:'', //幢单元标识码 | 391 | zdybsm:'', //幢单元标识码 |
391 | cbsm:'', //层标识码 | 392 | cbsm:'', //层标识码 |
393 | ch:'', //层号 | ||
392 | zdbsm:'', //宗地标识码 | 394 | zdbsm:'', //宗地标识码 |
393 | dyhbsm:'', //不动产单元号标识码 | 395 | bdcdyh:'', //不动产单元号标识码 |
394 | ydybsm:'', //原单元标识码 | 396 | ydybsm:'', //原单元标识码 |
395 | zrzh:'', //自然幢号 | 397 | zrzh:'', //自然幢号 |
396 | mjdwbsm:'', //面积单位编号 | 398 | mjdwbsm:'', //面积单位编号 |
... | @@ -423,7 +425,6 @@ | ... | @@ -423,7 +425,6 @@ |
423 | ftxs:'', //分摊系数 | 425 | ftxs:'', //分摊系数 |
424 | scyclx:'', //实预测类型(0:预测,1:实测;),区别户是实测还是预测数据 | 426 | scyclx:'', //实预测类型(0:预测,1:实测;),区别户是实测还是预测数据 |
425 | scycglbsm:'', //实测预测关联标识码 | 427 | scycglbsm:'', //实测预测关联标识码 |
426 | ch:'', //层号 | ||
427 | bz:'', //备注 | 428 | bz:'', //备注 |
428 | name:'', | 429 | name:'', |
429 | date:'', | 430 | date:'', | ... | ... |
... | @@ -182,7 +182,6 @@ | ... | @@ -182,7 +182,6 @@ |
182 | }, | 182 | }, |
183 | save() { | 183 | save() { |
184 | jzdsingleModify(this.jzdlist).then(res => { | 184 | jzdsingleModify(this.jzdlist).then(res => { |
185 | console.log(res) | ||
186 | if (res.success) { | 185 | if (res.success) { |
187 | Message.success("保存成功") | 186 | Message.success("保存成功") |
188 | this.getData(this.bsm) | 187 | this.getData(this.bsm) | ... | ... |
... | @@ -247,9 +247,7 @@ | ... | @@ -247,9 +247,7 @@ |
247 | }) | 247 | }) |
248 | }, | 248 | }, |
249 | save() { | 249 | save() { |
250 | console.log("保存...."); | ||
251 | jzxsingleModify(this.jzxlist).then(res => { | 250 | jzxsingleModify(this.jzxlist).then(res => { |
252 | console.log(res) | ||
253 | if (res.success) { | 251 | if (res.success) { |
254 | Message.success("保存成功") | 252 | Message.success("保存成功") |
255 | this.getData(this.bsm) | 253 | this.getData(this.bsm) | ... | ... |
... | @@ -89,7 +89,6 @@ | ... | @@ -89,7 +89,6 @@ |
89 | }) | 89 | }) |
90 | }, | 90 | }, |
91 | save() { | 91 | save() { |
92 | console.log(this.mjftData); | ||
93 | for (let val of this.mjftData.list) { | 92 | for (let val of this.mjftData.list) { |
94 | if (val.dzwdm == '') { | 93 | if (val.dzwdm == '') { |
95 | Message.error("定着物代码不能为空") | 94 | Message.error("定着物代码不能为空") |
... | @@ -98,7 +97,6 @@ | ... | @@ -98,7 +97,6 @@ |
98 | } | 97 | } |
99 | this.mjftData['zdbsm'] = this.$store.state.zdbsm | 98 | this.mjftData['zdbsm'] = this.$store.state.zdbsm |
100 | savemjft(this.mjftData).then(res => { | 99 | savemjft(this.mjftData).then(res => { |
101 | console.log(res) | ||
102 | if (res.success) { | 100 | if (res.success) { |
103 | Message.success("保存成功") | 101 | Message.success("保存成功") |
104 | this.getData(this.mjftData.zdbsm) | 102 | this.getData(this.mjftData.zdbsm) |
... | @@ -180,8 +178,12 @@ | ... | @@ -180,8 +178,12 @@ |
180 | }, | 178 | }, |
181 | mounted() { | 179 | mounted() { |
182 | console.log("mounted init...") | 180 | console.log("mounted init...") |
181 | this.mjftData.zdbsm=this.$store.state.zdbsm | ||
182 | this.zdmj=this.$store.state.zdmj | ||
183 | this.tdzl=this.$store.state.zdzl | ||
184 | this.zddm=this.$store.state.zddm | ||
183 | if (this.mjftData.zdbsm) { | 185 | if (this.mjftData.zdbsm) { |
184 | this.getData() | 186 | this.getData(this.mjftData.zdbsm) |
185 | } | 187 | } |
186 | }, | 188 | }, |
187 | watch: { | 189 | watch: { | ... | ... |
... | @@ -17,9 +17,9 @@ | ... | @@ -17,9 +17,9 @@ |
17 | </td> | 17 | </td> |
18 | </tr> | 18 | </tr> |
19 | <tr height="30"> | 19 | <tr height="30"> |
20 | <td colspan="2" align="center" >逻辑幢顺序号</td> | 20 | <td colspan="2" align="center" >逻辑幢名称</td> |
21 | <td colspan="4" > | 21 | <td colspan="4" > |
22 | <el-input v-model="form.ljzsxh"></el-input> | 22 | <el-input v-model="form.ljzmc"></el-input> |
23 | </td> | 23 | </td> |
24 | <td colspan="2" align="center" >不动产单元号</td> | 24 | <td colspan="2" align="center" >不动产单元号</td> |
25 | <td colspan="4" > | 25 | <td colspan="4" > |
... | @@ -38,6 +38,7 @@ | ... | @@ -38,6 +38,7 @@ |
38 | <el-date-picker | 38 | <el-date-picker |
39 | v-model="form.jgrq" | 39 | v-model="form.jgrq" |
40 | type="date" | 40 | type="date" |
41 | value-format="yyyy-MM-dd" | ||
41 | placeholder="选择日期"> | 42 | placeholder="选择日期"> |
42 | </el-date-picker> | 43 | </el-date-picker> |
43 | </td> | 44 | </td> |
... | @@ -86,7 +87,7 @@ | ... | @@ -86,7 +87,7 @@ |
86 | <span @click="deleteYtInfo(index)">删除</span> | 87 | <span @click="deleteYtInfo(index)">删除</span> |
87 | </td> | 88 | </td> |
88 | <td colspan="9" > | 89 | <td colspan="9" > |
89 | <el-select v-model="item1.fwjgzdbsm" placeholder="请选择" > | 90 | <el-select v-model="item1.fwytzdbsm" placeholder="请选择" > |
90 | <el-option | 91 | <el-option |
91 | v-for="item in $store.state.tdytList" | 92 | v-for="item in $store.state.tdytList" |
92 | :key="item.bsm" | 93 | :key="item.bsm" |
... | @@ -161,6 +162,7 @@ | ... | @@ -161,6 +162,7 @@ |
161 | 162 | ||
162 | <script> | 163 | <script> |
163 | import {insertLjzInfo} from "../../../api/zrz"; | 164 | import {insertLjzInfo} from "../../../api/zrz"; |
165 | import {formdate} from "../../../libs/function"; | ||
164 | export default { | 166 | export default { |
165 | name:'ljz', | 167 | name:'ljz', |
166 | components:{}, | 168 | components:{}, |
... | @@ -170,7 +172,7 @@ | ... | @@ -170,7 +172,7 @@ |
170 | zrzbsm:'', | 172 | zrzbsm:'', |
171 | ljzh:'', //逻辑幢号 | 173 | ljzh:'', //逻辑幢号 |
172 | zrzh:'', //自然幢号 | 174 | zrzh:'', //自然幢号 |
173 | ljzsxh:'', //逻辑幢顺序号 | 175 | ljzmc:'', //逻辑幢顺序号 |
174 | bdcdyh:'', //不动产单元号 | 176 | bdcdyh:'', //不动产单元号 |
175 | mph:'', //门牌号 | 177 | mph:'', //门牌号 |
176 | jgrq:'', //竣工日期 | 178 | jgrq:'', //竣工日期 |
... | @@ -228,6 +230,38 @@ | ... | @@ -228,6 +230,38 @@ |
228 | }); | 230 | }); |
229 | this.fwjgTitleRowspan=this.form.fwjgList.length; | 231 | this.fwjgTitleRowspan=this.form.fwjgList.length; |
230 | }, | 232 | }, |
233 | //重置数据 | ||
234 | reset(){ | ||
235 | this.form = { | ||
236 | zrzbsm:'', | ||
237 | ljzh:'', //逻辑幢号 | ||
238 | zrzh:'', //自然幢号 | ||
239 | ljzmc:'', //逻辑幢顺序号 | ||
240 | bdcdyh:'', //不动产单元号 | ||
241 | mph:'', //门牌号 | ||
242 | jgrq:'', //竣工日期 | ||
243 | ycjzmj:'', //预测建筑面积 | ||
244 | scjzmj:'', //实测建筑面积 | ||
245 | ycdxmj:'', //预测地下面积 | ||
246 | scdxmj:'', //实测地下面积 | ||
247 | ycqtmj:'', //预测其他面积 | ||
248 | scqymj:'', //实测其他面积 | ||
249 | ytList:[{ | ||
250 | glbsm:'', //关联标识码 | ||
251 | fwytzdbsm:'', //房屋用途字典标识码 | ||
252 | sx:'', //顺序 | ||
253 | }], | ||
254 | fwjgList:[{ | ||
255 | fwjgzdbsm:'', //房屋结构字典标识码 | ||
256 | glbsm:'', //关联标识码 | ||
257 | sx:'', //顺序 | ||
258 | }], | ||
259 | dxcs:'', //地下层数 | ||
260 | dscs:'', //地上层数 | ||
261 | zcs:'', //总层数 | ||
262 | jzwzt:'', //建筑物状态 | ||
263 | } | ||
264 | }, | ||
231 | deleteFwjgInfo(index){ | 265 | deleteFwjgInfo(index){ |
232 | if(this.form.fwjgList.length<=1){ | 266 | if(this.form.fwjgList.length<=1){ |
233 | this.$message({ | 267 | this.$message({ |
... | @@ -242,9 +276,14 @@ | ... | @@ -242,9 +276,14 @@ |
242 | onSave(data,bsm){ | 276 | onSave(data,bsm){ |
243 | //自然幢标识码 | 277 | //自然幢标识码 |
244 | this.form.zrzbsm= bsm; | 278 | this.form.zrzbsm= bsm; |
245 | insertLjzInfo(data).then((res)=>{ | 279 | insertLjzInfo(this.form).then((res)=>{ |
246 | if(res.code===200){ | 280 | if(res.code===200){ |
247 | this.$message.success("保存成功") | 281 | this.$message.success("保存成功") |
282 | //更新树结构数据 | ||
283 | console.log(this); | ||
284 | this.$parent.$parent.getLpbMenuTree(bsm); | ||
285 | //关闭弹框 | ||
286 | this.$parent.$parent.closeDaialog() | ||
248 | } | 287 | } |
249 | }) | 288 | }) |
250 | }, | 289 | }, |
... | @@ -289,7 +328,7 @@ | ... | @@ -289,7 +328,7 @@ |
289 | 328 | ||
290 | td{ | 329 | td{ |
291 | //bgcolor:#F1F4FC; | 330 | //bgcolor:#F1F4FC; |
292 | bgcolor:#fff; | 331 | background-color:#fff; |
293 | width:8.33% | 332 | width:8.33% |
294 | } | 333 | } |
295 | 334 | ... | ... |
... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
28 | <td><input type="number" class="formInput" v-model.number="item.jgzmj" @keydown="oninput"/></td> | 28 | <td><input type="number" class="formInput" v-model.number="item.jgzmj" @keydown="oninput"/></td> |
29 | <td><input type="number" class="formInput" v-model.number="item.zdmj" @keydown="oninput"/></td> | 29 | <td><input type="number" class="formInput" v-model.number="item.zdmj" @keydown="oninput"/></td> |
30 | <td><input type="number" class="formInput" v-model.number="item.fttdmj" @keydown="oninput"/></td> | 30 | <td><input type="number" class="formInput" v-model.number="item.fttdmj" @keydown="oninput"/></td> |
31 | <td><input type="text" class="formInput" v-model="item.fj" @keydown="oninput"/></td> | 31 | <td><input type="text" class="formInput" v-model="item.fj"/></td> |
32 | </tr> | 32 | </tr> |
33 | <!-- <tr> | 33 | <!-- <tr> |
34 | <td>统计</td> | 34 | <td>统计</td> |
... | @@ -88,6 +88,7 @@ | ... | @@ -88,6 +88,7 @@ |
88 | console.log(res) | 88 | console.log(res) |
89 | if (res.success) { | 89 | if (res.success) { |
90 | Message.success("新增成功") | 90 | Message.success("新增成功") |
91 | this.getData(this.$store.state.zrzbsm) | ||
91 | } else { | 92 | } else { |
92 | Message.error(res.message) | 93 | Message.error(res.message) |
93 | } | 94 | } | ... | ... |
-
Please register or sign in to post a comment