feat: 商品类型的改动commodityTypeCode改为orderType

This commit is contained in:
2026-03-26 22:45:35 +08:00
parent 0b33727815
commit 2ed4373a8f
6 changed files with 28 additions and 27 deletions

View File

@@ -1,11 +1,11 @@
<template>
<view
v-if="commodityTypeCode === '0'"
v-if="orderType === '0'"
class="border-box bg-white p-12 rounded-12 mb-12"
>
<!-- 酒店类型入住离店日期部分 -->
<DateRangeSection
v-if="orderData.commodityTypeCode === '0'"
v-if="orderData.orderType === 0"
:selectedDate="selectedDate"
/>
@@ -32,7 +32,7 @@
</view>
<view
v-if="commodityTypeCode !== '0'"
v-if="orderType !== '0'"
class="border-box bg-white p-12 rounded-12 mb-12"
>
<view
@@ -80,12 +80,12 @@ const selectedDate = computed(() => {
};
});
const commodityTypeCode = computed(() => props.orderData.commodityTypeCode);
const orderType = computed(() => props.orderData.orderType);
const commodityAmount = computed(() => {
// 门票单位:张、餐饮单位:份
const { commodityAmount } = props.orderData;
return commodityTypeCode.value === "2"
return orderType.value === "2"
? `${parseInt(commodityAmount)}`
: `${parseInt(commodityAmount)}`;
});