diff --git a/src/views/basic/BussinessType.vue b/src/views/basic/BussinessType.vue index 9c10c45..b03e8c7 100644 --- a/src/views/basic/BussinessType.vue +++ b/src/views/basic/BussinessType.vue @@ -82,6 +82,7 @@ 编辑 删除 编辑 删除 新增 @@ -85,6 +86,7 @@ 编辑 删除 { }); - } - , + }, + getSyncConfig() { + findConfig() + .then((response) => { + if (response.code == 20000) { + this.configParms = response.data; + } + }) + .catch(() => { + }); + }, } , mounted() { @@ -702,6 +716,7 @@ export default { , created() { this.getList(); + this.getSyncConfig(); this.getBasicThirdSys(); } , diff --git a/src/views/basic/invWarehouse.vue b/src/views/basic/invWarehouse.vue index 6691853..196cbf3 100644 --- a/src/views/basic/invWarehouse.vue +++ b/src/views/basic/invWarehouse.vue @@ -29,6 +29,7 @@ 查询 添加仓库 @@ -42,9 +43,9 @@ :on-success="handleChange" :file-list="fileList" > - 导入 + 导入 - 导出 + 导出 @@ -114,6 +115,7 @@ 编辑 删除
添加用户 + :disabled="currentRow.status == 0 || !configParms.basicInv">添加用户
添加单据类型 + :disabled="currentRow.status == 0 || !configParms.basicInv">添加单据类型
{ + if (response.code == 20000) { + this.configParms = response.data; + } + }) + .catch(() => { + }); + }, }, filters: { statusFilterType(status) { @@ -1297,6 +1311,7 @@ export default { // 加载表格数据 this.init(); this.getList(); + this.getSyncConfig(); }, }; diff --git a/src/views/thrsys/ThrInvWarehouse.vue b/src/views/thrsys/ThrInvWarehouse.vue index 2bf456c..0dc84a8 100644 --- a/src/views/thrsys/ThrInvWarehouse.vue +++ b/src/views/thrsys/ThrInvWarehouse.vue @@ -33,6 +33,7 @@ 查询 添加仓库 编辑 删除 { + if (response.code == 20000) { + this.configParms = response.data; + } + }) + .catch(() => { + }); + }, }, filters: { statusFilterType(status) { @@ -644,6 +659,7 @@ export default { created() { // 加载表格数据 this.getBasicThirdSys(); + this.getSyncConfig(); this.getList(); }, }; diff --git a/src/views/thrsys/ThrProducts.vue b/src/views/thrsys/ThrProducts.vue index 98c0795..8940b1a 100644 --- a/src/views/thrsys/ThrProducts.vue +++ b/src/views/thrsys/ThrProducts.vue @@ -49,7 +49,7 @@ 查询 - 新增 + 新增 @@ -84,7 +84,7 @@ >详情 删除 @@ -135,6 +135,7 @@ import {getBasicThirdSys, filterDetailByKey} from "../../api/basic/basicThirdSys import {selectIp} from "../../api/param/systemParamConfig"; import thrProductsDetail from "./ThrProductsDetail"; import ThrProductsAdd from "@/views/thrsys/ThrProductsAdd"; +import {findConfig} from "@/api/thrsys/spsSyncStatus"; export default { data() { @@ -179,7 +180,8 @@ export default { tyshxydm: null, qxlb: null, cpms: null - } + }, + configParms: {}, }; }, @@ -374,7 +376,17 @@ export default { this.getList(); } Object.keys(this.newProductData).forEach(key => this.newProductData[key] = null); - } + }, + getSyncConfig() { + findConfig() + .then((response) => { + if (response.code == 20000) { + this.configParms = response.data; + } + }) + .catch(() => { + }); + }, }, components: { thrProductsDetail, ThrProductsAdd @@ -383,6 +395,7 @@ export default { }, created() { this.getBasicThirdSys(); + this.getSyncConfig(); }, }; diff --git a/src/views/userManage/admin/authAdmin.vue b/src/views/userManage/admin/authAdmin.vue index c63f28b..2db7740 100644 --- a/src/views/userManage/admin/authAdmin.vue +++ b/src/views/userManage/admin/authAdmin.vue @@ -56,12 +56,14 @@ 编辑 删除