订单详情页面隐藏一些暂时没有的功能

This commit is contained in:
YeMingfei666 2024-10-11 15:45:18 +08:00
parent 6460dcf33d
commit ec509d1186
4 changed files with 13 additions and 10 deletions

View File

@ -92,7 +92,7 @@
<view class="u-flex u-row-between u-m-t-32"> <view class="u-flex u-row-between u-m-t-32">
<view>退款原因</view> <view>退款原因</view>
<view class="color-999"> <view class="color-999">
<text class="">0.00</text> <text class="">{{orderInfo.refundRemark||''}}</text>
</view> </view>
</view> </view>
<view class="u-flex u-row-between u-m-t-32 u-p-b-24 border-bottom"> <view class="u-flex u-row-between u-m-t-32 u-p-b-24 border-bottom">

View File

@ -20,10 +20,10 @@
<view>支付方式</view> <view>支付方式</view>
<view>{{data.payType||''}}</view> <view>{{data.payType||''}}</view>
</view> </view>
<view class="u-flex u-row-between u-m-t-20"> <!-- <view class="u-flex u-row-between u-m-t-20">
<view>预约时间</view> <view>预约时间</view>
<view></view> <view></view>
</view> </view> -->
<view class="u-flex u-row-between u-m-t-20"> <view class="u-flex u-row-between u-m-t-20">
<view>下单时间</view> <view>下单时间</view>
<view><up-text v-if="data.createdAt" mode="date" :text="data.createdAt"></up-text></view> <view><up-text v-if="data.createdAt" mode="date" :text="data.createdAt"></up-text></view>
@ -32,10 +32,10 @@
<view>订单编号</view> <view>订单编号</view>
<view>{{data.orderNo}}</view> <view>{{data.orderNo}}</view>
</view> </view>
<view class="u-flex u-row-between u-m-t-20"> <!-- <view class="u-flex u-row-between u-m-t-20">
<view>商家备注</view> <view>商家备注</view>
<my-button plain shape="circle" :width="160" :height="60">编辑</my-button> <my-button plain shape="circle" :width="160" :height="60">编辑</my-button>
</view> </view> -->
</view> </view>
</template> </template>

View File

@ -12,7 +12,7 @@
:data="orderDetail.seatFee"></extra-vue> :data="orderDetail.seatFee"></extra-vue>
</template> </template>
<order-vue :data="orderDetail.info" :table="options" :seatFee="orderDetail.seatFee"></order-vue> <order-vue :data="orderDetail.info" :table="options" :seatFee="orderDetail.seatFee"></order-vue>
<step-vue></step-vue> <!-- <step-vue></step-vue> -->
<view style="height: 200rpx;"></view> <view style="height: 200rpx;"></view>
<view class="u-fixed bottom bg-fff "> <view class="u-fixed bottom bg-fff ">
<view class="u-flex u-abso"> <view class="u-flex u-abso">
@ -95,8 +95,8 @@
salePrice salePrice
} = seatFee } = seatFee
go.to('PAGES_ORDER_TUIKUAN', { go.to('PAGES_ORDER_TUIKUAN', {
id:orderDetail.info.id, orderId:orderDetail.info.id,
cartId:seatFee.id, id:seatFee.id,
productId, productId,
productSkuId, productSkuId,
productName:name, productName:name,
@ -253,7 +253,6 @@
for (let i in res.detailList) { for (let i in res.detailList) {
const goods = res.detailList[i] const goods = res.detailList[i]
if (goods.productName != '客座费') { if (goods.productName != '客座费') {
console.log(goods);
if (goodsMap.hasOwnProperty(goods.placeNum)) { if (goodsMap.hasOwnProperty(goods.placeNum)) {
goodsMap[goods.placeNum].push(goods) goodsMap[goods.placeNum].push(goods)
} else { } else {

View File

@ -160,9 +160,13 @@
return infoBox.showToast('退款商品数量不能为0') return infoBox.showToast('退款商品数量不能为0')
} }
const selTag=tuikuan.list[tuikuan.sel] const selTag=tuikuan.list[tuikuan.sel]
const noteResult=`${selTag?selTag:''}${note.value?(','+note.value):''}`
if (!noteResult) {
return infoBox.showToast('请输入或选择退款原因!')
}
await $returnOrder({ await $returnOrder({
"orderId": option.orderId, "orderId": option.orderId,
"note":`${selTag?selTag:''}${note.value?(','+note.value):''}` , "note":noteResult,
"orderDetails":orderDetail.goodsList.filter(v=>v.number*1).map(v=>{ "orderDetails":orderDetail.goodsList.filter(v=>v.number*1).map(v=>{
return { return {
id:v.id, id:v.id,