|
@@ -7,9 +7,22 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
|
|
|
|
|
- <view class="app-casher-area">
|
|
|
|
|
|
|
+<template v-if="customId == 0">
|
|
|
|
|
+
|
|
|
|
|
+ <view class="custom-app-casher-area">
|
|
|
|
|
+ <view class="nav-left">
|
|
|
|
|
+ <casherNav navType="casher"></casherNav>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="select-custom">
|
|
|
|
|
+ <customerList @selectCustomer="selectCustomer" @cancelChooseCustomer="cancelSelect"> </customerList>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+</template>
|
|
|
|
|
+<template v-else>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="item-app-casher-area">
|
|
|
<view class="nav-left">
|
|
<view class="nav-left">
|
|
|
- <navComponent navType="casher" :showMenu="false"></navComponent>
|
|
|
|
|
|
|
+ <navComponent navType="casher"></navComponent>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 已选花材列表 -->
|
|
<!-- 已选花材列表 -->
|
|
|
<view class="itemList-box">
|
|
<view class="itemList-box">
|
|
@@ -24,10 +37,12 @@
|
|
|
<!-- 按钮操作 -->
|
|
<!-- 按钮操作 -->
|
|
|
<view class="open-box">
|
|
<view class="open-box">
|
|
|
<consoleButton :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId" @clearAll="clearAll"
|
|
<consoleButton :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId" @clearAll="clearAll"
|
|
|
- :customId.sync="customId" :customName.sync="customName" @changeProperty="changeProperty" @rightItemRefresh="rightItemRefresh"></consoleButton>
|
|
|
|
|
|
|
+ :customId.sync="customId" :customName.sync="customName" @changeProperty="changeProperty" @cancelKdFn="cancelKdFn" @rightItemRefresh="rightItemRefresh"></consoleButton>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<uni-popup ref="refrshRef" type="dialog">
|
|
<uni-popup ref="refrshRef" type="dialog">
|
|
@@ -48,9 +63,10 @@ import navComponent from './components/nav.vue'
|
|
|
import loginComponent from './login.vue'
|
|
import loginComponent from './login.vue'
|
|
|
import { checkRefresh } from '@/api/item'
|
|
import { checkRefresh } from '@/api/item'
|
|
|
import productMins from "@/mixins/product";
|
|
import productMins from "@/mixins/product";
|
|
|
|
|
+import customerList from './components/customerList.vue'
|
|
|
export default {
|
|
export default {
|
|
|
name: "cash",
|
|
name: "cash",
|
|
|
- components: { rightItem,consoleButton, loginComponent, leftArea,leftGroup, rightGoods,navComponent},
|
|
|
|
|
|
|
+ components: { customerList,rightItem,consoleButton, loginComponent, leftArea,leftGroup, rightGoods,navComponent},
|
|
|
mixins: [autoUpdateApp,productMins],
|
|
mixins: [autoUpdateApp,productMins],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -107,6 +123,18 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ cancelKdFn(){
|
|
|
|
|
+ this.customId = 0
|
|
|
|
|
+ this.customName = ''
|
|
|
|
|
+ },
|
|
|
|
|
+ cancelSelect(){
|
|
|
|
|
+ this.customId = 0
|
|
|
|
|
+ this.customName = ''
|
|
|
|
|
+ },
|
|
|
|
|
+ selectCustomer(info){
|
|
|
|
|
+ this.customId = Number(info.id)
|
|
|
|
|
+ this.customName = info.name
|
|
|
|
|
+ },
|
|
|
clearAll(){
|
|
clearAll(){
|
|
|
this.customId = 0
|
|
this.customId = 0
|
|
|
this.customName = ''
|
|
this.customName = ''
|
|
@@ -143,7 +171,7 @@ export default {
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-.app-casher-area {
|
|
|
|
|
|
|
+.item-app-casher-area {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
height: 100vh;
|
|
height: 100vh;
|
|
|
& .all-item-area {
|
|
& .all-item-area {
|
|
@@ -160,4 +188,16 @@ export default {
|
|
|
flex: 8;
|
|
flex: 8;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+.custom-app-casher-area {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ height: 100vh;
|
|
|
|
|
+ & .nav-left {
|
|
|
|
|
+ flex: 5;
|
|
|
|
|
+ background-color: rgba(72, 91, 107, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ & .select-custom{
|
|
|
|
|
+ flex: 121;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
</style>
|
|
</style>
|