|
|
@@ -1,35 +1,35 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <view v-if="isLogin == false">
|
|
|
+ <template v-if="isLogin == false">
|
|
|
<loginComponent></loginComponent>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <view v-if="chooseCustomer">
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <template v-if="chooseCustomer">
|
|
|
<!-- 客户列表 -->
|
|
|
<customerList @selectCustomer="selectCustomer"> </customerList>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <view class="app-workbench_box">
|
|
|
- <view class="nav-left">
|
|
|
- <view class="item-list"> 收银 </view>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <view class="app-casher-area">
|
|
|
+ <view class="nav-left">
|
|
|
+ <casherNav></casherNav>
|
|
|
+ </view>
|
|
|
+ <!-- 已选花材列表 -->
|
|
|
+ <view class="itemList-box">
|
|
|
+ <leftItem v-if="!$util.isEmpty(selectList)" :customId.sync="customId"></leftItem>
|
|
|
+ <leftGroup v-else :customId.sync="customId"></leftGroup>
|
|
|
+ </view>
|
|
|
+ <!-- 按钮操作 -->
|
|
|
+ <view class="open-box">
|
|
|
+ <middleButton @resetCustomer="resetCustomer" :customId.sync="customId" @changeProperty="changeProperty"></middleButton>
|
|
|
+ </view>
|
|
|
+ <!-- 分类和花材图片 -->
|
|
|
+ <view class="all-item-area">
|
|
|
+ <rightGoodsArea v-if="currentProperty == 0" :customId.sync="customId"> </rightGoodsArea>
|
|
|
+ <rightItemArea v-else :customId.sync="customId"> </rightItemArea>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <!-- 已选花材列表 -->
|
|
|
- <view class="itemList-box">
|
|
|
- <leftItem v-if="!$util.isEmpty(selectList)" :customId.sync="customId"></leftItem>
|
|
|
- <leftGroup v-else :customId.sync="customId"></leftGroup>
|
|
|
- </view>
|
|
|
- <!-- 按钮操作 -->
|
|
|
- <view class="open-box">
|
|
|
- <middleButton @resetCustomer="resetCustomer" :customId.sync="customId" @changeProperty="changeProperty"></middleButton>
|
|
|
- </view>
|
|
|
- <!-- 分类和花材图片 -->
|
|
|
- <view class="all-item-area">
|
|
|
- <rightGoodsArea v-if="currentProperty == 0" :customId.sync="customId"> </rightGoodsArea>
|
|
|
- <rightItemArea v-else :customId.sync="customId"> </rightItemArea>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -41,11 +41,12 @@ import middleButton from './components/middleButton.vue'
|
|
|
import customerList from './components/customer-list.vue'
|
|
|
import leftItem from './components/leftItem.vue'
|
|
|
import leftGroup from './components/leftGroup.vue'
|
|
|
+import casherNav from '@/components/casher-nav.vue'
|
|
|
import loginComponent from './login.vue'
|
|
|
import productMins from "@/mixins/product";
|
|
|
export default {
|
|
|
name: "workbench",
|
|
|
- components: { rightItemArea,middleButton, loginComponent, leftItem,leftGroup, customerList, rightGoodsArea },
|
|
|
+ components: { rightItemArea,middleButton, loginComponent, leftItem,leftGroup, customerList, rightGoodsArea,casherNav },
|
|
|
mixins: [autoUpdateApp,productMins],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -103,7 +104,7 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-.app-workbench_box {
|
|
|
+.app-casher-area {
|
|
|
display: flex;
|
|
|
height: 100vh;
|
|
|
& .all-item-area {
|
|
|
@@ -114,14 +115,6 @@ export default {
|
|
|
height: 100%;
|
|
|
flex: 5;
|
|
|
background-color: rgba(72, 91, 107, 1);
|
|
|
- & .item-list {
|
|
|
- margin-top: 23upx;
|
|
|
- font-size: 16upx;
|
|
|
- text-align: center;
|
|
|
- padding: 15upx 0;
|
|
|
- background-color: #599981;
|
|
|
- color: #FFFFFF;
|
|
|
- }
|
|
|
}
|
|
|
& .itemList-box {
|
|
|
flex: 25;
|