feat: 增加数量编辑弹窗,修复数量输入键盘问题增加限制最多两位小数,增加socket重连次数上限弹窗
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div class="reduce" @click="changeCartNumber(-1)">
|
||||
<el-icon><Minus /></el-icon>
|
||||
</div>
|
||||
<span class="text">{{ carts.selCart.number || 1 }}</span>
|
||||
<span class="text" @click="changeCartNumberShow()">{{ carts.selCart.number || 1 }}</span>
|
||||
<div class="add" @click="changeCartNumber(1)">
|
||||
<el-icon><Plus /></el-icon>
|
||||
</div>
|
||||
@@ -44,7 +44,20 @@ const controls = ref([
|
||||
// { label: "整单等叫", key: "", disabled: false, per: "all-wating" },
|
||||
]);
|
||||
|
||||
const emits = defineEmits(["noteClick", "changePriceClick", "packClick", "return", "rottable"]);
|
||||
const emits = defineEmits([
|
||||
"noteClick",
|
||||
"changePriceClick",
|
||||
"packClick",
|
||||
"return",
|
||||
"rottable",
|
||||
"changeCartNumberShow",
|
||||
]);
|
||||
function changeCartNumberShow() {
|
||||
if (!carts.selCart.id) {
|
||||
return;
|
||||
}
|
||||
emits("changeCartNumberShow");
|
||||
}
|
||||
function controlsClick(item) {
|
||||
switch (item.key) {
|
||||
case "is_gift":
|
||||
@@ -99,8 +112,9 @@ const perList = computed(() => {
|
||||
if (carts.selCart.id) {
|
||||
if (carts.isOldOrder) {
|
||||
arr = ["return"];
|
||||
} else {
|
||||
arr = ["cart", "del", "pack", "gift", "save", "one-note", "print", "all-note", "all-wating"];
|
||||
}
|
||||
arr = ["cart", "del", "pack", "gift", "save", "one-note", "print", "all-note", "all-wating"];
|
||||
}
|
||||
if (carts.oldOrder.id) {
|
||||
arr.push("rottable");
|
||||
|
||||
Reference in New Issue
Block a user