浏览代码

加减数量bug修改

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

+ 15 - 9
src/views/order/console.vue

@@ -22,6 +22,14 @@
                             </div>
                         </div>
                     </template>
+                    <el-input
+                        v-model="params.remark"
+                        maxlength="100"
+                        placeholder="订单备注"
+                        show-word-limit
+                        type="textarea"
+                    />
+                    <el-divider />
                     <el-scrollbar ref="scrollbarRef" class="scrollbar">
                         <div ref="innerRef">
                             <el-empty
@@ -40,13 +48,6 @@
                             </goods-item>
                         </div>
                     </el-scrollbar>
-                    <el-input
-                        v-model="params.remark"
-                        maxlength="100"
-                        placeholder="订单备注"
-                        show-word-limit
-                        type="textarea"
-                    />
                     <div class="flex justify-between items-center mt-2">
                         <div
                             class="flex-1 h-12 border rounded-md flex items-center justify-center cursor-pointer relative mr-2"
@@ -763,7 +764,8 @@ const beforeClose = () => {
 }
 const add = (item: any) => {
     // addGoods(item)
-    dishInc({ id: item.id })
+    console.log('***add***', item)
+    dishInc({ id: item.ordersDishId })
         .then(() => {
             data.selectGoods[data.selectGoods.indexOf(item)].num++
             addHandle(item)
@@ -1031,7 +1033,11 @@ defineExpose({
     width: 100%;
 }
 .scrollbar {
-    height: calc(100vh - 54px - 32px - 16px - 61px - 20px - 52px - 49px - 64px);
+    height: calc(100vh - 54px - 32px - 16px - 61px - 20px - 52px - 49px - 70px);
+}
+
+:deep(.el-divider--horizontal) {
+  margin: 8px 0;
 }
 
 .cate-buttons :deep(.el-button) {