diff --git a/src/api/basic/invWarehouse.js b/src/api/basic/invWarehouse.js
index 79766ec..dc2d853 100644
--- a/src/api/basic/invWarehouse.js
+++ b/src/api/basic/invWarehouse.js
@@ -41,3 +41,30 @@ export function deleteWarehouse(data) {
data: data
});
}
+
+//绑定第三方仓库
+export function bindThrWarehouse(params) {
+ return axios({
+ url: "/spms/inv/warehouse/bindThrWarehouse",
+ method: "post",
+ params: params
+ });
+}
+
+//解绑第三方仓库
+export function unbindThrWarehouse(params) {
+ return axios({
+ url: "/spms/inv/warehouse/unbindThrWarehouse",
+ method: "post",
+ params: params
+ });
+}
+
+//查询第三方系统和仓库数据关联信息
+export function getThrsysDetail(params) {
+ return axios({
+ url: "/spms/inv/warehouse/thridSys/detail",
+ method: "get",
+ params: params
+ });
+}
diff --git a/src/api/thrsys/thrInvWarehouse.js b/src/api/thrsys/thrInvWarehouse.js
new file mode 100644
index 0000000..e007b2a
--- /dev/null
+++ b/src/api/thrsys/thrInvWarehouse.js
@@ -0,0 +1,43 @@
+import axios from "../../utils/axios";
+
+// 权限管理
+
+// 获取列表
+export function filterThrList(query) {
+ return axios({
+ url: "/spms/thrsys/warehouse/filter",
+ method: "get",
+ params: query
+ });
+}
+
+export function filterThrAll(query) {
+ return axios({
+ url: "/spms/thrsys/warehouse/filterAll",
+ method: "get",
+ params: query
+ });
+}
+
+
+// 保存
+export function saveThrWarehouse(data, formName, method = "post") {
+ let url =
+ formName !== "edit"
+ ? "/spms/thrsys/warehouse/save"
+ : "/spms/thrsys/warehouse/edit";
+ return axios({
+ url: url,
+ method: method,
+ data: data
+ });
+}
+
+// 删除
+export function deleteThrWarehouse(data) {
+ return axios({
+ url: "/spms/thrsys/warehouse/delete",
+ method: "post",
+ data: data
+ });
+}
diff --git a/src/router/index.js b/src/router/index.js
index 5bf82d3..894b4fa 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -93,6 +93,7 @@ import udiinfoExportSmp from "../views/basic/UdiinfoExportSmp.vue";
import UdiInfoDonwloadSmp from "../views/basic/UdiInfoDonwloadSmp.vue";
import thrOrderExportSmp from "../views/thrsys/ThrOrderExportSmp.vue";
import thrProductsExportSmp from "../views/thrsys/ThrProductsExportSmp.vue";
+import thrInvWarehouse from "@/views/thrsys/ThrInvWarehouse";
// Vue.use(VueRouter);
const err401 = r =>
@@ -641,6 +642,15 @@ export const asyncRouterMap = [
authRule: ["thrsys"]
},
children: [
+ {
+ path: "thrInvWarehouse",
+ component: thrInvWarehouse,
+ name: "仓库信息",
+ icon: "",
+ meta: {
+ authRule: ["thrsys/thrInvWarehouse"]
+ }
+ },
{
path: "/products",
redirect: "/products/thrProducts",
diff --git a/src/views/basic/invWarehouse.vue b/src/views/basic/invWarehouse.vue
index 5e9dfa4..08c0a87 100644
--- a/src/views/basic/invWarehouse.vue
+++ b/src/views/basic/invWarehouse.vue
@@ -196,6 +196,41 @@
width="60%"
top="5vh"
>
+
+