智慧农业后台管理页面
guoshilong
2022-08-05 8aed4054c9076b647f663633ebfa4ce84ac43c02
销售、出库、损耗、加工记录列表显示单位
4 files modified
19 ■■■■■ changed files
src/views/farmplant/inventorylist.vue 4 ●●●● patch | view | raw | blame | history
src/views/farmplant/processlist.vue 5 ●●●●● patch | view | raw | blame | history
src/views/farmplant/retrievallist.vue 4 ●●●● patch | view | raw | blame | history
src/views/farmplant/salelist.vue 6 ●●●●● patch | view | raw | blame | history
src/views/farmplant/inventorylist.vue
@@ -111,6 +111,10 @@
            getInventoryPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => {
                if (res.data.code == 200) {
                    this.data = res.data.data.records
                     //单位处理
                    this.data.forEach((e)=>{
                        e.saleNum = e.saleNum + " 公斤"
                    })
                    this.page.total = res.data.data.total
                    this.loading = false
                }
src/views/farmplant/processlist.vue
@@ -112,6 +112,11 @@
            getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => {
                if (res.data.code == 200) {
                    this.data = res.data.data.records
                    //单位处理
                    this.data.forEach((e)=>{
                        e.saleNum = e.saleNum + " 公斤"
                        e.processNum = e.processNum + " 公斤"
                    })
                    this.page.total = res.data.data.total
                    this.loading = false
                }
src/views/farmplant/retrievallist.vue
@@ -110,6 +110,10 @@
            getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => {
                if (res.data.code == 200) {
                    this.data = res.data.data.records
                    //单位处理
                    this.data.forEach((e)=>{
                        e.saleNum = e.saleNum + " 公斤"
                    })
                    this.page.total = res.data.data.total
                    this.loading = false
                }
src/views/farmplant/salelist.vue
@@ -114,7 +114,13 @@
            this.loading = true
            getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => {
                if (res.data.code == 200) {
                    console.log(res)
                    this.data = res.data.data.records
                    //单位处理
                    this.data.forEach((e)=>{
                        e.saleNum = e.saleNum + " 公斤"
                        e.salePrice = e.salePrice + " 元/公斤"
                    })
                    this.page.total = res.data.data.total
                    this.loading = false
                }