From 8aed4054c9076b647f663633ebfa4ce84ac43c02 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Fri, 05 Aug 2022 09:34:29 +0800
Subject: [PATCH] 销售、出库、损耗、加工记录列表显示单位
---
src/views/farmplant/inventorylist.vue | 4 ++++
src/views/farmplant/salelist.vue | 6 ++++++
src/views/farmplant/processlist.vue | 5 +++++
src/views/farmplant/retrievallist.vue | 4 ++++
4 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/views/farmplant/inventorylist.vue b/src/views/farmplant/inventorylist.vue
index d2e85e5..1b7c101 100644
--- a/src/views/farmplant/inventorylist.vue
+++ b/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
}
diff --git a/src/views/farmplant/processlist.vue b/src/views/farmplant/processlist.vue
index fdda226..615d51a 100644
--- a/src/views/farmplant/processlist.vue
+++ b/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
}
diff --git a/src/views/farmplant/retrievallist.vue b/src/views/farmplant/retrievallist.vue
index bc87616..63d6986 100644
--- a/src/views/farmplant/retrievallist.vue
+++ b/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
}
diff --git a/src/views/farmplant/salelist.vue b/src/views/farmplant/salelist.vue
index 2898c12..7202120 100644
--- a/src/views/farmplant/salelist.vue
+++ b/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
}
--
Gitblit v1.9.3