diff --git a/.env.development b/.env.development index 6ab192b..98c3e63 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,10 @@ ENV = 'development' # VUE_APP_BASE_API = 'http://192.168.2.42:8000' # VUE_APP_BASE_API = 'http://192.168.2.133:8000' # 测试 -VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' +# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' +#预发布 +VUE_APP_BASE_API = 'https://pre-cashieradmin.sxczgkj.cn' + # 生产 # VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' # VUE_APP_BASE_API = 'http://192.168.2.96:8000' diff --git a/.env.production b/.env.production index 2a4f841..1db13cc 100644 --- a/.env.production +++ b/.env.production @@ -3,13 +3,13 @@ ENV = 'production' # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http # 测试 -VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' +# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' # 生产 # VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' # 预发布接口 -# VUE_APP_BASE_API = 'https://pre-cashieradmin.sxczgkj.cn' +VUE_APP_BASE_API = 'https://pre-cashieradmin.sxczgkj.cn' # VUE_APP_BASE_API = 'http://192.168.2.98:8000' # 如果接口是 http 形式, wss 需要改为 ws diff --git a/src/api/table.js b/src/api/table.js index 57bf688..1a691c3 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -450,3 +450,14 @@ export function $returnOrder(data) { } }); } +//获取台桌详情状态 +export function $returnTableDetail(data) { + return request({ + url: '/api/tbShopTable/state', + method: "get", + params:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} diff --git a/src/views/order_manage/components/orderDetail.vue b/src/views/order_manage/components/orderDetail.vue index c8007f7..6e3a19e 100644 --- a/src/views/order_manage/components/orderDetail.vue +++ b/src/views/order_manage/components/orderDetail.vue @@ -130,12 +130,14 @@ ¥{{ scope.row.priceAmount }} - + diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue index 8037377..2a00fa7 100644 --- a/src/views/product/add_shop.vue +++ b/src/views/product/add_shop.vue @@ -790,7 +790,7 @@ export default { this.form.selectSpec = JSON.stringify(this.selectSpec); this.form.specTableHeaders = JSON.stringify(this.specTableHeaders); this.form.specInfo = JSON.stringify(this.form.skuList); - this.form.skuList[0].costPrice = 0 + // this.form.skuList[0].costPrice = 0 this.form.skuList[0].originPrice = this.form.skuList[0].salePrice if (this.form.id) { await tbProductPut(this.form); diff --git a/src/views/shop/components/addPadPage.vue b/src/views/shop/components/addPadPage.vue index 21529d4..dbfab5d 100644 --- a/src/views/shop/components/addPadPage.vue +++ b/src/views/shop/components/addPadPage.vue @@ -17,9 +17,18 @@ @@ -43,6 +52,7 @@