Ver código fonte

界面优化

licc 3 semanas atrás
pai
commit
84f99e0289
2 arquivos alterados com 5 adições e 4 exclusões
  1. 3 2
      src/views/order/console.vue
  2. 2 2
      src/views/orders/list.vue

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

@@ -137,7 +137,7 @@
                         >
                             <a href="javascript:void(0);" @click="addGoods(item)" :class="{ 'pointer-events-none': item.isShow == 0 }"
                                 ><el-card shadow="never" :body-style="{ padding: '0px' }" :class="{ 'relative': item.isShow == 0 }">
-                                    <div v-if="item.isShow == 0" class="absolute inset-0 bg-white z-10 pointer-events-none flex items-center justify-center select-none" 
+                                    <div v-if="item.isShow == 0" class="absolute inset-0 bg-white z-10 pointer-events-none flex items-center justify-center select-none"
                                     style="opacity: 0.5;color: red;font-size: 25px;">
                                     <span class="text-gray-600 font-medium">已售罄</span>
                                 </div>
@@ -492,7 +492,8 @@ const handleScanInput = (event: KeyboardEvent) => {
                   })
             }
           })
-          .catch(() => {
+          .catch((e) => {
+            console.log(e)
             // 支付失败
             payingDialogVisible.value = false // 隐藏支付中对话框
             feedback.confirm('支付失败,请重试').then(() => {

+ 2 - 2
src/views/orders/list.vue

@@ -210,7 +210,7 @@
     }
     // 添加这些变量到组件顶层
     const refundDialogVisible = ref(false)
-    const refundAmount = ref(0)
+    const refundAmount = ref('')
     var refundOrder: {
         refundTime: string;
         refundAmount: number;
@@ -223,7 +223,7 @@
     // 修改refund函数
     const refund = async (row: any) => {
         refundDialogVisible.value = true
-        refundAmount.value = 0
+        refundAmount.value = ''
         refundOrder = row;
     }