戴艳蓉 3 years ago
parent
commit
b86d069c81
2 changed files with 15 additions and 1 deletions
  1. 11 1
      src/views/mobile/order/index.vue
  2. 4 0
      src/views/mobile/stock/index.vue

+ 11 - 1
src/views/mobile/order/index.vue

@@ -261,8 +261,13 @@ export default {
           label: "用户名",
         },
         {
-          prop: "order_num",
+          prop: "order_goods_num",
           label: "订单数量",
+          width: "100px",
+        },
+        {
+          prop: "order_goods_num_t",
+          label: "总克重",
           width: "80px",
         },
         {
@@ -350,6 +355,11 @@ export default {
       const res = await asyncRequest.list(this.parmValue);
       if (res && res.code === 0 && res.data) {
         this.tableData = res.data.list;
+        this.tableData.forEach((v1) => {
+          v1.order_goods_num =
+            v1.order_num + v1.unit + "/" + v1.unit_weight + "kg";
+          v1.order_goods_num_t = (v1.order_num * 1 * (v1.unit_weight * 1))+ "kg";
+        });
         console.log(this.tableData);
         this.pageInfo.total = Number(res.data.count);
       } else if (res && res.code >= 100 && res.code <= 104) {

+ 4 - 0
src/views/mobile/stock/index.vue

@@ -341,6 +341,10 @@ export default {
       const res = await asyncRequest.list(this.parmValue);
       if (res && res.code === 0 && res.data) {
         this.tableData = res.data.list;
+        this.tableData.forEach(v1 => {
+          v1.stock_balance+="kg"
+          
+        });
         this.pageInfo.total = Number(res.data.count);
       } else if (res && res.code >= 100 && res.code <= 104) {
         await this.logout();