daac245c by yangwei

楼盘表显示内容及是否可操作判断

1 parent cc7683e0
...@@ -173,7 +173,8 @@ export default { ...@@ -173,7 +173,8 @@ export default {
173 break; 173 break;
174 case "B8": 174 case "B8":
175 this.$popupDialog('楼盘表', 'lpb/index', { 175 this.$popupDialog('楼盘表', 'lpb/index', {
176 bsm: '' 176 bsm: '',
177 onlyShow: true,
177 }, '90%', true) 178 }, '90%', true)
178 break; 179 break;
179 case "back": //退回按钮 180 case "back": //退回按钮
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-12 16:55:35 4 * @LastEditTime: 2023-09-15 14:46:47
5 --> 5 -->
6 <template> 6 <template>
7 <div class="edit"> 7 <div class="edit">
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
22 :zrzbsm="formData.bsm" 22 :zrzbsm="formData.bsm"
23 :scyclx="formData.scyclx" 23 :scyclx="formData.scyclx"
24 :onlyShow="formData.onlyShow" 24 :onlyShow="formData.onlyShow"
25 :showSave="formData.showSave"
25 :unitData="formData.unitData" 26 :unitData="formData.unitData"
26 :sqywInfo="formData" 27 :sqywInfo="formData"
27 :key="time"></lpbContent> 28 :key="time"></lpbContent>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: yangwei 2 * @Author: yangwei
3 * @Date: 2023-02-28 15:47:12 3 * @Date: 2023-02-28 15:47:12
4 * @LastEditors: yangwei 4 * @LastEditors: yangwei
5 * @LastEditTime: 2023-09-14 15:04:20 5 * @LastEditTime: 2023-09-15 14:52:50
6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue 6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue
7 * @Description: 7 * @Description:
8 * 8 *
...@@ -96,6 +96,10 @@ export default { ...@@ -96,6 +96,10 @@ export default {
96 return []; 96 return [];
97 }, 97 },
98 }, 98 },
99 onlyShow:{
100 type: Boolean,
101 default: true,
102 }
99 }, 103 },
100 data() { 104 data() {
101 return { 105 return {
...@@ -140,23 +144,25 @@ export default { ...@@ -140,23 +144,25 @@ export default {
140 * @author: renchao 144 * @author: renchao
141 */ 145 */
142 handleClickC(e, item) { 146 handleClickC(e, item) {
143 // 判断点击的层是否选中 147 if (!this.onlyShow) {
144 if (e.target.className.indexOf("tdSelect") == -1) { 148 // 判断点击的层是否选中
145 //未选中→选中 149 if (e.target.className.indexOf("tdSelect") == -1) {
146 item.hs.forEach((h) => { 150 //未选中→选中
147 //加边框 151 item.hs.forEach((h) => {
148 e.target.className += " tdSelect"; 152 //加边框
149 h.select = true; 153 e.target.className += " tdSelect";
150 // 使用hbsmList时,需要去重 154 h.select = true;
151 this.hbsmList.push(h.bsm) 155 // 使用hbsmList时,需要去重
152 }); 156 this.hbsmList.push(h.bsm)
153 } else { 157 });
154 //选中→未选中 158 } else {
155 item.hs.forEach((h) => { 159 //选中→未选中
156 e.target.className = "floor"; 160 item.hs.forEach((h) => {
157 h.select = false; 161 e.target.className = "floor";
158 this.hbsmList = this.hbsmList.filter((i) => i != h.bsm); 162 h.select = false;
159 }); 163 this.hbsmList = this.hbsmList.filter((i) => i != h.bsm);
164 });
165 }
160 } 166 }
161 }, 167 },
162 //户单击事件 168 //户单击事件
...@@ -168,26 +174,28 @@ export default { ...@@ -168,26 +174,28 @@ export default {
168 * @author: renchao 174 * @author: renchao
169 */ 175 */
170 handleClickH(e, bsm, hs) { 176 handleClickH(e, bsm, hs) {
171 let self = this; 177 if (!this.onlyShow) {
172 // 开启延时器,200ms的间隔区分单击和双击,解决双击时执行两次单击事件 178 let self = this;
173 clearTimeout(self.time); 179 // 开启延时器,200ms的间隔区分单击和双击,解决双击时执行两次单击事件
174 self.time = setTimeout(() => { 180 clearTimeout(self.time);
175 // this.closeMenu(); 181 self.time = setTimeout(() => {
176 //判断点击的户是否选中 182 // this.closeMenu();
177 if (!hs.select) { 183 //判断点击的户是否选中
178 //未选中→选中 184 if (!hs.select) {
179 //加边框 185 //未选中→选中
180 hs.select = true; 186 //加边框
181 // 将户bsm放进hbsmList 187 hs.select = true;
182 self.hbsmList.push(bsm); 188 // 将户bsm放进hbsmList
183 } else { 189 self.hbsmList.push(bsm);
184 //选中→未选中 190 } else {
185 hs.select = false; 191 //选中→未选中
186 self.hbsmList = self.hbsmList.filter((i) => i != bsm); 192 hs.select = false;
187 } 193 self.hbsmList = self.hbsmList.filter((i) => i != bsm);
188 //更新当前选中户数据 194 }
189 this.$forceUpdate(); 195 //更新当前选中户数据
190 }, 200); 196 this.$forceUpdate();
197 }, 200);
198 }
191 }, 199 },
192 // 户单元状态点击事件 200 // 户单元状态点击事件
193 /** 201 /**
...@@ -198,7 +206,9 @@ export default { ...@@ -198,7 +206,9 @@ export default {
198 * @author: renchao 206 * @author: renchao
199 */ 207 */
200 hDyztClick(e, bsm, hs) { 208 hDyztClick(e, bsm, hs) {
201 this.handleClickH(e.target.parentNode, bsm, hs); 209 if (!this.onlyShow) {
210 this.handleClickH(e.target.parentNode, bsm, hs);
211 }
202 }, 212 },
203 //户双击事件 213 //户双击事件
204 /** 214 /**
......
...@@ -4,22 +4,22 @@ ...@@ -4,22 +4,22 @@
4 <!-- 纵向倒序排列 逻辑幢位于独立幢单元和独立层户的上方 --> 4 <!-- 纵向倒序排列 逻辑幢位于独立幢单元和独立层户的上方 -->
5 <div class="ch-zdy-wrap"> 5 <div class="ch-zdy-wrap">
6 <!-- 幢单元 --> 6 <!-- 幢单元 -->
7 <zdy-cpn v-if="lpbData.zdys.length" :zdys="lpbData.zdys" :onlyShow="onlyShow"/> 7 <zdy-cpn v-if="lpbData.zdys.length" :zdys="lpbData.zdys" :onlyShow="onlyShow"/>
8 <!-- 独立层户 --> 8 <!-- 独立层户 -->
9 <ch-cpn v-if="lpbData.cs.length" :ch="lpbData.cs" /> 9 <ch-cpn v-if="lpbData.cs.length" :ch="lpbData.cs" :onlyShow="onlyShow"/>
10 </div> 10 </div>
11 <!-- 逻辑幢 --> 11 <!-- 逻辑幢 -->
12 <ljzs-cpn v-if="lpbData.ljzs.length" :ljzs="lpbData.ljzs" :onlyShow="onlyShow"/> 12 <ljzs-cpn v-if="lpbData.ljzs.length" :ljzs="lpbData.ljzs" :onlyShow="onlyShow"/>
13 </div> 13 </div>
14 <!-- 自然幢名称 --> 14 <!-- 自然幢名称 -->
15 <!-- <p class="lpb-xmmc" :style="{ 'border-bottom': onlyShow ? 0 : '1px solid #e6e6e6'}"> --> 15 <p class="lpb-xmmc" v-if="onlyShow" style="border-bottom: 1px solid #e6e6e6">{{ lpbData.xmmc }}</p>
16 <p class="lpb-xmmc" :style="{ 'border-bottom':'1px solid #e6e6e6'}"> 16 <p class="lpb-xmmc" v-else :style="{ 'border-bottom':'1px solid #e6e6e6'}">
17 <el-checkbox @change="zdySelectAll($event)">{{ 17 <el-checkbox @change="zdySelectAll($event)">{{
18 lpbData.xmmc 18 lpbData.xmmc
19 }}</el-checkbox> 19 }}</el-checkbox>
20 </p> 20 </p>
21 <el-button type="primary" class="save-btn" v-if="!onlyShow" @click="saveLpb">保存</el-button> 21 <el-button type="primary" class="save-btn" v-if="!onlyShow && showSave" @click="saveLpb">保存</el-button>
22 <el-button type="primary" class="save-btn" v-else @click="submitForm" :loading="loading">发起申请</el-button> 22 <el-button type="primary" class="save-btn" v-if="!onlyShow" @click="submitForm" :loading="loading">发起申请</el-button>
23 <!-- 右键菜单 --> 23 <!-- 右键菜单 -->
24 <ul 24 <ul
25 v-show="lpbChVisible" 25 v-show="lpbChVisible"
...@@ -70,6 +70,10 @@ export default { ...@@ -70,6 +70,10 @@ export default {
70 type: Boolean, 70 type: Boolean,
71 default: true, 71 default: true,
72 }, 72 },
73 showSave:{
74 type: Boolean,
75 default: false,
76 },
73 scyclx: { 77 scyclx: {
74 type: Number, 78 type: Number,
75 default: 0, 79 default: 0,
...@@ -278,8 +282,8 @@ export default { ...@@ -278,8 +282,8 @@ export default {
278 }, 282 },
279 computed:{ 283 computed:{
280 lpbContentHeight(){ 284 lpbContentHeight(){
281 // return this.onlyShow ? 36 : 76 285 return this.onlyShow ? 32 : 76
282 return 76 286 // return 76
283 } 287 }
284 }, 288 },
285 watch: { 289 watch: {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: yangwei 2 * @Author: yangwei
3 * @Date: 2023-02-28 17:25:45 3 * @Date: 2023-02-28 17:25:45
4 * @LastEditors: yangwei 4 * @LastEditors: yangwei
5 * @LastEditTime: 2023-09-14 14:35:19 5 * @LastEditTime: 2023-09-15 14:55:58
6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ljzs.vue 6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ljzs.vue
7 * @Description: 7 * @Description:
8 * 8 *
...@@ -40,7 +40,8 @@ ...@@ -40,7 +40,8 @@
40 v-else 40 v-else
41 > 41 >
42 <!-- 逻辑幢名称 --> 42 <!-- 逻辑幢名称 -->
43 <p class="lpb-xmmc ljz-xmmc"> 43 <p class="lpb-xmmc ljz-xmmc" v-if="onlyShow">{{ ljzarr[0].ljzmc }}</p>
44 <p class="lpb-xmmc ljz-xmmc" v-else>
44 <el-checkbox @change="zdySelectAll($event,ljzarr[0].bsm)">{{ 45 <el-checkbox @change="zdySelectAll($event,ljzarr[0].bsm)">{{
45 ljzarr[0].ljzmc 46 ljzarr[0].ljzmc
46 }}</el-checkbox> 47 }}</el-checkbox>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: yangwei 2 * @Author: yangwei
3 * @Date: 2023-02-28 16:29:04 3 * @Date: 2023-02-28 16:29:04
4 * @LastEditors: yangwei 4 * @LastEditors: yangwei
5 * @LastEditTime: 2023-09-14 14:36:51 5 * @LastEditTime: 2023-09-15 14:57:10
6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue 6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue
7 * @Description: 7 * @Description:
8 * 8 *
...@@ -13,9 +13,10 @@ ...@@ -13,9 +13,10 @@
13 <div v-for="zdy in realZdys" :key="zdy.bsm"> 13 <div v-for="zdy in realZdys" :key="zdy.bsm">
14 <!-- 幢单元名称 --> 14 <!-- 幢单元名称 -->
15 <p class="lpb-xmmc"> 15 <p class="lpb-xmmc">
16 <el-checkbox @change="zdySelectAll($event,zdy.bsm)">{{ 16 <el-checkbox @change="zdySelectAll($event,zdy.bsm)" v-if="!onlyShow">{{
17 zdy.zdymc 17 zdy.zdymc
18 }}</el-checkbox> 18 }}</el-checkbox>
19 <span v-else>{{zdy.zdymc}}</span>
19 </p> 20 </p>
20 <!-- 每个幢单元下的层户 --> 21 <!-- 每个幢单元下的层户 -->
21 <ch-cpn :ref="zdy.bsm" :ch="zdy.cs" /> 22 <ch-cpn :ref="zdy.bsm" :ch="zdy.cs" />
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-31 09:35:49 4 * @LastEditTime: 2023-09-15 14:44:53
5 */ 5 */
6 import { getPrintTemplateByCode } from "@/api/print"; 6 import { getPrintTemplateByCode } from "@/api/print";
7 import { uploadUndo } from "@/api/clxx"; 7 import { uploadUndo } from "@/api/clxx";
...@@ -163,6 +163,7 @@ export default { ...@@ -163,6 +163,7 @@ export default {
163 this.$popupDialog('楼盘表', 'lpb/index', { 163 this.$popupDialog('楼盘表', 'lpb/index', {
164 bsm: res.result[0], 164 bsm: res.result[0],
165 onlyShow: false, 165 onlyShow: false,
166 showSave: true,
166 unitData: window.unitData 167 unitData: window.unitData
167 }, '90%', true) 168 }, '90%', true)
168 } else { 169 } else {
......
...@@ -306,6 +306,7 @@ ...@@ -306,6 +306,7 @@
306 ywPopupDialog('楼盘表', 'lpb/index', { 306 ywPopupDialog('楼盘表', 'lpb/index', {
307 bsm: item.bsm, 307 bsm: item.bsm,
308 bsmSqyw:this.sqywInfo.bsmSqyw, 308 bsmSqyw:this.sqywInfo.bsmSqyw,
309 onlyShow: false,
309 scyclx:1 310 scyclx:1
310 }, '85%', true,false) 311 }, '85%', true,false)
311 }, 312 },
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-24 11:00:59 4 * @LastEditTime: 2023-09-15 14:34:40
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 主体权利信息查询 --> 7 <!-- 主体权利信息查询 -->
...@@ -249,9 +249,9 @@ ...@@ -249,9 +249,9 @@
249 * @param {*} row 249 * @param {*} row
250 * @author: miaofang 250 * @author: miaofang
251 */ 251 */
252 handleLpbClick (item) { 252 handleLpbClick (item) {
253 console.log("item",item); 253 console.log("item",item);
254 console.log("this.sqywInfo",this.sqywInfo); 254 console.log("this.sqywInfo",this.sqywInfo);
255 this.$popup('楼盘表', 'lpb/index', { 255 this.$popup('楼盘表', 'lpb/index', {
256 width: '85%', 256 width: '85%',
257 formData: { 257 formData: {
...@@ -261,6 +261,7 @@ ...@@ -261,6 +261,7 @@
261 bsmSqyw: this.sqywInfo.bsmSqyw, 261 bsmSqyw: this.sqywInfo.bsmSqyw,
262 djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", 262 djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
263 djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", 263 djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
264 onlyShow: false
264 } 265 }
265 }) 266 })
266 }, 267 },
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-25 14:47:41 4 * @LastEditTime: 2023-09-15 14:24:32
5 --> 5 -->
6 <template> 6 <template>
7 <div class="from-clues"> 7 <div class="from-clues">
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
199 bsm: item.zrzbsm, 199 bsm: item.zrzbsm,
200 zrzbsm: item.zrzbsm, 200 zrzbsm: item.zrzbsm,
201 zdbsm: item.zrzbsm, 201 zdbsm: item.zrzbsm,
202 202 onlyShow: true
203 } 203 }
204 }) 204 })
205 } 205 }
......
...@@ -100,6 +100,7 @@ ...@@ -100,6 +100,7 @@
100 // onlyShow: true, 100 // onlyShow: true,
101 djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", 101 djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
102 djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", 102 djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
103 onlyShow: true
103 } 104 }
104 }) 105 })
105 } 106 }
......