|
|
@@ -15,13 +15,14 @@
|
|
|
</view>
|
|
|
<view class="info">
|
|
|
<view class="info-table">
|
|
|
- <text>テーブル番号:{{ tableNo }}番号</text>
|
|
|
+ <!-- {{ language.languageConversion(LanguageChange,"テーブル番号") }} -->
|
|
|
+ <text>{{ languageConversion("テーブル番号") }} :{{ tableNo }}{{ languageConversion("番号") }}</text>
|
|
|
<button @click="openNumberDialog()">
|
|
|
- <text>{{ tablePerson }}人</text>
|
|
|
+ <text>{{ tablePerson }}{{ languageConversion("人") }}</text>
|
|
|
<view class="edit-icon"></view>
|
|
|
</button>
|
|
|
</view>
|
|
|
- <text class="info-time">来店時間:{{ enterTime?$moment(enterTime).format('HH:mm'):'-' }}</text>
|
|
|
+ <text class="info-time">{{ languageConversion("来店時間") }}:{{ enterTime?$moment(enterTime).format('HH:mm'):'-' }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="top-right">
|
|
|
@@ -31,7 +32,7 @@
|
|
|
src="@/static/public/img/call-pad.png"
|
|
|
>
|
|
|
</image>
|
|
|
- 店員を呼ぶ
|
|
|
+ {{ languageConversion("店員を呼ぶ") }}
|
|
|
</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -85,9 +86,9 @@
|
|
|
/>
|
|
|
</view>
|
|
|
<view class="content">
|
|
|
- <text>カート ¥{{ shoppingCardMoney }}</text>
|
|
|
+ <text>{{ languageConversion("カート") }} ¥{{ shoppingCardMoney }}</text>
|
|
|
<text
|
|
|
- >合計金額 ¥{{ allTotalAmount }} | 注文済料 ¥{{ orderTotalAmount }}
|
|
|
+ >{{ languageConversion("合計金額") }} ¥{{ allTotalAmount }} | {{ languageConversion("注文済料") }} ¥{{ orderTotalAmount }}
|
|
|
</text
|
|
|
>
|
|
|
</view>
|
|
|
@@ -161,21 +162,21 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 选择语言弹窗 -->
|
|
|
- <LanguageDialog ref="languageDialogRef"></LanguageDialog>
|
|
|
+ <LanguageDialog ref="languageDialogRef" @get-language-change="getLanguageChange"></LanguageDialog>
|
|
|
|
|
|
<!-- 输入人数弹窗 -->
|
|
|
<view class="number-popup">
|
|
|
<uni-popup ref="numberPopup" type="dialog">
|
|
|
<uni-popup-dialog>
|
|
|
<view class="popup-title">
|
|
|
- <view class="title-content">お食事の人数</view>
|
|
|
+ <view class="title-content">{{ languageConversion("お食事の人数") }}</view>
|
|
|
<view class="close-btn" @click="closeNumberDialog()"></view>
|
|
|
</view>
|
|
|
<view class="popup-content">
|
|
|
<view class="number-input">
|
|
|
<input
|
|
|
class="uni-input"
|
|
|
- placeholder="お食事の人数入力"
|
|
|
+ :placeholder="languageConversion('お食事の人数入力')"
|
|
|
:value="inputNumberValue"
|
|
|
/>
|
|
|
<view class="suffix-divider"></view>
|
|
|
@@ -213,7 +214,7 @@
|
|
|
</view>
|
|
|
<view class="food-demand">
|
|
|
<view class="demand-weight demand-checkbox">
|
|
|
- <view class="text">份量</view>
|
|
|
+ <view class="text">{{ languageConversion("份量") }}</view>
|
|
|
<uni-data-checkbox
|
|
|
mode="tag"
|
|
|
v-model="demandWeight"
|
|
|
@@ -221,7 +222,7 @@
|
|
|
></uni-data-checkbox>
|
|
|
</view>
|
|
|
<view class="demand-doneness demand-checkbox">
|
|
|
- <view class="text">熟度</view>
|
|
|
+ <view class="text">{{ languageConversion("熟度") }}</view>
|
|
|
<uni-data-checkbox
|
|
|
mode="tag"
|
|
|
v-model="demandDoneness"
|
|
|
@@ -230,9 +231,9 @@
|
|
|
</view>
|
|
|
<view class="demand-material demand-checkbox">
|
|
|
<view class="text">
|
|
|
- <view>小料</view>
|
|
|
+ <view>{{ languageConversion("小料") }}</view>
|
|
|
<view class="text-tag">
|
|
|
- <text>多选</text>
|
|
|
+ <text>{{ languageConversion("多选") }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<uni-data-checkbox
|
|
|
@@ -269,7 +270,7 @@
|
|
|
/>
|
|
|
</view>
|
|
|
<view class="add-btn">
|
|
|
- <button @click="addShopping()">カートに追加</button>
|
|
|
+ <button @click="addShopping()">{{ languageConversion("カートに追加") }}</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -282,7 +283,7 @@
|
|
|
<uni-popup ref="orderPopup" type="dialog">
|
|
|
<uni-popup-dialog>
|
|
|
<view class="popup-title">
|
|
|
- <view class="title-content">注文</view>
|
|
|
+ <view class="title-content">{{ languageConversion("注文") }}</view>
|
|
|
<view class="close-btn" @click="closeOrderDialog()"></view>
|
|
|
</view>
|
|
|
<view class="popup-content">
|
|
|
@@ -301,7 +302,7 @@
|
|
|
class="tab-right_item"
|
|
|
>
|
|
|
<view class="tab-block" @click="orderTabChange(item)">
|
|
|
- <text>{{ item.text }}</text>
|
|
|
+ <text>{{ languageConversion(item.text) }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -312,17 +313,17 @@
|
|
|
<table ref="shoppingTable" class="table-style" :key="shopTableKey">
|
|
|
<thead>
|
|
|
<tr class="table-head">
|
|
|
- <th align="left">料理名前</th>
|
|
|
- <th width="100" align="center">数量</th>
|
|
|
- <th width="60" align="center">単価</th>
|
|
|
- <th width="60" align="center">合計金額</th>
|
|
|
+ <th align="left">{{ languageConversion("料理名前") }}</th>
|
|
|
+ <th width="100" align="center">{{ languageConversion("数量") }}</th>
|
|
|
+ <th width="60" align="center">{{ languageConversion("単価") }}</th>
|
|
|
+ <th width="60" align="center">{{ languageConversion("合計金額") }}</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<view v-if="shoppingList.length === 0" class="m-t-35">
|
|
|
<u-empty
|
|
|
mode="car"
|
|
|
icon="http://cdn.uviewui.com/uview/empty/car.png"
|
|
|
- text="カートはガラガラですので、まずはメニューをお選びください"
|
|
|
+ :text="languageConversion('カートはガラガラですので、まずはメニューをお選びください')"
|
|
|
>
|
|
|
</u-empty>
|
|
|
</view>
|
|
|
@@ -383,7 +384,7 @@
|
|
|
</view>
|
|
|
<view class="shopping-foot">
|
|
|
<view class="foot-text">
|
|
|
- <text>カートの合計:</text>
|
|
|
+ <text>{{ languageConversion("カートの合計") }}:</text>
|
|
|
<text style="padding-left: 17.24rpx;">¥</text>
|
|
|
<text v-if="shoppingCardMoney" class="allprice-text">{{ shoppingCardMoney }}</text>
|
|
|
<text v-else class="allprice-text">0</text>
|
|
|
@@ -395,11 +396,11 @@
|
|
|
<table ref="orderedTable" class="table-style" :key="shopTableKey">
|
|
|
<thead>
|
|
|
<tr class="table-head">
|
|
|
- <th align="left">料理名前</th>
|
|
|
- <th width="30" align="center">数量</th>
|
|
|
- <th width="40" align="center">単価</th>
|
|
|
- <th width="60" align="center">合計金額</th>
|
|
|
- <th width="70" align="center">状態</th>
|
|
|
+ <th align="left">{{ languageConversion("料理名前") }}</th>
|
|
|
+ <th width="30" align="center">{{ languageConversion("数量") }}</th>
|
|
|
+ <th width="40" align="center">{{ languageConversion("単価") }}</th>
|
|
|
+ <th width="60" align="center">{{ languageConversion("合計金額") }}</th>
|
|
|
+ <th width="70" align="center">{{ languageConversion("状態") }}</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody class="table-tbody">
|
|
|
@@ -446,9 +447,9 @@
|
|
|
{{ order.salesTotalAmount }}
|
|
|
</td>
|
|
|
<td width="70" align="center">
|
|
|
- <text v-if="order.status === 0" class="order-status" style="background: #FF831C;">作成中</text>
|
|
|
- <text v-if="order.status === 1" class="order-status" style="background: #04B85B;">料理を出し</text>
|
|
|
- <text v-if="order.status === 2" class="order-status" style="background: rgba(0,0,0,0.2);">取消済
|
|
|
+ <text v-if="order.status === 0" class="order-status" style="background: #FF831C;">{{ languageConversion("作成中") }}</text>
|
|
|
+ <text v-if="order.status === 1" class="order-status" style="background: #04B85B;">{{ languageConversion("料理を出し") }}</text>
|
|
|
+ <text v-if="order.status === 2" class="order-status" style="background: rgba(0,0,0,0.2);">{{ languageConversion("取消済") }}
|
|
|
</text>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -457,7 +458,7 @@
|
|
|
</view>
|
|
|
<view class="shopping-foot">
|
|
|
<view class="foot-text">
|
|
|
- <text>注文済合計:</text>
|
|
|
+ <text>{{ languageConversion("注文済合計") }}:</text>
|
|
|
<text style="padding-left: 17.24rpx;">¥</text>
|
|
|
<text v-if="orderedAllPrice" class="allprice-text">{{ orderedAllPrice }}</text>
|
|
|
<text v-else class="allprice-text">0</text>
|
|
|
@@ -468,21 +469,21 @@
|
|
|
<view class="popup-footer">
|
|
|
<view class="price-text">
|
|
|
<text class="price">¥{{ allTotalAmount }}</text>
|
|
|
- <text>総注文合計</text>
|
|
|
+ <text>{{ languageConversion("総注文合計") }}</text>
|
|
|
</view>
|
|
|
<block v-if="orderTab == 0">
|
|
|
<view class="order-btn" v-if="shoppingList.length > 0">
|
|
|
- <button @click="createOrder">カート注文</button>
|
|
|
+ <button @click="createOrder">{{ languageConversion("カート注文") }}</button>
|
|
|
</view>
|
|
|
|
|
|
<view class="order-btn" v-if="shoppingList.length === 0">
|
|
|
- <button @click="$refs.orderPopup.close()">去选购菜品</button>
|
|
|
+ <button @click="$refs.orderPopup.close()">{{ languageConversion("去选购菜品") }}</button>
|
|
|
</view>
|
|
|
</block>
|
|
|
|
|
|
<block v-if="orderTab == 1">
|
|
|
<view class="order-close-btn">
|
|
|
- <button @click="$refs.orderPopup.close()">关 闭</button>
|
|
|
+ <button @click="$refs.orderPopup.close()"{{ languageConversion("关 闭") }}></button>
|
|
|
</view>
|
|
|
</block>
|
|
|
|
|
|
@@ -509,6 +510,8 @@ import util from 'utils/util'
|
|
|
import __config from 'config/env';
|
|
|
import moment from '@/public/moment/moment.js'
|
|
|
|
|
|
+import language from 'utils/language'
|
|
|
+
|
|
|
import Decimal from "decimal.js";
|
|
|
|
|
|
import goodsSku from '@/upms/components/ipad-goods-sku/index.vue'
|
|
|
@@ -517,6 +520,8 @@ export default {
|
|
|
components: {LanguageDialog, NumberKeypad, goodsSku},
|
|
|
data() {
|
|
|
return {
|
|
|
+ LanguageChange: 'CN',
|
|
|
+
|
|
|
tableId: undefined,
|
|
|
tableNo: "6",
|
|
|
tableInfo: {},
|
|
|
@@ -757,7 +762,17 @@ export default {
|
|
|
this.initFetchAllInfos()
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ languageConversion(value){
|
|
|
+ return language.languageConversion(this.LanguageChange,value)
|
|
|
+ },
|
|
|
+
|
|
|
+ getLanguageChange(newValue){
|
|
|
+ if(newValue){
|
|
|
+ this.LanguageChange = newValue
|
|
|
+ }else{
|
|
|
+ this.LanguageChange = 'CN'
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
|
|
|
/**
|