|
|
|
@ -5,8 +5,8 @@
|
|
|
|
|
<el-collapse-item title="数据同步设置" name="1">
|
|
|
|
|
<el-descriptions class="margin-top" :column="1" :size="100" border>
|
|
|
|
|
<template slot="extra">
|
|
|
|
|
<el-button type="primary" size="small" @click="saveConfig()"
|
|
|
|
|
>保存
|
|
|
|
|
<el-button type="primary" size="small" @click="saveConfig()" disabled
|
|
|
|
|
>保存
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
@ -14,6 +14,7 @@
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="6" class="el-col">
|
|
|
|
|
<el-switch
|
|
|
|
|
disabled
|
|
|
|
|
v-model="configQuery.downstreamEnable"
|
|
|
|
|
active-text="是否启用数据同步"
|
|
|
|
|
>
|
|
|
|
@ -22,7 +23,7 @@
|
|
|
|
|
<el-col :span="14" class="el-col">
|
|
|
|
|
<div>
|
|
|
|
|
<span style="color: red"
|
|
|
|
|
>说明: 修改同步参数时,请关闭数据同步服务
|
|
|
|
|
>说明: 修改同步参数时,请关闭数据同步服务
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
@ -40,7 +41,7 @@
|
|
|
|
|
style="width: 50%"
|
|
|
|
|
size="small"
|
|
|
|
|
v-model="configQuery.syncIp"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
></el-input>
|
|
|
|
|
<el-button
|
|
|
|
@ -48,9 +49,9 @@
|
|
|
|
|
size="small"
|
|
|
|
|
@click="testConnect()"
|
|
|
|
|
style="margin-left: 20px"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
:loading="testLoading"
|
|
|
|
|
>测试连通
|
|
|
|
|
>测试连通
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
@ -113,6 +114,7 @@
|
|
|
|
|
style="width: 100px"
|
|
|
|
|
size="small"
|
|
|
|
|
type="number"
|
|
|
|
|
disabled
|
|
|
|
|
v-model="configQuery.syncTime"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
></el-input>
|
|
|
|
@ -120,7 +122,7 @@
|
|
|
|
|
<el-form-item label="延时上传(单位:分钟):">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 100px"
|
|
|
|
|
size="small"
|
|
|
|
|
size="small" disabled
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="configQuery.delaySyncTime"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
@ -129,7 +131,7 @@
|
|
|
|
|
<el-form-item label="数据下载时间间隔(单位:分钟):">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 100px"
|
|
|
|
|
size="small"
|
|
|
|
|
size="small" disabled
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="configQuery.syncDownloadTime"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
@ -383,7 +385,7 @@
|
|
|
|
|
size="small"
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="configQuery.orderToInSyncTime"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
@ -399,9 +401,9 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
@click="addToInBusTypeDialog()"
|
|
|
|
|
>添加扫码单据类型
|
|
|
|
|
>添加扫码单据类型
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="checkedToInBusTypes" border style="width: 100%">
|
|
|
|
@ -434,9 +436,9 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
@click.native="removeToInBus(scope.$index, scope.row)"
|
|
|
|
|
>移除
|
|
|
|
|
>移除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -465,19 +467,19 @@
|
|
|
|
|
size="small"
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="configQuery.orderSyncTime"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
|
|
<span style="margin-left: 30px"
|
|
|
|
|
>单据下载时间间隔(单位:分钟): </span
|
|
|
|
|
>单据下载时间间隔(单位:分钟): </span
|
|
|
|
|
>
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 100px"
|
|
|
|
|
size="small"
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="configQuery.orderSyncDlTime"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
@ -493,9 +495,9 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
@click="addBusTypeDialog()"
|
|
|
|
|
>添加扫码单据类型
|
|
|
|
|
>添加扫码单据类型
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="checkedBusTypes" border style="width: 100%">
|
|
|
|
@ -528,9 +530,9 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
@click.native="remveBus(scope.$index, scope.row)"
|
|
|
|
|
>移除
|
|
|
|
|
>移除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -555,9 +557,9 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
@click="addChangeBusTypeDialog()"
|
|
|
|
|
>添加业务单据类型
|
|
|
|
|
>添加业务单据类型
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="checkedChangeBusTypes" border style="width: 100%">
|
|
|
|
@ -589,9 +591,9 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="configQuery.downstreamEnable"
|
|
|
|
|
disabled
|
|
|
|
|
@click.native="removeChangeBus(scope.$index, scope.row)"
|
|
|
|
|
>移除
|
|
|
|
|
>移除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -608,8 +610,8 @@
|
|
|
|
|
v-if="addBusToInDialogVisible"
|
|
|
|
|
>
|
|
|
|
|
<div style="float: right; margin-bottom: 10px; margin-right: 25px">
|
|
|
|
|
<el-button type="primary" size="small" @click="addToInBusType()"
|
|
|
|
|
>选入
|
|
|
|
|
<el-button type="primary" size="small" @click="addToInBusType()" disabled
|
|
|
|
|
>选入
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table
|
|
|
|
@ -653,8 +655,8 @@
|
|
|
|
|
v-if="addBusDialogVisible"
|
|
|
|
|
>
|
|
|
|
|
<div style="float: right; margin-bottom: 10px; margin-right: 25px">
|
|
|
|
|
<el-button type="primary" size="small" @click="addBusType()"
|
|
|
|
|
>选入
|
|
|
|
|
<el-button type="primary" size="small" @click="addBusType()" disabled
|
|
|
|
|
>选入
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table
|
|
|
|
@ -699,8 +701,8 @@
|
|
|
|
|
v-if="addChangeBusDialogVisible"
|
|
|
|
|
>
|
|
|
|
|
<div style="float: right; margin-bottom: 10px; margin-right: 25px">
|
|
|
|
|
<el-button type="primary" size="small" @click="addChangeBusType()"
|
|
|
|
|
>选入
|
|
|
|
|
<el-button type="primary" size="small" @click="addChangeBusType()" disabled
|
|
|
|
|
>选入
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table
|
|
|
|
@ -746,8 +748,8 @@ import {
|
|
|
|
|
updateConfig,
|
|
|
|
|
} from "@/api/sync/spsSyncStatus";
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
import { getBussinessType } from "@/api/basic/bussinessType";
|
|
|
|
|
import { getBusTypeChangeList } from "@/api/basic/busTypeChange";
|
|
|
|
|
import {getBussinessType} from "@/api/basic/bussinessType";
|
|
|
|
|
import {getBusTypeChangeList} from "@/api/basic/busTypeChange";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "SysUdimsConfig",
|
|
|
|
@ -863,7 +865,8 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
testConnect() {
|
|
|
|
@ -896,7 +899,8 @@ export default {
|
|
|
|
|
this.busTypes = response.data.list || [];
|
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
addBusTypeDialog() {
|
|
|
|
|