79cbd3d9 by jiaozeping@pashanhoo.com

自然幢多幢选择修改代码

1 parent 940c90c0
......@@ -6,23 +6,23 @@
</el-tabs>
<div v-if="activeName == 'zrz'">
<div class="from-clues-header">
<el-form :model="queryForm" ref="queryForm" label-width="110px">
<el-form :model="queryzrzForm" ref="queryzrzForm" label-width="110px">
<el-row>
<el-col :span="7">
<el-form-item label="宗地代码">
<el-input placeholder="请输入宗地代码" v-model="queryForm.zddm" clearable>
<el-input placeholder="请输入宗地代码" v-model="queryzrzForm.zddm" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="土地证号">
<el-input placeholder="请输入土地证号" v-model="queryForm.bdcqzh" clearable>
<el-input placeholder="请输入土地证号" v-model="queryzrzForm.bdcqzh" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="土地坐落">
<el-input placeholder="请输入土地坐落" v-model="queryForm.zl" clearable>
<el-input placeholder="请输入土地坐落" v-model="queryzrzForm.zl" clearable>
</el-input>
</el-form-item>
</el-col>
......@@ -30,18 +30,18 @@
<el-row>
<el-col :span="7">
<el-form-item label="自然幢号">
<el-input placeholder="请输入自然幢号" v-model="queryForm.zrzh" clearable>
<el-input placeholder="请输入自然幢号" v-model="queryzrzForm.zrzh" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="项目名称">
<el-input placeholder="请输入项目名称" v-model="queryForm.xmmc"></el-input>
<el-input placeholder="请输入项目名称" v-model="queryzrzForm.xmmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="建筑物名称">
<el-input placeholder="请输入建筑物名称" v-model="queryForm.jzwmc" clearable>
<el-input placeholder="请输入建筑物名称" v-model="queryzrzForm.jzwmc" clearable>
</el-input>
</el-form-item>
</el-col>
......@@ -56,9 +56,9 @@
</div>
<div class="from-clues-content">
<lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :heightNum="400"
:current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
:data="tableData.data">
:current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns"
:data="zrztableData.data">
</lb-table>
</div>
<div class="submit_button">
......@@ -68,23 +68,23 @@
</div>
<div v-if="activeName == 'dz'">
<div class="from-clues-header">
<el-form :model="queryFormduo" ref="queryFormduo" label-width="110px">
<el-form :model="querydzForm" ref="querydzForm" label-width="110px">
<el-row>
<el-col :span="7">
<el-form-item label="宗地代码11">
<el-input placeholder="请输入宗地代码" v-model="queryFormduo.zddm" clearable>
<el-input placeholder="请输入宗地代码" v-model="querydzForm.zddm" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="土地证号">
<el-input placeholder="请输入土地证号" v-model="queryFormduo.bdcqzh" clearable>
<el-input placeholder="请输入土地证号" v-model="querydzForm.bdcqzh" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="土地坐落">
<el-input placeholder="请输入土地坐落" v-model="queryFormduo.zl" clearable>
<el-input placeholder="请输入土地坐落" v-model="querydzForm.zl" clearable>
</el-input>
</el-form-item>
</el-col>
......@@ -92,18 +92,18 @@
<el-row>
<el-col :span="7">
<el-form-item label="自然幢号">
<el-input placeholder="请输入自然幢号" v-model="queryFormduo.zrzh" clearable>
<el-input placeholder="请输入自然幢号" v-model="querydzForm.zrzh" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="项目名称">
<el-input placeholder="请输入项目名称" v-model="queryFormduo.xmmc"></el-input>
<el-input placeholder="请输入项目名称" v-model="querydzForm.xmmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="建筑物名称">
<el-input placeholder="请输入建筑物名称" v-model="queryFormduo.jzwmc" clearable>
<el-input placeholder="请输入建筑物名称" v-model="querydzForm.jzwmc" clearable>
</el-input>
</el-form-item>
</el-col>
......@@ -118,9 +118,9 @@
</div>
<div class="from-clues-content">
<lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :heightNum="400"
:current-page.sync="pageData.currentPage" :total="tableDataduo.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableDataduo.columns"
:data="tableDataduo.data">
:current-page.sync="pageData.currentPage" :total="dztableData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="dztableData.columns"
:data="dztableData.data">
</lb-table>
</div>
<div class="submit_button">
......@@ -133,7 +133,7 @@
<script>
//国有建设用地使用权/房屋使用权
import { datas, sendThis } from "../javascript/fwsyq.js";
import { datasduo, sendThisduo } from "../javascript/fwsyqduo.js";
// import { datasduo, sendThisduo } from "../javascript/fwsyqduo.js";
import table from "@/utils/mixin/table";
import jump from "@/views/ywbl/ywsq/components/mixin/jump";
import { selectScBdcdy, startBusinessFlow, choiceBdcdy, selectOtherH, selectZrz, selectH } from "@/api/ywbl.js";
......@@ -146,26 +146,26 @@
data () {
return {
activeName: 'zrz',
queryForm: {
queryzrzForm: {
qllx: '',
bdcdyh: '',
ywh: '',
bdcqzh: ''
},
queryFormduo: {
querydzForm: {
qllx: '',
bdcdyh: '',
ywh: '',
bdcqzh: ''
},
tableData: {
zrztableData: {
total: 0,
columns: datas.columns(),
columns: datas.zrzcolumns(),
data: [],
},
tableDataduo: {
dztableData: {
total: 0,
columns: datasduo.columns(),
columns: datas.dzcolumns(),
data: [],
},
bdcdysz: [],
......@@ -177,7 +177,6 @@
},
mounted () {
sendThis(this)
sendThisduo(this)
},
methods: {
......@@ -185,21 +184,21 @@
if (!this.isJump) {
//从业务办理进入
if (this.activeName == "zrz") {
this.queryForm.sqywbm = this.sqywInfo.djywbm;
this.queryForm.fwfl = this.activeName;
selectZrz({ ...this.queryForm, ...this.pageData }).then((res) => {
this.queryzrzForm.sqywbm = this.sqywInfo.djywbm;
this.queryzrzForm.fwfl = this.activeName;
selectZrz({ ...this.queryzrzForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
this.tableData.total = res.result.total;
this.tableData.data = res.result.records;
this.zrztableData.total = res.result.total;
this.zrztableData.data = res.result.records;
}
});
} else {
this.queryFormduo.sqywbm = this.sqywInfo.djywbm;
this.queryFormduo.fwfl = this.activeName;
selectH({ ...this.queryFormduo, ...this.pageData }).then((res) => {
this.querydzForm.sqywbm = this.sqywInfo.djywbm;
this.querydzForm.fwfl = this.activeName;
selectH({ ...this.querydzForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
this.tableDataduo.total = res.result.total;
this.tableDataduo.data = res.result.records;
this.dztableData.total = res.result.total;
this.dztableData.data = res.result.records;
}
})
}
......@@ -207,12 +206,12 @@
} else {
//从办理框架选择不动产单元进入
//房屋首次办理选择不动产需找出对应自然幢下未选择的户
this.queryForm.bsmSlsq = this.$route.query.bsmSlsq;
selectOtherH({ ...this.queryForm, ...this.pageData }).then((res) => {
this.queryzrzForm.bsmSlsq = this.$route.query.bsmSlsq;
selectOtherH({ ...this.queryzrzForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
this.zrztableData.total = total;
this.zrztableData.data = records;
}
})
}
......
......@@ -8,7 +8,7 @@ class data extends filter {
constructor() {
super()
}
columns () {
zrzcolumns () {
return [
{
type: 'selection',
......@@ -17,7 +17,123 @@ class data extends filter {
selectable: this.selected
},
{
label: '序号',
label: '序号1',
type: 'index',
width: '50',
render: (h, scope) => {
return (
<div>
{(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
</div>
)
}
},
{
label: "状态",
render: (h, scope) => {
return (
<div>
{/* <a v-on:click="doSomething"></a> */}
<a style='color:#3498db;' v-show={scope.row.djblzt == 1} >正在办理</a>
<span v-show={scope.row.zjgcdyzt == 1}>,在建工程抵押</span>
<span v-show={scope.row.ycfzt == 1}>,已预查封</span>
<span v-show={scope.row.ycfzt == 1}>,已预查封</span>
<span v-show={scope.row.cfzt == 1}>,已查封</span>
<span v-show={scope.row.diyizt == 1}>,已地役</span>
<span v-show={scope.row.yyzt == 1}>,异议中</span>
<span v-show={scope.row.xzzt == 1}>,已限制</span>
<span v-show={scope.row.ygmmzt == 1}>,已预告买卖</span>
<span v-show={scope.row.ygdyzt == 1}>,已预告抵押</span>
<span v-show={scope.row.dyzt == 1}>,已抵押</span>
</div>
)
}
},
{
prop: "tdzh",
label: "土地证号",
},
{
prop: "qllxmc",
label: "权利类型",
},
{
prop: "xmmc",
label: "项目名称",
},
{
prop: "zrzh",
label: "自然幢号",
},
{
prop: "jzwmc",
label: "建筑物名称",
},
{
label: "土地/房屋性质",
render: (h, scope) => {
return (
<div>
{(scope.row.showQlxz) + (' / ') + (scope.row.fwxzmc)}
</div>
)
}
},
{
label: "面积",
render: (h, scope) => {
return (
<div>
{(scope.row.zdmj) + (' / ') + (scope.row.scjzmj)}
</div>
)
}
},
{
label: "土地/房屋用途",
render: (h, scope) => {
return (
<div>
{(scope.row.showTdyt) + (' / ') + (scope.row.showFwyt)}
</div>
)
}
},
{
prop: "zcs",
label: "总层数",
width: '70',
},
{
prop: "zts",
label: "总套数",
width: '70',
},
{
prop: "zl",
label: "自然幢坐落",
},
{
label: '操作',
width: '80',
align: 'center',
fixed: 'right',
render: (h, scope) => {
return <el-button type="text" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button>
}
}
]
}
dzcolumns () {
return [
{
type: 'selection',
label: '全选',
width: '30',
selectable: this.selected
},
{
label: '序号2',
type: 'index',
width: '50',
render: (h, scope) => {
......@@ -124,7 +240,6 @@ class data extends filter {
}
]
}
}
let datas = new data()
......
import filter from '@/utils/filter.js'
let vm = null
const sendThisduo = (_this) => {
vm = _this
}
class data extends filter {
constructor() {
super()
}
columns () {
return [
{
type: 'selection',
label: '全选',
width: '30',
selectable: this.selected
},
{
label: '序号',
type: 'index',
width: '50',
render: (h, scope) => {
return (
<div>
{(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
</div>
)
}
},
{
label: "状态",
render: (h, scope) => {
return (
<div>
{/* <a v-on:click="doSomething"></a> */}
<a style='color:#3498db;' v-show={scope.row.djblzt == 1} >正在办理</a>
<span v-show={scope.row.zjgcdyzt == 1}>,在建工程抵押</span>
<span v-show={scope.row.ycfzt == 1}>,已预查封</span>
<span v-show={scope.row.ycfzt == 1}>,已预查封</span>
<span v-show={scope.row.cfzt == 1}>,已查封</span>
<span v-show={scope.row.diyizt == 1}>,已地役</span>
<span v-show={scope.row.yyzt == 1}>,异议中</span>
<span v-show={scope.row.xzzt == 1}>,已限制</span>
<span v-show={scope.row.ygmmzt == 1}>,已预告买卖</span>
<span v-show={scope.row.ygdyzt == 1}>,已预告抵押</span>
<span v-show={scope.row.dyzt == 1}>,已抵押</span>
</div>
)
}
},
{
prop: "tdzh",
label: "土地证号",
},
{
prop: "qllxmc",
label: "权利类型",
},
{
prop: "xmmc",
label: "项目名称",
},
{
prop: "zrzh",
label: "自然幢号",
},
{
prop: "jzwmc",
label: "建筑物名称",
},
{
label: "土地/房屋性质",
render: (h, scope) => {
return (
<div>
{(scope.row.showQlxz) + (' / ') + (scope.row.fwxzmc)}
</div>
)
}
},
{
label: "面积",
render: (h, scope) => {
return (
<div>
{(scope.row.zdmj) + (' / ') + (scope.row.scjzmj)}
</div>
)
}
},
{
label: "土地/房屋用途",
render: (h, scope) => {
return (
<div>
{(scope.row.showTdyt) + (' / ') + (scope.row.showFwyt)}
</div>
)
}
},
{
prop: "zcs",
label: "总层数",
width: '70',
},
{
prop: "zts",
label: "总套数",
width: '70',
},
{
prop: "zl",
label: "自然幢坐落",
},
{
label: '操作',
width: '80',
align: 'center',
fixed: 'right',
render: (h, scope) => {
return <el-button type="text" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button>
}
}
]
}
}
let datasduo = new data()
export {
datasduo,
sendThisduo
}