|
|
@@ -4,13 +4,18 @@
|
|
|
<loginComponent></loginComponent>
|
|
|
</view>
|
|
|
<view v-else>
|
|
|
+ <view v-if="customId == 0">
|
|
|
+ <!-- 客户列表 -->
|
|
|
+ <customerList @selectCustomer="selectCustomer" @cancelselectCustom="cancelselectCustom"> </customerList>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
<view class="app-workbench_box">
|
|
|
<view class="nav-left">
|
|
|
<view class="item-list"> 收银 </view>
|
|
|
</view>
|
|
|
<!-- 已选花材列表 -->
|
|
|
<view class="itemList-box">
|
|
|
- <leftItemComponent></leftItemComponent>
|
|
|
+ <leftItem :customId.sync="customId"></leftItem>
|
|
|
</view>
|
|
|
<!-- 按钮操作 -->
|
|
|
<view class="open-box">
|
|
|
@@ -18,9 +23,10 @@
|
|
|
</view>
|
|
|
<!-- 分类和花材图片 -->
|
|
|
<view class="all-item-area">
|
|
|
- <rightItemArea> </rightItemArea>
|
|
|
+ <rightItemArea :customId.sync="customId"> </rightItemArea>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -29,11 +35,12 @@ import { mapGetters } from "vuex";
|
|
|
import autoUpdateApp from "@/mixins/autoUpdate";
|
|
|
import rightItemArea from './components/rightItemArea.vue'
|
|
|
import middleButton from './components/middleButton.vue'
|
|
|
-import leftItemComponent from './components/leftItem.vue'
|
|
|
+import customerList from './components/customer-list.vue'
|
|
|
+import leftItem from './components/leftItem.vue'
|
|
|
import loginComponent from './login.vue'
|
|
|
export default {
|
|
|
name: "workbench",
|
|
|
- components: { rightItemArea,middleButton, loginComponent, leftItemComponent },
|
|
|
+ components: { rightItemArea,middleButton, loginComponent, leftItem, customerList },
|
|
|
mixins: [autoUpdateApp],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -42,7 +49,8 @@ export default {
|
|
|
selectItem: {},
|
|
|
selectCurrentActiveItem:{},
|
|
|
selectItemUser:{},
|
|
|
- isLogin:false
|
|
|
+ isLogin:false,
|
|
|
+ customId:0
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -69,6 +77,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ selectCustomer(info){
|
|
|
+ this.customId = info.id
|
|
|
+ },
|
|
|
init() {
|
|
|
},
|
|
|
}
|