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; }