feat: 代客下单修改退款退菜

This commit is contained in:
2025-03-07 10:40:25 +08:00
parent ef358f33bb
commit d7ab9c3627
6 changed files with 263 additions and 19 deletions

View File

@@ -42,7 +42,7 @@ const controls = ref([
{ label: "整单等叫", key: "", disabled: false, per: "all-wating" },
]);
const emits = defineEmits(["noteClick", "changePriceClick", "packClick"]);
const emits = defineEmits(["noteClick", "changePriceClick", "packClick", "return"]);
function controlsClick(item) {
switch (item.key) {
case "is_gift":
@@ -99,7 +99,12 @@ const canEdit = computed(() => {
});
function btnDisabled(item) {
return !perList.value.includes(item.per);
const canClick = perList.value.includes(item.per);
if (item.key == "return") {
return !canClick || carts.selCart.returnNum >= carts.selCart.number;
} else {
return !canClick;
}
}
function returnLabel(item) {
if (item.key == "is_gift") {