From 3d287016c0b806f930e3d027819099bfb41bb9e8 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 18 Nov 2024 18:24:28 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E6=8A=B5=E6=89=A3=E5=88=B8?= =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order_manage/order_goods_util.js | 3 +- .../tool/Instead/components/quans copy.vue | 456 ++++++++++++++++++ src/views/tool/Instead/components/quans.vue | 331 +++++++------ src/views/tool/Instead/index.vue | 36 +- src/views/tool/Instead/quan_util.js | 206 ++++++++ src/views/tool/Instead/util.js | 2 +- 6 files changed, 870 insertions(+), 164 deletions(-) create mode 100644 src/views/tool/Instead/components/quans copy.vue create mode 100644 src/views/tool/Instead/quan_util.js diff --git a/src/views/order_manage/order_goods_util.js b/src/views/order_manage/order_goods_util.js index d12b29c..c38e1e9 100644 --- a/src/views/order_manage/order_goods_util.js +++ b/src/views/order_manage/order_goods_util.js @@ -17,7 +17,8 @@ export function canTuicai(orderInfo,item){ return orderInfo.status=='unpaid'&&orderInfo.useType!='dine-in-before'&& item.status!='return' } export function canTuiKuan(orderInfo,item){ - return orderInfo.status!='unpaid'&& item.status!='return'&&item.status!='refund'&&item.status!='refunding' + // return orderInfo.status!='unpaid'&& item.status!='return'&&item.status!='refund'&&item.status!='refunding' + return orderInfo.status=='closed'&& item.status!='return'&&item.status!='refund'&&item.status!='refunding' && !item.userCouponId } export function isTui(item){ return item.status=='return'||item.status=='refund'||item.status=='refunding' diff --git a/src/views/tool/Instead/components/quans copy.vue b/src/views/tool/Instead/components/quans copy.vue new file mode 100644 index 0000000..b7822aa --- /dev/null +++ b/src/views/tool/Instead/components/quans copy.vue @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + {{ scope.row.type == 1 ? "优惠券" : "商品券" }} + + + + + + ¥{{ scope.row.discountAmount }} + + + + + + + 支付满 + + {{ scope.row.fullAmount }} + + 元可用 + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.productName }} + x{{ scope.row.num || "" }} + + + + + + + + ¥{{ scope.row.discountAmount }} + + + + + + {{ scope.row.type == 1 ? "优惠券" : "商品券" }} + + + + + + + + + 已选优惠券 + + + + + + + {{ scope.row.type == 1 ? "优惠券" : "商品券" }} + + + + + + + + + + {{ scope.row.productName }} + x{{ scope.row.num || "" }} + + + + + + + + ¥{{ scope.row.discountAmount }} + + + + + + + + 删除 + + + + + 抵扣: + {{ AllCouponPrice }} + + + + 取消 + 确定 + + + + + + + + \ No newline at end of file diff --git a/src/views/tool/Instead/components/quans.vue b/src/views/tool/Instead/components/quans.vue index 9cb1ebd..2de1167 100644 --- a/src/views/tool/Instead/components/quans.vue +++ b/src/views/tool/Instead/components/quans.vue @@ -63,11 +63,19 @@ @cell-click="productCouponClick" empty-text="无可用商品券" :data="quans.productCoupon" - tooltip-effect="dark" style="width: 100%" - @selection-change="productCouponChange" > - + + + + + @@ -90,13 +98,13 @@ - + {{ scope.row.type == 1 ? "优惠券" : "商品券" }} @@ -104,6 +112,11 @@ + + + {{ scope.row.use ? "可以" : "不可用" }} + + @@ -118,23 +131,32 @@ {{ scope.row.type == 1 ? "优惠券" : "商品券" }} - + - - {{ scope.row.productName }} + + + + + {{ scope.row.productName }} + x{{ scope.row.num || "" }} + - + ¥{{ scope.row.discountAmount }} + + ¥{{ returnProDiscount(scope.row, scope.row.index) }} + @@ -147,9 +169,22 @@ - - 抵扣: - {{ AllCouponPrice }} + + + + 抵扣金额: + ¥{{ AllCouponPrice }} + + + 支付金额: + ¥{{ payPrice }} + + ¥{{ orderPrice }} + @@ -165,11 +200,21 @@