智慧农业大数据平台
xiebin
2022-08-26 c40973b0eade692732f19f0394fa68fcfa9332c4
经营概况-农产品监管添加筛选
2 files modified
16 ■■■■ changed files
src/components/date-select/index.vue 4 ●●●● patch | view | raw | blame | history
src/views/manage/index.vue 12 ●●●● patch | view | raw | blame | history
src/components/date-select/index.vue
@@ -57,6 +57,8 @@
                    this.$parent.getCltjTime(currentTime)
                } else if (this.type == 'symSelect') {
                    this.$parent.getSymTime(currentTime)
                } else if (this.type == 'ncpjgSelect') {
                    this.$parent.productsSupervise(currentTime)
                }
            },
            selectChange (e) {
@@ -71,6 +73,8 @@
                    this.$parent.getCltjTime(currentTime)
                } else if (this.type == 'symSelect') {
                    this.$parent.getSymTime(currentTime)
                } else if (this.type == 'ncpjgSelect') {
                    this.$parent.productsSupervise(currentTime)
                }
            },
            gettime (data) {
src/views/manage/index.vue
@@ -182,7 +182,7 @@
                            </div>
                        </div>
                        <div class="dataChoose">
                            <date-select :type="'nztrSelect'" v-if="trpOrNcp == 'ncp'"></date-select>
                            <date-select :type="'ncpjgSelect'" v-if="trpOrNcp == 'ncp'"></date-select>
                        </div>
                        <div class="more" @click="popDetailedSupervise">
                            明细
@@ -735,7 +735,7 @@
            // 农事操作
            this.farmingRecords()
            // 农产品监管
            this.productsSupervise(n)
            this.productsSupervise(y)
            // 农资出入库记录
            this.pageCountNzCrk()
            // 溯源次数统计
@@ -1415,6 +1415,9 @@
            params.year = year
            productsSupervise(Object.assign(params)).then((res) => {
                this.NcpJg = res.data.data
                if (this.trpOrNcp == 'ncp') {
                    this.initNcpBar("TrpEcharts")
                }
            })
        },
        // 农产品投入
@@ -1438,7 +1441,10 @@
                this.nztr = res.data.data.records
                this.nztrAll = res.data.data.records
                // 投入品监管图表
                this.initTrpBar("TrpEcharts")
                // this.initTrpBar("TrpEcharts")
                if (this.trpOrNcp == "trp") {
                    this.initTrpBar("TrpEcharts")
                }
            })
        },
        // 统计市场流通/去年流通量/本月流通量