同步修改

ywj_dev
anthonywj 2 years ago
parent cd73415433
commit a0767fda37

@ -6,11 +6,12 @@
<el-descriptions class="margin-top" :column="1" :size="100" border> <el-descriptions class="margin-top" :column="1" :size="100" border>
<template slot="extra"> <template slot="extra">
<el-button type="primary" size="small" @click="saveConfig()" <el-button type="primary" size="small" @click="saveConfig()"
>保存</el-button >保存
</el-button
> >
</template> </template>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 同步服务 </template> <template slot="label"> 同步服务</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"> <el-col :span="6" class="el-col">
<el-switch <el-switch
@ -22,7 +23,7 @@
<el-col :span="14" class="el-col"> <el-col :span="14" class="el-col">
<div> <div>
<span style="color: red" <span style="color: red"
>说明:&nbsp;修改同步参数时,请关闭数据同步服务 >说明:&nbsp;修改同步参数时,请关闭数据同步服务
</span> </span>
</div> </div>
</el-col> </el-col>
@ -30,7 +31,7 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 地址设置 </template> <template slot="label"> 地址设置</template>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="20" class="el-col"> <el-col :span="20" class="el-col">
@ -50,7 +51,7 @@
style="margin-left: 20px" style="margin-left: 20px"
:disabled="configQuery.downstreamEnable" :disabled="configQuery.downstreamEnable"
:loading="testLoading" :loading="testLoading"
>测试连通 >测试连通
</el-button> </el-button>
</div> </div>
</el-col> </el-col>
@ -63,7 +64,7 @@
<el-descriptions class="margin-top" :column="1" :size="100" border> <el-descriptions class="margin-top" :column="1" :size="100" border>
<!-- 参数设置 --> <!-- 参数设置 -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 参数设置 </template> <template slot="label"> 参数设置</template>
<el-row :gutter="20" class="el-row" type="flex"> <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>
@ -77,7 +78,7 @@
splaceholder="请输入内容" splaceholder="请输入内容"
></el-input> ></el-input>
<span style="margin-left: 30px" <span style="margin-left: 30px"
>延时上传(单位:分钟):&nbsp;</span >延时上传(单位:分钟):&nbsp;</span
> >
<el-input <el-input
style="width: 100px" style="width: 100px"
@ -89,7 +90,7 @@
></el-input> ></el-input>
<span style="margin-left: 30px" <span style="margin-left: 30px"
>数据下载时间间隔(单位:分钟):&nbsp;</span >数据下载时间间隔(单位:分钟):&nbsp;</span
> >
<el-input <el-input
style="width: 100px" style="width: 100px"
@ -105,7 +106,7 @@
</el-descriptions-item> </el-descriptions-item>
<!-- 系统设置信息 --> <!-- 系统设置信息 -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 系统设置信息 </template> <template slot="label"> 系统设置信息</template>
<el-form label-positiom="right" label-width="200px" :inline="true"> <el-form label-positiom="right" label-width="200px" :inline="true">
<el-form-item label="系统运行参数"> <el-form-item label="系统运行参数">
<el-select v-model="configQuery.systemConfig"> <el-select v-model="configQuery.systemConfig">
@ -151,7 +152,7 @@
</el-descriptions-item> </el-descriptions-item>
<!-- 单据类型 --> <!-- 单据类型 -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 单据类型 </template> <template slot="label"> 单据类型</template>
<el-form label-positiom="right" label-width="200px" :inline="true"> <el-form label-positiom="right" label-width="200px" :inline="true">
<el-form-item label="业务单据类型"> <el-form-item label="业务单据类型">
<el-select v-model="configQuery.typeBus"> <el-select v-model="configQuery.typeBus">
@ -178,7 +179,7 @@
</el-descriptions-item> </el-descriptions-item>
<!-- 用户信息 --> <!-- 用户信息 -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 用户信息 </template> <template slot="label"> 用户信息</template>
<el-form label-positiom="right" label-width="200px" :inline="true"> <el-form label-positiom="right" label-width="200px" :inline="true">
<el-form-item label="部门信息"> <el-form-item label="部门信息">
<el-select v-model="configQuery.basicDept"> <el-select v-model="configQuery.basicDept">
@ -205,7 +206,7 @@
</el-descriptions-item> </el-descriptions-item>
<!-- 基础数据 --> <!-- 基础数据 -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 基础数据 </template> <template slot="label"> 基础数据</template>
<el-form label-positiom="right" label-width="200px" :inline="true"> <el-form label-positiom="right" label-width="200px" :inline="true">
<el-form-item label="耗材字典"> <el-form-item label="耗材字典">
<el-select v-model="configQuery.basicProducts"> <el-select v-model="configQuery.basicProducts">
@ -232,7 +233,7 @@
</el-descriptions-item> </el-descriptions-item>
<!-- 第三方基础信息 --> <!-- 第三方基础信息 -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 第三方基础信息 </template> <template slot="label"> 第三方基础信息</template>
<el-form label-positiom="right" label-width="200px" :inline="true"> <el-form label-positiom="right" label-width="200px" :inline="true">
<el-form-item label="第三方产品信息"> <el-form-item label="第三方产品信息">
<el-select v-model="configQuery.basicThirdProducts"> <el-select v-model="configQuery.basicThirdProducts">
@ -268,7 +269,7 @@
</el-descriptions-item> </el-descriptions-item>
<!-- 国家库DI数据 --> <!-- 国家库DI数据 -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 国家库DI数据 </template> <template slot="label"> 国家库DI数据</template>
<el-form label-positiom="right" label-width="200px" :inline="true"> <el-form label-positiom="right" label-width="200px" :inline="true">
<el-form-item label="DI产品信息"> <el-form-item label="DI产品信息">
<el-select v-model="configQuery.dbDiProducts"> <el-select v-model="configQuery.dbDiProducts">
@ -278,7 +279,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="医疗器械注册人"> <el-form-item label="医疗器械注册人">
<el-select v-model="configQuery.dbDiProducts"> <el-select v-model="configQuery.dbDiCompany">
<el-option :value="0" label="不同步"></el-option> <el-option :value="0" label="不同步"></el-option>
<el-option :value="1" label="由内向外"></el-option> <el-option :value="1" label="由内向外"></el-option>
<el-option :value="2" label="由外向内"></el-option> <el-option :value="2" label="由外向内"></el-option>
@ -303,7 +304,7 @@
border border
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 参数设置 </template> <template slot="label"> 参数设置</template>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="20" class="el-col"> <el-col :span="20" class="el-col">
@ -332,7 +333,7 @@
size="small" size="small"
:disabled="configQuery.downstreamEnable" :disabled="configQuery.downstreamEnable"
@click="addToInBusTypeDialog()" @click="addToInBusTypeDialog()"
>添加扫码单据类型 >添加扫码单据类型
</el-button> </el-button>
</div> </div>
<el-table :data="checkedToInBusTypes" border style="width: 100%"> <el-table :data="checkedToInBusTypes" border style="width: 100%">
@ -367,7 +368,7 @@
size="small" size="small"
:disabled="configQuery.downstreamEnable" :disabled="configQuery.downstreamEnable"
@click.native="removeToInBus(scope.$index, scope.row)" @click.native="removeToInBus(scope.$index, scope.row)"
>移除 >移除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -385,7 +386,7 @@
border border
> >
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 参数设置 </template> <template slot="label"> 参数设置</template>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="20" class="el-col"> <el-col :span="20" class="el-col">
@ -401,7 +402,7 @@
></el-input> ></el-input>
<span style="margin-left: 30px" <span style="margin-left: 30px"
>单据下载时间间隔(单位:分钟):&nbsp;</span >单据下载时间间隔(单位:分钟):&nbsp;</span
> >
<el-input <el-input
style="width: 100px" style="width: 100px"
@ -426,7 +427,7 @@
size="small" size="small"
:disabled="configQuery.downstreamEnable" :disabled="configQuery.downstreamEnable"
@click="addBusTypeDialog()" @click="addBusTypeDialog()"
>添加扫码单据类型 >添加扫码单据类型
</el-button> </el-button>
</div> </div>
<el-table :data="checkedBusTypes" border style="width: 100%"> <el-table :data="checkedBusTypes" border style="width: 100%">
@ -461,7 +462,7 @@
size="small" size="small"
:disabled="configQuery.downstreamEnable" :disabled="configQuery.downstreamEnable"
@click.native="remveBus(scope.$index, scope.row)" @click.native="remveBus(scope.$index, scope.row)"
>移除 >移除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -488,7 +489,7 @@
size="small" size="small"
:disabled="configQuery.downstreamEnable" :disabled="configQuery.downstreamEnable"
@click="addChangeBusTypeDialog()" @click="addChangeBusTypeDialog()"
>添加业务单据类型 >添加业务单据类型
</el-button> </el-button>
</div> </div>
<el-table :data="checkedChangeBusTypes" border style="width: 100%"> <el-table :data="checkedChangeBusTypes" border style="width: 100%">
@ -522,7 +523,7 @@
size="small" size="small"
:disabled="configQuery.downstreamEnable" :disabled="configQuery.downstreamEnable"
@click.native="removeChangeBus(scope.$index, scope.row)" @click.native="removeChangeBus(scope.$index, scope.row)"
>移除 >移除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -540,7 +541,8 @@
> >
<div style="float: right; margin-bottom: 10px; margin-right: 25px"> <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()"
>选入</el-button >选入
</el-button
> >
</div> </div>
<el-table <el-table
@ -585,7 +587,8 @@
> >
<div style="float: right; margin-bottom: 10px; margin-right: 25px"> <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()"
>选入</el-button >选入
</el-button
> >
</div> </div>
<el-table <el-table
@ -631,7 +634,8 @@
> >
<div style="float: right; margin-bottom: 10px; margin-right: 25px"> <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()"
>选入</el-button >选入
</el-button
> >
</div> </div>
<el-table <el-table
@ -677,8 +681,8 @@ import {
updateConfig, updateConfig,
} from "@/api/sync/spsSyncStatus"; } from "@/api/sync/spsSyncStatus";
import store from "@/store"; import store from "@/store";
import { getBussinessType } from "@/api/basic/bussinessType"; import {getBussinessType} from "@/api/basic/bussinessType";
import { getBusTypeChangeList } from "@/api/basic/busTypeChange"; import {getBusTypeChangeList} from "@/api/basic/busTypeChange";
export default { export default {
name: "SysUdimsConfig", name: "SysUdimsConfig",
@ -723,6 +727,7 @@ export default {
printConfig: null, printConfig: null,
scanChangeConfig: null, scanChangeConfig: null,
busChangeConfig: null, busChangeConfig: null,
dbDiCompany: null,
}, },
checkedBusTypes: [], checkedBusTypes: [],
checkedToInBusTypes: [], checkedToInBusTypes: [],
@ -793,7 +798,8 @@ export default {
this.loading = false; this.loading = false;
}); });
}) })
.catch(() => {}); .catch(() => {
});
}, },
testConnect() { testConnect() {
@ -826,7 +832,8 @@ export default {
this.busTypes = response.data.list || []; this.busTypes = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
}) })
.catch(() => {}); .catch(() => {
});
}, },
addBusTypeDialog() { addBusTypeDialog() {
@ -952,6 +959,7 @@ export default {
/deep/ .el-select { /deep/ .el-select {
width: 100px; width: 100px;
} }
/deep/ .el-collapse-item__header { /deep/ .el-collapse-item__header {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;

Loading…
Cancel
Save