代码更新

This commit is contained in:
GaoHao
2025-03-10 09:14:57 +08:00
parent 4f65b08c06
commit 490c513f48
48 changed files with 1162 additions and 537 deletions

View File

@@ -25,11 +25,11 @@
<!-- 占位 -->
<view class="color-333 item border-top u-flex u-row-center u-row-between"
v-for="(item,index) in data" :key="index">
<view class="">
<view class="u-line-1">{{item.name}}</view>
<view class="u-m-t-10 u-font-24 color-666 u-line-1">{{item.specInfo||''}}</view>
<view>
<view class="up-line-1" >{{item.name}}</view>
<view class="u-m-t-10 u-font-24 color-666 up-line-1">{{item.specInfo||''}}</view>
</view>
<view class="u-flex">
<view class="u-flex" style="flex-shrink: 0;">
<view class="font-bold red u-m-r-32">{{formatPrice(item.lowPrice*item.number) }}</view>
<view class="u-flex" @tap="updateNumber(false,index,item)">
<image src="/pagesCreateOrder/static/images/icon-reduce-black.svg" class="icon" mode="">
@@ -51,7 +51,7 @@
</view>
<view class="icon-car-box" @tap="toggleGoods">
<image src="/pagesCreateOrder/static/images/icon-car.svg" class="icon-car" />
<view class="dot">{{goodsNumber}}</view>
<view class="dot" v-if="goodsNumber>0">{{goodsNumber}}</view>
</view>
<view class="price font-bold u-flex">
<view></view>
@@ -152,9 +152,9 @@
if (props.data.length <= 0) {
return infoBox.showToast('还没有选择商品')
}
const { name, maxCapacity, status, type } = props.table
const { name, status, type } = props.table
console.log(props.table)
if (props.table.id == '') {
if (props.table.id == ''&&props.table.tableCode == '') {
go.to('PAGES_CONFIRM_ORDER', {
isCreateOrderToDetail: props.isCreateOrderToDetail ? 1 : 0
})
@@ -163,8 +163,8 @@
go.to('PAGES_CONFIRM_ORDER', {
type: type,
tableId: props.table.id,
tableCode: props.table.tableCode,
name:name,
maxCapacity:maxCapacity,
status:status,
isCreateOrderToDetail: props.isCreateOrderToDetail ? 1 : 0
})