浏览代码

宅基地手机端优化

rongxin_prod
Xyq123* 2 年前
父节点
当前提交
a5170b9d9e
共有 3 个文件被更改,包括 95 次插入8 次删除
  1. +22
    -0
      src/views/yinnong/homestead/circulation/circulationAdd.vue
  2. +41
    -4
      src/views/yinnong/homestead/circulation/circulationDetail.vue
  3. +32
    -4
      src/views/yinnong/homestead/circulation/circulationModify.vue

+ 22
- 0
src/views/yinnong/homestead/circulation/circulationAdd.vue 查看文件

@@ -116,6 +116,17 @@
{{item.sqrxm}} {{item.sqrxm}}
</van-cell> </van-cell>
</div> </div>
<van-field
v-model="circulation.zjddm"
v-if="circulation.lzfs =='03'"
readonly
label="宅基地代码"
input-align="right"
>
<template #button>
<van-icon name="../../../../../static/images/22.png" color="#539FFD" size="20" @click="hhMapLook"/>
</template>
</van-field>
<!-- <van-popup v-model="showZrfdbmc" position="bottom">--> <!-- <van-popup v-model="showZrfdbmc" position="bottom">-->
<!-- <van-picker--> <!-- <van-picker-->
<!-- show-toolbar--> <!-- show-toolbar-->
@@ -271,6 +282,10 @@
<van-dialog v-model="mapShow" show-cancel-button> <van-dialog v-model="mapShow" show-cancel-button>
<MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.shyqrxm" :landStatus="landStatus" :deptId="sysFarmer.deptId" @closeMoule="closeMoule"></MapGisObtainTc> <MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.shyqrxm" :landStatus="landStatus" :deptId="sysFarmer.deptId" @closeMoule="closeMoule"></MapGisObtainTc>
</van-dialog> </van-dialog>
<van-dialog v-if="circulation.lzfs =='03'" v-model="hhMapShow" show-cancel-button>
<MapGisObtainTc ref="zjdZrfProductResh" :shqrxm="circulation.zrfdbxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
</van-dialog>

<div style="padding: 16px 0;"> <div style="padding: 16px 0;">
<van-row> <van-row>
<van-col span="24" align="center"> <van-col span="24" align="center">
@@ -338,6 +353,7 @@
currentDate: new Date(), currentDate: new Date(),
circulation: {jzmj:0.00,zcfsfbjtjjzzcy:"Y",zrfsfbjtjjzzcy:"Y",lzfs:"01",houseOwnership:"2",phlyms:"10"}, circulation: {jzmj:0.00,zcfsfbjtjjzzcy:"Y",zrfsfbjtjjzzcy:"Y",lzfs:"01",houseOwnership:"2",phlyms:"10"},
mapShow: false, mapShow: false,
hhMapShow:false,
}; };
}, },
created() { created() {
@@ -423,6 +439,12 @@
this.$refs.zjdProductResh.drawingLyPaceCountryDarw(); this.$refs.zjdProductResh.drawingLyPaceCountryDarw();
},1000); },1000);
}, },
hhMapLook(){
this.hhMapShow = true;
setTimeout(() => {
this.$refs.zjdZrfProductResh.drawingLyPaceCountryDarw();
},1000);
},
onConfirmXb(data){ onConfirmXb(data){
this.xb = data.text; this.xb = data.text;
this.circulation.xb = data.value; this.circulation.xb = data.value;


+ 41
- 4
src/views/yinnong/homestead/circulation/circulationDetail.vue 查看文件

@@ -127,7 +127,17 @@
<!-- @cancel="showZrfdbmc = false"--> <!-- @cancel="showZrfdbmc = false"-->
<!-- />--> <!-- />-->
<!-- </van-popup>--> <!-- </van-popup>-->

<van-field
v-model="circulation.zjddm"
v-if="circulation.lzfs =='03'"
readonly
label="宅基地代码"
input-align="right"
>
<template #button>
<van-icon name="../../../../../static/images/22.png" color="#539FFD" size="20" @click="hhMapLook"/>
</template>
</van-field>
<field-select <field-select
readonly readonly
v-model="circulation.zrfdbzjlx" v-model="circulation.zrfdbzjlx"
@@ -271,8 +281,14 @@
<van-field label="村集体意见" v-model="circulation.suyqryj" placeholder="请输入内容" input-align="right" label-width="auto"/> <van-field label="村集体意见" v-model="circulation.suyqryj" placeholder="请输入内容" input-align="right" label-width="auto"/>
<van-field label="备注" v-model="circulation.bz" placeholder="请输入备注" input-align="right" label-width="auto"/> <van-field label="备注" v-model="circulation.bz" placeholder="请输入备注" input-align="right" label-width="auto"/>
</div> </div>
<van-dialog v-model="mapShow" show-cancel-button>
<MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.shyqrxm" :landStatus="landStatus" :deptId="sysFarmer.deptId" @closeMoule="closeMoule"></MapGisObtainTc>
<van-dialog v-if="circulation.lzfs == '01' || circulation.lzfs == '02'" v-model="mapShow" show-cancel-button>
<MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.zrfdbxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
</van-dialog>
<van-dialog v-else v-model="mapShow" show-cancel-button>
<MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.shyqrxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
</van-dialog>
<van-dialog v-show="circulation.lzfs == '03'" v-model="hhMapShow" show-cancel-button>
<MapGisObtainTc ref="zjdZrfProductResh" :shqrxm="circulation.zrfdbxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
</van-dialog> </van-dialog>
<div style="padding: 16px 0;"> <div style="padding: 16px 0;">
<van-row> <van-row>
@@ -341,6 +357,7 @@
currentDate: new Date(), currentDate: new Date(),
circulation: {jzmj:0.00,zcfsfbjtjjzzcy:"Y",zrfsfbjtjjzzcy:"Y",lzfs:"01",houseOwnership:"2",phlyms:"10"}, circulation: {jzmj:0.00,zcfsfbjtjjzzcy:"Y",zrfsfbjtjjzzcy:"Y",lzfs:"01",houseOwnership:"2",phlyms:"10"},
mapShow: false, mapShow: false,
hhMapShow:false,
}; };
}, },
created() { created() {
@@ -365,7 +382,7 @@
}, },
getDetail(){ getDetail(){
getLz(this.$route.query.id).then(response => { getLz(this.$route.query.id).then(response => {
this.landStatus = "4";
if(response.data.houseOwnership === "1"){ if(response.data.houseOwnership === "1"){
this.shyqxmShow = true; this.shyqxmShow = true;
this.sfjtjjzzShow=true; this.sfjtjjzzShow=true;
@@ -409,6 +426,11 @@
}); });


this.circulation = response.data; this.circulation = response.data;
if(response.data.lzfs === "04" || response.data.lzfs === "05"){
this.landStatus = "4";
}else {
this.landStatus = "1";
}
}); });
}, },
onConfirmLzfs(value) { onConfirmLzfs(value) {
@@ -446,6 +468,12 @@
this.$refs.zjdProductResh.drawingLyPaceCountryDarw(); this.$refs.zjdProductResh.drawingLyPaceCountryDarw();
},1000); },1000);
}, },
hhMapLook(){
this.hhMapShow = true;
setTimeout(() => {
this.$refs.zjdZrfProductResh.drawingLyPaceCountryDarw();
},1000);
},
onConfirmXb(data){ onConfirmXb(data){
this.xb = data.text; this.xb = data.text;
this.circulation.xb = data.value; this.circulation.xb = data.value;
@@ -624,6 +652,15 @@
this.circulation.lzjsrq = this.getNowFormatDate(value).substr(0,10); this.circulation.lzjsrq = this.getNowFormatDate(value).substr(0,10);
this.showlzjsrq = false; this.showlzjsrq = false;
}, //流转结束时间 }, //流转结束时间
goAdd(){
homeLzAdd(this.circulation).then(response => {
if(response.code = 200){
this.$toast.success('保存成功');
this.back();

}
});
},
back() { back() {
setTimeout(() => this.$router.back(-1), 1000) setTimeout(() => this.$router.back(-1), 1000)
}, },


+ 32
- 4
src/views/yinnong/homestead/circulation/circulationModify.vue 查看文件

@@ -127,7 +127,17 @@
<!-- @cancel="showZrfdbmc = false"--> <!-- @cancel="showZrfdbmc = false"-->
<!-- />--> <!-- />-->
<!-- </van-popup>--> <!-- </van-popup>-->

<van-field
v-model="circulation.zjddm"
v-if="circulation.lzfs =='03'"
readonly
label="宅基地代码"
input-align="right"
>
<template #button>
<van-icon name="../../../../../static/images/22.png" color="#539FFD" size="20" @click="hhMapLook"/>
</template>
</van-field>
<field-select <field-select
readonly readonly
v-model="circulation.zrfdbzjlx" v-model="circulation.zrfdbzjlx"
@@ -271,8 +281,14 @@
<van-field label="村集体意见" v-model="circulation.suyqryj" placeholder="请输入内容" input-align="right" label-width="auto"/> <van-field label="村集体意见" v-model="circulation.suyqryj" placeholder="请输入内容" input-align="right" label-width="auto"/>
<van-field label="备注" v-model="circulation.bz" placeholder="请输入备注" input-align="right" label-width="auto"/> <van-field label="备注" v-model="circulation.bz" placeholder="请输入备注" input-align="right" label-width="auto"/>
</div> </div>
<van-dialog v-model="mapShow" show-cancel-button>
<MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.shyqrxm" :landStatus="landStatus" :deptId="sysFarmer.deptId" @closeMoule="closeMoule"></MapGisObtainTc>
<van-dialog v-if="circulation.lzfs == '01' || circulation.lzfs == '02'" v-model="mapShow" show-cancel-button>
<MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.zrfdbxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
</van-dialog>
<van-dialog v-else v-model="mapShow" show-cancel-button>
<MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.shyqrxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
</van-dialog>
<van-dialog v-show="circulation.lzfs == '03'" v-model="hhMapShow" show-cancel-button>
<MapGisObtainTc ref="zjdZrfProductResh" :shqrxm="circulation.zrfdbxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
</van-dialog> </van-dialog>
<div style="padding: 16px 0;"> <div style="padding: 16px 0;">
<van-row> <van-row>
@@ -341,6 +357,7 @@
currentDate: new Date(), currentDate: new Date(),
circulation: {jzmj:0.00,zcfsfbjtjjzzcy:"Y",zrfsfbjtjjzzcy:"Y",lzfs:"01",houseOwnership:"2",phlyms:"10"}, circulation: {jzmj:0.00,zcfsfbjtjjzzcy:"Y",zrfsfbjtjjzzcy:"Y",lzfs:"01",houseOwnership:"2",phlyms:"10"},
mapShow: false, mapShow: false,
hhMapShow:false,
}; };
}, },
created() { created() {
@@ -365,7 +382,7 @@
}, },
getDetail(){ getDetail(){
getLz(this.$route.query.id).then(response => { getLz(this.$route.query.id).then(response => {
this.landStatus = "4";
if(response.data.houseOwnership === "1"){ if(response.data.houseOwnership === "1"){
this.shyqxmShow = true; this.shyqxmShow = true;
this.sfjtjjzzShow=true; this.sfjtjjzzShow=true;
@@ -409,6 +426,11 @@
}); });


this.circulation = response.data; this.circulation = response.data;
if(response.data.lzfs === "04" || response.data.lzfs === "05"){
this.landStatus = "4";
}else {
this.landStatus = "1";
}
}); });
}, },
onConfirmLzfs(value) { onConfirmLzfs(value) {
@@ -446,6 +468,12 @@
this.$refs.zjdProductResh.drawingLyPaceCountryDarw(); this.$refs.zjdProductResh.drawingLyPaceCountryDarw();
},1000); },1000);
}, },
hhMapLook(){
this.hhMapShow = true;
setTimeout(() => {
this.$refs.zjdZrfProductResh.drawingLyPaceCountryDarw();
},1000);
},
onConfirmXb(data){ onConfirmXb(data){
this.xb = data.text; this.xb = data.text;
this.circulation.xb = data.value; this.circulation.xb = data.value;


正在加载...
取消
保存