f4606fd8 by 杨威
2 parents 7e276c85 76de1151
1 import request from '@/plugin/axios' 1 import request from '@/plugin/axios'
2
2 /** 3 /**
3 * 新增自然幢基本信息 4 * 新增自然幢基本信息
4 */ 5 */
5 export function insertZrzjbxx (data) { 6 export function insertZrzjbxx(data) {
6 return request({ 7 return request({
7 url: 'fw/qjZrz/insert', 8 url: 'fw/qjZrz/insert',
8 method: 'post', 9 method: 'post',
...@@ -13,13 +14,13 @@ export function insertZrzjbxx (data) { ...@@ -13,13 +14,13 @@ export function insertZrzjbxx (data) {
13 /** 14 /**
14 * 生成不动产单元号 15 * 生成不动产单元号
15 */ 16 */
16 export function getBdcdyh (dpdm,dptype) { 17 export function getBdcdyh(dpdm, dptype) {
17 return request({ 18 return request({
18 url: '/system/generator/getBdcdyh', 19 url: '/system/generator/getBdcdyh',
19 method: 'get', 20 method: 'get',
20 params:{ 21 params: {
21 dpdm:dpdm, 22 dpdm: dpdm,
22 dptype:dptype 23 dptype: dptype
23 } 24 }
24 }) 25 })
25 } 26 }
...@@ -27,23 +28,23 @@ export function getBdcdyh (dpdm,dptype) { ...@@ -27,23 +28,23 @@ export function getBdcdyh (dpdm,dptype) {
27 /** 28 /**
28 * 保存自然幢信息 29 * 保存自然幢信息
29 */ 30 */
30 export function saveZrzInfo (data) { 31 export function saveZrzInfo(data) {
31 return request({ 32 return request({
32 url: '/fw/qjZrz/updateQjZrz', 33 url: '/fw/qjZrz/updateQjZrz',
33 method: 'put', 34 method: 'put',
34 data:data 35 data: data
35 }) 36 })
36 } 37 }
37 38
38 /** 39 /**
39 * 保存自然幢信息 40 * 保存自然幢信息
40 */ 41 */
41 export function getZrzDetailByBsm (data) { 42 export function getZrzDetailByBsm(data) {
42 return request({ 43 return request({
43 url: '/fw/qjZrz/getQjZrzDetailById', 44 url: '/fw/qjZrz/getQjZrzDetailById',
44 method: 'get', 45 method: 'get',
45 params:{ 46 params: {
46 id:data 47 id: data
47 } 48 }
48 }) 49 })
49 } 50 }
...@@ -73,11 +74,22 @@ export function queryYzgy(id) { ...@@ -73,11 +74,22 @@ export function queryYzgy(id) {
73 /** 74 /**
74 * 新增逻辑幢信息接口 75 * 新增逻辑幢信息接口
75 */ 76 */
76 export function insertCInfo (data) { 77 export function insertCInfo(data) {
77 return request({ 78 return request({
78 url: '/system/qjC/insertQjC', 79 url: '/system/qjC/insertQjC',
79 method: 'post', 80 method: 'post',
80 data:data 81 data: data
82 })
83 }
84
85 /**
86 * 批量修改层
87 */
88 export function updatePlc(data) {
89 return request({
90 url: '/system/qjC/batchPlc',
91 method: 'put',
92 data: data
81 }) 93 })
82 } 94 }
83 95
......
1 <template>
2 <div>
3 <el-dialog
4 title="新增"
5 :visible.sync="isVisible"
6 width="50%"
7 @close="close"
8 :modal-append-to-body="false"
9 center>
10 <div>
11 <table border="1">
12 <tr>
13 <td>层建筑面积</td>
14 <td>
15 <input type="text" v-model="qlcData.cjzmj" class="inputtitle"/>
16 </td>
17 <td>
18 层套内建筑面积
19 </td>
20 <td>
21 <input text="text" v-model="qlcData.ctnjzmj" class="inputtitle"/>
22 </td>
23 </tr>
24 <tr>
25 <td>层阳台面积</td>
26 <td>
27 <input type="text" v-model="qlcData.cytmj" class="inputtitle"/>
28 </td>
29 <td>
30 层半墙面积
31 </td>
32 <td>
33 <input text="text" v-model="qlcData.cbqmj" class="inputtitle"/>
34 </td>
35 </tr>
36 <tr>
37 <td>层共有建筑面积(㎡)</td>
38 <td>
39 <input type="text" v-model="qlcData.cgyjzmj" class="inputtitle"/>
40 </td>
41 <td>
42 层分摊建筑面积(㎡)
43 </td>
44 <td>
45 <input text="text" v-model="qlcData.cftjzmj" class="inputtitle"/>
46 </td>
47 </tr>
48 <tr>
49 <td>层高</td>
50 <td>
51 <input type="text" v-model="qlcData.cg" class="inputtitle"/>
52 </td>
53 <td>
54 水平投影面积(㎡)
55 </td>
56 <td>
57 <input text="text" v-model="qlcData.sptymj" class="inputtitle"/>
58 </td>
59 </tr>
60 </table>
61 </div>
62 <div class="shop">
63 <el-button type="primary" @click="save">保存</el-button>
64 <el-button type="primary" @click="result">重置</el-button>
65 <el-button type="primary" @click="cancel">取消</el-button>
66 </div>
67 </el-dialog>
68 </div>
69 </template>
70
71 <script>
72 import {updatePlc} from './../../api/zrz'
73 import {Message} from 'element-ui'
74
75 export default {
76 name: "plC",
77 data() {
78 return {
79 isVisible: false,
80 qlcData: {
81 cbqmj: '', // 层半墙面积
82 cftjzmj: '', // 层分摊建筑面积
83 cg: '', // 层高
84 cgyjzmj: '', // 层共有建筑面积
85 cjzmj: '', // 层建筑面积
86 ctnjzmj: '', // 层套内建筑面积
87 cytmj: '', // 层阳台面积
88 sptymj: '' // 水平投影面积
89 }
90 }
91 },
92 props: {
93 bsms: {
94 type: Array,
95 },
96 plcVisible: {
97 type: Boolean,
98 default: function () {
99 return false
100 }
101 }
102 },
103 methods: {
104 save: function () {
105 this.qlcData['bsms'] = this.bsms
106 updatePlc(this.qlcData).then(res => {
107 console.log(res)
108 if (res.success) {
109 Message.success("保存成功")
110 this.close()
111 } else {
112 Message.error(res.message)
113 }
114 })
115 },
116 close: function () {
117 this.$emit('close')
118 this.isVisible = false
119 this.result()
120 },
121 cancel: function () {
122 this.$emit('close')
123 this.isVisible = false
124 },
125 result: function () {
126 this.qlcData = {
127 cbqmj: '', // 层半墙面积
128 cftjzmj: '', // 层分摊建筑面积
129 cg: '', // 层高
130 cgyjzmj: '', // 层共有建筑面积
131 cjzmj: '', // 层建筑面积
132 ctnjzmj: '', // 层套内建筑面积
133 cytmj: '', // 层阳台面积
134 sptymj: '' // 水平投影面积
135 }
136 }
137 },
138 watch: {
139 plcVisible(val) {
140 this.isVisible = val
141 }
142 }
143 }
144 </script>
145
146 <style scoped>
147 table {
148 margin-top: 10px;
149 background-color: #fff;
150 font-size: 14px;
151 width: 100%;
152 }
153
154 td {
155 text-align: center;
156 height: 36px;
157 min-width: 50px;
158 }
159
160 table:hover {
161 cursor: pointer;
162 }
163
164 .inputtitle {
165 line-height: 40px;
166 width: 95%;
167 border: none;
168 }
169
170 /* .inputtitle:focus {
171 outline: none;
172 }*/
173
174 .shop {
175 margin-top: 20px;
176 text-align: center;
177 }
178 </style>
1 <template>
2 <div>
3 <el-dialog
4 title="新增"
5 :visible.sync="isVisible"
6 width="50%"
7 @close="close"
8 :modal-append-to-body="false"
9 center>
10 <div>
11 <table border="1">
12 <tr>
13 <td rowspan="6">预测</td>
14 <td>建筑面积(㎡)</td>
15 <td colspan="2"><input type="text" class="inputtitle"/></td>
16 <td rowspan="6">实测</td>
17 <td>建筑面积(㎡)</td>
18 <td><input type="text" class="inputtitle"/></td>
19 </tr>
20 <tr>
21 <td>套内建筑面积(㎡)</td>
22 <td colspan="2"><input type="text" class="inputtitle"/></td>
23 <td>套内建筑面积(㎡)</td>
24 <td><input type="text" class="inputtitle"/></td>
25 </tr>
26 <tr>
27 <td>分摊建筑面积(㎡)</td>
28 <td colspan="2"><input type="text" class="inputtitle"/></td>
29 <td>分摊建筑面积(㎡)</td>
30 <td><input type="text" class="inputtitle"/></td>
31 </tr>
32 <tr>
33 <td>地下部分建筑面积(㎡)</td>
34 <td colspan="2"><input type="text" class="inputtitle"/></td>
35 <td>地下部分建筑面积(㎡)</td>
36 <td><input type="text" class="inputtitle"/></td>
37 </tr>
38 <tr>
39 <td>其他建筑面积(㎡)</td>
40 <td colspan="2"><input type="text" class="inputtitle"/></td>
41 <td>其他建筑面积(㎡)</td>
42 <td><input type="text" class="inputtitle"/></td>
43 </tr>
44 <tr>
45 <td>分摊系数</td>
46 <td colspan="2"><input type="text" class="inputtitle"/></td>
47 <td>分摊系数</td>
48 <td><input type="text" class="inputtitle"/></td>
49 </tr>
50 <tr>
51 <td colspan="2">户型</td>
52 <td colspan="2">
53 <el-select>
54 <el-option
55 v-for="i in hx"
56 :key="i.key"
57 :label="i.label"
58 :value="i.value"
59 ></el-option>
60 </el-select>
61 </td>
62 <td colspan="2">户型结构</td>
63 <td>
64 <el-select>
65 <el-option
66 v-for="i in hx"
67 :key="i.key"
68 :label="i.label"
69 :value="i.value"
70 ></el-option>
71 </el-select>
72 </td>
73 </tr>
74 <tr>
75 <td colspan="2">共有土地面积(㎡)</td>
76 <td colspan="2"><input type="text" class="inputtitle"/></td>
77 <td colspan="2">分摊土地面积(㎡)</td>
78 <td><input type="text" class="inputtitle"/></td>
79 </tr>
80 <tr>
81 <td colspan="2">独有土地面积(㎡)</td>
82 <td colspan="2"><input type="text" class="inputtitle"/></td>
83 <td colspan="2">房屋类型</td>
84 <td>
85 <el-select>
86 <el-option
87 v-for="i in hx"
88 :key="i.key"
89 :label="i.label"
90 :value="i.value"
91 ></el-option>
92 </el-select>
93 </td>
94 </tr>
95 <tr>
96 <td colspan="2">产别</td>
97 <td colspan="2">
98 <el-select>
99 <el-option
100 v-for="i in hx"
101 :key="i.key"
102 :label="i.label"
103 :value="i.value"
104 ></el-option>
105 </el-select>
106 </td>
107 <td colspan="2">产权来源</td>
108 <td>
109 <input type="text" class="inputtitle"/>
110 </td>
111 </tr>
112 <tr>
113 <td colspan="2">房屋性质</td>
114 <td colspan="2">
115 <el-select>
116 <el-option
117 v-for="i in hx"
118 :key="i.key"
119 :label="i.label"
120 :value="i.value"
121 ></el-option>
122 </el-select>
123 </td>
124 <td colspan="2"></td>
125 <td></td>
126 </tr>
127 <tr>
128 <td colspan="2">房屋结构</td>
129 <td colspan="5">
130 <el-select>
131 <el-option
132 v-for="i in hx"
133 :key="i.key"
134 :label="i.label"
135 :value="i.value"
136 ></el-option>
137 </el-select>
138 </td>
139 </tr>
140 <tr>
141 <td colspan="2">房屋用途</td>
142 <td>规划用途</td>
143 <td><input type="text" class="inputtitle"/></td>
144 <td colspan="2">用途</td>
145 <td><input type="text" class="inputtitle"/></td>
146 </tr>
147 <tr>
148 <td colspan="2">
149 权利性质
150 </td>
151 <td colspan="2">
152 <input type="text" class="inputtitle"/>
153 </td>
154 <td colspan="2">
155
156 </td>
157 <td></td>
158 </tr>
159 <tr>
160 <td colspan="2">东墙体归属</td>
161 <td colspan="2"><input type="text" class="inputtitle"/></td>
162 <td colspan="2">南墙体归属</td>
163 <td><input type="text" class="inputtitle"/></td>
164 </tr>
165 <tr>
166 <td colspan="2">西墙体归属</td>
167 <td colspan="2"><input type="text" class="inputtitle"/></td>
168 <td colspan="2">北墙体归属</td>
169 <td><input type="text" class="inputtitle"/></td>
170 </tr>
171 </table>
172 </div>
173 <div class="shop">
174 <el-button type="primary" @click="save">保存</el-button>
175 <el-button type="primary" @click="result">重置</el-button>
176 <el-button type="primary" @click="cancel">取消</el-button>
177 </div>
178 </el-dialog>
179 </div>
180 </template>
181
182 <script>
183 export default {
184 name: "plH",
185 props: {
186 bsms: {
187 type: Array
188 },
189 plhVisible: {
190 type: Boolean,
191 default: false
192 }
193 },
194 data() {
195 return {
196 isVisible: false,
197 hx: [{
198 label: '一居室',
199 key: '1',
200 value: '一居室'
201 }, {
202 label: '二居室',
203 key: '2',
204 value: '二居室'
205 }, {
206 label: '三居室',
207 key: '3',
208 value: '三居室'
209 }
210 ]
211 }
212 },
213 methods: {
214 close: function () {
215 this.$emit('close')
216 this.isVisible = false
217 this.result()
218 },
219 result: function () {
220
221 },
222 save: function () {
223
224 },
225 cancel: function () {
226 this.$emit('close')
227 this.isVisible = false
228 }
229 },
230 mounted() {
231
232 },
233 watch: {
234 plhVisible(val) {
235 this.isVisible = val
236 }
237 }
238 }
239 </script>
240
241 <style scoped>
242 table {
243 margin-top: 10px;
244 background-color: #fff;
245 font-size: 14px;
246 width: 100%;
247 }
248
249 td {
250 text-align: center;
251 height: 36px;
252 min-width: 60px;
253 }
254
255 table:hover {
256 cursor: pointer;
257 }
258
259 .el-select {
260 width: 98%;
261 }
262
263 .inputtitle {
264 line-height: 40px;
265 width: 95%;
266 border: none;
267 outline: none;
268 }
269
270 .shop {
271 text-align: center;
272 margin-top: 20px;
273 }
274 </style>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
22 > 22 >
23 <el-button class="radioBtn" label="2" border>实预测转换</el-button> 23 <el-button class="radioBtn" label="2" border>实预测转换</el-button>
24 <el-button class="radioBtn" label="3" border>批量户</el-button> 24 <el-button class="radioBtn" label="3" border>批量户</el-button>
25 <el-button class="radioBtn" label="4" border>批量层</el-button> 25 <el-button class="radioBtn" label="4" border @click="plcVisible=true">批量层</el-button>
26 <el-button class="radioBtn" label="5" border>批量室号</el-button> 26 <el-button class="radioBtn" label="5" border>批量室号</el-button>
27 <el-button class="radioBtn" label="6" border>批量坐落</el-button> 27 <el-button class="radioBtn" label="6" border>批量坐落</el-button>
28 <el-button class="radioBtn" label="7" border>批量单元号</el-button> 28 <el-button class="radioBtn" label="7" border>批量单元号</el-button>
...@@ -106,22 +106,27 @@ ...@@ -106,22 +106,27 @@
106 > 106 >
107 </div> 107 </div>
108 </el-dialog> 108 </el-dialog>
109 <pl-c :plc-visible="plcVisible" :bsms="bsms" @close="plcClose"></pl-c>
109 </div> 110 </div>
110 </template> 111 </template>
111 112
112 <script> 113 <script>
114 import PlC from "./../../../../components/plc/plC"
113 import LineTree from "../../../../components/lineTree/lineTree"; 115 import LineTree from "../../../../components/lineTree/lineTree";
114 import addLjz from "./ljz/index"; 116 import addLjz from "./ljz/index";
115 import addZdy from "./zdy/index"; 117 import addZdy from "./zdy/index";
116 import addCh from "./ch/index"; 118 import addCh from "./ch/index";
117 import lpbContent from "./lpbContent/index"; 119 import lpbContent from "./lpbContent/index";
118 import { getLpbMenuTree } from "../../../../api/lpb"; 120 import { getLpbMenuTree } from "../../../../api/lpb";
121
119 export default { 122 export default {
120 name: "", 123 name: "",
121 components: { LineTree, addLjz, addZdy, addCh, lpbContent }, 124 components: { LineTree, addLjz, addZdy, addCh, lpbContent,PlC },
122 props: {}, 125 props: {},
123 data() { 126 data() {
124 return { 127 return {
128 bsms:["123","321","231"],
129 plcVisible:false,
125 radio1: "", 130 radio1: "",
126 radio2: "", 131 radio2: "",
127 createFlag: false, 132 createFlag: false,
...@@ -210,6 +215,9 @@ export default { ...@@ -210,6 +215,9 @@ export default {
210 }, 100); 215 }, 100);
211 }, 216 },
212 methods: { 217 methods: {
218 plcClose(){
219 this.plcVisible=false;
220 },
213 //获取高度计算lpb内容区高度 221 //获取高度计算lpb内容区高度
214 getHeight() { 222 getHeight() {
215 this.lpbContentHight = window.innerHeight - 340; 223 this.lpbContentHight = window.innerHeight - 340;
......