| | |
| | | //本年农事操作记录 |
| | | getFarmingCount() { |
| | | var that = this; |
| | | getFarmingCount(this.userInfo.dept_id).then((res) => { |
| | | getFarmingCount(this.userInfo.farmId).then((res) => { |
| | | that.total = res.data.data; |
| | | // that.total = 0; |
| | | if (that.total > 0) { |
| | |
| | | //本年农事操作记录,分组统计 |
| | | getFarmingStatis() { |
| | | var that = this; |
| | | getFarmingStatis(this.userInfo.dept_id).then((res) => { |
| | | getFarmingStatis(this.userInfo.farmId).then((res) => { |
| | | that.farmingList = res.data.data; |
| | | }); |
| | | }, |
| | | StockCount() { |
| | | var that = this; |
| | | StockCount(this.userInfo.dept_id).then((res) => { |
| | | StockCount(this.userInfo.farmId).then((res) => { |
| | | that.stockList= res.data.data; |
| | | console.log(that.stockList) |
| | | }); |
| | |
| | | //地块使用率统计 |
| | | getCountStatis() { |
| | | var that = this; |
| | | selectCount(this.userInfo.dept_id).then((res) => { |
| | | selectCount(this.userInfo.farmId).then((res) => { |
| | | var data = res.data.data; |
| | | that.landInfo = data; |
| | | }); |
| | |
| | | status: 1, |
| | | }; |
| | | params['tenantId'] = this.userInfo.tenant_id; |
| | | params['deptId'] = this.userInfo.dept_id; |
| | | params['farmId'] = this.userInfo.farmId; |
| | | getList(1, 10, Object.assign(params)).then((res) => { |
| | | const data = res.data.data; |
| | | this.farmPlanList = data.records; |