|
|
@@ -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({ |
|
|
|