浏览代码

点餐台优化

licc 2 月之前
父节点
当前提交
045c31ac97
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 3 1
      src/views/order/console.vue
  2. 2 2
      src/views/order/goodsItem.vue

+ 3 - 1
src/views/order/console.vue

@@ -417,7 +417,6 @@ const submit = () => {
         return false
     }
     // 显示取餐号输入弹框
-    takeNumber.value = ''
     takeNumberDialogVisible.value = true
 }
 // 添加确认提交函数
@@ -445,6 +444,8 @@ const confirmSubmit = () => {
         feedback.closeLoading()
         // feedback.notifySuccess('出单成功')
         checkout()
+    }).finally(()=>{
+      feedback.closeLoading()
     })
 }
 
@@ -609,6 +610,7 @@ const open = (item: any, num?: number, orderNumber?: any) => {
             params.userId = res[0].userId || null
             params.couponId = res[0].ticketId || null
             params.diningMethods = res[0].diningMethods || 1
+            takeNumber.value = res[0].mealCode || ''
             if (params.couponId && params.userId) {
                 searchUserCoupons()
             }

+ 2 - 2
src/views/order/goodsItem.vue

@@ -22,8 +22,8 @@
                 }}</span>
                 <span class="float-right">
                     <el-button-group size="small">
-                        <el-button @click="reduce()" :disabled="props.goodsItem.status==1"> - </el-button>
-                        <el-button @click="add()" :disabled="props.goodsItem.status==1"> + </el-button>
+                        <el-button @click="reduce()"> - </el-button>
+                        <el-button @click="add()"> + </el-button>
                     </el-button-group>
                 </span>
             </div>