Explorar el Código

承包合同修改

rongxin_prod
QI_YUJIE hace 1 año
padre
commit
9c38da0d86
Se han modificado 1 ficheros con 25 adiciones y 0 borrados
  1. +25
    -0
      src/views/contracted/village/contractor/contractorLand.vue

+ 25
- 0
src/views/contracted/village/contractor/contractorLand.vue Ver fichero

@@ -85,6 +85,7 @@
import contractorHeader from "./contractorHeader";
import { listCbdkxx, deleteCbdkxx, transferCbdkxx } from "@/api/contracted/cbdkxx";
import { listCbf } from "@/api/contracted/cbf";
import { getCbht } from "@/api/contracted/cbht";

export default {
name: "contractedVillageContractor",
@@ -115,6 +116,29 @@
});
},
goDetail(id){
if (!id) {
// 新增时,查看承包合同是否存在
getCbht(this.$route.params.cbfbm).then(response => {
if (!response.data) {
this.$toast({
icon: 'fail', // 找到自己需要的图标
message: '承包合同不存在,请先添加承包合同信息',
duration:"2000"
});
return ;
} else {
this.$router.push({
name: 'contractedVillageContractorLandDetail',
params: {
deptId: this.$route.params.deptId,
cbfbm: this.$route.params.cbfbm,
cbfmc: this.$route.params.cbfmc,
surveyStatus: this.$route.params.surveyStatus
}
});
}
});
} else {
this.$router.push({
name: 'contractedVillageContractorLandDetail',
params: {
@@ -125,6 +149,7 @@
surveyStatus: this.$route.params.surveyStatus
}
});
}
},
skip(name) {
this.$router.push({


Cargando…
Cancelar
Guardar