| | |
| | | farmSelectQuery, |
| | | } from "@/api/farm/farmingrecord" |
| | | |
| | | import publicjs from '@/utils/public' |
| | | |
| | | export default { |
| | | data () { |
| | | return { |
| | |
| | | var that = this |
| | | var farmId = that.farmValue |
| | | selectXCount(farmId).then((res) => { |
| | | that.landsnum = res.data.data.snum.toFixed(0) |
| | | that.landwnum = res.data.data.wnum.toFixed(0) |
| | | that.znum = res.data.data.num.toFixed(0) |
| | | // that.landsnum = res.data.data.snum.toFixed(0) |
| | | // that.landwnum = res.data.data.wnum.toFixed(0) |
| | | // that.znum = res.data.data.num.toFixed(0) |
| | | that.landsnum = publicjs.numUnitConversion(res.data.data.snum) |
| | | that.landwnum = publicjs.numUnitConversion(res.data.data.wnum) |
| | | that.znum = publicjs.numUnitConversion(res.data.data.num) |
| | | }) |
| | | }, |
| | | // 农资使用概况 |
| | |
| | | that.jnStock = res.data.data.jn.toFixed(0) |
| | | that.qnStock = res.data.data.qn.toFixed(0) |
| | | that.byStock = res.data.data.by.toFixed(0) |
| | | // that.jnStock = publicjs.numUnitConversion(res.data.data.jn) |
| | | // that.qnStock = publicjs.numUnitConversion(res.data.data.qn) |
| | | // that.byStock = publicjs.numUnitConversion(res.data.data.by) |
| | | }) |
| | | }, |
| | | // 大屏经营概况库存数量与年产量 |
| | |
| | | this.yieldNCP = res.data.data.ncpNcl |
| | | this.yieldJG = res.data.data.jgNcl |
| | | this.yieldTj = res.data.data.ncpNcl + res.data.data.jgNcl |
| | | |
| | | this.stockNCP = publicjs.numUnitConversion(this.stockNCP) |
| | | this.stockJG = publicjs.numUnitConversion(this.stockJG) |
| | | this.stockTj = publicjs.numUnitConversion(this.stockTj) |
| | | |
| | | this.yieldNCP = publicjs.numUnitConversion(this.yieldNCP) |
| | | this.yieldJG = publicjs.numUnitConversion(this.yieldJG) |
| | | this.yieldTj = publicjs.numUnitConversion(this.yieldTj) |
| | | }) |
| | | }, |
| | | // 统计市场流通/去年流通量/本月流通量 |
| | | selectMarketCirculate (year) { |
| | | var params = {} |
| | | params.codes = "000000" |
| | | params.farmId = this.farmValue |
| | | params.year = year |
| | | selectMarketCirculate(Object.assign(params)).then((res) => { |
| | | this.salaNumBN = res.data.data[0].num |
| | | this.salaNumQN = res.data.data[1].num |
| | | this.salaNumBY = res.data.data[2].num |
| | | |
| | | this.salaNumBN = publicjs.numUnitConversion(this.salaNumBN) |
| | | this.salaNumQN = publicjs.numUnitConversion(this.salaNumQN) |
| | | this.salaNumBY = publicjs.numUnitConversion(this.salaNumBY) |
| | | }) |
| | | }, |
| | | // 按月统计产量 |
| | |
| | | if (this.trpOrNcp == "trp") { |
| | | this.initTrpBar("TrpEcharts") |
| | | } |
| | | }) |
| | | }, |
| | | // 统计市场流通/去年流通量/本月流通量 |
| | | selectMarketCirculate (year) { |
| | | var params = {} |
| | | params.codes = "000000" |
| | | params.farmId = this.farmValue |
| | | params.year = year |
| | | selectMarketCirculate(Object.assign(params)).then((res) => { |
| | | this.salaNumBN = res.data.data[0].num |
| | | this.salaNumQN = res.data.data[1].num |
| | | this.salaNumBY = res.data.data[2].num |
| | | }) |
| | | }, |
| | | // 统计任务总数 |