| | |
| | | } |
| | | }) |
| | | } |
| | | export const getListByNz = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/farmingRecord/pageNz', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | } |
| | | }) |
| | | } |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/farmingRecord/remove', |
| | |
| | | deptId |
| | | } |
| | | }) |
| | | } |
| | | } |
| | |
| | | editBtn: true, |
| | | delBtn: true, |
| | | viewBtn: true, |
| | | header:false, |
| | | menuWidth: 200, |
| | | menuAlign: "center", |
| | | align: "center", |
| | |
| | | <detection v-if="detectionVisible" ref="detection"></detection> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import { getDetail, getList, update, remove, save } from "@/api/farmplant/farmplant" |
| | | import { getStrainList } from "@/api/farmplant/strain" |
| | |
| | | }, |
| | | selectionList: [], |
| | | landList: [], |
| | | landId: 0, |
| | | option: { |
| | | tip: false, |
| | | height: 520, |
| | | editBtn: true, |
| | | delBtn: true, |
| | | viewBtn: true, |
| | | header:false, |
| | | menuWidth: 280, |
| | | menuAlign: "center", |
| | | align: "center", |
| | |
| | | value: "id" |
| | | }, |
| | | labelWidth: 110, |
| | | change: (val) => { |
| | | this.landId = val.value |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad (page, params = {}) { |
| | | var datas = this.$route.query.id |
| | | params.landId = datas |
| | | if (this.landId) { |
| | | params['landId'] = this.landId |
| | | } |
| | | params['tenantId'] = this.userInfo.tenant_id |
| | | params['deptId'] = this.userInfo.dept_id |
| | | this.loading = true |
| | |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | |
| | | <style> |
| | | </style> |
| | | </style> |
| | |
| | | <el-tab-pane label="采收记录" name="tab3"> |
| | | <recovery></recovery> |
| | | </el-tab-pane> |
| | | <!-- 农资记录 --> |
| | | <el-tab-pane label="农资使用记录" name="tab4"> |
| | | <stockUseInfo></stockUseInfo> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | </div> |
| | |
| | | import farmplant from "@/views/farmplant/farmplant.vue" |
| | | import farming from "@/views/farm/farmingrecord.vue" |
| | | import recovery from "@/views/recovery/recovery.vue" |
| | | import stockUseInfo from "@/views/farm/stockUseInfo.vue" |
| | | import getMapDataInThere from "./getMapDataInThere.vue" |
| | | import { remove, update } from "@/api/land/land" |
| | | |
| | |
| | | farmplant, |
| | | farming, |
| | | recovery, |
| | | stockUseInfo, |
| | | getMapDataInThere |
| | | }, |
| | | data () { |
| | |
| | | }, |
| | | selectionList: [], |
| | | landList: [], |
| | | landId:0, |
| | | option: { |
| | | tip: false, |
| | | height: 520, |
| | |
| | | delBtn: true, |
| | | viewBtn: false, |
| | | addBtn: false, |
| | | header:false, |
| | | menuWidth: 200, |
| | | menuAlign: "center", |
| | | align: "center", |
| | |
| | | props: { |
| | | label: "landName", |
| | | value: "id" |
| | | }, |
| | | change: (val) => { |
| | | this.landId = val.value |
| | | }, |
| | | rules: [ |
| | | { |
| | |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad (page, params = {}) { |
| | | var datas = this.$route.query.id |
| | | params.landId = datas |
| | | if (this.landId) { |
| | | params['landId'] = this.landId |
| | | } |
| | | params['tenantId'] = this.userInfo.tenant_id |
| | | params['deptId'] = this.userInfo.dept_id |
| | | this.loading = true |