From dbc7444e78ca0a427046cbfb488646ee1f39a1c0 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Fri, 17 May 2024 18:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BF=AB=E6=8D=B7=E6=94=AF?= =?UTF-8?q?=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 +- .env.production | 5 +- package.json | 2 +- src/api/pay.js | 117 ++++++++++-------- src/components/payCard/scanModal.vue | 125 ++++++++++++-------- src/views/home/components/settleAccount.vue | 4 +- vite.config.js | 5 +- 7 files changed, 152 insertions(+), 109 deletions(-) diff --git a/.env.development b/.env.development index 6583432..fc6d7b6 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ ENV = development # 本地环境接口地址 -VITE_API_URL = 'http://192.168.2.27:10587/cashier-client' +VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client' +# VITE_API_URL = 'http://192.168.2.27:10587/cashier-client' # VITE_API_URL = 'https://cashiernew.sxczgkj.cn/cashier-client' # VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client/' \ No newline at end of file diff --git a/.env.production b/.env.production index 65e72e0..1b05e5b 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,6 @@ ENV = production # 线上环境接口地址 -VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client/' -# VITE_API_URL = 'https://cashiernew.sxczgkj.cn/cashier-client' \ No newline at end of file +# VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client/' +# VITE_API_URL = 'https://cashiernew.sxczgkj.cn/cashier-client' +VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client' \ No newline at end of file diff --git a/package.json b/package.json index 440a3d0..81695df 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vite-electron", "private": true, - "version": "1.1.2", + "version": "1.1.9", "main": "dist-electron/main.js", "scripts": { "dev": "chcp 65001 && vite", diff --git a/src/api/pay.js b/src/api/pay.js index 10c09a5..09eee98 100644 --- a/src/api/pay.js +++ b/src/api/pay.js @@ -1,68 +1,68 @@ -import request from "@/utils/request.js" +import request from "@/utils/request.js"; /** * 查询分类信息 - * @param {*} params - * @returns + * @param {*} params + * @returns */ export function queryPayType(params) { - return request({ - method: "get", - url: "pay/queryPayType", - params - }); + return request({ + method: "get", + url: "pay/queryPayType", + params, + }); } /** * 付款 - * @param {*} params - * @returns + * @param {*} params + * @returns */ export function payOrder(api, params) { - return request({ - method: "get", - url: api, - params - }); + return request({ + method: "get", + url: api, + params, + }); } /** * 扫码支付 - * @param {*} params - * @returns + * @param {*} params + * @returns */ export function scanpay(params) { - return request({ - method: "get", - url: 'pay/scanpay', - params - }); + return request({ + method: "get", + url: "pay/scanpay", + params, + }); } /** * 储值卡付款 - * @param {*} params - * @returns + * @param {*} params + * @returns */ export function accountPay(params) { - return request({ - method: "get", - url: 'pay/accountPay', - params - }); + return request({ + method: "get", + url: "pay/accountPay", + params, + }); } /** * 现金付款 - * @param {*} params - * @returns + * @param {*} params + * @returns */ export function cashPay(params) { - return request({ - method: "get", - url: 'pay/cashPay', - params - }); + return request({ + method: "get", + url: "pay/cashPay", + params, + }); } /** @@ -71,11 +71,11 @@ export function cashPay(params) { * @returns */ export function queryOrder(params) { - return request({ - method: "get", - url: "pay/queryOrder", - params - }); + return request({ + method: "get", + url: "pay/queryOrder", + params, + }); } /** @@ -84,11 +84,11 @@ export function queryOrder(params) { * @returns */ export function print(params) { - return request({ - method: "get", - url: "cloudPrinter/print", - params - }); + return request({ + method: "get", + url: "cloudPrinter/print", + params, + }); } /** @@ -97,9 +97,22 @@ export function print(params) { * @returns */ export function quickPay(params) { - return request({ - method: "get", - url: "pay/quickPay", - params - }); -} \ No newline at end of file + return request({ + method: "get", + url: "pay/quickPay", + params, + }); +} + +/** + * 查询快捷收银订单 + * @param {*} params + * @returns + */ +export function queryQuickPayStatus(params) { + return request({ + method: "get", + url: "pay/queryQuickPayStatus", + params, + }); +} diff --git a/src/components/payCard/scanModal.vue b/src/components/payCard/scanModal.vue index c57b215..fe96e8f 100644 --- a/src/components/payCard/scanModal.vue +++ b/src/components/payCard/scanModal.vue @@ -2,12 +2,7 @@