同步修改,联动控制

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", path: "/systemParam",
@ -304,6 +295,15 @@ export const asyncRouterMap = [
authRule: ["systemParam/systemParamConfig"] authRule: ["systemParam/systemParamConfig"]
}, },
children: [ children: [
{
path: "phoneRegisterManage",
component: phoneRegisterManage,
name: "设备管理",
icon: "",
meta: {
authRule: ["admin/phoneRegisterManage"]
}
},
{ {
path: "systemParamConfig", path: "systemParamConfig",
component: systemParamConfig, component: systemParamConfig,
@ -330,22 +330,9 @@ export const asyncRouterMap = [
authRule: ["product/BussinessTypeLocl"] 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", path: "spsSyncData",
component: spsSyncData, component: spsSyncData,
name: "数据同步", name: "同步记录",
icon: "", icon: "",
meta: { meta: {
authRule: ["spsSyncMange/spsSyncData"] 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", // path: "systemPDFTemplate",
// component: 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", path: "/supplier",
redirect: "/supplier/basicInstrumentMaintain", redirect: "/supplier/basicInstrumentMaintain",

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

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

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

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

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

@ -32,10 +32,24 @@
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <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="getList"></el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(1)"></el-button> <el-button type="primary" icon="search" @click="createScheduleDialog(1)"
<el-button type="primary" icon="search" @click="createScheduleDialog(2)"></el-button> :disabled="!configParms.orderScanFinish&& !configParms.orderUnReceive&& !configParms.orderUnCheck"
<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>
<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-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
@ -178,6 +192,7 @@ export default {
templateDlUrl: null, templateDlUrl: null,
checked: false, checked: false,
syncTime: null, syncTime: null,
configParms: {},
}; };
}, },
@ -352,8 +367,17 @@ export default {
2: "danger", 2: "danger",
}; };
return statusMap[status]; return statusMap[status];
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
} }
, })
.catch(() => {
});
},
}, },
mounted() { mounted() {
@ -364,6 +388,7 @@ export default {
ADMIN_ID: store.getters.adminId, ADMIN_ID: store.getters.adminId,
ADMIN_TOKEN: store.getters.token, ADMIN_TOKEN: store.getters.token,
}; };
this.getSyncConfig();
this.getList(); this.getList();
this.getConfig(); this.getConfig();
}, },

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

Loading…
Cancel
Save