智慧农业后台管理页面
数据统计农资没有数据不显示,加工列表名字变更,农产品地块选择面积保留两位小数
4 files modified
14 ■■■■■ changed files
src/views/farmplant/farmproductstock.vue 2 ●●● patch | view | raw | blame | history
src/views/farmplant/processlist.vue 4 ●●●● patch | view | raw | blame | history
src/views/statistics/stock.vue 7 ●●●●● patch | view | raw | blame | history
src/views/traceability/addTraceability.vue 1 ●●●● patch | view | raw | blame | history
src/views/farmplant/farmproductstock.vue
@@ -1170,7 +1170,7 @@
            selectByStrainId(strainId,this.$farmId).then((res)=>{
                var data = res.data.data
                data.forEach((e)=>{
                    e.detail = e.landName+"("+e.landArea+"亩)"+" 库存量"+e.weight+"公斤"
                    e.detail = e.landName+"("+(e.landArea-0).toFixed(2)+"亩)"+" 库存量"+e.weight+"公斤"
                })
                if(index == 0){//销售
                    const column = this.findObject(this.option.column, "id")
src/views/farmplant/processlist.vue
@@ -82,11 +82,11 @@
                        prop:"saleNum"
                    },
                    {
                        label: "产品",
                        label: "加工产品",
                        prop: "processName",
                    },
                    {
                        label: "产品数量",
                        label: "加工产品数量",
                        prop: "processNum"
                    },
                    {
src/views/statistics/stock.vue
@@ -394,7 +394,6 @@
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      console.log(params)
      params.deptId= this.farm.id;
      this.loading = true;
      const {releaseTimeRange} = this.query;
@@ -416,9 +415,9 @@
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        // this.data = this.data.filter((e)=>{
        //   return !(e.bfcknum == e.cgnum == e.dbcknum == e.dbrknum == e.lycknum == e.rknum == 0)
        // })
        this.data = this.data.filter((e)=>{
          return (e.bfcknum == e.cgnum == e.dbcknum == e.dbrknum == e.lycknum == e.rknum == 0)
        })
        this.loading = false;
        this.selectionClear();
      });
src/views/traceability/addTraceability.vue
@@ -674,7 +674,6 @@
        page.pageSize,
        Object.assign(params, this.query)
      ).then((res) => {
        console.log(res)
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;