同步服务修改

master
anthonyywj2 3 years ago
parent 25a85e3bd0
commit a274c1c723

@ -32,7 +32,10 @@
>新增 >新增
</el-button </el-button
> >
<el-button type="primary" icon="search" @click="updateDownload"></el-button> <el-button type="primary" icon="search" @click="updateDownload"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==3"
>更新下载
</el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
@ -128,12 +131,13 @@ import {
import modifyDialog from "./BussinessTypeThirdModify"; import modifyDialog from "./BussinessTypeThirdModify";
import axios from "axios"; import axios from "axios";
import {getBasicThirdSys} from "@/api/basic/basicThirdSys"; import {filterDetailByKey, getBasicThirdSys} from "@/api/basic/basicThirdSys";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
thirdSys: null,
key: "", key: "",
page: 1, page: 1,
limit: 20, limit: 20,
@ -159,6 +163,7 @@ export default {
multipleSelection: [], multipleSelection: [],
uploadFileUrl: null, uploadFileUrl: null,
loading: false, loading: false,
thirdSysDetail: {},
}; };
}, },
@ -203,6 +208,7 @@ export default {
.then((response) => { .then((response) => {
this.thirdSys = response.data.list || []; this.thirdSys = response.data.list || [];
this.filterQuery.thirdSys = this.thirdSys[0].thirdId; this.filterQuery.thirdSys = this.thirdSys[0].thirdId;
this.getThirdSysDetail();
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
@ -216,7 +222,13 @@ export default {
downloadBussinessType(query) downloadBussinessType(query)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.getList(); if (response.code == 20000) {
this.getList();
} else {
this.$message.error(response.message);
}
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
@ -318,6 +330,23 @@ export default {
thirdSysChange() { thirdSysChange() {
this.getList(); this.getList();
}, },
getThirdSysDetail() {
let query = {
thirdSysFk: this.filterQuery.thirdSys,
key: "busTypeQueryUrl",
};
filterDetailByKey(query)
.then((response) => {
this.thirdSysDetail = response.data;
})
.catch(() => {
this.loading = false;
this.list = [];
});
this.uploadData.thirdSys = this.query.thirdSysFk;
},
getThirdSysFkName(thirdSys) { getThirdSysFkName(thirdSys) {
for (let i = 0; i < this.thirdSys.length; i++) { for (let i = 0; i < this.thirdSys.length; i++) {
if (this.thirdSys[i].thirdId === thirdSys) { if (this.thirdSys[i].thirdId === thirdSys) {

@ -7,15 +7,36 @@
</template> </template>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
中继服务 同步服务
</template> </template>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="4" class="el-col" style="margin-top: 6px"> <el-col :span="6" class="el-col" style="margin-top: 6px">
<el-checkbox v-model="configQuery.downstreamEnable"></el-checkbox>
<el-switch
v-model="configQuery.downstreamEnable"
active-text="是否启用数据同步">
</el-switch>
</el-col>
<el-col :span="14" class="el-col">
<div>
<span style="color: red;margin-top: 16px">说明:&nbsp;修改同步参数时,请关闭数据同步服务 </span>
</div>
</el-col> </el-col>
</el-row>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
地址设置
</template>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="20" class="el-col"> <el-col :span="20" class="el-col">
<div> <div>
<span style="margin-left: 30px;">服务地址:&nbsp;</span> <span>服务地址:&nbsp;</span>
<el-input <el-input
style="width: 50%" style="width: 50%"
size="small" size="small"
@ -29,6 +50,7 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
@ -63,33 +85,34 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions class="margin-top" title="上传至UDI自助平台基础数据" :column="1" :size="100" style="margin-top: 40px" border> <el-descriptions class="margin-top" title="上传至UDI自助平台基础数据" :column="1" :size="100" style="margin-top: 40px"
border>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
单据类型 单据类型
</template> </template>
<el-checkbox v-model="configQuery.typeBus"></el-checkbox> <el-checkbox v-model="configQuery.typeBus" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.typeScan"></el-checkbox> <el-checkbox v-model="configQuery.typeScan" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.typeThird"></el-checkbox> <el-checkbox v-model="configQuery.typeThird" :disabled="configQuery.downstreamEnable"></el-checkbox>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
基础信息 基础信息
</template> </template>
<el-checkbox v-model="configQuery.basicProducts"></el-checkbox> <el-checkbox v-model="configQuery.basicProducts" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.basicCorp"></el-checkbox> <el-checkbox v-model="configQuery.basicCorp" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.basicInv"></el-checkbox> <el-checkbox v-model="configQuery.basicInv" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.sysUser"></el-checkbox> <el-checkbox v-model="configQuery.sysUser" :disabled="configQuery.downstreamEnable"></el-checkbox>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
第三方基础信息 第三方基础信息
</template> </template>
<el-checkbox v-model="configQuery.basicThirdProducts"></el-checkbox> <el-checkbox v-model="configQuery.basicThirdProducts" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.basicThirdCorp"></el-checkbox> <el-checkbox v-model="configQuery.basicThirdCorp" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.basicThirdInv"></el-checkbox> <el-checkbox v-model="configQuery.basicThirdInv" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.basicThirdBusOrder"></el-checkbox> <el-checkbox v-model="configQuery.basicThirdBusOrder" :disabled="configQuery.downstreamEnable"></el-checkbox>
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
@ -102,14 +125,15 @@
</el-descriptions> </el-descriptions>
<el-descriptions class="margin-top" title="上传至UDI自助平台单据" :column="1" :size="100" style="margin-top: 40px" border> <el-descriptions class="margin-top" title="上传至UDI自助平台单据" :column="1" :size="100" style="margin-top: 40px"
border>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
单据(单据状态) 单据(单据状态)
</template> </template>
<el-checkbox v-model="configQuery.orderUnCheck"></el-checkbox> <el-checkbox v-model="configQuery.orderUnCheck" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.orderUnReceive"></el-checkbox> <el-checkbox v-model="configQuery.orderUnReceive" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.orderScanFinish"></el-checkbox> <el-checkbox v-model="configQuery.orderScanFinish" :disabled="configQuery.downstreamEnable"></el-checkbox>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="单据(单据类型)" label-style="width: 150px"> <el-descriptions-item label="单据(单据类型)" label-style="width: 150px">

@ -36,6 +36,7 @@
>添加仓库 >添加仓库
</el-button> </el-button>
<el-button type="primary" @click.native="downloadWarehouse()" <el-button type="primary" @click.native="downloadWarehouse()"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==3"
>下载仓库 >下载仓库
</el-button> </el-button>
</el-button-group> </el-button-group>
@ -237,7 +238,7 @@ import {
deleteThrWarehouse, deleteThrWarehouse,
download download
} from "../../api/thrsys/thrInvWarehouse"; } from "../../api/thrsys/thrInvWarehouse";
import {getBasicThirdSys} from "../../api/basic/basicThirdSys"; import {filterDetailByKey, getBasicThirdSys} from "../../api/basic/basicThirdSys";
const formJson = { const formJson = {
id: null, id: null,
@ -270,6 +271,8 @@ export default {
children: "children", children: "children",
label: "name" label: "name"
}, },
thirdSysDetail:{},
total: 0, total: 0,
treeList: [], treeList: [],
loading: true, loading: true,
@ -570,6 +573,8 @@ export default {
getBasicThirdSys(query) getBasicThirdSys(query)
.then((response) => { .then((response) => {
this.thirdSys = response.data.list || []; this.thirdSys = response.data.list || [];
this.query.thirdSysFk = this.thirdSys[0].thirdId;
this.getThirdSysDetail();
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
@ -591,7 +596,7 @@ export default {
this.$message.success("下载完成"); this.$message.success("下载完成");
this.getList(); this.getList();
} else { } else {
this.$message.error("下载失败"); this.$message.error(res.message);
} }
}).catch((error) => { }).catch((error) => {
this.$message.error("下载失败"); this.$message.error("下载失败");
@ -599,7 +604,24 @@ export default {
}, },
thirdSysFkChange(thirdSysFk) { thirdSysFkChange(thirdSysFk) {
console.log(thirdSysFk); console.log(thirdSysFk);
} this.getThirdSysDetail();
},
getThirdSysDetail() {
let query = {
thirdSysFk: this.query.thirdSysFk,
key: "warehouseQueryUrl",
};
filterDetailByKey(query)
.then((response) => {
this.thirdSysDetail = response.data;
})
.catch(() => {
this.loading = false;
this.list = [];
});
this.uploadData.thirdSys = this.query.thirdSysFk;
},
}, },
filters: { filters: {
statusFilterType(status) { statusFilterType(status) {

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save