下单退款相关更新
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<view class="u-m-l-16">{{formatTime(data.createTime)}}</view>
|
||||
</view>
|
||||
<view class="u-m-t-32">
|
||||
<view class="u-font-32">{{goosZhonglei}}种商品,共{{goodsNumber}}件</view>
|
||||
<view class="u-font-32">共{{data.goods.length}}件商品</view>
|
||||
<view class="border-bottom u-p-b-32">
|
||||
<view class="" v-for="(item,index) in data.goods" :key="index">
|
||||
<view class="u-flex u-row-between u-col-top u-m-t-32" v-if="item.productId!=-999">
|
||||
@@ -38,8 +38,8 @@
|
||||
{{item.skuName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex u-flex-1 u-row-right">
|
||||
<view>×{{item.num}}</view>
|
||||
<view class="u-flex u-flex-1 u-row-right" style="align-items: center;">
|
||||
<view style="margin-right: 10rpx;">×{{item.num}}</view>
|
||||
<template v-if="item.userCouponId">
|
||||
<view class="u-text-right u-relative" :style="computedPriceStyle()">
|
||||
<text class="line-th">¥{{item.payAmount}}</text>
|
||||
@@ -109,10 +109,11 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, reactive, ref, watch } from 'vue';
|
||||
import dayjs from 'dayjs';
|
||||
import orderEnum from '@/commons/orderEnum.js'
|
||||
import go from '@/commons/utils/go.js'
|
||||
import { computed, reactive, ref, watch } from 'vue';
|
||||
import { mathFloorPrice } from '@/commons/utils/goodsUtil.js'
|
||||
const emits = defineEmits(['printOrder'])
|
||||
const props = defineProps({
|
||||
data: {
|
||||
@@ -139,17 +140,7 @@
|
||||
|
||||
const priceSize = 9
|
||||
let minWidth=ref(36)
|
||||
|
||||
/**
|
||||
* 计算菜品价格
|
||||
* @param {Object} item
|
||||
*/
|
||||
function goodsPriceAmount(item) {
|
||||
const total=(item.payAmount * item.num).toFixed(2)
|
||||
const minW=total.length * priceSize + 15
|
||||
minWidth.value=minW<minWidth.value?minWidth.value:minW
|
||||
return total
|
||||
}
|
||||
|
||||
|
||||
function computedPriceStyle() {
|
||||
return {
|
||||
@@ -166,7 +157,6 @@
|
||||
} else {
|
||||
$goodsMap[goods.productId] = goods.num * 1
|
||||
goosZhonglei.value += 1
|
||||
goodsNumber.value += goods.num * 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user