update: 经营概况优化

This commit is contained in:
admin 2024-06-18 16:14:46 +08:00
parent efc830622e
commit 66e4bfcb47
1 changed files with 11 additions and 3 deletions

View File

@ -22,7 +22,7 @@
<view v-for="(item, index) in gridList1" :key="index"> <view v-for="(item, index) in gridList1" :key="index">
<text v-if="item.name">{{ item.name }}</text <text v-if="item.name">{{ item.name }}</text
><text v-if="item.name" ><text v-if="item.name"
>{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, 0) }} >{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, item.decimal) }}
{{ item.isBefore ? "" : item.unit }} {{ item.isBefore ? "" : item.unit }}
</text> </text>
</view> </view>
@ -33,7 +33,7 @@
<text v-if="item.name">{{ item.name }}</text <text v-if="item.name">{{ item.name }}</text
> >
<text :class="{'highLight': item.isHighLight || false}" v-if="item.name" <text :class="{'highLight': item.isHighLight || false}" v-if="item.name"
>{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, 0) }} >{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, item.decimal) }}
{{ item.isBefore ? "" : item.unit }} {{ item.isBefore ? "" : item.unit }}
</text> </text>
</view> </view>
@ -43,7 +43,7 @@
<view v-for="(item, index) in gridList3" :key="index"> <view v-for="(item, index) in gridList3" :key="index">
<text>{{ item.name }}</text <text>{{ item.name }}</text
><text :class="item.isHighLight ? 'highLight' : ''" ><text :class="item.isHighLight ? 'highLight' : ''"
>{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, 0)}} >{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num, item.decimal)}}
{{ item.isBefore ? "" : item.unit }} {{ item.isBefore ? "" : item.unit }}
</text> </text>
</view> </view>
@ -117,6 +117,7 @@ const gridList1 = reactive([
num: "", num: "",
unit: "¥", unit: "¥",
isBefore: true, isBefore: true,
decimal: 2,
}, },
{ {
name: "出货收入", name: "出货收入",
@ -124,6 +125,7 @@ const gridList1 = reactive([
num: "", num: "",
unit: "¥", unit: "¥",
isBefore: true, isBefore: true,
decimal: 2,
}, },
{ {
name: "其他收入", name: "其他收入",
@ -131,6 +133,7 @@ const gridList1 = reactive([
num: "", num: "",
unit: "¥", unit: "¥",
isBefore: true, isBefore: true,
decimal: 2,
}, },
{}, {},
{ {
@ -139,6 +142,7 @@ const gridList1 = reactive([
num: "", num: "",
unit: "¥", unit: "¥",
isBefore: true, isBefore: true,
decimal: 2,
}, },
{ {
name: "收货支出", name: "收货支出",
@ -146,6 +150,7 @@ const gridList1 = reactive([
num: "", num: "",
unit: "¥", unit: "¥",
isBefore: true, isBefore: true,
decimal: 2,
}, },
{ {
name: "其他支出", name: "其他支出",
@ -153,6 +158,7 @@ const gridList1 = reactive([
num: "", num: "",
unit: "¥", unit: "¥",
isBefore: true, isBefore: true,
decimal: 2,
}, },
{ {
name: "杂费支出", name: "杂费支出",
@ -160,6 +166,7 @@ const gridList1 = reactive([
num: "", num: "",
unit: "¥", unit: "¥",
isBefore: true, isBefore: true,
decimal: 2,
}, },
{ {
name: "运费支出", name: "运费支出",
@ -167,6 +174,7 @@ const gridList1 = reactive([
num: "", num: "",
unit: "¥", unit: "¥",
isBefore: true, isBefore: true,
decimal: 2,
}, },
]); ]);
const gridList2 = reactive([ const gridList2 = reactive([