|
|
@@ -6,9 +6,9 @@
|
|
|
<loginComponent></loginComponent>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <template v-if="chooseCustomer">
|
|
|
+ <template v-if="hasChooseCustomer == false">
|
|
|
<!-- 客户列表 -->
|
|
|
- <customerList @selectCustomer="selectCustomer"> </customerList>
|
|
|
+ <customerList @selectCustomer="selectCustomer" @cancelChooseCustomer="cancelChooseCustomer"> </customerList>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<view class="app-casher-area">
|
|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
customId:0,
|
|
|
currentJobType:'bill',
|
|
|
currentJobId:0,
|
|
|
- chooseCustomer:false
|
|
|
+ hasChooseCustomer:true
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -98,14 +98,18 @@ export default {
|
|
|
this.currentProperty = property
|
|
|
},
|
|
|
resetCustomer(){
|
|
|
- this.chooseCustomer = true
|
|
|
+ this.hasChooseCustomer = false
|
|
|
},
|
|
|
selectCustomer(info){
|
|
|
this.customId = info.id ? parseInt(info.id) : 0
|
|
|
this.currentJobId = this.customId
|
|
|
+ this.hasChooseCustomer = true
|
|
|
},
|
|
|
- init() {
|
|
|
+ cancelChooseCustomer(){
|
|
|
+ this.hasChooseCustomer = true
|
|
|
},
|
|
|
+ init() {
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|