智慧农业后台管理页面
guoshilong
2022-08-30 e17062bdd2d7cde70f14483435a2a708df813652
销售、损耗记录表,加工产品后加上原材料
2 files modified
7 ■■■■■ changed files
src/views/farmplant/inventorylist.vue 3 ●●●●● patch | view | raw | blame | history
src/views/farmplant/salelist.vue 4 ●●●● patch | view | raw | blame | history
src/views/farmplant/inventorylist.vue
@@ -126,6 +126,9 @@
                     //单位处理
                    this.data.forEach((e)=>{
                        e.saleNum = e.saleNum + " 公斤"
                        if(e.type == 1){
                            e.proName = e.proName+"("+e.strainName+")"
                        }
                    })
                    this.page.total = res.data.data.total
                    this.loading = false
src/views/farmplant/salelist.vue
@@ -126,12 +126,16 @@
            this.loading = true
            params['farmId'] = this.$farmId
            getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => {
                console.log(res)
                if (res.data.code == 200) {
                    this.data = res.data.data.records
                    //单位处理
                    this.data.forEach((e)=>{
                        e.saleNum = e.saleNum + " 公斤"
                        e.salePrice = e.salePrice + " 元/公斤"
                        if(e.type == 1){
                            e.proName = e.proName+"("+e.strainName+")"
                        }
                    })
                    this.page.total = res.data.data.total
                    this.loading = false