| @@ -99,20 +99,14 @@ | |||||
| <van-field v-model="form.nsy" label="年收益(元)" placeholder="请输入" input-align="right" label-width="auto" /> | <van-field v-model="form.nsy" label="年收益(元)" placeholder="请输入" input-align="right" label-width="auto" /> | ||||
| <van-field v-model="form.bzxx" label="备注信息" placeholder="请输入" input-align="right" label-width="auto" /> | <van-field v-model="form.bzxx" label="备注信息" placeholder="请输入" input-align="right" label-width="auto" /> | ||||
| <van-field readonly label="实物图" placeholder="" input-align="right" label-width="auto" /> | |||||
| <image-upload v-model="form.dkImg"/> | |||||
| <van-field readonly required :rules="[{ required: true }]" @click="showSurveyStatusPicker = true" v-model="form.surveyStatusText" label="调查状态" placeholder="请输入" input-align="right" label-width="auto" /> | <van-field readonly required :rules="[{ required: true }]" @click="showSurveyStatusPicker = true" v-model="form.surveyStatusText" label="调查状态" placeholder="请输入" input-align="right" label-width="auto" /> | ||||
| <van-popup v-model="showSurveyStatusPicker" round position="bottom"> | <van-popup v-model="showSurveyStatusPicker" round position="bottom"> | ||||
| <van-picker | |||||
| show-toolbar | |||||
| :columns="dict.type.survey_status" | |||||
| value-key="label" | |||||
| @cancel="showSurveyStatusPicker = false" | |||||
| @confirm="onConfirmSurveyStatus" | |||||
| /> | |||||
| <van-picker show-toolbar :columns="dict.type.survey_status" value-key="label" @cancel="showSurveyStatusPicker = false" @confirm="onConfirmSurveyStatus"/> | |||||
| </van-popup> | </van-popup> | ||||
| <van-field readonly label="实物图" placeholder="" input-align="right" label-width="auto" /> | |||||
| <image-upload v-model="form.dkImg"/> | |||||
| </div> | </div> | ||||
| <van-button round block type="primary" native-type="submit" class="subClass">提交</van-button> | <van-button round block type="primary" native-type="submit" class="subClass">提交</van-button> | ||||
| @@ -124,6 +118,7 @@ | |||||
| <script> | <script> | ||||
| import { getLandDetail } from "@/api/resource/land" | import { getLandDetail } from "@/api/resource/land" | ||||
| import { getOperationDetail, updateOperation, addOperation } from "@/api/resource/operation" | import { getOperationDetail, updateOperation, addOperation } from "@/api/resource/operation" | ||||
| import { getInfoByImportCode } from "@/api/system/dept"; | |||||
| export default { | export default { | ||||
| dicts: ['zjlx', 'survey_status', 'is_common', 'jydxlx', 'jyfs'], | dicts: ['zjlx', 'survey_status', 'is_common', 'jydxlx', 'jyfs'], | ||||
| name: "appEdit", | name: "appEdit", | ||||
| @@ -138,8 +133,32 @@ | |||||
| showSurveyStatusPicker: false, | showSurveyStatusPicker: false, | ||||
| minDate: new Date(2020, 0, 1), | minDate: new Date(2020, 0, 1), | ||||
| maxDate: new Date(2025, 10, 1), | maxDate: new Date(2025, 10, 1), | ||||
| importCode: null, | |||||
| form: { | form: { | ||||
| dkbm: null, | |||||
| dkmc: null, | |||||
| dkdz: null, | |||||
| dkxz: null, | |||||
| dknz: null, | |||||
| dkbz: null, | |||||
| jymj: null, | |||||
| jyfs: null, | |||||
| jydxlx: null, | |||||
| jydxmc: null, | |||||
| jydxzjlx: null, | |||||
| jydxzjhm: null, | |||||
| sfqdht: null, | |||||
| jykssj: null, | |||||
| jyjssj: null, | |||||
| cbje: null, | |||||
| dxje: null, | |||||
| sqje: null, | |||||
| nsy: null, | |||||
| bzxx: null, | |||||
| dkImg: null, | |||||
| surveyStatus: null, | |||||
| importCode: null, | |||||
| deptName: null, | |||||
| }, | }, | ||||
| jykssj:new Date(), | jykssj:new Date(), | ||||
| jyjssj:new Date(), | jyjssj:new Date(), | ||||
| @@ -167,7 +186,17 @@ | |||||
| this.form = response.data | this.form = response.data | ||||
| }else{ | }else{ | ||||
| getLandDetail(this.$route.query.dkbm).then(response => { | getLandDetail(this.$route.query.dkbm).then(response => { | ||||
| this.form = response.data | |||||
| //this.form = response.data | |||||
| this.form.deptName = response.data.deptName; | |||||
| this.form.importCode = response.data.importCode; | |||||
| this.importCode = response.data.importCode; | |||||
| this.form.dkbm = response.data.dkbm; | |||||
| this.form.dkmc = response.data.dkmc; | |||||
| this.form.dkdz = response.data.dkdz; | |||||
| this.form.dkxz = response.data.dkxz; | |||||
| this.form.dknz = response.data.dknz; | |||||
| this.form.dkbz = response.data.dkbz; | |||||
| this.form.jymj = response.data.scmjm; | |||||
| this.form.jyfsText = '家庭承包'; | this.form.jyfsText = '家庭承包'; | ||||
| this.form.jyfs = '110'; | this.form.jyfs = '110'; | ||||
| this.form.jydxlxText = '农户'; | this.form.jydxlxText = '农户'; | ||||
| @@ -178,12 +207,12 @@ | |||||
| this.form.sfqdht = '1'; | this.form.sfqdht = '1'; | ||||
| this.form.surveyStatusText = '已调查'; | this.form.surveyStatusText = '已调查'; | ||||
| this.form.surveyStatus = '2'; | this.form.surveyStatus = '2'; | ||||
| this.form.jymj = 0; | |||||
| }) | |||||
| getInfoByImportCode(response.data.importCode).then((res) => { | |||||
| this.form.deptId = res.data.deptId | |||||
| }); | |||||
| }); | |||||
| } | } | ||||
| getInfoByImportCode(response.data.importCode).then((res) => { | |||||
| this.form.deptId = res.data.deptId | |||||
| }); | |||||
| }); | }); | ||||
| }, | }, | ||||
| onConfirmJydxlx(value) { | onConfirmJydxlx(value) { | ||||