diff --git a/.env.development b/.env.development index 7029818..28ae2cc 100644 --- a/.env.development +++ b/.env.development @@ -4,8 +4,10 @@ ENV = 'development' # VUE_APP_BASE_API = 'http://192.168.2.17:8000' # 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://cashieradmin.sxczgkj.cn' +# 测试 +VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' +# 生产 +# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' # VUE_APP_BASE_API = 'http://192.168.2.96:8000' VUE_APP_WS_API = 'ws://192.168.2.128:8000' diff --git a/.env.production b/.env.production index ffc2fc2..8c2ed2b 100644 --- a/.env.production +++ b/.env.production @@ -2,8 +2,10 @@ ENV = 'production' # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http -VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' -# 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 = 'http://192.168.2.98:8000' # 如果接口是 http 形式, wss 需要改为 ws VUE_APP_WS_API = 'wss://123.56.110.252 diff --git a/src/api/invoicing.js b/src/api/invoicing.js index 3e398c2..4b1cb83 100644 --- a/src/api/invoicing.js +++ b/src/api/invoicing.js @@ -241,6 +241,16 @@ export function stockStateChange(params) { } }); } +// 警戒设置 +export function stockStatewarnLine(params) { + return request({ + url: `/api/stock/warnLine`, + method: "put", + data: { + ...params + } + }); +} // 共享库存 export function stockStateChanges(params) { return request({ diff --git a/src/views/invoicing/components/invoicingDetail.vue b/src/views/invoicing/components/invoicingDetail.vue index 1013ead..b23c9c7 100644 --- a/src/views/invoicing/components/invoicingDetail.vue +++ b/src/views/invoicing/components/invoicingDetail.vue @@ -81,7 +81,6 @@ export default { methods: { async getTableData() { this.tableData.loading = true - console.log(this.query.createdAt, '调试111') let arr = [] if (this.query.createdAt.length) { arr = [this.query.createdAt[0] + ' 00:00:00', this.query.createdAt[1] + ' 23:59:59'] diff --git a/src/views/invoicing/components/operatingDetail.vue b/src/views/invoicing/components/operatingDetail.vue index 0b09180..d643e4e 100644 --- a/src/views/invoicing/components/operatingDetail.vue +++ b/src/views/invoicing/components/operatingDetail.vue @@ -1,7 +1,7 @@