| | |
| | | <span>{{item.landUnit == 0 ? '亩' : item.landUnit == 1 ? '分' : '平方米'}}</span> |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-for="(item, index) in farmPlantYMList" :key="'farmPlantYMList'+index"> |
| | | <div class="title"> |
| | | <img :src="item.url" alt /> |
| | | {{item.strainName}} |
| | | </div> |
| | | <div class="num-unit"> |
| | | {{item.area}} |
| | | <span>{{item.landUnit == 0 ? '亩' : item.landUnit == 1 ? '分' : '平方米'}}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-show="zydksb == 'dk'" class="lists-box dk"> |
| | |
| | | <div class="title">{{item.strainName}}</div> |
| | | <div |
| | | class="time" |
| | | >{{item.createTime}} {{item.plantingWay == 0 ? '移摘' : item.plantingWay == 1 ? '直播' : '秧苗'}}</div> |
| | | >{{item.createTime}} {{item.plantingWay == 0 ? '移栽' : item.plantingWay == 1 ? '直播' : '秧苗'}}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import { |
| | | getLandList, |
| | | getFarmingRecordList, |
| | | getFarmPlantList |
| | | getFarmPlantList, |
| | | getFarmPlantYMList |
| | | } from '@/api/farm/farmingrecord' |
| | | import dateUtils from '@/utils/dateUtils' |
| | | import { getStationDateByStcd, queryEquipmentList } from '@/api/equipment/equipment' |
| | |
| | | sourceList: [], |
| | | farmRecordList: [], |
| | | farmPlantList: [], |
| | | farmPlantYMList:[], |
| | | plotLists: [], |
| | | // 溯源码编号 |
| | | sourceCode: '', |
| | |
| | | this.getSourceList({ code: '' }) |
| | | this.getFarmingRecordList() |
| | | this.getFarmPlantList() |
| | | this.getFarmPlantYMList() |
| | | this.getLandList() |
| | | this.getStationAndVideo() |
| | | }) |
| | |
| | | this.currentClickPlot = params |
| | | this.plotDetailsPlantList = [] |
| | | this.plotDetailsRecordList = [] |
| | | getFarmPlantList({ farmId: this.currentDetails.id, landId: params.id }).then(res => { |
| | | getFarmPlantList({ farmId: this.currentDetails.id, landId: params.id,status:1 }).then(res => { |
| | | this.plotDetailsPlantList = res.data.data |
| | | }) |
| | | |
| | | getFarmPlantYMList({ farmId: this.currentDetails.id, landId: params.id,status:1 }).then(res => { |
| | | // res.data.data.forEach((e)=>{ |
| | | // e.strainName = e.strainName+"("+"秧苗"+")" |
| | | // }) |
| | | res.data.data.forEach((e)=>{ |
| | | this.plotDetailsPlantList.push(e) |
| | | }) |
| | | }) |
| | | }) |
| | | getFarmingRecordList({ farmId: this.currentDetails.id, landId: params.id }).then(res => { |
| | | this.plotDetailsRecordList = res.data.data |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | |
| | | getFarmPlantYMList(){ |
| | | getFarmPlantYMList({ farmId: this.currentDetails.id, status: 1 }).then(res => { |
| | | res.data.data.forEach((e)=>{ |
| | | e.strainName = e.strainName+"("+"秧苗"+")" |
| | | }) |
| | | this.farmPlantYMList = res.data.data |
| | | }) |
| | | }, |
| | | getLandList () { |
| | | getLandList({ farmId: this.currentDetails.id }).then(res => { |
| | | res.data.data.forEach(item => { |