54efdc3e by zhaoqian

构筑物

1 parent c950353a
import request from '@/plugin/axios'
/**
* 新增构筑物基本信息
*/
export function insertGzwjbxx(data) {
return request({
url: '/system/qjGzw/insertQjGzw',
method: 'post',
data: data,
})
}
/**
* 生成不动产单元号
*/
export function getBdcdyh(dpdm, dptype) {
return request({
url: '/system/generator/getBdcdyh',
method: 'get',
params: {
dpdm: dpdm,
dptype: dptype
}
})
}
/**
* 更新构筑物基本信息
*/
export function updateGzwjbxx(data) {
return request({
url: '/system/qjGzw/updateQjGzw',
method: 'put',
data: data,
})
}
/**
* 获取构筑物基本信息
*/
export function getQjGzwDetailInfo(data) {
return request({
url: '/system/qjGzw/getQjGzwDetailById',
method: 'get',
params: {
id: data
}
})
}
\ No newline at end of file
......@@ -74,6 +74,7 @@
<el-checkbox label="zd" name="type">宗地</el-checkbox>
<el-checkbox label="dz" name="type">多幢</el-checkbox>
<el-checkbox label="zrz" name="type">自然幢</el-checkbox>
<el-checkbox label="gzw" name="type">构筑物</el-checkbox>
<el-checkbox label="h" name="type" v-show="type !== 'add'"></el-checkbox>
<!-- <el-checkbox label="gzw" name="type">构筑物</el-checkbox>
<el-checkbox label="lq" name="type">林权</el-checkbox>
......
......@@ -45,5 +45,9 @@ let bdcLxArray = [
label: "多幢",
value: "dz",
},
{
label: "构筑物",
value: "gzw",
},
];
createFilter("bdcLxFilter", bdcLxArray);
\ No newline at end of file
......
......@@ -77,6 +77,12 @@ const constantRoutes = [
component: () => import("@/views/systemH/index"),
},
{
path: "/gzw",
name: "构筑物",
code: "1-7",
component: () => import("@/views/gzw/index"),
},
{
path: "/viewMap",
name: "地图",
code: "0-6",
......
......@@ -41,6 +41,7 @@ const store = new Vuex.Store({
jgOptions:[],
gmjjhyflbsmList:[],
fwytList:[],
gzwlxList:[],
//创建自然幢时需要用到的临时存储信息
zrzbsm: '',
zjlxList: [],
......
......@@ -272,6 +272,7 @@ export default {
s.hxList = s.hxList.length == 0 ?await this.getDicData("户型") : s.hxList;
s.hxjgList = s.hxjgList.length == 0 ?await this.getDicData("户型结构") : s.hxjgList;
s.fwjgList = s.fwjgList.length == 0 ?await this.getDicData("户型结构") : s.fwjgList;
s.gzwlxList = s.gzwlxList.length == 0 ?await this.getDicData("构(建)筑物类型") : s.gzwlxList;
s.fwxzOptions = s.fwxzOptions.length == 0 ?await this.getDicData("房屋性质") : s.fwxzOptions;
s.cbOptions = s.cbOptions.length == 0 ?await this.getDicData("房屋产别") : s.cbOptions;
......
<template>
<gzwInfo></gzwInfo>
</template>
<script>
import gzwInfo from './jbxx/index';
export default {
name: "index",
components:{
gzwInfo,
},
}
</script>
<style scoped>
</style>
\ No newline at end of file
......@@ -133,10 +133,18 @@
<el-button type="primary" class="w98 cancel" @click="close">取消</el-button>
</div>
</el-tab-pane>
<el-tab-pane class="eltabspane" v-if="!createZrz" label="构筑物" name="gzw">
<el-tab-pane class="eltabspane" label="构筑物" name="gzw">
<el-form :inline="true" :rules="rules4" :model="ruleForm4" ref="ruleForm4" class="demo-form-inline">
<el-form-item label="项目名称" class="w100" prop="xmmc">
<el-input
v-model="ruleForm4.xmmc"
placeholder="项目名称"
></el-input>
</el-form-item>
</el-form>
<div class="handleBtn">
<el-button type="primary" class="w98 import">导入图形</el-button>
<el-button type="primary" class="w98 creat" @click="todo">创建</el-button>
<el-button type="primary" class="w98 creat" @click="newGzw">创建</el-button>
<el-button type="primary" class="w98 cancel" @click="close">取消</el-button>
</div>
</el-tab-pane>
......@@ -152,6 +160,7 @@ import {
import { insertQjZdjbxx } from "@api/zd";
import { insertZrzjbxx } from "@api/zrz";
import { insertDzjbxx } from "@api/dz";
import { insertGzwjbxx } from "@api/gzw";
export default {
name: "",
......@@ -199,6 +208,11 @@ export default {
xmmc:'',
userbsm:''
},
ruleForm4:{
zdzhbsm:'',
xmmc:'',
userbsm:''
},
rules: {
xzqbsm: [
{ required: true, message: '请选择行政区', trigger: 'change' }
......@@ -229,6 +243,11 @@ export default {
{ required: true, message: '请输入项目名称', trigger: 'blur' },
],
},
rules4: {
xmmc: [
{ required: true, message: '请输入项目名称', trigger: 'blur' },
],
},
syqlx: [
{
label: "国家所有",
......@@ -341,6 +360,37 @@ export default {
});
},
newGzw(){
this.$refs['ruleForm4'].validate((valid) => {
if (valid) {
if(1>0){
this.ruleForm4.zdzhbsm = this.$store.state.zdbsm != '' ? this.$store.state.zdbsm : '';
insertGzwjbxx(this.ruleForm4)
.then((res)=>{
if(res.code === 200){
this.close();
this.$router.push({
path: '/gzw', query:{
source: 1,
bsm:res.result.bsm,
auth: '0,1,2'
}
});
}
})
}else {
this.close();
this.$router.push({
path: '/gzw', query:{
source: 1,
bsm:"12345678901234567890",
auth: '0,1,2'
}
});
}
}
})
},
newDz() {
//todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm
this.$refs['ruleForm2'].validate((valid) => {
......
......@@ -152,6 +152,11 @@
this.$store.state.hbsm=row.glbsm
this.getTreeByBsm(row.glbsm,'h','0,1,2');
break;
case "gzw":
this.$store.state.gzwbsm = row.glbsm;
this.getTreeByBsm(row.glbsm,"gzw",'0,1,2');
path = "/gzw";
break;
default:
break;
}
......