From cfed8ea183bd518529000c17d977ecca1b889443 Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Tue, 5 Nov 2024 10:33:26 +0800
Subject: [PATCH 01/77] =?UTF-8?q?=E8=80=97=E6=9D=90=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pageConsumables/editConsumables.vue | 10 ++++---
pageConsumables/index.vue | 39 +++++++++++++++++++++++++---
pageConsumables/time.png | Bin 0 -> 501 bytes
pageConsumables/viewrecords.vue | 6 ++++-
pageStaff/addstaff.vue | 8 +++---
pages/shopSetUp/index.vue | 2 +-
6 files changed, 53 insertions(+), 12 deletions(-)
create mode 100644 pageConsumables/time.png
diff --git a/pageConsumables/editConsumables.vue b/pageConsumables/editConsumables.vue
index 759bda4..e548a7b 100644
--- a/pageConsumables/editConsumables.vue
+++ b/pageConsumables/editConsumables.vue
@@ -25,7 +25,7 @@
耗材价格
-
+
@@ -33,7 +33,7 @@
预警值
-
+
+
+
{
+ console.log(res,'编辑员工后的提示')
datas.formData = res
if (datas.rolesList) {
let rolefilter = datas.rolesList.filter(ele => ele.id == res.roleId)
@@ -266,9 +267,10 @@
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
- margin-top: 50rpx;
- margin-left: 50%;
- transform: translateX(-50%);
+ margin: 0 auto;
+ // margin-top: 50rpx;
+ // margin-left: 50%;
+ // transform: translateX(-50%);
}
.bottomBotton2 {
diff --git a/pages/shopSetUp/index.vue b/pages/shopSetUp/index.vue
index d4c8558..91a8e60 100644
--- a/pages/shopSetUp/index.vue
+++ b/pages/shopSetUp/index.vue
@@ -46,7 +46,7 @@
-
+
From d4c309cdc7accad8616f44aecef32acfbb97fc7c Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Tue, 5 Nov 2024 15:10:16 +0800
Subject: [PATCH 02/77] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4?=
=?UTF-8?q?=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6=E9=83=A8=E5=88=86=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/my-components/my-date-pickerview.vue | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/components/my-components/my-date-pickerview.vue b/components/my-components/my-date-pickerview.vue
index 7507b74..0e1d466 100644
--- a/components/my-components/my-date-pickerview.vue
+++ b/components/my-components/my-date-pickerview.vue
@@ -487,7 +487,9 @@
const endTotal = returnDateString(e.detail.value, true).getTime()
value1.value = e.detail.value
nextTick(() => {
- value1.value = endTotal < startTotal ? value.value : e.detail.value
+ if (props.isArea) {
+ value1.value = endTotal < startTotal ? value.value : e.detail.value
+ }
debounce(changeDays(true, value1.value), 100)
})
}
@@ -521,7 +523,7 @@
}
function nullFunction() {
-
+
}
function pickend(e) {
From 3f4d8ac53b4d61b51ca1db7b8bfc7a255d73cbee Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Tue, 5 Nov 2024 16:47:34 +0800
Subject: [PATCH 03/77] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=A2=E5=8D=95?=
=?UTF-8?q?=E6=94=AF=E4=BB=98=E4=BC=98=E6=83=A0=E5=88=B8=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 7 +++++++
pagesOrder/quan/quan.vue | 22 ++++++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 pagesOrder/quan/quan.vue
diff --git a/pages.json b/pages.json
index c6f3152..0691aa5 100644
--- a/pages.json
+++ b/pages.json
@@ -875,6 +875,13 @@
"style": {
"navigationBarTitleText": "退款"
}
+ },
+ {
+ "path" : "quan/quan",
+ "style" :
+ {
+ "navigationBarTitleText" : "券包"
+ }
}
]
diff --git a/pagesOrder/quan/quan.vue b/pagesOrder/quan/quan.vue
new file mode 100644
index 0000000..8183fd0
--- /dev/null
+++ b/pagesOrder/quan/quan.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
From d885fb521dee6ecc37ed6c085a092adf5199bfc2 Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Wed, 6 Nov 2024 11:01:46 +0800
Subject: [PATCH 04/77] =?UTF-8?q?=E5=8F=96=E5=8F=B7=E6=8D=A2=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pageConsumables/outbound.vue | 21 ++++++++++++++++-
pageConsumables/warehouseEntry.vue | 38 +++++++++++++++++++-----------
pageLineUp/index.vue | 3 ++-
3 files changed, 46 insertions(+), 16 deletions(-)
diff --git a/pageConsumables/outbound.vue b/pageConsumables/outbound.vue
index f1782b6..d6c9426 100644
--- a/pageConsumables/outbound.vue
+++ b/pageConsumables/outbound.vue
@@ -33,6 +33,18 @@
+
+
+ 单位
+
+
+
+ {{datas.form.list.unit}}
+
+
+
+
+
应付金额
@@ -117,6 +129,7 @@
list: [],
// 供应商渲染数组
status: [],
+ unitList:[],
form: {
shopId: uni.getStorageSync("shopId"),
type: "out",
@@ -135,6 +148,10 @@
})
onMounted(() => {
datas.item = JSON.parse(props.item)
+ datas.form = Object.assign(datas.form, datas.item)
+ // 单位列表
+ datas.unitList = [ datas.form.conUnit,datas.form.conUnitTwo]
+ datas.form.list.unit=datas.form.defaultUnit
})
onShow(() => {
getList()
@@ -165,7 +182,9 @@ onShow(() => {
nowStatusIndex.value = i.detail.value
showStatus.value = false
}
-
+ function changeNowStatusIndexs(i) {
+ datas.form.list.unit = datas.unitList[i.detail.value]
+ }
function sumbit() {
if (!datas.form.list.stockNumber) {
diff --git a/pageConsumables/warehouseEntry.vue b/pageConsumables/warehouseEntry.vue
index cdca5c5..da08283 100644
--- a/pageConsumables/warehouseEntry.vue
+++ b/pageConsumables/warehouseEntry.vue
@@ -25,15 +25,6 @@
-
*单价
@@ -42,6 +33,18 @@
+
+
+ 单位
+
+
+
+ {{datas.form.list.unit}}
+
+
+
+
+
应付金额
@@ -71,14 +74,13 @@
供应商
- {{datas.status[nowStatusIndex]}}
+ {{datas.status[nowStatusIndex]}}
+
新增
-
@@ -120,6 +122,8 @@
list: [],
// 供应商渲染数组
status: [],
+ // 单位列表
+ unitList: [],
form: {
shopId: uni.getStorageSync("shopId"),
type: "in",
@@ -138,7 +142,10 @@
})
onMounted(() => {
datas.item = JSON.parse(props.item)
- datas.form = assign(datas.form, ...datas.item)
+ datas.form = Object.assign(datas.form, datas.item)
+ // 单位列表
+ datas.unitList = [ datas.form.conUnit,datas.form.conUnitTwo]
+ datas.form.list.unit=datas.form.defaultUnit
})
onShow(() => {
getList()
@@ -159,7 +166,6 @@
res.content.forEach(ele => {
datas.status.push(ele.purveyorName)
})
- console.log(datas.status, '调试121')
})
}
@@ -173,6 +179,10 @@
showStatus.value = false
}
+ function changeNowStatusIndexs(i) {
+ datas.form.list.unit = datas.unitList[i.detail.value]
+ }
+
function sumbit() {
if (!datas.form.list.stockNumber) {
refs.ctx.$refs.uToastRef.show({
diff --git a/pageLineUp/index.vue b/pageLineUp/index.vue
index f76e29e..b784d08 100644
--- a/pageLineUp/index.vue
+++ b/pageLineUp/index.vue
@@ -267,6 +267,7 @@
.pageLineUpTop {
.df;
justify-content: space-around;
+ flex-wrap: wrap;
margin: 36rpx 0;
>view {
@@ -275,7 +276,7 @@
background: #FFFFFF;
border-radius: 8rpx 8rpx 8rpx 8rpx;
border: 2rpx solid #E5E5E5;
-
+ margin-top: 20rpx;
>view {
text-align: center;
}
From da9d08a91e672aaf2420146769a133dcdf1e9385 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Wed, 6 Nov 2024 17:34:03 +0800
Subject: [PATCH 05/77] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A2=E5=8D=95?=
=?UTF-8?q?=E6=94=AF=E4=BB=98=E9=A1=B5=E9=9D=A2=EF=BC=8C=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9C=AA=E6=90=BA=E5=B8=A6orderId?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pagesOrder/pay-order/pay-order.vue | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pagesOrder/pay-order/pay-order.vue b/pagesOrder/pay-order/pay-order.vue
index 50c53d9..ed2d9c2 100644
--- a/pagesOrder/pay-order/pay-order.vue
+++ b/pagesOrder/pay-order/pay-order.vue
@@ -186,6 +186,7 @@
tableId: order.tableId,
masterId: order.masterId,
vipUserId: user.value.id ? user.value.id : '',
+ orderId:order.id,
type: user.value.id ? 0 : 1 //0 设置 1 取消
}
Object.assign(submitPar, par)
@@ -201,6 +202,7 @@
}).then(res=>{
user.value = data
order.memberId=data.id
+ init()
})
})
}
From f2f5bac39e2f0a2dc2074503bc691d3cea9ab8c8 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Wed, 6 Nov 2024 17:37:56 +0800
Subject: [PATCH 06/77] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95?=
=?UTF-8?q?=E8=AF=A6=E6=83=85=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E4=BB=B7?=
=?UTF-8?q?=E6=A0=BC=E5=B1=95=E7=A4=BA=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BC=9A?=
=?UTF-8?q?=E5=91=98=E4=BB=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
commons/utils/goodsUtil.js | 3 +
http/yskApi/Instead.js | 58 ++++
pages.json | 1 +
pagesOrder/detail/components/list.vue | 131 ++++++--
pagesOrder/detail/detail.vue | 7 +-
pagesOrder/index/compoents/order-item.vue | 29 +-
pagesOrder/pay-order/pay-order.vue | 65 +++-
pagesOrder/quan/quan.vue | 361 +++++++++++++++++++++-
8 files changed, 593 insertions(+), 62 deletions(-)
diff --git a/commons/utils/goodsUtil.js b/commons/utils/goodsUtil.js
index b0e821d..c919e53 100644
--- a/commons/utils/goodsUtil.js
+++ b/commons/utils/goodsUtil.js
@@ -19,6 +19,9 @@ export function canTuiKuan(orderInfo,item){
export function isTui(item){
return item.status=='return'||item.status=='refund'||item.status=='refunding'
}
+export function isGift(item){
+ return !isTui(item)&&item.gift
+}
export function numSum(arr){
const sum=arr.reduce((a,b)=>{
return a+b*100
diff --git a/http/yskApi/Instead.js b/http/yskApi/Instead.js
index 3221307..d964201 100644
--- a/http/yskApi/Instead.js
+++ b/http/yskApi/Instead.js
@@ -331,4 +331,62 @@ export function $returnOrder(data) {
...data
}
});
+}
+
+//获取订单可用优惠券
+export function $activateByOrderId(data) {
+ return request({
+ url: '/api/tbShopCoupon/activateByOrderId',
+ method: "get",
+ params:{
+ shopId: uni.getStorageSync("shopId"),
+ ...data
+ }
+ });
+}
+
+//会员积分列表
+export function $returnMemberPointsList(data) {
+ return request({
+ url: '/api/points/member-points/page',
+ method: "get",
+ params:{
+ shopId: uni.getStorageSync("shopId"),
+ ...data
+ }
+ });
+}
+
+// 会员积分账户信息
+export function $returnMemberPoints(memberId) {
+ return request({
+ url: '/api/points/member-points/'+memberId,
+ method: "get",
+ params:{
+ shopId: uni.getStorageSync("shopId"),
+ ...data
+ }
+ });
+}
+//002-获取订单可用积分及抵扣金额(支付页面使用)
+export function $calcUsablePoints(data) {
+ return request({
+ url: '/api/points/member-points/calc-usable-points',
+ method: "get",
+ params:{
+ shopId: uni.getStorageSync("shopId"),
+ ...data
+ }
+ });
+}
+// 003-根据积分计算可抵扣金额
+export function $calcDeDuctionPoints(data) {
+ return request({
+ url: '/api/points/member-points/calc-deduction-amount',
+ method: "get",
+ params:{
+ shopId: uni.getStorageSync("shopId"),
+ ...data
+ }
+ });
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 0691aa5..38a9c78 100644
--- a/pages.json
+++ b/pages.json
@@ -878,6 +878,7 @@
},
{
"path" : "quan/quan",
+ "pageId": "PAGES_ORDER_QUAN",
"style" :
{
"navigationBarTitleText" : "券包"
diff --git a/pagesOrder/detail/components/list.vue b/pagesOrder/detail/components/list.vue
index fc3770b..53ffcca 100644
--- a/pagesOrder/detail/components/list.vue
+++ b/pagesOrder/detail/components/list.vue
@@ -26,7 +26,9 @@
{{item.status=='refunding'?'退款中':'已退'}}
- {{item.name||item.productName}}
+
+ {{item.name||item.productName}}
@@ -54,8 +56,20 @@
¥{{returnTotalMoney(item)}}
+
+ ¥0.00
+ ¥{{returnTotalMoney(item)}}
+
+
- ¥{{returnTotalMoney(item)}}
+
+ ¥{{returnVipMoney(item)}}
+
+ ¥{{returnTotalMoney(item)}}
+
+
+ ¥{{returnTotalMoney(item)}}
+
X{{item.number||item.num}}
@@ -70,10 +84,10 @@
-
- 退款
-
+
+ 退款
+
@@ -99,9 +113,15 @@
-
- 小计¥
- {{allPrice}}
+
+
+ 已优惠¥{{youhuiAllPrice}}
+
+
+ 小计¥
+ {{allPrice}}
+
+
@@ -148,9 +168,44 @@
import {
hasPermission
} from '@/commons/utils/hasPermission.js'
- import {isTui,canTuiKuan,canTuicai,numSum} from '@/commons/utils/goodsUtil.js'
+ import {
+ isTui,isGift,
+ canTuiKuan,
+ canTuicai,
+ numSum
+ } from '@/commons/utils/goodsUtil.js'
+ const props = defineProps({
+ orderInfo: {
+ type: Object,
+ default: () => {}
+ },
+ data: {
+ type: Array,
+ default: () => []
+ },
+ seatFee: {
+ type: Object,
+ default: () => {}
+ },
+ user: {
+ type: Object,
+ default: () => {
+ return {
+ id: '',
+ isVip: false
+ }
+ }
+ }
+ })
const emits = defineEmits(['tuicai', 'tuikuan', 'printOrder'])
+ function returnVipMoney(item) {
+ if (!item.memberPrice || !props.user.isVip) {
+ return 0
+ }
+ return (item.memberPrice * item.num).toFixed(2)
+ }
+
function returnTotalMoney(item) {
return (item.price * item.num).toFixed(2)
}
@@ -177,20 +232,7 @@
function printOrder() {
emits('printOrder')
}
- const props = defineProps({
- orderInfo: {
- type: Object,
- default: () => {}
- },
- data: {
- type: Array,
- default: () => []
- },
- seatFee: {
- type: Object,
- default: () => {}
- }
- })
+
const seatFeePrice = computed(() => {
if (!props.seatFee.priceAmount) {
@@ -199,21 +241,44 @@
const n = props.seatFee.priceAmount * (props.seatFee.status == 'return' ? 0 : 1)
return n.toFixed(2)
})
-
- const allPrice = computed(() => {
+ const goodsOriginAllPrice = computed(() => {
const goodsPrice = props.data.reduce((prve, cur) => {
- const curTotal = cur.info.filter(v => v.gift != true && v.status !== "return").reduce((a,
+ const curTotal = cur.info.reduce((a,
b) => {
- // return a + b.priceAmount*1||(b.num*b.price+b.packAmount*1)
- // return a + (b.num*b.price+b.packAmount*1)
return a + (b.num * b.price)
}, 0)
return prve + curTotal
}, 0)
return goodsPrice.toFixed(2)
-
})
-
+
+ const freePrice = computed(() => {
+ const goodsPrice = props.data.reduce((prve, cur) => {
+ const curTotal = cur.info.filter(v => v.gift == true || isTui(v)).reduce((a,
+ b) => {
+ return a + (b.num * b.price)
+ }, 0)
+ return prve + curTotal
+ }, 0)
+ return goodsPrice.toFixed(2)
+ })
+ const vipDiscountPrice = computed(() => {
+ if (!props.user.isVip) {
+ return 0
+ }
+ const goodsPrice = props.data.reduce((prve, cur) => {
+ const curTotal = cur.info.filter(v => v.gift != true && v.status !== "return"&&v.memberPrice&&(v.memberPrice!=v.price)).reduce((a,
+ b) => {
+ return a + (b.num * (b.price-b.memberPrice))
+ }, 0)
+ return prve + curTotal
+ }, 0)
+ return goodsPrice.toFixed(2)
+ })
+ const youhuiAllPrice=computed(()=>{
+ console.log(freePrice.value);
+ return (freePrice.value*1+vipDiscountPrice.value*1).toFixed(2)
+ })
const packFee = computed(() => {
const goodsPrice = props.data.reduce((prve, cur) => {
const curTotal = cur.info.filter(v => v.gift != true && v.status !== "return").reduce((a,
@@ -225,7 +290,9 @@
return goodsPrice.toFixed(2)
})
-
+ const allPrice = computed(() => {
+ return (goodsOriginAllPrice.value-freePrice.value-vipDiscountPrice.value).toFixed(2)
+ })
const goodsNumber = computed(() => {
let result = 0
diff --git a/pagesOrder/detail/detail.vue b/pagesOrder/detail/detail.vue
index 18059ef..2a39559 100644
--- a/pagesOrder/detail/detail.vue
+++ b/pagesOrder/detail/detail.vue
@@ -6,6 +6,7 @@
{{orderDetail.info.tableName}}
-->
@@ -318,7 +319,7 @@
totalScore:'0.00'
})
//更新选择用户
- function setUser(par) {
+ async function setUser(par) {
const submitPar = {
orderId:options.id||'',
masterId: options.masterId,
@@ -327,7 +328,9 @@
type: user.value.id ? 0 : 1 //0 设置 1 取消
}
Object.assign(submitPar, par)
- return Api.$setUser(submitPar)
+ const res=await Api.$setUser(submitPar)
+ init()
+ return res
}
diff --git a/pagesOrder/index/compoents/order-item.vue b/pagesOrder/index/compoents/order-item.vue
index 83334d3..7c8cf3f 100644
--- a/pagesOrder/index/compoents/order-item.vue
+++ b/pagesOrder/index/compoents/order-item.vue
@@ -41,12 +41,27 @@
×{{item.num}}
-
- ¥{{goodsPriceAmount(item)}}
-
- ¥0
+
+
+ ¥{{goodsPriceAmount(item)}}
+
+ ¥0
+
-
+
+
+
+ ¥{{goodsPriceAmount(item)}}
+
+ ¥{{goodsVipPriceAmount(item)}}
+
+
+
+
+
+ ¥{{goodsPriceAmount(item)}}
+
+
@@ -123,6 +138,10 @@
function goodsPriceAmount(item){
return (item.price*item.num).toFixed(2)
}
+ function goodsVipPriceAmount(item){
+ const price=props.data.memberId?item.memberPrice: item.price
+ return (price*item.num).toFixed(2)
+ }
// const packeFee=computed(()=>{
// return props.data.detailList.reduce((prve,cur)=>{
// return prve+cur.packAmount
diff --git a/pagesOrder/pay-order/pay-order.vue b/pagesOrder/pay-order/pay-order.vue
index ed2d9c2..67897b7 100644
--- a/pagesOrder/pay-order/pay-order.vue
+++ b/pagesOrder/pay-order/pay-order.vue
@@ -15,15 +15,31 @@
-
- 优惠券
-
- 选择优惠券
-
-
+
+
+ 优惠券
+
+ 选择优惠券
+
+
+
+
+
+
+ 减
+ {{item.name}}
+
+
+ ¥{{item.discountAmount}}
+
+
+
+
+
+
服务员改价
@@ -45,7 +61,7 @@
{{item.payName}}
-
+
会员:
{{user.telephone||user.nickName}}
@@ -130,6 +146,18 @@
import * as orderApi from '@/http/yskApi/order.js'
import infoBox from '@/commons/utils/infoBox.js'
import editDiscount from '@/components/my-components/edit-discount.vue'
+ function toQuan(){
+ console.log(order);
+ if(!order.memberId){
+ return infoBox.showToast('请先选择会员',0.5).then(()=>{
+ chooseUser()
+ })
+ }
+ go.to('PAGES_ORDER_QUAN',{
+ orderId:order.id,
+ memberId:order.memberId
+ })
+ }
async function discountShow(){
const bol=await hasPermission('yun_xu_da_zhe')
if(bol){
@@ -173,7 +201,8 @@
payTypes: {
list: [],
selIndex: 0
- }
+ },
+ quan:[]
})
function chooseUser() {
@@ -184,9 +213,9 @@
console.log(option);
const submitPar = {
tableId: order.tableId,
+ orderId:order.id,
masterId: order.masterId,
vipUserId: user.value.id ? user.value.id : '',
- orderId:order.id,
type: user.value.id ? 0 : 1 //0 设置 1 取消
}
Object.assign(submitPar, par)
@@ -206,8 +235,17 @@
})
})
}
+ function watchChooseQuan() {
+ uni.$off('choose-quan')
+ uni.$on('choose-quan', (arr) => {
+ console.log(arr);
+ pays.quan=arr
+ })
+ }
+
onShow(()=>{
watchChooseuser()
+ watchChooseQuan()
})
watch(() => pays.selIndex, (newval) => {
@@ -381,6 +419,15 @@
+ .fixed-b {
+ position: fixed;
+ bottom: 0;
+ background-color: #fff;
+ right: 0;
+ left: 0;
+ }
+
+ .bg-gray {
+ border-radius: 18rpx;
+ overflow: hidden;
+ }
+
+ .price1 {
+ color: rgb(255, 107, 0);
+ }
+
+ .payType {
+ .radio {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: rgb(255, 212, 0);
+ width: 40rpx;
+ height: 40rpx;
+ border-radius: 40rpx;
+ opacity: 0;
+
+ }
+
+ .active {
+ .radio {
+ opacity: 1;
+ }
+ }
+ }
+
+ .left-block {
+ position: relative;
+
+ &::after {
+ content: '';
+ position: absolute;
+ left: -30rpx;
+ display: block;
+ width: 12rpx;
+ top: 0;
+ background-color: rgb(255, 212, 0);
+ bottom: 0;
+ }
+ }
+
+ .filtergray {
+ filter: grayscale(1);
+ }
+
+ .radio {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: rgb(255, 255, 255);
+ width: 40rpx;
+ height: 40rpx;
+ border-radius: 40rpx;
+
+ &.active {}
+ }
+
+ .use-btn {
+ background-color: #fff;
+ border-radius: 100rpx;
+ padding: 4rpx 20rpx;
+ color: $quan-color;
+ }
+
+ .u-font-40 {
+ font-size: 40rpx;
+ }
+
+ .yilingqu {
+ position: absolute;
+ bottom: 20rpx;
+ right: 20rpx;
+ }
+
+ .lingqu {
+ position: absolute;
+ bottom: 20rpx;
+ right: 20rpx;
+ background-color: rgb(255, 207, 0);
+ padding: 10rpx 30rpx;
+ border-radius: 100rpx;
+ }
+
+ .btn {
+ background-color: $my-main-color;
+ color: #fff;
+ border: none;
+ padding: 10rpx 20rpx;
+ border-radius: 10rpx;
+ }
+
+ .hui {
+ // background-color: $quan-color;
+ background-image: linear-gradient(to right bottom,rgb(254,103,4),rgb(241,50,42));
+ padding: 4rpx 10rpx;
+ border-radius: 10rpx;
+ font-size: 24rpx;
+ color: #fff;
+ }
+
+ .quan {
+ border: 1px solid rgb(238, 238, 238);
+ position: relative;
+ border-radius: 10rpx;
+ box-shadow: 0 0 5px #eee;
+ overflow: hidden;
+
+ .sel {
+ padding: 2rpx 4rpx;
+ position: absolute;
+ background-color: $quan-color;
+ left: 0;
+ top: 0;
+ border-radius: 0 0 24rpx 0;
+ }
+
+ .right {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ padding: 20rpx 24rpx;
+ color: #fff;
+ display: flex;
+ flex-direction: column;
+ background-color: $quan-color;
+ height: 100%;
+ }
+
+ &.goods {
+ .right {
+ background-color: #fff;
+ position: initial;
+
+ .use-btn {
+ padding: 10rpx 40rpx;
+ color: #fff;
+ background-color: $quan-color;
+ }
+ }
+ }
+ }
+
+ .bottom {
+ padding: 30rpx 30rpx 80rpx 30rpx;
+ }
+
\ No newline at end of file
From 1836a5b10b554876c3efdf06547f174de2d08c3b Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Thu, 7 Nov 2024 17:26:44 +0800
Subject: [PATCH 07/77] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A1=AE=E8=AE=A4?=
=?UTF-8?q?=E8=AE=A2=E5=8D=95=E4=BC=9A=E5=91=98=E4=BB=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../confirm-order/confirm-order.vue | 39 +++++++++++++++----
1 file changed, 31 insertions(+), 8 deletions(-)
diff --git a/pagesCreateOrder/confirm-order/confirm-order.vue b/pagesCreateOrder/confirm-order/confirm-order.vue
index 584bd39..d89f18a 100644
--- a/pagesCreateOrder/confirm-order/confirm-order.vue
+++ b/pagesCreateOrder/confirm-order/confirm-order.vue
@@ -160,10 +160,29 @@
-
- ¥
- 0
- {{formatPrice(item.salePrice*item.number) }}
+
+
+ ¥{{formatPrice(item.salePrice*item.number) }}
+
+ ¥0
+
+
+
+
+ ¥{{formatPrice(item.salePrice*item.number) }}
+
+ ¥{{formatPrice(item.memberPrice*item.number) }}
+
+
+
+
+ ¥
+ {{formatPrice(item.salePrice*item.number) }}
+
+
+
+
×{{item.number}}
@@ -342,10 +361,10 @@
console.log($shop.value);
const maxCapacity = table.value.tableId ? (table.value.maxCapacity || 0) : 100
if (table.value.tableId && userNumbers.defaultCateIndex * 1 + 1 > maxCapacity) {
- uni.showToast({
+ uni.showToast({
title: '当前台桌最大人数为: ' + maxCapacity
})
- userNumbers.defaultCateIndex=maxCapacity-1
+ userNumbers.defaultCateIndex = maxCapacity - 1
return
}
if (!$shop.value.isTableFee && table.value.tableId) {
@@ -492,9 +511,13 @@
totalNumber: 0,
totalAmount: 0,
})
+ const isVip=computed(()=>{
+ return user.value&&user.value.id&&user.value.isVip
+ })
const goodsPrice = computed(() => {
const goodsTotalPrice = goods.list.reduce((prve, cur) => {
- const tPrice = cur.salePrice * cur.number
+ const memberPrice=cur.memberPrice?cur.memberPrice:cur.salePrice
+ const tPrice = (isVip.value? memberPrice:cur.salePrice) * cur.number
console.log(cur.isPack);
const tpackFee = cur.isPack ? cur.packFee * 1 : 0
return prve + (cur.isGift ? 0 : tPrice) + tpackFee
@@ -653,7 +676,7 @@
tableId: opt.tableId || '',
name: opt.name
}
- userNumbers.list = new Array(opt.maxCapacity?opt.maxCapacity*1:100).fill(1).map((v, index) => {
+ userNumbers.list = new Array(opt.maxCapacity ? opt.maxCapacity * 1 : 100).fill(1).map((v, index) => {
return (index + 1) + '人'
})
// console.log(userNumbers.list);
From 3838036f8a4c4e7f31ae2e383c92de7c0e3814a5 Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Fri, 8 Nov 2024 14:50:26 +0800
Subject: [PATCH 08/77] =?UTF-8?q?=20=E9=9A=90=E8=97=8F=E5=B9=B4=E6=9C=88?=
=?UTF-8?q?=E6=97=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pageConsumables/components/my-date-pickerview.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pageConsumables/components/my-date-pickerview.vue b/pageConsumables/components/my-date-pickerview.vue
index df67817..f634983 100644
--- a/pageConsumables/components/my-date-pickerview.vue
+++ b/pageConsumables/components/my-date-pickerview.vue
@@ -24,7 +24,7 @@
{{item}}日
-
+
至
{{item}}日
-
+
From 7f265b758376f2019228234ddbb7b5e2d714ded1 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Mon, 11 Nov 2024 09:38:09 +0800
Subject: [PATCH 09/77] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../add-Product/add-Product - 副本.vue | 1916 +++++++++++++++--
.../components/edit-accountPoints.vue | 195 ++
pagesOrder/pay-order/pay-order.vue | 274 ++-
pagesOrder/quan/quan.vue | 9 +-
4 files changed, 2102 insertions(+), 292 deletions(-)
create mode 100644 pagesOrder/pay-order/components/edit-accountPoints.vue
diff --git a/pageProduct/add-Product/add-Product - 副本.vue b/pageProduct/add-Product/add-Product - 副本.vue
index f9ec7b6..e08499a 100644
--- a/pageProduct/add-Product/add-Product - 副本.vue
+++ b/pageProduct/add-Product/add-Product - 副本.vue
@@ -1,189 +1,845 @@
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{category.list[FormData.category]||'分类'}}
-
-
-
-
-
-
-
-
-
- {{FormData.specificationsGroup||'添加规格组'}}
-
-
-
-
-
-
-
-
-
-
- {{salesMethod.list[FormData.salesMethod]||'售卖方式'}}
-
-
-
-
-
-
- 库存
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- 打折设置
-
-
+
+
+
+
+ 注:第一张图为商品封面图,图片尺寸为750x750
-
-
-
-
+
+
-
-
-
- 不参与会员折扣
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
- 每日销量上限
-
+
-
-
-
-
- 每单限购
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 设为推荐
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 名称
+ 操作
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+ 添加团购券分类
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择规格
+ 编辑规格
+
+
+
+ {{FormData.specsInfoName}}
+ 请选择
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 套餐商品
+
+
+
+
+
+
+
+ 商品信息
+
+
+ 名称
+ 数量
+ 操作
+
+
+
+
+ {{product.name}}
+
+
+
+
+ x1
+
+
+
+
+
+
+
+
+ 添加商品
+
+
+
+
+
+
+
+
+
+
+ 删除分组
+
+
+
+
+
+
+ 添加分组
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上架
+
+
+
+
+
+
+ 库存开关
+
+
+ 注:关闭则不计算出入库数据
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 设为推荐
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除该商品
+
-
-
-
+
+
+ 保存
+
+
+
-
- 删除该商品
-
-
+
-
-
-
+
+
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pagesOrder/pay-order/components/edit-accountPoints.vue b/pagesOrder/pay-order/components/edit-accountPoints.vue
new file mode 100644
index 0000000..2d317b2
--- /dev/null
+++ b/pagesOrder/pay-order/components/edit-accountPoints.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+ *
+
+
+
+
+ 积分
+
+
+
+
+
+
+
+
+
+ 修改
+
+ 取消
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pagesOrder/pay-order/pay-order.vue b/pagesOrder/pay-order/pay-order.vue
index 67897b7..9ae21ad 100644
--- a/pagesOrder/pay-order/pay-order.vue
+++ b/pagesOrder/pay-order/pay-order.vue
@@ -1,17 +1,30 @@
-
- ¥
- {{discount.currentPrice?discount.currentPrice:order.amount}}
-
-
- ¥
- {{order.amount}}
-
-
- 修改
-
+
+
+ ¥
+
+ {{payPrice}}
+
+
+ ¥
+ {{order.amount}}
+
+
+ 修改
+
+
+
+
+ ¥
+ {{order.amount}}
+
+
+ 修改
+
+
+
@@ -26,7 +39,8 @@
-
+
减
{{item.name}}
@@ -36,17 +50,26 @@
-
+
-
-
-
- 服务员改价
-
- -¥{{to2(order.amount- discount.currentPrice)}}
+
+
+
+ 服务员改价
+
+ -¥{{to2(order.amount- discount.currentPrice)}}
+
+
+
+ 积分抵扣
+
+ -¥{{to2(accountPoints.price)}}
+
+
@@ -70,6 +93,10 @@
余额:
¥{{user.amount||'0'}}
+
@@ -78,6 +105,51 @@
+
+
+
+ 积分抵扣
+
+ (
+ {{user.accountPoints||'0'}}
+ )
+
+
+
+
+
+
+ {{accountPoints.num}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ *
+ {{accountPoints.calcRes.unusableReason}}
+
+
+ *
+ 100积分等于{{to2(accountPoints.calcRes.equivalentPoints*100)}}元,
+
+ 最大抵扣积分{{accountPoints.calcRes.maxUsablePoints}}
+
+ ,
+ 最小抵扣积分0
+
+
+
确认付款
@@ -122,6 +194,8 @@
+
+
@@ -131,41 +205,108 @@
onMounted,
watch,
ref,
- onBeforeUnmount
+ onBeforeUnmount,
+ computed
} from 'vue';
import {
onLoad,
- onBackPress,onShow
+ onBackPress,
+ onShow
} from '@dcloudio/uni-app'
import go from '@/commons/utils/go.js'
import * as Api from '@/http/yskApi/Instead.js'
import {
queryAllShopUser
} from '@/http/yskApi/shop-user.js'
- import {hasPermission} from '@/commons/utils/hasPermission.js'
+ import {
+ hasPermission
+ } from '@/commons/utils/hasPermission.js'
import * as orderApi from '@/http/yskApi/order.js'
import infoBox from '@/commons/utils/infoBox.js'
import editDiscount from '@/components/my-components/edit-discount.vue'
- function toQuan(){
+ import editAccountPoints from './components/edit-accountPoints.vue'
+
+ const refPoints=ref(null)
+ function refPointsOpen(){
+ if(!accountPoints.calcRes.usable&&accountPoints.sel){
+ return
+ }
+ refPoints.value.open()
+ }
+ const accountPoints = reactive({
+ sel: false,
+ num: 0,
+ calcRes:{
+ usable:false,
+ unusableReason:'',
+ minDeductionPoints:0,
+ maxUsablePoints:0
+ },
+ price:0
+ })
+ async function calcUsablePoints(){
+ const res=await Api.$calcUsablePoints({
+ memberId:order.memberId,
+ orderAmount:order.amount
+ })
+ accountPoints.calcRes=res
+ accountPoints.num=res.maxUsablePoints
+ return res;
+ }
+ watch(()=>accountPoints.sel,(newval)=>{
+ if(newval){
+ calcUsablePoints()
+ }
+ })
+ async function calcDeDuctionPoints(){
+ const res=await Api.$calcDeDuctionPoints({
+ memberId: order.memberId,
+ orderAmount: order.amount,
+ points: accountPoints.num
+ })
+ accountPoints.price=res
+ return res
+ }
+ watch(()=>accountPoints.num,(newval)=>{
+ if(!newval){
+ accountPoints.price=0
+ return
+ }
+ calcDeDuctionPoints()
+ })
+
+ function changeAccountPoints() {
+ if(!accountPoints.calcRes.usable){
+ return
+ }
+ accountPoints.sel = !accountPoints.sel
+ if (!accountPoints.sel) {
+ accountPoints.num = 0
+ }
+ }
+
+ function toQuan() {
console.log(order);
- if(!order.memberId){
- return infoBox.showToast('请先选择会员',0.5).then(()=>{
+ if (!order.memberId) {
+ return infoBox.showToast('请先选择会员', 0.5).then(() => {
chooseUser()
})
}
- go.to('PAGES_ORDER_QUAN',{
- orderId:order.id,
- memberId:order.memberId
+ go.to('PAGES_ORDER_QUAN', {
+ orderId: order.id,
+ memberId: order.memberId
})
}
- async function discountShow(){
- const bol=await hasPermission('yun_xu_da_zhe')
- if(bol){
- showModel('editMoney',true)
+ async function discountShow() {
+ const bol = await hasPermission('yun_xu_da_zhe')
+ if (bol) {
+ showModel('editMoney', true)
}
}
- let option = {isNowPay:false}
- let payFinish=ref(false)
+ let option = {
+ isNowPay: false
+ }
+ let payFinish = ref(false)
onBackPress(() => {
uni.$emit('orderDetail:update')
console.log('onBackPress');
@@ -202,18 +343,18 @@
list: [],
selIndex: 0
},
- quan:[]
+ quan: []
})
-
+
function chooseUser() {
go.to('PAGES_CHOOSE_USER')
}
//更新选择用户
- function setUser(par) {
+ function setUser(par) {
console.log(option);
const submitPar = {
tableId: order.tableId,
- orderId:order.id,
+ orderId: order.id,
masterId: order.masterId,
vipUserId: user.value.id ? user.value.id : '',
type: user.value.id ? 0 : 1 //0 设置 1 取消
@@ -221,29 +362,31 @@
Object.assign(submitPar, par)
return Api.$setUser(submitPar)
}
+
function watchChooseuser() {
uni.$off('choose-user')
uni.$on('choose-user', (data) => {
console.log(data);
- setUser({
- vipUserId: data.id ? data.id : '',
- type: data.id ? 0 : 1 //0 设置 1 取消
- }).then(res=>{
- user.value = data
- order.memberId=data.id
- init()
- })
+ setUser({
+ vipUserId: data.id ? data.id : '',
+ type: data.id ? 0 : 1 //0 设置 1 取消
+ }).then(res => {
+ user.value = data
+ order.memberId = data.id
+ init()
+ })
})
}
+
function watchChooseQuan() {
uni.$off('choose-quan')
uni.$on('choose-quan', (arr) => {
console.log(arr);
- pays.quan=arr
+ pays.quan = arr
})
}
-
- onShow(()=>{
+
+ onShow(() => {
watchChooseuser()
watchChooseQuan()
})
@@ -281,12 +424,22 @@
const discount = reactive({
})
-
+ const coupAllPrice=computed(()=>{
+ return pays.quan.reduce((prve,cur)=>{
+ return prve+cur.discountAmount*1
+ },0)
+ })
+ const payPrice=computed(()=>{
+ const discountPrice=discount.currentPrice?discount.currentPrice:order.amount
+ const calcPrice=discountPrice-coupAllPrice.value-accountPoints.price*(accountPoints.sel?1:0)
+ return (calcPrice<=0?0:calcPrice).toFixed(2)
+ })
function editDiscountConfirm(form) {
console.log(form);
Object.assign(discount, form)
getPayUrl()
}
+
async function getPayType() {
const payTypeList = await Api.$getPayType()
pays.payTypes.list = payTypeList
@@ -294,8 +447,8 @@
function changePayType(i, item) {
pays.payTypes.selIndex = i
- if (item.payType == 'vipPay' ) {
- chooseUser()
+ if (item.payType == 'vipPay') {
+ chooseUser()
}
}
//支付成功回调
@@ -303,7 +456,7 @@
infoBox.showToast('支付成功')
setTimeout(() => {
// uni.$emit('orderDetail:update')
- payFinish.value=true
+ payFinish.value = true
uni.$emit('get:table')
uni.$emit('update:orderDetail')
uni.navigateBack({
@@ -323,8 +476,8 @@
async function payOrder() {
const payType = pays.payTypes.list[pays.payTypes.selIndex].payType
if (payType == 'vipPay' && user.value.amount * 1 < order.amount * 1) {
- infoBox.showToast('余额不足')
- return
+ infoBox.showToast('余额不足')
+ return
}
await Api.$payOrder({
tableId: order.tableId,
@@ -385,11 +538,12 @@
const orderRes = await orderApi.tbOrderInfoDetail(order.orderId)
Object.assign(order, orderRes)
if (orderRes.memberId) {
+ calcUsablePoints()
queryAllShopUser({
id: orderRes.memberId
}).then(res => {
- if(res.content[0]){
- user.value =res.content[0]
+ if (res.content[0]) {
+ user.value = res.content[0]
}
})
}
@@ -420,14 +574,16 @@
\ No newline at end of file
diff --git a/pagesOrder/detail/components/list.vue b/pagesOrder/detail/components/list.vue
index f952fec..3230e8a 100644
--- a/pagesOrder/detail/components/list.vue
+++ b/pagesOrder/detail/components/list.vue
@@ -136,9 +136,8 @@
已优惠¥{{youhuiAllPrice}}
-
+
-
小计¥
{{allPrice}}
@@ -174,13 +173,13 @@
{{to2(allPrice*1+seatFeePrice*1+packFee*1) }}
-
+
+
+
+ 服务员改价
+ -¥{{orderDetail.info.discountAmount}}
+
From 0f2e79155702227c18593c26616885dde65528e5 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Sat, 23 Nov 2024 09:35:22 +0800
Subject: [PATCH 68/77] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=94=AF=E4=BB=98?=
=?UTF-8?q?=E8=AF=A6=E6=83=85=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E9=80=BB?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pagesOrder/detail/components/list.vue | 23 ++++++++++++++-----
pagesOrder/pay-order/pay-order.vue | 33 +++++++++++++++++++++++----
2 files changed, 46 insertions(+), 10 deletions(-)
diff --git a/pagesOrder/detail/components/list.vue b/pagesOrder/detail/components/list.vue
index 3230e8a..1a529a3 100644
--- a/pagesOrder/detail/components/list.vue
+++ b/pagesOrder/detail/components/list.vue
@@ -168,10 +168,19 @@
-
- 总计¥
- {{to2(allPrice*1+seatFeePrice*1+packFee*1) }}
-
+
+
+ 总计¥
+ {{to2(allPrice*1+seatFeePrice*1+packFee*1) }}
+
+
+
+
+ 总计¥
+ {{orderInfo.amount}}
+
+
+
@@ -9,7 +9,7 @@
¥
- {{order.amount}}
+ {{originPrice}}
修改
@@ -18,7 +18,7 @@
¥
- {{order.amount}}
+ {{originPrice}}
修改
@@ -27,8 +27,17 @@
-
-
+
+
+
+ 会员优惠
+
+ -¥{{vipDiscount}}
+
+
+
+
+
优惠券
@@ -202,7 +211,8 @@
-
{
+ if (!user.value.isVip) {
+ return 0
+ }
+ const goodsPrice = order.detailList.filter(v => v.gift != true && v.status !== "return" && (v.isMember &&
+ v.memberPrice) && (v.memberPrice != v.price)).reduce((
+ a,
+ b) => {
+ return a + (b.num * (b.price - b.memberPrice))
+ }, 0)
+ return goodsPrice.toFixed(2)
+ })
+ const originPrice = computed(() => {
+ return (order.amount || 0) * 1 + vipDiscount.value * 1
+ })
const fullCouponDiscountAmount = computed(() => {
return pays.quan.filter(v => v.type == 1).reduce((prve, cur) => {
return prve + cur.discountAmount * 1
From 5ae1e4b4201c039c214071904704a53bc4badbc0 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Sat, 23 Nov 2024 14:26:21 +0800
Subject: [PATCH 70/77] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?=
=?UTF-8?q?=E7=BB=93=E7=AE=97=E5=90=8E=E5=8F=AA=E5=B1=95=E7=A4=BA=E5=B7=B2?=
=?UTF-8?q?=E4=BC=98=E6=83=A0=E4=BB=B7=E6=A0=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pagesOrder/detail/components/list.vue | 2 +-
pagesOrder/detail/detail.vue | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pagesOrder/detail/components/list.vue b/pagesOrder/detail/components/list.vue
index f670809..821d986 100644
--- a/pagesOrder/detail/components/list.vue
+++ b/pagesOrder/detail/components/list.vue
@@ -497,7 +497,7 @@
const youhuiAllPrice = computed(() => {
if(props.orderInfo.status!='unpaid'){
const seatfee=(props.orderInfo.amount==0&&allPrice.value==0)?seatFeePrice.value:0
- return (goodsOriginAllPrice.value-allPrice.value-discountAmount.value+seatfee*1).toFixed(2)
+ return (goodsOriginAllPrice.value-allPrice.value+seatfee*1).toFixed(2)
}
return (freePrice.value * 1 + vipDiscountPrice.value * 1 + props.orderInfo.fullCouponDiscountAmount + props
.orderInfo.pointsDiscountAmount + (props.orderInfo.status == 'unpaid' ? productCoupPrice.value :
diff --git a/pagesOrder/detail/detail.vue b/pagesOrder/detail/detail.vue
index 1b4c88b..4ba1343 100644
--- a/pagesOrder/detail/detail.vue
+++ b/pagesOrder/detail/detail.vue
@@ -10,10 +10,10 @@
:data="orderDetail.goodsList" :seatFee="orderDetail.seatFee" @tuicai="onTuiCai">
-
+
From 586f30c4c4324d2ab70de524eb38614e2af2e568 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Sat, 23 Nov 2024 15:13:21 +0800
Subject: [PATCH 71/77] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=80=E6=AC=BE?=
=?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=85=AC=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pagesOrder/detail/components/extra.vue | 58 +++++++++++++++++++++-----
pagesOrder/detail/components/list.vue | 7 ++--
pagesOrder/pay-order/pay-order.vue | 3 +-
3 files changed, 53 insertions(+), 15 deletions(-)
diff --git a/pagesOrder/detail/components/extra.vue b/pagesOrder/detail/components/extra.vue
index 86440d5..deb262b 100644
--- a/pagesOrder/detail/components/extra.vue
+++ b/pagesOrder/detail/components/extra.vue
@@ -1,5 +1,6 @@
-
+
附加费
@@ -14,7 +15,7 @@
{{data.productName||'餐位费'}}
x{{data.num||0}}
- ¥{{data.priceAmount}}
+ ¥{{seatFeePrice}}
@@ -24,7 +25,8 @@
{{data.status=='refunding'?'退款中': '已退'}}
x{{data.num||0}}
- ¥{{data.priceAmount||data.returnAmount}}
+ ¥{{seatFeePrice}}
+