|
@@ -50,35 +50,42 @@
|
|
|
<template #netWeight="{ item }">
|
|
|
<div>
|
|
|
<div v-for="(i, index) in item.dataJsonListCopy" :key="index">
|
|
|
- {{ i.netWeight + "kg" }}
|
|
|
+ {{ i.netWeight + " kg" }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #roughWeight="{ item }">
|
|
|
<div>
|
|
|
<div v-for="(i, index) in item.dataJsonListCopy" :key="index">
|
|
|
- {{ i.roughWeight + "kg" }}
|
|
|
+ {{ i.roughWeight + " kg" }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #boxLong="{ item }">
|
|
|
<div>
|
|
|
<div v-for="(i, index) in item.dataJsonListCopy" :key="index">
|
|
|
- {{ i.boxLong + "cm" }}
|
|
|
+ {{ i.boxLong + " cm" }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #boxWide="{ item }">
|
|
|
<div>
|
|
|
<div v-for="(i, index) in item.dataJsonListCopy" :key="index">
|
|
|
- {{ i.boxWide + "cm" }}
|
|
|
+ {{ i.boxWide + " cm" }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #boxHigh="{ item }">
|
|
|
<div>
|
|
|
<div v-for="(i, index) in item.dataJsonListCopy" :key="index">
|
|
|
- {{ i.boxHigh + "cm" }}
|
|
|
+ {{ i.boxHigh + " cm" }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #bomVolume="{ item }">
|
|
|
+ <div>
|
|
|
+ <div v-for="(i, index) in item.dataJsonListCopy" :key="index">
|
|
|
+ {{ i.bomVolume + " m³" }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -570,22 +577,29 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "体积",
|
|
|
+ slot: "bomVolume",
|
|
|
+ width: 90,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "总净重",
|
|
|
- prop: "bomVolume",
|
|
|
+ prop: "netWeight",
|
|
|
width: 120,
|
|
|
},
|
|
|
- render(bomVolume) {
|
|
|
- return bomVolume + "m³";
|
|
|
+ render(netWeight) {
|
|
|
+ return netWeight + " kg";
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "总毛重",
|
|
|
- prop: "bomVolume",
|
|
|
+ prop: "roughWeight",
|
|
|
width: 120,
|
|
|
},
|
|
|
- render(bomVolume) {
|
|
|
- return bomVolume + "m³";
|
|
|
+ render(roughWeight) {
|
|
|
+ return roughWeight + " kg";
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -595,7 +609,7 @@ const config = computed(() => {
|
|
|
width: 120,
|
|
|
},
|
|
|
render(bomVolume) {
|
|
|
- return bomVolume + "m³";
|
|
|
+ return bomVolume + " m³";
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -726,15 +740,14 @@ const getList = async (req) => {
|
|
|
roughWeight: jarr[4],
|
|
|
netWeight: jarr[5],
|
|
|
};
|
|
|
- newArr = [...newArr, new Array(Number(jarr[6]) - 1).fill(obj)];
|
|
|
+ let createArr = new Array(Number(jarr[6])).fill(obj);
|
|
|
+ newArr = [...newArr, ...createArr];
|
|
|
}
|
|
|
e.dataJsonListCopy = newArr;
|
|
|
}
|
|
|
sourceList.value.data = res.rows;
|
|
|
sourceList.value.pagination.total = res.total;
|
|
|
- setTimeout(() => {
|
|
|
- loading.value = false;
|
|
|
- }, 200);
|
|
|
+ loading.value = false;
|
|
|
});
|
|
|
};
|
|
|
|