|
@@ -20,11 +20,12 @@
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 按钮操作 -->
|
|
<!-- 按钮操作 -->
|
|
|
<view class="open-box">
|
|
<view class="open-box">
|
|
|
- <middleButton @resetCustomer="resetCustomer" :customId.sync="customId"></middleButton>
|
|
|
|
|
|
|
+ <middleButton @resetCustomer="resetCustomer" :customId.sync="customId" @changeProperty="changeProperty"></middleButton>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 分类和花材图片 -->
|
|
<!-- 分类和花材图片 -->
|
|
|
<view class="all-item-area">
|
|
<view class="all-item-area">
|
|
|
- <rightItemArea :customId.sync="customId"> </rightItemArea>
|
|
|
|
|
|
|
+ <rightGoodsArea v-if="currentProperty == 0" :customId.sync="customId"> </rightGoodsArea>
|
|
|
|
|
+ <rightItemArea v-else :customId.sync="customId"> </rightItemArea>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -35,6 +36,7 @@
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import autoUpdateApp from "@/mixins/autoUpdate";
|
|
import autoUpdateApp from "@/mixins/autoUpdate";
|
|
|
import rightItemArea from './components/rightItemArea.vue'
|
|
import rightItemArea from './components/rightItemArea.vue'
|
|
|
|
|
+import rightGoodsArea from './components/rightGoodsArea.vue'
|
|
|
import middleButton from './components/middleButton.vue'
|
|
import middleButton from './components/middleButton.vue'
|
|
|
import customerList from './components/customer-list.vue'
|
|
import customerList from './components/customer-list.vue'
|
|
|
import leftItem from './components/leftItem.vue'
|
|
import leftItem from './components/leftItem.vue'
|
|
@@ -43,10 +45,12 @@ import loginComponent from './login.vue'
|
|
|
import productMins from "@/mixins/product";
|
|
import productMins from "@/mixins/product";
|
|
|
export default {
|
|
export default {
|
|
|
name: "workbench",
|
|
name: "workbench",
|
|
|
- components: { rightItemArea,middleButton, loginComponent, leftItem,leftGroup, customerList },
|
|
|
|
|
|
|
+ components: { rightItemArea,middleButton, loginComponent, leftItem,leftGroup, customerList, rightGoodsArea },
|
|
|
mixins: [autoUpdateApp,productMins],
|
|
mixins: [autoUpdateApp,productMins],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ //0成品 1花材
|
|
|
|
|
+ currentProperty:0,
|
|
|
itemList:[],
|
|
itemList:[],
|
|
|
currenSelectShop:{},
|
|
currenSelectShop:{},
|
|
|
selectItem: {},
|
|
selectItem: {},
|
|
@@ -56,7 +60,7 @@ export default {
|
|
|
selectJobType:'bill',
|
|
selectJobType:'bill',
|
|
|
selectJobId:0,
|
|
selectJobId:0,
|
|
|
chooseCustomer:false
|
|
chooseCustomer:false
|
|
|
- };
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters(["getLoginInfo"])
|
|
...mapGetters(["getLoginInfo"])
|
|
@@ -82,6 +86,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ changeProperty(property){
|
|
|
|
|
+ this.currentProperty = property
|
|
|
|
|
+ },
|
|
|
resetCustomer(){
|
|
resetCustomer(){
|
|
|
this.chooseCustomer = true
|
|
this.chooseCustomer = true
|
|
|
},
|
|
},
|