|
|
@@ -1,47 +1,44 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <template v-if="isLogin == 2">
|
|
|
- </template>
|
|
|
- <template v-else-if="isLogin == 0">
|
|
|
+ <template v-if="isLogin == 0">
|
|
|
<loginComponent></loginComponent>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
|
|
|
-<template v-if="customId == 0">
|
|
|
-
|
|
|
- <view class="custom-app-casher-area">
|
|
|
- <view class="nav-left">
|
|
|
- <navComponent navType="casher"></navComponent>
|
|
|
- </view>
|
|
|
- <view class="select-custom">
|
|
|
- <customerList @selectCustomer="selectCustomer" @cancelChooseCustomer="cancelSelect"> </customerList>
|
|
|
+ <block v-if="customId == 0">
|
|
|
+ <view class="custom-app-casher-area">
|
|
|
+ <view class="nav-left">
|
|
|
+ <navComponent navType="casher"></navComponent>
|
|
|
+ </view>
|
|
|
+ <view class="select-custom">
|
|
|
+ <customerList @selectCustomer="selectCustomer" @cancelChooseCustomer="cancelSelect"> </customerList>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-</template>
|
|
|
-<template v-else>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
|
|
|
- <view class="item-app-casher-area">
|
|
|
- <view class="nav-left">
|
|
|
- <navComponent navType="casher"></navComponent>
|
|
|
- </view>
|
|
|
- <!-- 已选花材列表 -->
|
|
|
- <view class="itemList-box">
|
|
|
- <leftArea v-if="!$util.isEmpty(selectList)" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId"></leftArea>
|
|
|
- <leftGroup v-else :customId.sync="customId"></leftGroup>
|
|
|
+ <view class="item-app-casher-area">
|
|
|
+ <view class="nav-left">
|
|
|
+ <navComponent navType="casher"></navComponent>
|
|
|
+ </view>
|
|
|
+ <!-- 已选花材列表 -->
|
|
|
+ <view class="itemList-box">
|
|
|
+ <leftArea v-if="!$util.isEmpty(selectList)" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId"></leftArea>
|
|
|
+ <leftGroup v-else :customId.sync="customId"></leftGroup>
|
|
|
+ </view>
|
|
|
+ <!-- 分类和花材图片 -->
|
|
|
+ <view class="all-item-area">
|
|
|
+ <rightGoods v-if="currentProperty == 0" ref="rightItemRef" :customId.sync="customId" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId"> </rightGoods>
|
|
|
+ <rightItem v-else ref="rightItemRef" :customId.sync="customId" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId"> </rightItem>
|
|
|
+ </view>
|
|
|
+ <!-- 按钮操作 -->
|
|
|
+ <view class="open-box">
|
|
|
+ <consoleButton :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId" @clearAll="clearAll"
|
|
|
+ :customId.sync="customId" :customName.sync="customName" @changeProperty="changeProperty" @cancelKdFn="cancelKdFn" @rightItemRefresh="rightItemRefresh"></consoleButton>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <!-- 分类和花材图片 -->
|
|
|
- <view class="all-item-area">
|
|
|
- <rightGoods v-if="currentProperty == 0" ref="rightItemRef" :customId.sync="customId" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId"> </rightGoods>
|
|
|
- <rightItem v-else ref="rightItemRef" :customId.sync="customId" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId"> </rightItem>
|
|
|
- </view>
|
|
|
- <!-- 按钮操作 -->
|
|
|
- <view class="open-box">
|
|
|
- <consoleButton :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId" @clearAll="clearAll"
|
|
|
- :customId.sync="customId" :customName.sync="customName" @changeProperty="changeProperty" @cancelKdFn="cancelKdFn" @rightItemRefresh="rightItemRefresh"></consoleButton>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
-</template>
|
|
|
+ </block>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
@@ -66,7 +63,7 @@ import productMins from "@/mixins/product";
|
|
|
import customerList from './components/customerList.vue'
|
|
|
export default {
|
|
|
name: "cash",
|
|
|
- components: { customerList,rightItem,consoleButton, loginComponent, leftArea,leftGroup, rightGoods,navComponent},
|
|
|
+ components: { customerList,rightItem,consoleButton,loginComponent, leftArea,leftGroup, rightGoods,navComponent},
|
|
|
mixins: [autoUpdateApp,productMins],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -196,7 +193,7 @@ export default {
|
|
|
background-color: rgba(72, 91, 107, 1);
|
|
|
}
|
|
|
& .select-custom{
|
|
|
- flex: 121;
|
|
|
+ flex: 119;
|
|
|
}
|
|
|
}
|
|
|
|