diff --git a/.env.development b/.env.development index 3e05c9a..f97c926 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,9 @@ ENV = 'development' # 接口地址 # VUE_APP_BASE_API = 'http://192.168.2.128:8000' // 刘一帆 -VUE_APP_BASE_API = 'http://192.168.2.98:8000' -# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' +# VUE_APP_BASE_API = 'http://192.168.2.98:8000' // 公司测试 +# VUE_APP_BASE_API = 'http://192.168.2.96:8000' // 阿伟 +VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' # VUE_APP_BASE_API = 'http://192.168.2.16:8000' VUE_APP_WS_API = 'ws://192.168.2.128:8000' diff --git a/src/api/order.js b/src/api/order.js new file mode 100644 index 0000000..173db70 --- /dev/null +++ b/src/api/order.js @@ -0,0 +1,34 @@ +import request from '@/utils/request' + +/** + * 查询订单 + * @param {*} data + * @returns + */ +export function tbOrderInfoData(data) { + return request({ + url: '/api/tbOrderInfo/date', + method: 'post', + data: { + shopId: localStorage.getItem('shopId'), + ...data + } + }) +} + +/** + * 导出数据 + * @param {*} data + * @returns + */ +export function tbOrderInfoDownload(data) { + return request({ + url: '/api/tbOrderInfo/download', + method: 'post', + data: { + shopId: localStorage.getItem('shopId'), + ...data + }, + responseType: 'blob' + }) +} \ No newline at end of file diff --git a/src/components/classify/index.vue b/src/components/classify/index.vue index 742fb33..54359fc 100644 --- a/src/components/classify/index.vue +++ b/src/components/classify/index.vue @@ -5,7 +5,7 @@