feat: 代客下单更新,修复店铺列表编辑展示问题
This commit is contained in:
@@ -58,6 +58,8 @@ const contentConfig: IContentConfig = {
|
||||
label: "订单原金额 不含折扣价格",
|
||||
align: "center",
|
||||
prop: "originAmount",
|
||||
templet: 'custom',
|
||||
slotName: 'originAmount',
|
||||
width: 120,
|
||||
hidden: true,
|
||||
},
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user