地图模式显示正在种养品种、销售后地区选择数据残留清空
| | |
| | | <template slot-scope="{disabled,size}" slot="saleDestination"> |
| | | <div> |
| | | <el-cascader |
| | | ref="cascader" |
| | | style="width: 100%;" |
| | | placeholder="请选择销售去向" |
| | | size="large" |
| | |
| | | <template slot-scope="{disabled,size}" slot="saleDestination"> |
| | | <div> |
| | | <el-cascader |
| | | ref="cascader" |
| | | style="width: 100%;" |
| | | placeholder="请选择出库去向" |
| | | size="large" |
| | |
| | | cleanData () { |
| | | var that = this |
| | | that.form.saleDestination = "" |
| | | that.$refs.cascader.$refs.panel.clearCheckedNodes() |
| | | that.$refs.cascader.$refs.panel.activePath=[] |
| | | that.$refs.form.resetFields() |
| | | that.visible = false |
| | | }, |
| | | cleanCKData () { |
| | | var that = this |
| | | that.formCK.saleDestination = "" |
| | | that.$refs.cascader.$refs.panel.clearCheckedNodes() |
| | | that.$refs.cascader.$refs.panel.activePath=[] |
| | | that.$refs.form.resetFields() |
| | | that.visibleCK = false |
| | | }, |
| | |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.loading = false |
| | | this.selectionClear() |
| | | // this.selectionClear() |
| | | }) |
| | | }, |
| | | getFarmListDic(){ |
| | |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | | ...mapGetters(["userInfo","$farmId"]), |
| | | }, |
| | | created () { |
| | | //获取种样品列表 |
| | |
| | | methods: { |
| | | //获取种养品列表 |
| | | getFarmPlantList (page, params = {}) { |
| | | params['farmId'] = this.userInfo.farmId |
| | | params['farmId'] = this.$farmId |
| | | params['status'] = 1 |
| | | this.loading = true |
| | | getList( |
| | | page.currentPage, |
| | |
| | | }, |
| | | //获取地块列表 |
| | | getLandList (page, params = {}) { |
| | | params['farmId'] = this.userInfo.farmId |
| | | params['farmId'] = this.$farmId |
| | | params['tenantId'] = this.userInfo.tenant_id |
| | | this.loading = true |
| | | getLandList( |
| | |
| | | //获取农场信息 |
| | | getFarmInfo () { |
| | | var that = this |
| | | getDetails(this.userInfo.farmId).then(res => { |
| | | getDetails(this.$farmId).then(res => { |
| | | that.farmInfo = res.data.data |
| | | }) |
| | | }, |
| | | //获取统计面积信息 |
| | | getLandCount () { |
| | | selectCount(this.userInfo.farmId).then(res => { |
| | | selectCount(this.$farmId).then(res => { |
| | | this.landAreaInfo = res.data.data |
| | | }) |
| | | }, |
| | | //获取地块轮廓统计信息 |
| | | getLandIsAreaStatistic () { |
| | | getLandIsAreaStatistic(this.userInfo.farmId).then(res => { |
| | | getLandIsAreaStatistic(this.$farmId).then(res => { |
| | | console.log(res) |
| | | this.landIsAreaStatistic = res.data.data |
| | | }) |