瀏覽代碼

承包网签优化

rongxin_prod
Xyq123* 1 年之前
父節點
當前提交
f083aa1bd6
共有 5 個檔案被更改,包括 90 行新增42 行删除
  1. +7
    -1
      src/api/sunVillage_info/sysCbf.js
  2. +71
    -36
      src/views/sunVillage_info/list_cbfsq.vue
  3. +1
    -1
      src/views/sunVillage_info/list_cbht_detail.vue
  4. +1
    -1
      src/views/sunVillage_info/list_contract_signature.vue
  5. +10
    -3
      src/views/sunVillage_info/list_contractor.vue

+ 7
- 1
src/api/sunVillage_info/sysCbf.js 查看文件

@@ -16,7 +16,13 @@ export function getCbfList(data){
params:data params:data
}) })
} }

// 获取承包方详情
export function getCbfById(id) {
return request({
url: '/service/cbf/get/' + id,
method: 'get'
});
}
//查询承包地块列表 //查询承包地块列表
export function getCbdkms(data){ export function getCbdkms(data){
return request({ return request({


+ 71
- 36
src/views/sunVillage_info/list_cbfsq.vue 查看文件

@@ -1,7 +1,7 @@
<template> <template>
<div class="home_wrapper"> <div class="home_wrapper">
<div class="header_main" > <div class="header_main" >
承包方授权
{{this.$route.query.shStatus?'承包方审核':'承包方授权'}}
<div class="return_btn" @click="onClickLeft"></div> <div class="return_btn" @click="onClickLeft"></div>
</div> </div>
<div class="list_main"> <div class="list_main">
@@ -51,7 +51,7 @@
<van-cell title="公示审核签字" style="color: #646566;"> <van-cell title="公示审核签字" style="color: #646566;">
<van-field style="padding: 0 0;" readonly input-align="right" :border="false" > <van-field style="padding: 0 0;" readonly input-align="right" :border="false" >
<template #label> <template #label>
<img :src="'/api'+form.gsjgqz" width="10%" alt="" v-if="form.gsjgqz" >
<img :src="'/api'+form.gsshqz" width="10%" alt="" v-if="form.gsshqz" >
</template> </template>
</van-field> </van-field>
</van-cell> </van-cell>
@@ -83,9 +83,11 @@
<!-- <van-field readonly v-model="isDepositName" label="是否纳入托管" placeholder="是否纳入托管" input-align="right" :border="false" />--> <!-- <van-field readonly v-model="isDepositName" label="是否纳入托管" placeholder="是否纳入托管" input-align="right" :border="false" />-->
<!-- <van-field readonly v-model="form.tgmj" label="托管面积(亩)" placeholder="托管面积(亩)" input-align="right" :border="false" />--> <!-- <van-field readonly v-model="form.tgmj" label="托管面积(亩)" placeholder="托管面积(亩)" input-align="right" :border="false" />-->
<div style="margin: 30px auto 0;width: 50%;"> <div style="margin: 30px auto 0;width: 50%;">
<van-button round block type="primary" v-if="sqbutShow" @click="cbfsq">
<van-button round block type="primary" v-if="sqbutShow && !cbfsqShow && !cbfshShow" @click="cbfsq">
授权 授权
</van-button> </van-button>
<img class="bottomImg" v-if="sqbutShow && cbfsqShow" src="../../assets/images/sunVillage_info/cbfwsq.png" alt="" />
<img class="bottomImg" v-if="sqbutShow && cbfshShow" src="../../assets/images/sunVillage_info/cbfwsh.png" alt="" />
<!-- <van-button round block type="primary" v-if="!sqbutShow" > <!-- <van-button round block type="primary" v-if="!sqbutShow" >
授权完成 授权完成
</van-button> --> </van-button> -->
@@ -96,7 +98,7 @@
</template> </template>


<script> <script>
import { getCbfList,eqbEmpower} from "@/api/sunVillage_info/sysCbf";
import { getCbfList,getCbfById,eqbEmpower} from "@/api/sunVillage_info/sysCbf";
import FieldSelect from "@/components/form/FieldSelect"; import FieldSelect from "@/components/form/FieldSelect";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import $ from "jquery"; import $ from "jquery";
@@ -108,8 +110,10 @@
form:{}, form:{},
showForm2:false, showForm2:false,
showesign:false, showesign:false,
sqbutShow:false,
sysFarmer:JSON.parse(Cookies.get('user')),
sqbutShow:true,
cbfsqShow:false,
cbfshShow:false,
sysFarmer:null,
zjlxName:"", zjlxName:"",
cbfTypeName:"", cbfTypeName:"",
surveyStatusName:"", surveyStatusName:"",
@@ -129,7 +133,33 @@
}; };
}, },
created() { created() {
this.getSysCfb();
if(this.$route.query.sqStatus){
getCbfById(this.$route.query.id).then(response => {
this.form = response.data;
if(this.form.accountId != null && this.form.accountId !== ""){
this.sqbutShow = false;
}else{
this.cbfsqShow = true;
this.sqbutShow = true;
}
this.getDictValue();
});

}else if(this.$route.query.shStatus){
getCbfById(this.$route.query.id).then(response => {
this.form = response.data;
if(this.form.gsshqz != null && this.form.gsshqz !== ""){
this.sqbutShow = false;
}else{
this.cbfshShow = true;
this.sqbutShow = true;
}
this.getDictValue();
});
}else{
this.sysFarmer = JSON.parse(Cookies.get('user'));
this.getSysCfb();
}
}, },
methods: { methods: {
InitOptions() { InitOptions() {
@@ -149,44 +179,49 @@
getSysCfb(){ getSysCfb(){
getCbfList({deptId:this.sysFarmer.deptId,cbfzjhm:this.sysFarmer.idcard}).then(response => { getCbfList({deptId:this.sysFarmer.deptId,cbfzjhm:this.sysFarmer.idcard}).then(response => {
this.sqbutShow = true; this.sqbutShow = true;
let _this = this;
if(response.rows.length > 0){ if(response.rows.length > 0){
this.form = response.rows[0]; this.form = response.rows[0];
if(this.form.accountId != null && this.form.accountId !== ""){ if(this.form.accountId != null && this.form.accountId !== ""){
this.sqbutShow = false; this.sqbutShow = false;
}else{
this.sqbutShow = true;
} }
this.getDicts("cert_type").then(response => {
response.data.forEach(function (item) {
if (item.dictValue === _this.form.cbfzjlx) {
_this.zjlxName = item.dictLabel;
}
})
});
this.getDicts("cbf_type").then(response => {
response.data.forEach(function (item) {
if (item.dictValue === _this.form.cbflx) {
_this.cbfTypeName = item.dictLabel;
}
})
});
this.getDicts("confirmed_survey_status").then(response => {
response.data.forEach(function (item) {
if (item.dictValue === _this.form.surveyStatus) {
_this.surveyStatusName = item.dictLabel;
}
})
});
this.getDicts("sys_yes_no").then(response => {
response.data.forEach(function (item) {
if (item.dictValue === _this.form.isDeposit) {
_this.isDepositName = item.dictLabel;
}
})
});
this.getDictValue();
} }


}); });
}, },
getDictValue(){
let _this = this;
this.getDicts("cert_type").then(response => {
response.data.forEach(function (item) {
if (item.dictValue === _this.form.cbfzjlx) {
_this.zjlxName = item.dictLabel;
}
})
});
this.getDicts("cbf_type").then(response => {
response.data.forEach(function (item) {
if (item.dictValue === _this.form.cbflx) {
_this.cbfTypeName = item.dictLabel;
}
})
});
this.getDicts("confirmed_survey_status").then(response => {
response.data.forEach(function (item) {
if (item.dictValue === _this.form.surveyStatus) {
_this.surveyStatusName = item.dictLabel;
}
})
});
this.getDicts("sys_yes_no").then(response => {
response.data.forEach(function (item) {
if (item.dictValue === _this.form.isDeposit) {
_this.isDepositName = item.dictLabel;
}
})
});
}
}, },
} }
</script> </script>


+ 1
- 1
src/views/sunVillage_info/list_cbht_detail.vue 查看文件

@@ -5,7 +5,7 @@
<div class="return_btn" @click="onClickLeft"></div> <div class="return_btn" @click="onClickLeft"></div>
</div> </div>
<div class="list_main"> <div class="list_main">
<van-divider>承包合同合同信息</van-divider>
<van-divider>承包合同信息</van-divider>
<van-field v-model="form.cbhtbm" label="承包合同编码" placeholder="承包合同编码" input-align="right" :border="false"/> <van-field v-model="form.cbhtbm" label="承包合同编码" placeholder="承包合同编码" input-align="right" :border="false"/>
<van-field v-model="form.ycbhtbm" label="原承包合同编码" placeholder="原承包合同编码" input-align="right" :border="false"/> <van-field v-model="form.ycbhtbm" label="原承包合同编码" placeholder="原承包合同编码" input-align="right" :border="false"/>
<van-field v-model="form.cbflx" label="承包方类型" placeholder="承包方类型" input-align="right" :border="false"/> <van-field v-model="form.cbflx" label="承包方类型" placeholder="承包方类型" input-align="right" :border="false"/>


+ 1
- 1
src/views/sunVillage_info/list_contract_signature.vue 查看文件

@@ -147,7 +147,7 @@
}); });
batchEqbContractSignProcess(val).then(response => { batchEqbContractSignProcess(val).then(response => {
this.$toast.clear(); this.$toast.clear();
this.$toast.success('转入待签完成');
this.$toast.success(response.data);
let _this = this; let _this = this;
setTimeout(function(){ setTimeout(function(){
_this.getData(); _this.getData();


+ 10
- 3
src/views/sunVillage_info/list_contractor.vue 查看文件

@@ -1,7 +1,7 @@
<template> <template>
<div class="home_wrapper"> <div class="home_wrapper">
<div class="header_main"> <div class="header_main">
承包方审核
{{ this.$route.query.sqStatus?'承包方授权':'承包方审核'}}
<div class="return_btn" @click="onClickLeft"></div> <div class="return_btn" @click="onClickLeft"></div>
</div> </div>
<div class="search_info"> <div class="search_info">
@@ -19,7 +19,7 @@
@load="onRefreshContractor" @load="onRefreshContractor"
> >
<van-swipe-cell v-for="(item,index) in cbfList" :key="'cbf'+index"> <van-swipe-cell v-for="(item,index) in cbfList" :key="'cbf'+index">
<div class="item" @click="$router.push({path:'/sunVillage_info/list_contractor_single_process',query:{item:item,status:false}})">
<div class="item" @click="detailsClick(item)">
<div class="info"> <div class="info">
<div class="title"> <div class="title">
<i class="icon_box"></i> <i class="icon_box"></i>
@@ -34,7 +34,7 @@
<img :src="'/api'+item.gsshqz" width="100%" alt="" v-if="item.gsshqz" > <img :src="'/api'+item.gsshqz" width="100%" alt="" v-if="item.gsshqz" >
</div> </div>
</div> </div>
<template #right>
<template #right v-if="!$route.query.sqStatus">
<div class="operation"> <div class="operation">
<div class="opera_btn" @click="$router.push({path:'/sunVillage_info/list_contractor_single_process',query:{item:item,status:true}})"> <div class="opera_btn" @click="$router.push({path:'/sunVillage_info/list_contractor_single_process',query:{item:item,status:true}})">
<img src="../../assets/images/sunVillage_info/contractor_icon_07.png" alt="" width="25"> <img src="../../assets/images/sunVillage_info/contractor_icon_07.png" alt="" width="25">
@@ -93,6 +93,13 @@
} }
}); });
}, },
detailsClick(item){
if(this.$route.query.sqStatus){
this.$router.push({path:'/sunVillage_info/list_cbfsq',query:{id:item.id,sqStatus:true}})
}else{
this.$router.push({path:'/sunVillage_info/list_cbfsq',query:{id:item.id,shStatus:true}})
}
},
onRefreshContractor(){ onRefreshContractor(){
if(this.loading){ if(this.loading){
let params = { let params = {


Loading…
取消
儲存