From 70d02a5a2ffb7013138b7494620c493e579990fd Mon Sep 17 00:00:00 2001 From: liuminjian Date: Sat, 31 Jul 2021 11:30:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AE=97=E5=9C=B0=E3=80=81=E6=88=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homestead/index.vue | 305 +++++++++++++++++++++++++--------- 1 file changed, 228 insertions(+), 77 deletions(-) diff --git a/src/views/homestead/index.vue b/src/views/homestead/index.vue index ebe94552..22982068 100644 --- a/src/views/homestead/index.vue +++ b/src/views/homestead/index.vue @@ -422,14 +422,14 @@
{{ this.farmhouseStatus == 0 ? "录入宗地信息" : "录入农地信息" }}
- +
农房编号
@@ -439,7 +439,7 @@
房屋所有人名称
@@ -452,7 +452,7 @@
地址
@@ -463,20 +463,21 @@
- +
@@ -489,20 +490,20 @@
- +
@@ -512,7 +513,7 @@
@@ -522,21 +523,23 @@
现状情况
+ - +
@@ -548,7 +551,7 @@
房屋所有权证号
@@ -558,7 +561,7 @@
土地证号
@@ -571,7 +574,7 @@
土地性质
@@ -582,7 +585,7 @@
@@ -593,20 +596,20 @@
- +
@@ -618,7 +621,7 @@
租赁人
@@ -628,7 +631,7 @@
租赁年限
@@ -638,12 +641,19 @@
-
租赁人
+
租赁合同截止日期
+
@@ -656,6 +666,7 @@
+
@@ -663,7 +674,7 @@
农地编号
@@ -673,7 +684,7 @@
农地使用人名称
@@ -686,7 +697,7 @@
村名
@@ -696,7 +707,7 @@
土地证号
@@ -710,20 +721,20 @@
- +
@@ -733,20 +744,21 @@
- +
@@ -760,20 +772,21 @@
- +
@@ -783,7 +796,7 @@
@@ -794,20 +807,20 @@
- +
@@ -830,7 +843,7 @@
流转剩余年限
@@ -946,7 +959,7 @@ export default { //地图绘制坐标存储 coordinateList: [], //新建选择农房土地弹窗 显隐 - farmlandEditSwitchVisbule: false, // + farmlandEditSwitchVisbule: false, //false //编辑房屋土地信息--显隐 landHomesteadEditVisbile: false, //查看编辑房屋、土地--类型 0 农房 1 农地 @@ -956,12 +969,87 @@ export default { //选择顺序 selectChooseOrder: 0, - // + //农地新增、修改保存数据 + landInfoList: { + id: "", //String 是 主键id + orgCode: "", // String 否 行政区代码 + cdm: "", // String 否 村代码 + cm: "", //String 否 村名 + xh: "", // String 否 序号 + cbrmc: "", //String 否 承包人名称 + syrmc: "", //String 否 使用人名称 + nydlx: "", // String 否 农用地类型 + mj: "", // String 否 面积 + lzsynx: "", // String 否 流转剩余年限 + zlhtjzrq: "", // String 否 日期 + sfylzyx: "", // String 否 是否流转意向 + xzqk: "", // String 否 现状情况 + theGeom: "", //String 否 空间坐标 + xzqkKey: "", // String 否 忽略 + nydlxKey: "", // String 否 忽略 + frontland: "", //String 否 图片前 + behindland: "", //String 否 图片后 + }, + + //农房新增、修改保存数据 + houseInfoList: { + id: "", // String 是 主键id + orgCode: "", // String 否 行政区代码 + cdm: "", // String 否 村代码 + cm: "", // String 否 村名 + xh: "", // String 否 序号 + tdxz: "", //土地性质 + fwsyrmc: "", // String 否 房屋所有人名称 + fwsyqh: "", // String 否 房屋所有权证号 + tdzh: "", // String 否 土地证号 + jzmj: "", // String 否 建筑面积 + tdmj: "", // String 否 土地面积 + tdzx: "", // String 否 土地性质 + sfyspsx: "", // String 否 是否有审批手续 + xzqk: "", // String 否 现状情况 + theGeom: "", // String 否 空间坐标 + xzqkKey: "", // String 否 忽略传null + tdxzKey: "", // String 否 忽略传null + frontHouse: "", // String 否 图片前 + behindHouse: "", // String 否 图片后 + dz: "", // String 否 地址 + zlrxm: "", // String 否 租赁人姓名 + zlhtjzrq: "", // 租赁合同截止日期 + zlsynx: "", // 租赁剩余年限 + xzfwsfylzy: "", // 闲置房屋是否有流转意愿 + tdfl: "", // 集体/个人 + }, + + //农房 - 农房权属 + tdxzOptions: [], + tdxzOptionsVibile: false, //农房 - 农房权属 -弹窗 + tdxzOptionsValue: "", //农房 - 农房权属 值 + //农房 - 现状情况 + xzqkOptions: [], + xzqkOptionsVisbile: false, //农房 - 现状情况 弹窗 + //农房 - 是否有流转 + xfCirculationOptions: ["是", "否"], + xflzCirculationVisbile: false, //农房 - 是否有流转 弹窗 + //农房 - 是否有审批 + xfApprovalOptions: ["是", "否"], + xfCirculationVisbile: false, //农房 - 是否有审批 -弹窗 + + //农地 -- 是否有审批手续 + xdApprovalOptions: ["是", "否"], + xdCirculationVisbile: false, //农房 - 是否有审批 -弹窗 + //农地 -- 现状情况 + ndxzqkOptions: [], + ndxzqkOptionsVisbile: false, + //农地 -- 农用地类型 + nydlxOptions: [], + nydlxOptionsVibile: false, // 农地 -- 农用地类型--弹窗 + nydlxOptionsValue: "", // 农地 -- 农用地类型--值 + + //农地 -- 是否有流转意向 + xdCirculationOptions: ["是", "否"], + xdlzCirculationVisbile: false, //农房 - 是否有流转 弹窗 //以下删 - message: "", - showPicker: false, - columns: ["杭州", "宁波", "温州", "嘉兴", "湖州"], fileList: [], }; }, @@ -1083,6 +1171,32 @@ export default { initAxios() { //获取区 this.mapAreaSelectValue(); + //农房---字典项 + this.nfDictionary(); + //农地---字典项 + this.ndDictionary(); + }, + nfDictionary() { + //农房权属 + this.getDicts("build_land_type").then((response) => { + this.tdxzOptions = response.data; + }); + //农房情况 + this.getDicts("geo_hc_house").then((response) => { + this.xzqkOptions = response.data; + }); + }, + ndDictionary() { + //农用地类型 + this.getDicts("sub_object_type").then((response) => { + console.log(response); + this.nydlxOptions = response.data; + }); + //现状情况 + this.getDicts("geo_hc_land").then((response) => { + console.log(response); + this.ndxzqkOptions = response.data; + }); }, styleSteup() { let smallTop = this.$refs.sliderSmall.getBoundingClientRect().top; @@ -2094,10 +2208,47 @@ export default { //开始绘制地图 ------------------- end }, - /*以下删*/ - onConfirm(time) { - this.message = time; - this.showPicker = false; + //农房 - 农房权属 选择值 + tdxzOptionsFun(value) { + this.houseInfoList.tdxz = value.dictValue; + this.tdxzOptionsValue = value.dictLabel; + this.tdxzOptionsVibile = false; + }, + //农房 - 是否有审批 选择值 + xfCirculationFun(value) { + this.xfCirculationVisbile = false; + this.houseInfoList.sfyspsx = value; + }, + //农房 - 现状情况 选择值 + xzqkOptionsFun(value) { + this.houseInfoList.xzqk = value.dictValue; + this.xzqkOptionsVisbile = false; + }, + //农房 - 是否有流转 选择值 + xflzCirculationFun(value) { + this.xflzCirculationVisbile = false; + this.houseInfoList.xzfwsfylzy = value; + }, + //农地 - 是否有审批 选择值 + xdCirculationFun(value) { + this.xdCirculationVisbile = false; + this.landInfoList.sfyspsx = value; + }, + //农地 - 现状情况 选择值 + ndxzqkOptionsFun(value) { + this.landInfoList.xzqk = value.dictValue; + this.ndxzqkOptionsVisbile = false; + }, + //农地 - 农用地类型 选择值 + nydlxOptionsFun(value) { + this.landInfoList.nydlx = value.dictValue; + this.nydlxOptionsValue = value.dictLabel; + this.nydlxOptionsVibile = false; + }, + //农地 - 是否有流转 选择值 + xdCirculationOptionsFun(value) { + this.xdlzCirculationVisbile = false; + this.landInfoList.sfylzyx = value; }, }, };