a2b5c21d by 杨威
2 parents 37581e2b b6815c90
......@@ -280,3 +280,29 @@ export function DzHb(data) {
data:data
})
}
/**
*根据宗地标识码获取权籍_集体土地所有权宗地分类面积调查记录
* @param zdbsm
*/
export function getFlDc(zdbsm) {
return request({
url:'/zd/qjJttdsyqzdflmjdcb/getQjJttdsyqzdflmjdcbByZdbsm',
method:'get',
params:{
zdbsm
}
})
}
/**
* 修改权籍_集体土地所有权宗地分类面积调查
* @param data
*/
export function updateFldc(data) {
return request({
url:"/zd/qjJttdsyqzdflmjdcb/updateQjJttdsyqzdflmjdcb",
method:'put',
data:data
})
}
......
......@@ -7,7 +7,7 @@
<h2> 集体土地所有权宗地分类面积调查表</h2><br/>
<div class="dw">
单位:
<el-radio-group v-model="flmjData.dw">
<el-radio-group v-model="flmjData.mjdw ">
<el-radio :label="3">平方米</el-radio>
<el-radio :label="6">公顷</el-radio>
<el-radio :label="9"></el-radio>
......@@ -20,19 +20,19 @@
<tr>
<th>权利人</th>
<td colspan="3">
<el-input v-model="flmjData.qlr" disabled></el-input>
<el-input v-model="qlr" disabled></el-input>
</td>
</tr>
<tr>
<th>宗地代码</th>
<td colspan="3">
<el-input v-model="flmjData.zddm" disabled></el-input>
<el-input v-model="zddm" disabled></el-input>
</td>
</tr>
<tr>
<th>不动产单元号</th>
<td colspan="3">
<el-input v-model="flmjData.bdcdyh" disabled></el-input>
<el-input v-model="bdcdyh" disabled></el-input>
</td>
</tr>
<tr >
......@@ -41,7 +41,7 @@
</th>
<th colspan="2">农用地</th>
<td>
<el-input v-model="flmjData.lyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
<el-input v-model="flmjData.nyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
......@@ -52,13 +52,13 @@
耕地
</th>
<th colspan="2">
<el-input v-model="flmjData.gd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
<el-input v-model="flmjData.nydgd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</th>
</tr>
<tr>
<th>林地</th>
<td colspan="2">
<el-input v-model="flmjData.ld" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
<el-input v-model="flmjData.nydld" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
......@@ -66,19 +66,19 @@
草地
</th>
<td colspan="2">
<el-input v-model="flmjData.cd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
<el-input v-model="flmjData.nydcd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
<th>其他</th>
<td colspan="2">
<el-input v-model="flmjData.qt" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
<el-input v-model="flmjData.nydqt " oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
<th>建设用地</th>
<td colspan="3">
<el-input v-model="flmjData.jsyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
<el-input v-model="flmjData.jzyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
......@@ -140,7 +140,7 @@
</tr>
<tr>
<td colspan="4" style="text-align: center">
<el-button>保存</el-button>
<el-button type="primary" @click="save">保存</el-button>
</td>
</tr>
</tbody>
......@@ -149,11 +149,66 @@
</template>
<script>
import {getFlDc,updateFldc} from '@api/zd'
export default {
name: "Fldcb",
props:{
qlr:{
type:String
},
bdcdyh:{
type:String
},
zddm:{
type:String
}
},
data(){
return{
// zdbsm:'',
flmjData:{
zdbsm:'',
mjdw :'', // 单位
zddm:'', // 宗地代码
nyd :'', // 农用地
nydgd :'', // 耕地
nydld :'', // 林地
nydcd :'', // 草地
nydqt :'', //其他
jsyd:'', // 建设用地
wlyd:'', // 未利用地
dcjs :"", // 调查记事
dcy:'', // 调查员
dcrq:'', // 调查日期
shyj:'', // 审核意见
shr :'', // 审核员
shrq:'' // 审核日期
}
}
},
mounted(){
this.info(this.$route.query.bsm)
this.flmjData.zdbsm=this.$route.query.bsm;
},
methods:{
info(zdbsm){
getFlDc(zdbsm).then(res=>{
if (res.success) {
console.log(res,'获取信息')
this.flmjData=res.result[0]
}
})
},
save(){
updateFldc(this.flmjData).then(res=>{
if (res.success) {
console.log(res,"保存成功")
this.$message.success("保存成功")
}
})
},
result(){
this.flmjData={
dw:'', // 单位
qlr:'', // 权利人
zddm:'', // 宗地代码
......@@ -163,7 +218,7 @@
ld:'', // 林地
cd:'', // 草地
qt:'', //其他
jsyd:'', // 建设用地
jzyd:'', // 建设用地
wlyd:'', // 未利用地
dcjs:"", // 调查记事
dcy:'', // 调查员
......@@ -173,6 +228,15 @@
shrq:'' // 审核日期
}
}
},
watch:{
"$store.state.zddm": function (zddm) {
this.zddm = zddm
},
"$route.query.bsm": function (bsm) {
this.mjftData.zdbsm = bsm
this.info(bsm);
},
}
}
</script>
......
......@@ -2,7 +2,7 @@
<!-- <div class="content_box"> -->
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" >
<el-tab-pane label="地籍调查表" name="djdcb"><zddcb></zddcb></el-tab-pane>
<el-tab-pane label="分类调查表" name="fldcb"><fldcb v-if="fldbcVisible"></fldcb></el-tab-pane>
<el-tab-pane label="分类调查表" name="fldcb" v-if="isFldc"><fldcb v-if="fldbcVisible" :qlr="qlr" :bdcdyh="bdcdyh" :zddm="zddm"></fldcb></el-tab-pane>
<el-tab-pane label="面积分摊表" name="mjftb"><mjftb v-if="mjftbVisible" :is-disabled="isDisabled"></mjftb></el-tab-pane>
<el-tab-pane label="界址点" name="jzd">
<jzd v-if="jzdVisible" :is-disabled="isDisabled"></jzd>
......@@ -28,6 +28,7 @@ import lshs from "./lshs";
import fjcl from "./fjcl/fjcl"
import {queryStatus} from "@api/search"
import Fldcb from "@components/Fldcb/Fldcb"
import {getQjZdjbxxDetailById} from '@api/zd'
export default {
name: "",
components: {
......@@ -36,6 +37,10 @@ export default {
props: {},
data() {
return {
qlr:"",
bdcdyh:'',
zddm:"",
isFldc:false,
isDisabled:false,
activeName: "djdcb",
mjftbVisible:false,
......@@ -49,12 +54,24 @@ export default {
};
},
methods: {
getZdData(bsm){
getQjZdjbxxDetailById(bsm).then(res=>{
if (res.success) {
console.log(res,'宗地信息')
this.isFldc=res.result.zdtzmbsm==='PSHGSBDCQJDC000000000000DC440010';
}
})
},
loadingStatus() {
console.log("是否禁用")
let bsm=this.$route.query.bsm;
queryStatus(bsm).then(res => {
if (res.success) {
let qszt = res.result.qszt;
this.qlr=res.result.qlrmc;
this.zddm=res.result.zddm;
this.bdcdyh=res.result.bdcdyh;
console.log(this.qlr,'权利人');
this.isDisabled = +qszt !== 0;
}
})
......@@ -95,7 +112,10 @@ export default {
},
},
created() {},
mounted() {},
mounted() {
this.getZdData(this.$store.state.zdbsm);
this.loadingStatus();
},
computed: {
zdbsm() {
return this.$route.query.bsm;
......@@ -103,6 +123,7 @@ export default {
},
watch: {
zdbsm: function (val) {
this.getZdData(val);
this.loadingStatus();
},
},
......