|
|
@@ -6,32 +6,28 @@
|
|
|
<loginComponent></loginComponent>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <template v-if="hasChooseCustomer == false">
|
|
|
- <!-- 客户列表 -->
|
|
|
- <customerList @selectCustomer="selectCustomer" @cancelChooseCustomer="cancelChooseCustomer"> </customerList>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <view class="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" :customId.sync="customId" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId" :changeFlower="changeFlower"> </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" @resetCustomer="resetCustomer"
|
|
|
- :customId.sync="customId" @changeProperty="changeProperty" @rightItemRefresh="rightItemRefresh"></consoleButton>
|
|
|
- </view>
|
|
|
+
|
|
|
+ <view class="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" :customId.sync="customId" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId" :changeFlower="changeFlower"> </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" @resetCustomer="resetCustomer"
|
|
|
+ :customId.sync="customId" :customName.sync="customName" @changeProperty="changeProperty" @rightItemRefresh="rightItemRefresh"></consoleButton>
|
|
|
</view>
|
|
|
- </template>
|
|
|
+ </view>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<uni-popup ref="refrshRef" type="dialog">
|
|
|
@@ -46,7 +42,6 @@ import autoUpdateApp from "@/mixins/autoUpdate";
|
|
|
import rightItem from './components/rightItem.vue'
|
|
|
import rightGoods from './components/rightGoods.vue'
|
|
|
import consoleButton from './components/console.vue'
|
|
|
-import customerList from './components/customerList.vue'
|
|
|
import leftArea from './components/leftArea.vue'
|
|
|
import leftGroup from './components/leftGroup.vue'
|
|
|
import navComponent from './components/nav.vue'
|
|
|
@@ -55,7 +50,7 @@ import { checkRefresh } from '@/api/item'
|
|
|
import productMins from "@/mixins/product";
|
|
|
export default {
|
|
|
name: "cash",
|
|
|
- components: { rightItem,consoleButton, loginComponent, leftArea,leftGroup, customerList, rightGoods,navComponent},
|
|
|
+ components: { rightItem,consoleButton, loginComponent, leftArea,leftGroup, rightGoods,navComponent},
|
|
|
mixins: [autoUpdateApp,productMins],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -67,11 +62,13 @@ export default {
|
|
|
selectItemUser:{},
|
|
|
isLogin:2,
|
|
|
customId:0,
|
|
|
+ customName:'',
|
|
|
currentJobType:'bill',
|
|
|
currentJobId:0,
|
|
|
hasChooseCustomer:true,
|
|
|
changeFlower:2,
|
|
|
- T:null
|
|
|
+ T:null,
|
|
|
+ customerInfo:{hasSelect:0,customId:0,customName:''}
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -81,7 +78,12 @@ export default {
|
|
|
this.initDataFromStorage()
|
|
|
|
|
|
this.beginRemind()
|
|
|
-
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
+ if(this.customerInfo.hasSelect == 1){
|
|
|
+ this.customId = this.customerInfo.customId
|
|
|
+ this.customName = this.customerInfo.customName
|
|
|
+ }
|
|
|
},
|
|
|
onUnload(){
|
|
|
clearInterval(this.T)
|