|
@@ -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) {
|