shish 11 месяцев назад
Родитель
Сommit
01be7e60ac
2 измененных файлов с 5 добавлено и 5 удалено
  1. 3 3
      hdPad/src/pages/home/cash.vue
  2. 2 2
      hdPad/src/pages/home/components/console.vue

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

@@ -24,7 +24,7 @@
 			<!-- 按钮操作 -->
 			<view class="open-box">
 				<consoleButton :changeCurrentJobType.sync="currentJobType" :changeCurrentJobId.sync="currentJobId" @showCustomPop="showCustomPop" @fastCreate="fastCreate" 
-				:customId.sync="customId" :orderId.sync="orderId" :reduceStock.sync="reduceStock" :customName.sync="customName" @changeProperty="changeProperty" @updateRightItem="updateRightItem"></consoleButton>
+				:customId.sync="customId" :reduceOrderId.sync="reduceOrderId" :reduceStock.sync="reduceStock" :customName.sync="customName" @changeProperty="changeProperty" @updateRightItem="updateRightItem"></consoleButton>
 			</view>
 		</view>
 
@@ -81,7 +81,7 @@ export default {
 			customerInfo:{hasSelect:0,customId:0,customName:''},
 			myCustomList:[],
 			mustUpdate:false,
-			orderId:0,
+			reduceOrderId:0,
 			reduceStock:0
 		}
 	},
@@ -96,7 +96,7 @@ export default {
 		//这个页面有二个这方法,不能去掉,不然会造成:全部缓存清了,点选客没有客户可选
 		this.getCustomData()
 
-		this.orderId = this.option.orderId ? this.option.orderId:0
+		this.reduceOrderId = this.option.orderId ? this.option.orderId:0
 		this.reduceStock = this.option.reduceStock ? this.option.reduceStock:0
 
 	},

+ 2 - 2
hdPad/src/pages/home/components/console.vue

@@ -108,7 +108,7 @@ export default {
             type:Number,
             default:0
         },
-		orderId: {
+		reduceOrderId: {
 			type: Number,
 			default: 0
 		},
@@ -290,7 +290,7 @@ export default {
 			}
 
 			//扣库存
-			params = {...params,reduceStock:this.reduceStock,orderId:this.orderId}
+			params = {...params,reduceStock:this.reduceStock,orderId:this.reduceOrderId}
 
 			uni.showLoading({mask:false})
 			let product = this.selectList.map(i=>({ productId:i.id, unitType: i.unitType||0, num: i.currentNum, property: i.property, unitPrice: i.unitPrice }))