From a35fd3ec62b1e97b6ca0baf0a40e710ed95f9f82 Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Thu, 27 Jul 2023 19:17:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=92=8C=E8=AF=A6=E6=83=8520230619?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mall/trade/order/index.vue | 58 ++----------------- .../mall/trade/order/tradeOrderDetail.vue | 16 ++++- 2 files changed, 18 insertions(+), 56 deletions(-) diff --git a/src/views/mall/trade/order/index.vue b/src/views/mall/trade/order/index.vue index f474ee10..eee64ef4 100644 --- a/src/views/mall/trade/order/index.vue +++ b/src/views/mall/trade/order/index.vue @@ -12,7 +12,7 @@ @@ -27,7 +27,7 @@ > @@ -48,7 +48,7 @@ @@ -58,7 +58,7 @@ @@ -363,7 +363,6 @@ const handleDropType = (command: string) => { } //所有页按钮 if (command === '2') { - initSelect() //重置之前选中的类容清空 orderSelect.selectAllFlag = !orderSelect.selectAllFlag if (orderSelect.selectAllFlag) { @@ -379,6 +378,7 @@ const handleDropType = (command: string) => { for (i; i < list.value.length; i++) { list.value[i]['itemSelect'] = false } + initSelect() //重置之前选中的类容清空 } } } @@ -494,54 +494,6 @@ const getList = async () => { } } -// const getList = async () => { -// loading.value = true -// try { -// const data = await TradeOrderApi.getOrderList(queryParams) -// list.value = data.list -// total.value = data.total -// let i = 0 -// //给数组添加选中属性 itemSelect 默认为false 当前状态如果时全选 则新加载的页面都为选中状态 - -// if (orderSelect.selectAllFlag) { -// if (orderSelect.selectData && orderSelect.selectData.has(queryParams.pageNo)) { -// //页面已经加载过了 -// for (i = 0; i < list.value.length; i++) { -// if (orderSelect.selectData.get(queryParams.pageNo)!.has(list.value[i].id)) { -// list.value[i]['itemSelect'] = true //之前已经选取过了 -// } else { -// list.value[i]['itemSelect'] = false -// } -// } -// } else { -// //首次加载页面 默认全部选中 -// orderSelect.selectData.set(queryParams.pageNo, new Set()) -// for (i = 0; i < list.value.length; i++) { -// list.value[i]['itemSelect'] = true -// orderSelect.selectData.get(queryParams.pageNo)!.add(list.value[i].id) -// } -// } -// } else { -// if (orderSelect.selectData && orderSelect.selectData.has(queryParams.pageNo)) { -// //页面已经加载过了 -// for (i = 0; i < list.value.length; i++) { -// if (orderSelect.selectData.get(queryParams.pageNo)!.has(list.value[i].id)) { -// list.value[i]['itemSelect'] = true //之前已经选取过了 -// } else { -// list.value[i]['itemSelect'] = false -// } -// } -// } else { -// for (i; i < list.value.length; i++) { -// list.value[i]['itemSelect'] = false //设置状态为未选中状态 -// } -// } -// } -// } finally { -// loading.value = false -// } -// } - /** * 跳转订单详情 */ diff --git a/src/views/mall/trade/order/tradeOrderDetail.vue b/src/views/mall/trade/order/tradeOrderDetail.vue index 2cba774b..9f2cf3fc 100644 --- a/src/views/mall/trade/order/tradeOrderDetail.vue +++ b/src/views/mall/trade/order/tradeOrderDetail.vue @@ -124,11 +124,14 @@ parseFloat((order.adjustPrice / 100.0) as unknown as string).toFixed(2) }} + ¥{{ - parseFloat((order.totalPrice - order.totalPrice / 100.0) as unknown as string).toFixed(2) + parseFloat(((order.totalPrice - order.totalPrice) / 100.0) as unknown as string).toFixed( + 2 + ) }} @@ -163,6 +166,7 @@ +
@@ -222,6 +226,7 @@