菜谱修改

This commit is contained in:
zzyuan 2025-12-29 10:01:30 +08:00
parent b806b96c97
commit 6410e5e6fe
2 changed files with 13 additions and 13 deletions

View File

@ -303,7 +303,7 @@
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="confirmCopyMenu">复制菜谱</el-button> <el-button type="primary" @click="confirmCopyMenu">复制菜谱</el-button>
<el-button @click="openCopyMenu=false"></el-button> <el-button @click="openCopyMenu=false"></el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 复制本菜谱到指定日期-日期 --> <!-- 复制本菜谱到指定日期-日期 -->
@ -1633,10 +1633,10 @@ export default {
}, },
//- //-
confirmCopyMealTypeMenu(item){ confirmCopyMealTypeMenu(item){
console.log(item) // console.log(item)
console.log(this.dialogDetailList) // console.log(this.dialogDetailList)
console.log(this.detailList) // console.log(this.detailList)
this.$modal.confirm('当前日期会被覆盖!确定复制?').then(() => { this.$modal.confirm('所选餐次会被覆盖!确定复制?').then(() => {
item.dishesList.forEach(sub=>{ item.dishesList.forEach(sub=>{
sub.price = (Number(sub.price)/100).toFixed(2) sub.price = (Number(sub.price)/100).toFixed(2)
sub.salePrice = (Number(sub.salePrice)/100).toFixed(2) sub.salePrice = (Number(sub.salePrice)/100).toFixed(2)
@ -1651,7 +1651,7 @@ export default {
this.weekDateList[index].detailList = this.detailList; this.weekDateList[index].detailList = this.detailList;
} }
this.$modal.msgSuccess("复制成功"); this.$modal.msgSuccess("复制成功");
this.openCopyMenu = false // this.openCopyMenu = false
}).catch(() => {}); }).catch(() => {});
}, },
//- //-

View File

@ -300,8 +300,8 @@
</div> </div>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="confirmCopyMenu"></el-button> <el-button type="primary" @click="confirmCopyMenu">复制菜谱</el-button>
<el-button @click="openCopyMenu=false"></el-button> <el-button @click="openCopyMenu=false"></el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 复制本菜谱到指定日期-日期 --> <!-- 复制本菜谱到指定日期-日期 -->
@ -1860,10 +1860,10 @@ export default {
}, },
//- //-
confirmCopyMealTypeMenu(item){ confirmCopyMealTypeMenu(item){
console.log(item) // console.log(item)
console.log(this.dialogDetailList) // console.log(this.dialogDetailList)
console.log(this.detailList) // console.log(this.detailList)
this.$modal.confirm('当前日期会被覆盖!确定复制?').then(() => { this.$modal.confirm('所选餐次会被覆盖!确定复制?').then(() => {
item.dishesList.forEach(sub=>{ item.dishesList.forEach(sub=>{
sub.price = (Number(sub.price)/100).toFixed(2) sub.price = (Number(sub.price)/100).toFixed(2)
sub.salePrice = (Number(sub.salePrice)/100).toFixed(2) sub.salePrice = (Number(sub.salePrice)/100).toFixed(2)
@ -1878,7 +1878,7 @@ export default {
this.weekDateList[index].detailList = this.detailList; this.weekDateList[index].detailList = this.detailList;
} }
this.$modal.msgSuccess("复制成功"); this.$modal.msgSuccess("复制成功");
this.openCopyMenu = false // this.openCopyMenu = false
}).catch(() => {}); }).catch(() => {});
}, },
// -------------- // --------------