菜谱修改
This commit is contained in:
parent
b806b96c97
commit
6410e5e6fe
|
|
@ -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(() => {});
|
||||||
},
|
},
|
||||||
//清空当天菜谱-日期
|
//清空当天菜谱-日期
|
||||||
|
|
|
||||||
|
|
@ -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(() => {});
|
||||||
},
|
},
|
||||||
// ------日期--------
|
// ------日期--------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue