diff --git a/.env.development b/.env.development index 384d0d2..9efc462 100644 --- a/.env.development +++ b/.env.development @@ -1,14 +1,14 @@ # 本地环境 ENV = development -# 测试ws -# VITE_API_WSS = 'wss://sockets.sxczgkj.com/wss' - # 正式ws # VITE_API_WSS = 'wss://czgeatws.sxczgkj.com/wss' # 本地ws -VITE_API_WSS = 'ws://192.168.1.42:2348' +# VITE_API_WSS = 'ws://192.168.1.42:2348' + +# 线上本地映射测试ws +VITE_API_WSS = 'ws://frp.sxczgkj.com/wss' # 正式 php VITE_API_PHP_URL = 'https://newblockwlx.sxczgkj.cn/index.php/api' @@ -17,7 +17,7 @@ VITE_API_PHP_URL = 'https://newblockwlx.sxczgkj.cn/index.php/api' # VITE_API_KP_URL = 'http://192.168.1.13:8888/api' # 正式 php 开票 -# VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api' +VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api' # 线上测试 # VITE_API_URL = 'https://tapi.cashier.sxczgkj.cn' @@ -26,4 +26,7 @@ VITE_API_PHP_URL = 'https://newblockwlx.sxczgkj.cn/index.php/api' # VITE_API_URL = 'https://cashier.sxczgkj.com' # 本地调试连接 -VITE_API_URL = 'http://192.168.1.42/' \ No newline at end of file +# VITE_API_URL = 'http://192.168.1.42/' + +# 线上本地映射测试 +VITE_API_URL = 'https://frp.sxczgkj.com' \ No newline at end of file diff --git a/.env.test b/.env.test index 061e3f0..528c5b8 100644 --- a/.env.test +++ b/.env.test @@ -2,7 +2,10 @@ ENV = test # 测试ws -VITE_API_WSS = 'ws://192.168.1.42:2348' +# VITE_API_WSS = 'ws://192.168.1.42:2348' + +# 线上本地映射测试ws +VITE_API_WSS = 'ws://frp.sxczgkj.com/wss' # 测试ws # VITE_API_WSS = 'wss://sockets.sxczgkj.com/wss' @@ -26,4 +29,7 @@ VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api' # VITE_API_URL = 'https://cashier.sxczgkj.com/' # 本地调试连接 -VITE_API_URL = 'http://192.168.1.42/' \ No newline at end of file +# VITE_API_URL = 'http://192.168.1.42/' + +# 线上本地映射测试 +VITE_API_URL = 'https://frp.sxczgkj.com' \ No newline at end of file diff --git a/package.json b/package.json index a31ec88..f8533e0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vite-electron", "private": true, - "version": "2.0.31", + "version": "2.0.32", "main": "dist-electron/main.js", "scripts": { "dev": "chcp 65001 && vite", diff --git a/src/components/refundConsModal.vue b/src/components/refundConsModal.vue index e873240..a2d02c1 100644 --- a/src/components/refundConsModal.vue +++ b/src/components/refundConsModal.vue @@ -4,7 +4,7 @@
请确认当前菜品是否已上菜
- {{ item.name }} + {{ item.name || item.product_name }} x{{ item.num }}
diff --git a/src/views/home/components/cartItem.vue b/src/views/home/components/cartItem.vue index ab80e8b..5d2f453 100644 --- a/src/views/home/components/cartItem.vue +++ b/src/views/home/components/cartItem.vue @@ -59,8 +59,9 @@ -
- 备注:{{ props.item.remark }} +
+ 备注:{{ props.item.remark }} +
diff --git a/src/views/home/components/cartOperation.vue b/src/views/home/components/cartOperation.vue index a01aab8..f20df44 100644 --- a/src/views/home/components/cartOperation.vue +++ b/src/views/home/components/cartOperation.vue @@ -135,13 +135,19 @@
免厨
-
退菜 +
--> +
+ + + + 退菜
@@ -227,6 +233,8 @@ + + = goodsStore.cartOrderItem.number) return - if (goodsStore.cartOrderItem.number == 1) { - returnOrderItemAjax() - } else { - showReturnForm.value = true - } + cartOperationReturnRef.value.open() + // if (goodsStore.cartOrderItem.returnNum >= goodsStore.cartOrderItem.number) return + // if (goodsStore.cartOrderItem.number == 1) { + // returnOrderItemAjax() + // } else { + // showReturnForm.value = true + // } } // 提交自定义数量退菜 @@ -335,6 +346,7 @@ function refundConsModalSuccess(e) { refundNext() } +// 提交最终退款请求 async function refundNext() { try { let data = { diff --git a/src/views/home/components/cartOperationReturn.vue b/src/views/home/components/cartOperationReturn.vue new file mode 100644 index 0000000..cdd9c86 --- /dev/null +++ b/src/views/home/components/cartOperationReturn.vue @@ -0,0 +1,257 @@ + + + + + + \ No newline at end of file diff --git a/src/views/home/components/goods.vue b/src/views/home/components/goods.vue index be9df97..ee7b3af 100644 --- a/src/views/home/components/goods.vue +++ b/src/views/home/components/goods.vue @@ -1061,7 +1061,7 @@ onMounted(() => { .shop_list { // max-height: calc(100vh - 40px - 80px - 40px); - height: calc(100vh - 40px - 80px - 28px); + height: calc(100vh - 40px - 80px - 40px); // overflow-y: auto; // display: flex; // flex-wrap: wrap; diff --git a/src/views/home/index.vue b/src/views/home/index.vue index ed0929a..2cc2a07 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -685,7 +685,7 @@ function showTableMerging() { .shop_list { flex: 1; - height: calc(100vh - 40px - 60px - 90px); + height: calc(100vh - 40px - 60px - 102px); overflow-y: auto; border-right: 1px solid #ececec;