fwsyq中楼盘表功能修改
Showing
5 changed files
with
116 additions
and
51 deletions
| 1 | /* | 1 | /* |
| 2 | * @Description: 楼盘表查询 | 2 | * @Description: 楼盘表查询 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-19 15:00:43 | 4 | * @LastEditTime: 2023-09-12 10:25:47 |
| 5 | */ | 5 | */ |
| 6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
| 7 | let SERVER = window.config | 7 | let SERVER = window.config |
| ... | @@ -26,10 +26,14 @@ export function getLpZrz (data) { | ... | @@ -26,10 +26,14 @@ export function getLpZrz (data) { |
| 26 | * @param {*} zrzbsm | 26 | * @param {*} zrzbsm |
| 27 | * @author: renchao | 27 | * @author: renchao |
| 28 | */ | 28 | */ |
| 29 | export function getLpb (zrzbsm) { | 29 | export function getLpb (zrzbsm,lx) { |
| 30 | return request({ | 30 | return request({ |
| 31 | url: "service-lpb/rest/zhcx/lpcx/getLpb?scyclx=0&zrzbsm=" + zrzbsm, | 31 | url: "service-lpb/rest/zhcx/lpcx/getLpb", |
| 32 | method: "get", | 32 | method: "get", |
| 33 | params: { | ||
| 34 | zrzbsm:zrzbsm, | ||
| 35 | scyclx:lx, | ||
| 36 | }, | ||
| 33 | }); | 37 | }); |
| 34 | } | 38 | } |
| 35 | /** | 39 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-01 09:18:29 | 4 | * @LastEditTime: 2023-09-12 16:55:35 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="edit"> | 7 | <div class="edit"> |
| ... | @@ -20,8 +20,10 @@ | ... | @@ -20,8 +20,10 @@ |
| 20 | <lpbContent | 20 | <lpbContent |
| 21 | ref="lpbContent" | 21 | ref="lpbContent" |
| 22 | :zrzbsm="formData.bsm" | 22 | :zrzbsm="formData.bsm" |
| 23 | :scyclx="formData.scyclx" | ||
| 23 | :onlyShow="formData.onlyShow" | 24 | :onlyShow="formData.onlyShow" |
| 24 | :unitData="formData.unitData" | 25 | :unitData="formData.unitData" |
| 26 | :sqywInfo="formData" | ||
| 25 | :key="time"></lpbContent> | 27 | :key="time"></lpbContent> |
| 26 | </div> | 28 | </div> |
| 27 | <!-- 右侧图例 --> | 29 | <!-- 右侧图例 --> | ... | ... |
| ... | @@ -12,13 +12,14 @@ | ... | @@ -12,13 +12,14 @@ |
| 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" :style="{ 'border-bottom': onlyShow ? 0 : '1px solid #e6e6e6'}"> --> |
| 16 | <el-checkbox @change="zdySelectAll($event)" v-if="!onlyShow">{{ | 16 | <p class="lpb-xmmc" :style="{ 'border-bottom':'1px solid #e6e6e6'}"> |
| 17 | <el-checkbox @change="zdySelectAll($event)">{{ | ||
| 17 | lpbData.xmmc | 18 | lpbData.xmmc |
| 18 | }}</el-checkbox> | 19 | }}</el-checkbox> |
| 19 | <span v-else>{{lpbData.xmmc}}</span> | ||
| 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" @click="saveLpb">保存</el-button> |
| 22 | <el-button type="primary" class="save-btn" v-else @click="submitForm" :loading="loading">发起申请</el-button> | ||
| 22 | <!-- 右键菜单 --> | 23 | <!-- 右键菜单 --> |
| 23 | <ul | 24 | <ul |
| 24 | v-show="lpbChVisible" | 25 | v-show="lpbChVisible" |
| ... | @@ -35,6 +36,7 @@ import { getLpb } from "@/api/lpcx.js"; | ... | @@ -35,6 +36,7 @@ import { getLpb } from "@/api/lpcx.js"; |
| 35 | import chCpn from "./ch.vue"; | 36 | import chCpn from "./ch.vue"; |
| 36 | import zdyCpn from "./zdys.vue"; | 37 | import zdyCpn from "./zdys.vue"; |
| 37 | import ljzsCpn from "./ljzs.vue"; | 38 | import ljzsCpn from "./ljzs.vue"; |
| 39 | import { startBusinessFlow, choiceBdcdy } from "@/api/workFlow.js"; | ||
| 38 | export default { | 40 | export default { |
| 39 | provide() { | 41 | provide() { |
| 40 | return { | 42 | return { |
| ... | @@ -63,7 +65,15 @@ export default { | ... | @@ -63,7 +65,15 @@ export default { |
| 63 | onlyShow:{ | 65 | onlyShow:{ |
| 64 | type: Boolean, | 66 | type: Boolean, |
| 65 | default: true, | 67 | default: true, |
| 66 | } | 68 | }, |
| 69 | scyclx: { | ||
| 70 | type: Number, | ||
| 71 | default: 0, | ||
| 72 | }, | ||
| 73 | sqywInfo: { | ||
| 74 | type: Object, | ||
| 75 | default: () => { } | ||
| 76 | }, | ||
| 67 | }, | 77 | }, |
| 68 | data() { | 78 | data() { |
| 69 | return { | 79 | return { |
| ... | @@ -87,11 +97,12 @@ export default { | ... | @@ -87,11 +97,12 @@ export default { |
| 87 | color:'' | 97 | color:'' |
| 88 | }, | 98 | }, |
| 89 | // 选中户bsm合集 | 99 | // 选中户bsm合集 |
| 90 | bsmList:[] | 100 | bsmList:[], |
| 101 | loading: false, | ||
| 91 | }; | 102 | }; |
| 92 | }, | 103 | }, |
| 93 | mounted() { | 104 | mounted() { |
| 94 | this.getLpb(this.zrzbsm); | 105 | this.scyclx ? this.getLpb(this.zrzbsm,this.scyclx):this.getLpb(this.zrzbsm); |
| 95 | window.lpbContent = this; | 106 | window.lpbContent = this; |
| 96 | }, | 107 | }, |
| 97 | methods: { | 108 | methods: { |
| ... | @@ -151,13 +162,15 @@ export default { | ... | @@ -151,13 +162,15 @@ export default { |
| 151 | getLpb(zrzbsm, scyclx, actual) { | 162 | getLpb(zrzbsm, scyclx, actual) { |
| 152 | getLpb(zrzbsm, scyclx).then((res) => { | 163 | getLpb(zrzbsm, scyclx).then((res) => { |
| 153 | if (res.code == 200) { | 164 | if (res.code == 200) { |
| 154 | res.result.lpb.ljzs = res.result.lpb.ljzs.sort(this.compare("place")); | 165 | if(scyclx){ |
| 155 | this.lpbData = res.result.lpb == null ? this.lpbData : res.result.lpb; | 166 | if(res.result.syclx == "1") { |
| 156 | // this.$nextTick(() => { | 167 | res.result.lpb.ljzs = res.result.lpb.ljzs.sort(this.compare("place")); |
| 157 | // //渲染楼盘表 | 168 | this.lpbData = res.result.lpb == null ? this.lpbData : res.result.lpb; |
| 158 | // this.dataChange(); | 169 | } |
| 159 | // }); | 170 | }else{ |
| 160 | console.log(this.lpbData, "this.lpbData"); | 171 | res.result.lpb.ljzs = res.result.lpb.ljzs.sort(this.compare("place")); |
| 172 | this.lpbData = res.result.lpb == null ? this.lpbData : res.result.lpb; | ||
| 173 | } | ||
| 161 | } else { | 174 | } else { |
| 162 | this.$message({ | 175 | this.$message({ |
| 163 | message: res.message, | 176 | message: res.message, |
| ... | @@ -207,10 +220,50 @@ export default { | ... | @@ -207,10 +220,50 @@ export default { |
| 207 | return value1 - value2; | 220 | return value1 - value2; |
| 208 | }; | 221 | }; |
| 209 | }, | 222 | }, |
| 223 | /** | ||
| 224 | * @description: submitForm | ||
| 225 | * @author: renchao | ||
| 226 | */ | ||
| 227 | submitForm () { | ||
| 228 | debugger | ||
| 229 | if (this.bsmList.length == 0) { | ||
| 230 | this.$message.error("请至少选择一条数据"); | ||
| 231 | return; | ||
| 232 | } | ||
| 233 | this.loading = true | ||
| 234 | startBusinessFlow({ | ||
| 235 | bsmSqyw: this.sqywInfo.bsmSqyw, | ||
| 236 | bdcdysz: this.bsmList, | ||
| 237 | }).then((res) => { | ||
| 238 | this.loading = false | ||
| 239 | if (res.code == 200) { | ||
| 240 | this.$message({ | ||
| 241 | showClose: true, | ||
| 242 | message: '发起申请成功', | ||
| 243 | type: 'success' | ||
| 244 | }) | ||
| 245 | if (!this.isJump) { | ||
| 246 | this.jump(res.result, this.sqywInfo.djywbm) | ||
| 247 | } else { | ||
| 248 | store.dispatch('user/refreshPage', true); | ||
| 249 | } | ||
| 250 | this.$popupCacel() | ||
| 251 | } else { | ||
| 252 | if (res.result && res.result.length > 0) { | ||
| 253 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
| 254 | } else { | ||
| 255 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
| 256 | } | ||
| 257 | } | ||
| 258 | }).catch(() => { | ||
| 259 | this.loading = false | ||
| 260 | }) | ||
| 261 | }, | ||
| 210 | }, | 262 | }, |
| 211 | computed:{ | 263 | computed:{ |
| 212 | lpbContentHeight(){ | 264 | lpbContentHeight(){ |
| 213 | return this.onlyShow ? 36 : 76 | 265 | // return this.onlyShow ? 36 : 76 |
| 266 | return 76 | ||
| 214 | } | 267 | } |
| 215 | }, | 268 | }, |
| 216 | watch: { | 269 | watch: { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-08-18 13:56:32 | 4 | * @LastEditTime: 2023-09-13 11:19:54 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| ... | @@ -61,7 +61,7 @@ | ... | @@ -61,7 +61,7 @@ |
| 61 | </el-form> | 61 | </el-form> |
| 62 | </div> | 62 | </div> |
| 63 | <div class="from-clues-content loadingtext"> | 63 | <div class="from-clues-content loadingtext"> |
| 64 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 64 | <lb-table ref="table1" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 65 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange" @select="select" | 65 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange" @select="select" |
| 66 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" | 66 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" |
| 67 | :data="zrztableData.data"> | 67 | :data="zrztableData.data"> |
| ... | @@ -311,14 +311,11 @@ | ... | @@ -311,14 +311,11 @@ |
| 311 | } | 311 | } |
| 312 | }, | 312 | }, |
| 313 | handleLpbClick (item) { | 313 | handleLpbClick (item) { |
| 314 | this.$popup('楼盘表', 'lpb/index', { | 314 | ywPopupDialog('楼盘表', 'lpb/index', { |
| 315 | width: '85%', | ||
| 316 | formData: { | ||
| 317 | bsm: item.bsm, | 315 | bsm: item.bsm, |
| 318 | bsmSqyw:this.sqywInfo.bsmSqyw | 316 | bsmSqyw:this.sqywInfo.bsmSqyw, |
| 319 | 317 | scyclx:1 | |
| 320 | } | 318 | }, '85%', true,false) |
| 321 | }) | ||
| 322 | }, | 319 | }, |
| 323 | handleSelectionChange (val) { | 320 | handleSelectionChange (val) { |
| 324 | if (this.sqywInfo.sqywdylx == "1") { | 321 | if (this.sqywInfo.sqywdylx == "1") { |
| ... | @@ -354,26 +351,27 @@ | ... | @@ -354,26 +351,27 @@ |
| 354 | */ | 351 | */ |
| 355 | handleRowClick (row) { | 352 | handleRowClick (row) { |
| 356 | // 自然幢多选,多幢单选 | 353 | // 自然幢多选,多幢单选 |
| 354 | let refs = 'table1'; | ||
| 357 | if (this.activeName == 'dz') { | 355 | if (this.activeName == 'dz') { |
| 358 | const bdcdysz = this.bdcdysz | 356 | refs = 'table'; |
| 359 | this.$refs.table.clearSelection() | 357 | this.$refs[refs].clearSelection() |
| 360 | if (bdcdysz.length == 1) { | ||
| 361 | bdcdysz.forEach(item => { | ||
| 362 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | ||
| 363 | if (item == row) { | ||
| 364 | this.$refs.table.toggleRowSelection(row, false); | ||
| 365 | } | ||
| 366 | // 不然就让当前的一行勾选 | ||
| 367 | else { | ||
| 368 | this.$refs.table.toggleRowSelection(row, true); | ||
| 369 | } | ||
| 370 | }) | ||
| 371 | } | ||
| 372 | else { | ||
| 373 | this.$refs.table.toggleRowSelection(row, true); | ||
| 374 | } | ||
| 375 | } else { | 358 | } else { |
| 376 | this.$refs.table.toggleRowSelection(row); | 359 | } |
| 360 | const bdcdysz = this.bdcdysz | ||
| 361 | if (bdcdysz.length > 0) { | ||
| 362 | bdcdysz.forEach(item => { | ||
| 363 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | ||
| 364 | if (item == row) { | ||
| 365 | this.$nextTick(()=>{this.$refs[refs].toggleRowSelection(row, false);}) | ||
| 366 | } | ||
| 367 | // 不然就让当前的一行勾选 | ||
| 368 | else { | ||
| 369 | this.$refs[refs].toggleRowSelection(row, true); | ||
| 370 | } | ||
| 371 | }) | ||
| 372 | } | ||
| 373 | else { | ||
| 374 | this.$refs[refs].toggleRowSelection(row, true); | ||
| 377 | } | 375 | } |
| 378 | }, | 376 | }, |
| 379 | /** | 377 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-01 09:18:46 | 4 | * @LastEditTime: 2023-09-13 10:01:27 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 主体权利信息查询 --> | 7 | <!-- 主体权利信息查询 --> |
| ... | @@ -45,14 +45,14 @@ | ... | @@ -45,14 +45,14 @@ |
| 45 | </lb-table> | 45 | </lb-table> |
| 46 | </div> | 46 | </div> |
| 47 | <div class="submit_button" style="text-align:center"> | 47 | <div class="submit_button" style="text-align:center"> |
| 48 | <el-button @click="$popupCacel">取消</el-button> | 48 | <el-button @click="close">取消</el-button> |
| 49 | <el-button type="primary" plain @click="submitForm" :loading="loading">发起申请</el-button> | 49 | <el-button type="primary" plain @click="submitForm" :loading="loading">发起申请</el-button> |
| 50 | </div> | 50 | </div> |
| 51 | </div> | 51 | </div> |
| 52 | </template> | 52 | </template> |
| 53 | <script> | 53 | <script> |
| 54 | import store from '@/store/index.js' | 54 | import store from '@/store/index.js' |
| 55 | import { ywPopupDialog } from "@/utils/popup.js"; | 55 | import { ywPopupDialog,ywPopupCacel } from "@/utils/popup.js"; |
| 56 | import { datas, sendThis } from "../javascript/selectAllHInfo.js"; | 56 | import { datas, sendThis } from "../javascript/selectAllHInfo.js"; |
| 57 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 57 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 58 | import table from "@/utils/mixin/table"; | 58 | import table from "@/utils/mixin/table"; |
| ... | @@ -125,12 +125,12 @@ | ... | @@ -125,12 +125,12 @@ |
| 125 | } else { | 125 | } else { |
| 126 | store.dispatch('user/refreshPage', true); | 126 | store.dispatch('user/refreshPage', true); |
| 127 | } | 127 | } |
| 128 | this.$popupCacel() | 128 | this.close() |
| 129 | } else { | 129 | } else { |
| 130 | if (res.result && res.result.length > 0) { | 130 | if (res.result && res.result.length > 0) { |
| 131 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | 131 | this.$popup("申请错误明细", "components/ywdialog", { width:'36%', formData:{result: res.result} }) |
| 132 | } else { | 132 | } else { |
| 133 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | 133 | this.$popup("申请错误明细", "components/ywdialog", { width:'36%', formData:{message: res.message} }) |
| 134 | } | 134 | } |
| 135 | } | 135 | } |
| 136 | }).catch(() => { | 136 | }).catch(() => { |
| ... | @@ -138,6 +138,14 @@ | ... | @@ -138,6 +138,14 @@ |
| 138 | }) | 138 | }) |
| 139 | }, | 139 | }, |
| 140 | /** | 140 | /** |
| 141 | * @description: close | ||
| 142 | * @param {*} val | ||
| 143 | * @author: renchao | ||
| 144 | */ | ||
| 145 | close(){ | ||
| 146 | ywPopupCacel() | ||
| 147 | }, | ||
| 148 | /** | ||
| 141 | * @description: handleSelectionChange | 149 | * @description: handleSelectionChange |
| 142 | * @param {*} val | 150 | * @param {*} val |
| 143 | * @author: renchao | 151 | * @author: renchao | ... | ... |
-
Please register or sign in to post a comment