79d4a20c by yangwei

在建工程抵押首次楼盘表部分功能修改

1 parent 44bfb0bf
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-17 10:32:45
* @LastEditTime: 2023-09-20 10:24:29
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
......@@ -108,3 +108,19 @@ export function sjClmxDelete (bsmClmx) {
method: 'delete'
})
}
/**
* @description: 获取自然幢列表
* @param {*} data
* @author: renchao
*/
export function getZrzListByBsmSlsq (params) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/zjgcdy/getZrzListByBsmSlsq',
method: 'get',
params
})
}
......
......@@ -2,7 +2,7 @@
* @Author: yangwei
* @Date: 2023-02-28 15:47:12
* @LastEditors: yangwei
* @LastEditTime: 2023-09-15 14:52:50
* @LastEditTime: 2023-09-20 15:54:25
* @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue
* @Description:
*
......@@ -119,14 +119,14 @@ export default {
},
mounted() {
// 根据申请单元列表数据处理选中户
console.log("window.unitData",window.unitData);
if(window.unitData && window.unitData.length){
let unitIdList = []
window.unitData.forEach(e => {
this.unitIdList.push(e.bdcdyid)
unitIdList.push(e.bdcdyid)
})
this.ch.forEach((c) => {
c.hs.forEach((h) => {
if (h.dyhbsm.indexOf(this.unitIdList) > -1) {
if (unitIdList.indexOf(h.dyhbsm) > -1) {
h.select = true;
// 使用hbsmList时,需要去重
this.hbsmList.push(h.bsm)
......
......@@ -19,7 +19,7 @@
}}</el-checkbox>
</p>
<el-button type="primary" class="save-btn" v-if="!onlyShow && showSave" @click="saveLpb">保存</el-button>
<el-button type="primary" class="save-btn" v-if="!onlyShow" @click="submitForm" :loading="loading">发起申请</el-button>
<el-button type="primary" class="save-btn" v-if="!onlyShow && !showSave" @click="submitForm" :loading="loading">发起申请</el-button>
<!-- 右键菜单 -->
<ul
v-show="lpbChVisible"
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-18 11:11:19
* @LastEditTime: 2023-09-20 16:56:46
*/
import { getPrintTemplateByCode } from "@/api/print";
import { uploadUndo } from "@/api/clxx";
......@@ -157,12 +157,15 @@ export default {
)
break;
case "B8":
getZrzbsmList(this.bsmSlsq).then((res) => {
!window.djlx && getZrzbsmList(this.bsmSlsq).then((res) => {
if (res.code === 200) {
this.$popupDialog('楼盘表', 'lpb/index', {
bsm: res.result[0],
onlyShow: false,
unitData: window.unitData
unitData: window.unitData,
bsmSlsq:this.bsmSlsq,
showSave:true,
djlx: window.djlx
}, '90%', true)
} else {
this.$message.error(res.message)
......@@ -171,6 +174,13 @@ export default {
.catch((err) => {
this.$message.error(err)
});
window.djlx && this.$popupDialog('楼盘表', 'lpb/zjgcdy', {
onlyShow: false,
unitData: window.unitData,
bsmSlsq:this.bsmSlsq,
showSave:true,
djlx: window.djlx
}, '90%', true)
break;
// 图形定位
case "B-TXDW":
......
......@@ -339,6 +339,7 @@
this.loading = false
if (res.code === 200 && res.result) {
this.ruleForm = res.result;
window.djlx = res.result.sldy.djlx
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-13 10:01:27
* @LastEditTime: 2023-09-20 17:08:30
-->
<template>
<!-- 主体权利信息查询 -->
......@@ -38,7 +38,7 @@
</div>
<!-- 表格 -->
<div class="loadingtext">
<lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="210"
<lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="this.zrzbsm ? 390 : 290"
:current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
@p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
:data="tableData.data">
......@@ -52,7 +52,7 @@
</template>
<script>
import store from '@/store/index.js'
import { ywPopupDialog,ywPopupCacel } from "@/utils/popup.js";
import { ywPopupDialog,popupCacel } from "@/utils/popup.js";
import { datas, sendThis } from "../javascript/selectAllHInfo.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -64,7 +64,10 @@
props: {
isJump: { type: Boolean, default: false },
sqywInfo: { type: Object, default: () => { } },
zrzbsm: {
type: String,
default: "",
},
},
data () {
return {
......@@ -88,7 +91,7 @@
*/
queryClick () {
this.$startLoading();
this.queryForm.zrzbsm = this.sqywInfo.bsm;
this.queryForm.zrzbsm = this.zrzbsm || this.sqywInfo.bsm;
// this.queryForm.zrzbsm = this.sqywInfo.zrzbsm;
selectHQjdc({ ...this.queryForm, ...this.pageData }).then((res) => {
this.$endLoading();
......@@ -143,7 +146,7 @@
* @author: renchao
*/
close(){
ywPopupCacel()
popupCacel()
},
/**
* @description: handleSelectionChange
......