同步修改,联动控制

master
anthonywj 3 years ago
parent b167e01e1d
commit d6f18634db

@ -284,15 +284,6 @@ export const asyncRouterMap = [
},
{
path: "phoneRegisterManage",
component: phoneRegisterManage,
name: "设备管理",
icon: "",
meta: {
authRule: ["admin/phoneRegisterManage"]
}
},
{
path: "/systemParam",
@ -304,6 +295,15 @@ export const asyncRouterMap = [
authRule: ["systemParam/systemParamConfig"]
},
children: [
{
path: "phoneRegisterManage",
component: phoneRegisterManage,
name: "设备管理",
icon: "",
meta: {
authRule: ["admin/phoneRegisterManage"]
}
},
{
path: "systemParamConfig",
component: systemParamConfig,
@ -330,22 +330,9 @@ export const asyncRouterMap = [
authRule: ["product/BussinessTypeLocl"]
}
},
{
path: "bussinessTypeThird",
name: "第三方单据类型",
component: bussinessTypeThird,
meta: {
authRule: ["system/bussinessTypeThird"]
}
},
{
path: "thirdSys",
name: "第三方系统",
component: thirdSys,
meta: {
authRule: ["thrsys/thirdSys"]
}
},
]
},
@ -402,7 +389,7 @@ export const asyncRouterMap = [
{
path: "spsSyncData",
component: spsSyncData,
name: "数据同步",
name: "同步记录",
icon: "",
meta: {
authRule: ["spsSyncMange/spsSyncData"]
@ -411,6 +398,39 @@ export const asyncRouterMap = [
]
},
{
path: "/thrsysMange",
component: Empty,
name: "第三方系统",
redirect: "/thrsysMange/bussinessTypeThird",
icon: "",
meta: {
authRule: ["thrsysMange/manage"]
},
children: [
{
path: "bussinessTypeThird",
name: "单据类型",
component: bussinessTypeThird,
meta: {
authRule: ["thrsysMange/bussinessTypeThird"]
}
},
{
path: "thirdSys",
name: "接口设置",
component: thirdSys,
meta: {
authRule: ["thrsysMange/thirdSys"]
}
},
]
},
// {
// path: "systemPDFTemplate",
// component: systemPDFTemplate,
@ -538,148 +558,7 @@ export const asyncRouterMap = [
},
]
},
{
path: "/thrsys",
redirect: "/thrsys/manage",
name: "第三方数据",
component: Empty,
meta: {
authRule: ["thrsys/manage"]
},
children: [
{
path: "thrInvWarehouse",
component: thrInvWarehouse,
name: "仓库信息",
icon: "",
meta: {
authRule: ["thrsys/thrInvWarehouse"]
}
},
{
path: "/corps",
redirect: "/corps/ThrCorps",
name: "往来单位",
component: Empty,
meta: {
authRule: ["thrsys/corp"]
},
children: [
{
path: "ThrCorps",
name: "往来单位查询",
component: ThrCorps,
meta: {
authRule: ["thrsys/ThrCorps"]
}
},
{
path: "thrCorpsImport",
name: "往来单位导入",
component: thrCorpsImport,
meta: {
authRule: ["thrsys/thrCorpsImport"]
}
},
// {
// path: "thrCorpsExport",
// name: "往来单位导出",
// component: thrCorpsExport,
// meta: {
// authRule: ["thrsys/thrCorpsExport"]
// }
// }
],
},
{
path: "/products",
redirect: "/products/thrProducts",
name: "产品信息",
component: Empty,
meta: {
authRule: ["thrsys/products"]
},
children: [
{
path: "thrProducts",
name: "产品信息查询",
component: thrProducts,
meta: {
authRule: ["thrsys/thrProducts"]
}
},
{
path: "thrProductsImport",
name: "产品信息导入",
component: thrProductsImport,
meta: {
authRule: ["thrsys/thrProductsImport"]
}
},
],
},
{
path: "/orders",
redirect: "/orders/ThrOrders",
name: "业务单据",
component: Empty,
meta: {
authRule: ["thrsys/orders"]
},
children: [
{
path: "ThrOrders",
name: "业务单据查询",
component: ThrOrders,
meta: {
authRule: ["thrsys/ThrOrders"]
}
},
{
path: "thrOrderImport",
name: "业务单据导入",
component: thrOrderImport,
meta: {
authRule: ["thrsys/thrOrderImport"]
}
},
],
},
{
path: "/udplatGoods",
redirect: "/udplatGoods/ThrOrders",
name: "阳光采购平台",
hidden: true,
component: Empty,
meta: {
authRule: ["thrsys/udplatGoods"]
},
children: [
{
path: "thrUdplatGoods",
name: "阳光采购平台查询",
component: udplatGoods,
meta: {
authRule: ["thrsys/thrUdplatGoods"]
}
},
{
path: "thrUdplatGoodsImport",
name: "阳光采购平台导入",
component: udplatGoodsImport,
meta: {
authRule: ["thrsys/thrUdplatGoodsImport"]
}
},
],
},
]
}
]
@ -1089,6 +968,150 @@ export const asyncRouterMap = [
// }
// },
{
path: "/thrsys",
redirect: "/thrsys/manage",
name: "第三方数据",
component: Home,
icon: "tongyong",
meta: {
authRule: ["thrsys/manage"]
},
children: [
{
path: "thrInvWarehouse",
component: thrInvWarehouse,
name: "仓库信息",
icon: "",
meta: {
authRule: ["thrsys/thrInvWarehouse"]
}
},
{
path: "/corps",
redirect: "/corps/ThrCorps",
name: "往来单位",
component: Empty,
meta: {
authRule: ["thrsys/corp"]
},
children: [
{
path: "ThrCorps",
name: "往来单位查询",
component: ThrCorps,
meta: {
authRule: ["thrsys/ThrCorps"]
}
},
{
path: "thrCorpsImport",
name: "往来单位导入",
component: thrCorpsImport,
meta: {
authRule: ["thrsys/thrCorpsImport"]
}
},
// {
// path: "thrCorpsExport",
// name: "往来单位导出",
// component: thrCorpsExport,
// meta: {
// authRule: ["thrsys/thrCorpsExport"]
// }
// }
],
},
{
path: "/products",
redirect: "/products/thrProducts",
name: "产品信息",
component: Empty,
meta: {
authRule: ["thrsys/products"]
},
children: [
{
path: "thrProducts",
name: "产品信息查询",
component: thrProducts,
meta: {
authRule: ["thrsys/thrProducts"]
}
},
{
path: "thrProductsImport",
name: "产品信息导入",
component: thrProductsImport,
meta: {
authRule: ["thrsys/thrProductsImport"]
}
},
],
},
{
path: "/orders",
redirect: "/orders/ThrOrders",
name: "业务单据",
component: Empty,
meta: {
authRule: ["thrsys/orders"]
},
children: [
{
path: "ThrOrders",
name: "业务单据查询",
component: ThrOrders,
meta: {
authRule: ["thrsys/ThrOrders"]
}
},
{
path: "thrOrderImport",
name: "业务单据导入",
component: thrOrderImport,
meta: {
authRule: ["thrsys/thrOrderImport"]
}
},
],
},
{
path: "/udplatGoods",
redirect: "/udplatGoods/ThrOrders",
name: "阳光采购平台",
hidden: true,
component: Empty,
meta: {
authRule: ["thrsys/udplatGoods"]
},
children: [
{
path: "thrUdplatGoods",
name: "阳光采购平台查询",
component: udplatGoods,
meta: {
authRule: ["thrsys/thrUdplatGoods"]
}
},
{
path: "thrUdplatGoodsImport",
name: "阳光采购平台导入",
component: udplatGoodsImport,
meta: {
authRule: ["thrsys/thrUdplatGoodsImport"]
}
},
],
},
]
},
{
path: "/supplier",
redirect: "/supplier/basicInstrumentMaintain",

@ -27,20 +27,21 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.typeScan"
>新增
</el-button
>
<el-upload
:action="uploadFileUrl"
multiple
:limit="3"
:headers="headers"
:show-file-list="false"
:on-success="handleChange"
:file-list="fileList"
>
<el-button size="mini" type="primary">导入单据类型</el-button>
</el-upload>
<!-- <el-upload-->
<!-- :action="uploadFileUrl"-->
<!-- multiple-->
<!-- :limit="3"-->
<!-- :headers="headers"-->
<!-- :show-file-list="false"-->
<!-- :on-success="handleChange"-->
<!-- :file-list="fileList"-->
<!-- >-->
<!-- <el-button size="mini" type="primary">导入单据类型</el-button>-->
<!-- </el-upload>-->
</el-button-group>
</el-form-item>
@ -153,6 +154,7 @@ import {
import modifyDialog from "./BussinessTypeModify";
import axios from "axios";
import store from "@/store";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default {
data() {
@ -216,6 +218,7 @@ export default {
multipleSelection: [],
uploadFileUrl: null,
headers: {},
configParms: {},
};
},
@ -391,6 +394,16 @@ export default {
ADMIN_TOKEN: store.getters.token,
};
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
components: {
modifyDialog,
@ -399,7 +412,9 @@ export default {
},
created() {
this.init();
this.getSyncConfig();
this.getList();
},
};
</script>

@ -14,6 +14,7 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.typeBus"
>新增
</el-button
>
@ -119,6 +120,7 @@
import {getLocalBusType, addLocalBusType, updateLocalBusType, deleteLocalBusType} from "@/api/basic/busLocalType";
import modifyDialog from "./BussinessTypeLoclModify";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default {
data() {
@ -156,6 +158,7 @@ export default {
total: 0,
multipleSelection: [],
configParms: {},
};
},
@ -295,6 +298,16 @@ export default {
.catch(() => {
});
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
components: {
modifyDialog,
@ -302,6 +315,7 @@ export default {
mounted() {
},
created() {
this.getSyncConfig();
this.getList();
},
};

@ -29,10 +29,11 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.typeBus"
>新增
</el-button
>
<el-button type="primary" icon="search" @click="updateDownload"></el-button>
<!-- <el-button type="primary" icon="search" @click="updateDownload"></el-button>-->
</el-button-group>
</el-form-item>
@ -125,6 +126,7 @@ import {
import modifyDialog from "./BussinessTypeThirdModify";
import axios from "axios";
import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default {
data() {
@ -155,6 +157,7 @@ export default {
multipleSelection: [],
uploadFileUrl: null,
loading: false,
configParms: {},
};
},
@ -333,6 +336,16 @@ export default {
this.getList();
}
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
components: {
modifyDialog,
@ -341,6 +354,7 @@ export default {
},
created() {
this.init();
this.getSyncConfig();
this.getBasicThirdSys();
this.getList();

@ -246,7 +246,7 @@
>
<selectDiDetail :editQuery="diDetails"
></selectDiDetail>
</el-dialog>-
</el-dialog>
</div>
</template>

@ -10,7 +10,7 @@
同步服务
</template>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="6" class="el-col" style="margin-top: 6px">
<el-col :span="6" class="el-col" >
<el-switch
v-model="configQuery.downstreamEnable"
@ -20,7 +20,7 @@
</el-col>
<el-col :span="14" class="el-col">
<div>
<span style="color: red;margin-top: 16px">说明:&nbsp;修改同步参数时,请关闭数据同步服务 </span>
<span style="color: red;">说明:&nbsp;修改同步参数时,请关闭数据同步服务 </span>
</div>
</el-col>
@ -40,7 +40,7 @@
style="width: 100px"
size="small"
type="number"
v-model="configQuery.syncTime"
v-model="configQuery.syncTime" :disabled="configQuery.downstreamEnable"
splaceholder="请输入内容"
></el-input>
</div>

@ -32,10 +32,24 @@
<el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(1)"></el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(2)"></el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(3)"></el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(4)">DI</el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(1)"
:disabled="!configParms.orderScanFinish&& !configParms.orderUnReceive&& !configParms.orderUnCheck"
>同步单据
</el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(2)"
:disabled="!configParms.typeBus&& !configParms.typeScan&& !configParms.typeThird">
同步单据类型
</el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(3)"
:disabled="!configParms.basicProducts&& !configParms.basicCorp&&
!configParms.basicInv&&!configParms.basicThirdProducts&& !configParms.basicThirdCorp&& !configParms.basicThirdInv
&& !configParms.basicThirdBusOrder&& !configParms.sysUser"
>同步基础信息
</el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(4)"
:disabled="!configParms.dbDiProducts">同步国家库DI数据
</el-button>
</el-button-group>
</el-form-item>
</el-row>
@ -178,6 +192,7 @@ export default {
templateDlUrl: null,
checked: false,
syncTime: null,
configParms: {},
};
},
@ -352,8 +367,17 @@ export default {
2: "danger",
};
return statusMap[status];
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
,
})
.catch(() => {
});
},
},
mounted() {
@ -364,6 +388,7 @@ export default {
ADMIN_ID: store.getters.adminId,
ADMIN_TOKEN: store.getters.token,
};
this.getSyncConfig();
this.getList();
this.getConfig();
},

@ -33,6 +33,7 @@
</el-button
>
<el-button type="primary" @click.native="handleForm(null, null)"
:disabled="!configParms.sysUser && query.customerId == 110"
>新增
</el-button
>
@ -193,6 +194,7 @@ import {
} from "../../../api/auth/authAdmin";
import store from "../../../store/index";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
const formJson = {
id: "",
@ -243,6 +245,7 @@ export default {
formLoading: false,
formVisible: false,
formData: formJson,
configParms: {},
formRules: {},
addRules: {
userName: [
@ -419,7 +422,17 @@ export default {
this.$message.info("取消删除");
});
}
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
filters: {
statusFilterType(status) {
@ -450,6 +463,7 @@ export default {
this.getList();
//
this.getRoleList();
this.getSyncConfig();
}
};
</script>

Loading…
Cancel
Save