|
|
@@ -23,12 +23,12 @@
|
|
|
<!-- 分类和花材图片 -->
|
|
|
<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 :customId.sync="customId" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId"> </rightItem>
|
|
|
+ <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"></consoleButton>
|
|
|
+ :customId.sync="customId" @changeProperty="changeProperty" @rightItemRefresh="rightItemRefresh"></consoleButton>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -94,6 +94,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //开单完成之后更新花材的库存
|
|
|
+ rightItemRefresh(){
|
|
|
+ this.$refs.rightItemRef.itemRefresh()
|
|
|
+ },
|
|
|
changeProperty(property){
|
|
|
this.currentProperty = property
|
|
|
},
|