diff --git a/.env.development b/.env.development index f32fc17..ad2c296 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ ENV = 'development' # 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 = 'http://192.168.2.41:8000' +# VUE_APP_BASE_API = 'http://192.168.2.96:8000' VUE_APP_WS_API = 'ws://192.168.2.128:8000' # 是否启用 babel-plugin-dynamic-import-node插 \ No newline at end of file diff --git a/.env.production b/.env.production index ffc2fc2..3b02e74 100644 --- a/.env.production +++ b/.env.production @@ -2,8 +2,8 @@ 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://cashieradmin.sxczgkj.cn' +VUE_APP_BASE_API = 'https://admintestpapi.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 b381534..58b107b 100644 --- a/src/api/invoicing.js +++ b/src/api/invoicing.js @@ -59,7 +59,14 @@ export function tbShopPurveyorGet(params) { params }); } - +// 供应商列表1 +export function tbShopPurveyorGets(params) { + return request({ + url: `/api/tbShopPurveyorTransact`, + method: "get", + params + }); +} /** * 增加供应商 * @returns @@ -95,7 +102,14 @@ export function tbShopPurveyorTransactInfo(data) { data }); } - +// 付款 +export function paidAmount(data) { + return request({ + url: `/api/tbShopPurveyorTransact/payTransact`, + method: "post", + data + }); +} /** * 进货账目汇总(单一供应商) * @returns @@ -149,19 +163,26 @@ export function tbProductStockOperateOutAndOn(data) { */ export function stock(params) { return request({ - url: `/api/stock`, + url: `/api/stock/v2`, + method: "get", + params + }); +} +// 库存列表子集列表 +export function stocks(params) { + return request({ + url: `/api/stock/sku`, method: "get", params }); } - /** * 导出数据 * @returns */ export function stockdownload(data) { return request({ - url: "/api/stock/download", + url: "/api/stock/download/v2", method: "post", data: { shopId: localStorage.getItem("shopId"), @@ -180,7 +201,7 @@ export function stockdoImport(file) { formData.append("file", file); formData.append("shopId", localStorage.getItem("shopId")); return request({ - url: "/api/stock/doImport", + url: "/api/stock/doImport/v2", method: "post", data: formData, Headers: { @@ -203,3 +224,14 @@ export function stockStateChange(params) { } }); } +// 共享库存 +export function stockStateChanges(params) { + return request({ + url: `/api/stock/productStatus`, + method: "put", + data: { + shopId: localStorage.getItem("shopId"), + ...params + } + }); +} \ No newline at end of file diff --git a/src/api/shop.js b/src/api/shop.js index 5891ae2..a5e27ff 100644 --- a/src/api/shop.js +++ b/src/api/shop.js @@ -6,7 +6,7 @@ import request from "@/utils/request"; */ export function tbProduct(params) { return request({ - url: "/api/tbProduct", + url: "/api/tbProduct/list", method: "get", params }); diff --git a/src/components/shopList/index.vue b/src/components/shopList/index.vue index 232270e..e24f0ad 100644 --- a/src/components/shopList/index.vue +++ b/src/components/shopList/index.vue @@ -30,6 +30,19 @@ + + + + + + + - + - + + + + - + + + + - --> + + + + + + + + + +