shish 4 жил өмнө
parent
commit
7e529d3f1c

+ 3 - 2
hdPad/src/pages/home/cash.vue

@@ -22,7 +22,7 @@
 				</view>
 				<!-- 分类和花材图片 -->
 				<view class="all-item-area">
-					<rightGoods v-if="currentProperty == 0" :customId.sync="customId" :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId"> </rightGoods>
+					<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>
 				</view>
 				<!-- 按钮操作 -->
@@ -63,7 +63,8 @@ export default {
 			customId:0,
             currentJobType:'bill',
             currentJobId:0,
-			hasChooseCustomer:true
+			hasChooseCustomer:true,
+			changeFlower:2
 		}
 	},
 	computed: {

+ 5 - 1
hdPad/src/pages/home/components/rightGoods.vue

@@ -108,7 +108,11 @@ export default {
         },
         changeFlower:{
             handler(val){
-                this.flower = val
+                if(Number(val) == 2){
+                    this.flower = ''
+                }else{
+                    this.flower = val
+                }
             },
             immediate:true
         }

+ 2 - 2
hdPad/src/pages/home/selectMake.vue

@@ -10,7 +10,7 @@
             </view>
             <!-- 成品 -->
             <view class="all-item-area">
-                <rightGoods :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId" :changeCheckStock="checkStock" :changeFlower="flower"></rightGoods>
+                <rightGoods :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId" :changeCheckStock="checkStock" :changeFlower="changeFlower"></rightGoods>
             </view>
             <!-- 按钮操作 -->
             <view class="open-box">
@@ -57,7 +57,7 @@ export default {
             currentJobId:0,
 			chooseCustomer:false,
 			checkStock:false,
-			flower:1
+			changeFlower:1
 		}
 	},
 	computed: {