diff --git a/.env.production b/.env.production index 2a4f841..1db13cc 100644 --- a/.env.production +++ b/.env.production @@ -3,13 +3,13 @@ ENV = 'production' # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http # 测试 -VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' +# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' # 生产 # VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' # 预发布接口 -# VUE_APP_BASE_API = 'https://pre-cashieradmin.sxczgkj.cn' +VUE_APP_BASE_API = 'https://pre-cashieradmin.sxczgkj.cn' # VUE_APP_BASE_API = 'http://192.168.2.98:8000' # 如果接口是 http 形式, wss 需要改为 ws diff --git a/src/views/application/components/invite_friend/share.vue b/src/views/application/components/invite_friend/share.vue index a46640c..fda968e 100644 --- a/src/views/application/components/invite_friend/share.vue +++ b/src/views/application/components/invite_friend/share.vue @@ -313,6 +313,7 @@ export default { width: 100%; height: 100%; display: block; + object-fit: cover; } .icon { @@ -376,6 +377,8 @@ export default { .title { font-size: 12px; + line-height: 16px; + padding: 6px 0; } .btm { diff --git a/src/views/application/components/member_points/setting.vue b/src/views/application/components/member_points/setting.vue index cad01f4..ad224ac 100644 --- a/src/views/application/components/member_points/setting.vue +++ b/src/views/application/components/member_points/setting.vue @@ -11,7 +11,7 @@ 仅会员 - + 每消费 diff --git a/src/views/order_manage/order_goods_util.js b/src/views/order_manage/order_goods_util.js index d12b29c..c38e1e9 100644 --- a/src/views/order_manage/order_goods_util.js +++ b/src/views/order_manage/order_goods_util.js @@ -17,7 +17,8 @@ export function canTuicai(orderInfo,item){ return orderInfo.status=='unpaid'&&orderInfo.useType!='dine-in-before'&& item.status!='return' } export function canTuiKuan(orderInfo,item){ - return orderInfo.status!='unpaid'&& item.status!='return'&&item.status!='refund'&&item.status!='refunding' + // return orderInfo.status!='unpaid'&& item.status!='return'&&item.status!='refund'&&item.status!='refunding' + return orderInfo.status=='closed'&& item.status!='return'&&item.status!='refund'&&item.status!='refunding' && !item.userCouponId } export function isTui(item){ return item.status=='return'||item.status=='refund'||item.status=='refunding' diff --git a/src/views/tool/Instead/components/discount.vue b/src/views/tool/Instead/components/discount.vue index b3a2f56..b281a44 100644 --- a/src/views/tool/Instead/components/discount.vue +++ b/src/views/tool/Instead/components/discount.vue @@ -3,7 +3,7 @@ - + ¥{{ form.money }} diff --git a/src/views/tool/Instead/components/pay-type.vue b/src/views/tool/Instead/components/pay-type.vue index f5f672d..884fd53 100644 --- a/src/views/tool/Instead/components/pay-type.vue +++ b/src/views/tool/Instead/components/pay-type.vue @@ -10,6 +10,7 @@ v-for="(item, index) in list" :key="index" :type="sel === item.payType ? 'primary' : ''" + :disabled="disabledPayType.includes(item.payType)" > {{ item.payName }} @@ -30,6 +31,10 @@ export default { type: [String, Number], default: '', }, + disabledPayType:{ + type:Array, + default:()=>[] + } }, data() { return { @@ -38,6 +43,10 @@ export default { }; }, watch: { + disabledPayType(){ + const item = this.list.find(v=>!this.disabledPayType.includes(v.payType)) + this.sel=item.payType + }, sel(newval) { console.log(newval); this.$emit("input", newval); diff --git a/src/views/tool/Instead/components/quans copy.vue b/src/views/tool/Instead/components/quans copy.vue new file mode 100644 index 0000000..b7822aa --- /dev/null +++ b/src/views/tool/Instead/components/quans copy.vue @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + {{ scope.row.type == 1 ? "优惠券" : "商品券" }} + + + + + + ¥{{ scope.row.discountAmount }} + + + + + + + 支付满 + + {{ scope.row.fullAmount }} + + 元可用 + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.productName }} + x{{ scope.row.num || "" }} + + + + + + + + ¥{{ scope.row.discountAmount }} + + + + + + {{ scope.row.type == 1 ? "优惠券" : "商品券" }} + + + + + + + + + 已选优惠券 + + + + + + + {{ scope.row.type == 1 ? "优惠券" : "商品券" }} + + + + + + + + + + {{ scope.row.productName }} + x{{ scope.row.num || "" }} + + + + + + + + ¥{{ scope.row.discountAmount }} + + + + + + + + 删除 + + + + + 抵扣: + {{ AllCouponPrice }} + + + + 取消 + 确定 + + + + + + + + \ No newline at end of file diff --git a/src/views/tool/Instead/components/quans.vue b/src/views/tool/Instead/components/quans.vue index 9cb1ebd..7540356 100644 --- a/src/views/tool/Instead/components/quans.vue +++ b/src/views/tool/Instead/components/quans.vue @@ -16,11 +16,7 @@ :data="quans.fullReductionCoupon" @cell-click="fullReductionCouponClick" > - + - + + + + + @@ -90,13 +91,13 @@ - + {{ scope.row.type == 1 ? "优惠券" : "商品券" }} @@ -104,6 +105,11 @@ + @@ -118,23 +124,32 @@ {{ scope.row.type == 1 ? "优惠券" : "商品券" }} - + - - {{ scope.row.productName }} + + + + + {{ scope.row.productName }} + x{{ scope.row.num || "" }} + - + ¥{{ scope.row.discountAmount }} + + ¥{{ returnProDiscount(scope.row, scope.row.index) }} + @@ -147,9 +162,22 @@ - - 抵扣: - {{ AllCouponPrice }} + + + + 抵扣金额: + ¥{{ AllCouponPrice }} + + + 支付金额: + ¥{{ payPrice }} + + ¥{{ orderPrice }} + @@ -165,11 +193,21 @@