feat: 代客下单更新,修复店铺列表编辑展示问题

This commit is contained in:
2025-03-04 10:34:19 +08:00
parent b71ca19c0d
commit bd59f05d26
19 changed files with 953 additions and 312 deletions

View File

@@ -58,6 +58,8 @@ const contentConfig: IContentConfig = {
label: "订单原金额 不含折扣价格",
align: "center",
prop: "originAmount",
templet: 'custom',
slotName: 'originAmount',
width: 120,
hidden: true,
},

View File

@@ -20,6 +20,9 @@
@operat-click="handleOperatClick"
@filter-change="handleFilterChange"
>
<template #originAmount="scope">
{{ returnOriginAmount(scope.row) }}
</template>
<template #status="scope">
<el-tag :type="scope.row[scope.prop] == 1 ? 'success' : 'info'">
{{ scope.row[scope.prop] == 1 ? "启用" : "禁用" }}
@@ -132,6 +135,16 @@ const {
handleFilterChange,
} = usePage();
//计算订单原金额
function returnOriginAmount(order: OrderInfoVo) {
console.log(order);
let amount = 0;
// order.goods.forEach((item) => {
// amount += item.productPrice * item.number;
// });
return amount;
}
// 新增
async function handleAddClick() {
addModalRef.value?.setModalVisible();