Просмотр исходного кода

花掌柜-收银台 ,计算机开单不计算会员折扣、门店满减

ouyang 14 часов назад
Родитель
Сommit
65c6494731

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

@@ -386,7 +386,10 @@ export default {
 		cancelSelectPrice(){
 			this.$refs.gatheringRef.close()
 		},
-		//直接收款
+		/**
+		 * 计算器直接收款:用户输入(及手选折)即最终应收。
+		 * 提交后不再套会员折扣/门店满减;传 skip* 避免 createHdOrder/addOrder 二次扣减。
+		 */
 		zjGathering(params){
 			uni.showLoading()
 			const payload = {
@@ -402,7 +405,10 @@ export default {
 				sendType: 1,
 				getGoods: 1,
 				hasPay: params.hasPay != null ? params.hasPay : 0,
-				payWay: Number(params.hasPay) === 1 ? (params.payWay != null ? params.payWay : 0) : 0
+				payWay: Number(params.hasPay) === 1 ? (params.payWay != null ? params.payWay : 0) : 0,
+				// 金额已是最终订单金额,禁止服务端再套会员折扣/门店满减(对齐 hdApp calculator)
+				skipMemberDiscount: 1,
+				skipShopMeetCut: 1
 			}
 			createOrder(payload).then(res=>{
 				uni.hideLoading()

+ 1 - 0
hdPad/src/pages/home/components/selectPrice.vue

@@ -1234,6 +1234,7 @@ export default {
                 source: 'submit',
                 orderOnly: !hasCalc,
             })
+            // 提交价即最终应收(含计算器手选折);父级 createOrder 须 skip 会员折扣/门店满减
             this.$emit('zjGathering', {
                 price: p,
                 name: this.name,