From 1383548c586380e967517da82f46b2a2a2b60841 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Thu, 4 Dec 2025 17:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accountCenter/account/accountManager/index.vue | 12 ++++++------ src/views/canteen/dish/menu/detail.vue | 7 +++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/views/canteen/accountCenter/account/accountManager/index.vue b/src/views/canteen/accountCenter/account/accountManager/index.vue index c9880b4e..23d5d9c3 100644 --- a/src/views/canteen/accountCenter/account/accountManager/index.vue +++ b/src/views/canteen/accountCenter/account/accountManager/index.vue @@ -839,7 +839,7 @@ this.$modal.confirm('补贴金额:'+this.form.amount+'元,是否确认继续补贴?').then(() => { let param = { userId:this.form.userId, - amount:Number(this.form.amount*100) + amount:Number(this.form.amount*100).toFixed(0) } updateAccRechargeSingleApi(param).then(response => { this.$modal.msgSuccess("操作成功"); @@ -866,7 +866,7 @@ this.$modal.confirm('个人钱包余额已超过3000,是否确认继续充值?').then(() => { let param = { userId:this.form.userId, - amount:Number(this.form.amount*100) + amount:Number(this.form.amount*100).toFixed(0) } rechargeAccWalletApi(param).then(response => { this.$modal.msgSuccess("操作成功"); @@ -878,7 +878,7 @@ this.$modal.confirm('充值金额:'+this.form.amount+'元,是否确认继续充值?').then(() => { let param = { userId:this.form.userId, - amount:Number(this.form.amount*100) + amount:Number(this.form.amount*100).toFixed(0) } rechargeAccWalletApi(param).then(response => { this.$modal.msgSuccess("操作成功"); @@ -905,7 +905,7 @@ this.$modal.confirm('提现金额:'+this.form.amount+'元,是否确认继续提现?').then(() => { let param = { userId:this.form.userId, - amount:Number(this.form.amount*100) + amount:Number(this.form.amount*100).toFixed(0) } withdrawAccWalletApi(param).then(response => { this.$modal.msgSuccess("操作成功"); @@ -968,13 +968,13 @@ this.$refs["batchForm"].validate(valid => { if (valid) { let param = { - amount:Number(this.batchForm.amount*100), + amount:Number(this.batchForm.amount*100).toFixed(0), userIds:this.batchIds } checkAccRechargeBatchApi(param).then(response => { this.resultData = response.data this.batchList.forEach(item=>{ - item.amount = Number(this.batchForm.amount*100) + item.amount = Number(this.batchForm.amount*100).toFixed(0) }) if(this.resultData.errVOList.length==0){ this.resultData.successVoList = this.batchList diff --git a/src/views/canteen/dish/menu/detail.vue b/src/views/canteen/dish/menu/detail.vue index bace21dc..768f93a7 100644 --- a/src/views/canteen/dish/menu/detail.vue +++ b/src/views/canteen/dish/menu/detail.vue @@ -1528,6 +1528,7 @@ export default { //确认复制 confirmCopyMenu(){ this.$modal.confirm('当前日期会被覆盖!确定复制?').then(() => { + console.log(this.dialogDetailList) this.detailList=[] this.detailList = [ { @@ -1556,6 +1557,12 @@ export default { dishesList:[...this.dialogDetailList[4].dishesList] } ]; + this.detailList.forEach(item=>{ + item.dishesList.forEach(sub=>{ + sub.price = (Number(sub.price)/100).toFixed(2) + sub.price = (Number(sub.salePrice)/100).toFixed(2) + }) + }) if(this.copyType=='date'){ this.dateRangeList[this.dateRangeIndex].detailList = this.detailList; }