同步设置 下拉框禁用

ywj_dev
CTP 2 years ago
parent 6f47023516
commit c6923e7bf5

@ -6,9 +6,8 @@
<el-descriptions class="margin-top" :column="1" :size="100" border>
<template slot="extra">
<el-button type="primary" size="small" @click="saveConfig()"
>保存
</el-button
>
>保存
</el-button>
</template>
<el-descriptions-item>
<template slot="label"> 同步服务</template>
@ -23,7 +22,7 @@
<el-col :span="14" class="el-col">
<div>
<span style="color: red"
>说明:&nbsp;修改同步参数时,请关闭数据同步服务
>说明:&nbsp;修改同步参数时,请关闭数据同步服务
</span>
</div>
</el-col>
@ -51,7 +50,7 @@
style="margin-left: 20px"
:disabled="configQuery.downstreamEnable"
:loading="testLoading"
>测试连通
>测试连通
</el-button>
</div>
</el-col>
@ -65,7 +64,7 @@
<!-- 参数设置 -->
<el-descriptions-item>
<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">
<div>
<span>数据上传时间间隔(单位:分钟):&nbsp;</span>
@ -78,7 +77,7 @@
splaceholder="请输入内容"
></el-input>
<span style="margin-left: 30px"
>延时上传(单位:分钟):&nbsp;</span
>延时上传(单位:分钟):&nbsp;</span
>
<el-input
style="width: 100px"
@ -90,7 +89,7 @@
></el-input>
<span style="margin-left: 30px"
>数据下载时间间隔(单位:分钟):&nbsp;</span
>数据下载时间间隔(单位:分钟):&nbsp;</span
>
<el-input
style="width: 100px"
@ -102,12 +101,51 @@
></el-input>
</div>
</el-col>
</el-row>
</el-row> -->
<el-form
label-positiom="right"
label-width="200px"
:inline="true"
disabled
>
<el-form-item label="数据上传时间间隔(单位:分钟):">
<el-input
style="width: 100px"
size="small"
type="number"
v-model="configQuery.syncTime"
splaceholder="请输入内容"
></el-input>
</el-form-item>
<el-form-item label="延时上传(单位:分钟):">
<el-input
style="width: 100px"
size="small"
type="number"
v-model="configQuery.delaySyncTime"
splaceholder="请输入内容"
></el-input>
</el-form-item>
<el-form-item label="数据下载时间间隔(单位:分钟):">
<el-input
style="width: 100px"
size="small"
type="number"
v-model="configQuery.syncDownloadTime"
splaceholder="请输入内容"
></el-input>
</el-form-item>
</el-form>
</el-descriptions-item>
<!-- 系统设置信息 -->
<el-descriptions-item>
<template slot="label"> 系统设置信息</template>
<el-form label-positiom="right" label-width="200px" :inline="true">
<el-form
label-positiom="right"
label-width="200px"
:inline="true"
disabled
>
<el-form-item label="系统运行参数">
<el-select v-model="configQuery.systemConfig">
<el-option :value="0" label="不同步"></el-option>
@ -132,7 +170,12 @@
</el-select>
</el-form-item>
</el-form>
<el-form label-positiom="right" label-width="200px" :inline="true">
<el-form
label-positiom="right"
label-width="200px"
:inline="true"
disabled
>
<el-form-item label="自动建出入库单设置">
<el-select v-model="configQuery.scanChangeConfig">
<el-option :value="0" label="不同步"></el-option>
@ -153,7 +196,12 @@
<!-- 单据类型 -->
<el-descriptions-item>
<template slot="label"> 单据类型</template>
<el-form label-positiom="right" label-width="200px" :inline="true">
<el-form
label-positiom="right"
label-width="200px"
:inline="true"
disabled
>
<el-form-item label="业务单据类型">
<el-select v-model="configQuery.typeBus">
<el-option :value="0" label="不同步"></el-option>
@ -180,7 +228,12 @@
<!-- 用户信息 -->
<el-descriptions-item>
<template slot="label"> 用户信息</template>
<el-form label-positiom="right" label-width="200px" :inline="true">
<el-form
label-positiom="right"
label-width="200px"
:inline="true"
disabled
>
<el-form-item label="部门信息">
<el-select v-model="configQuery.basicDept">
<el-option :value="0" label="不同步"></el-option>
@ -207,7 +260,12 @@
<!-- 基础数据 -->
<el-descriptions-item>
<template slot="label"> 基础数据</template>
<el-form label-positiom="right" label-width="200px" :inline="true">
<el-form
label-positiom="right"
label-width="200px"
:inline="true"
disabled
>
<el-form-item label="耗材字典">
<el-select v-model="configQuery.basicProducts">
<el-option :value="0" label="不同步"></el-option>
@ -234,7 +292,12 @@
<!-- 第三方基础信息 -->
<el-descriptions-item>
<template slot="label"> 第三方基础信息</template>
<el-form label-positiom="right" label-width="200px" :inline="true">
<el-form
label-positiom="right"
label-width="200px"
:inline="true"
disabled
>
<el-form-item label="第三方产品信息">
<el-select v-model="configQuery.basicThirdProducts">
<el-option :value="0" label="不同步"></el-option>
@ -270,7 +333,12 @@
<!-- 国家库DI数据 -->
<el-descriptions-item>
<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"
disabled
>
<el-form-item label="DI产品信息">
<el-select v-model="configQuery.dbDiProducts">
<el-option :value="0" label="不同步"></el-option>
@ -333,7 +401,7 @@
size="small"
:disabled="configQuery.downstreamEnable"
@click="addToInBusTypeDialog()"
>添加扫码单据类型
>添加扫码单据类型
</el-button>
</div>
<el-table :data="checkedToInBusTypes" border style="width: 100%">
@ -368,7 +436,7 @@
size="small"
:disabled="configQuery.downstreamEnable"
@click.native="removeToInBus(scope.$index, scope.row)"
>移除
>移除
</el-button>
</template>
</el-table-column>
@ -402,7 +470,7 @@
></el-input>
<span style="margin-left: 30px"
>单据下载时间间隔(单位:分钟):&nbsp;</span
>单据下载时间间隔(单位:分钟):&nbsp;</span
>
<el-input
style="width: 100px"
@ -427,7 +495,7 @@
size="small"
:disabled="configQuery.downstreamEnable"
@click="addBusTypeDialog()"
>添加扫码单据类型
>添加扫码单据类型
</el-button>
</div>
<el-table :data="checkedBusTypes" border style="width: 100%">
@ -462,7 +530,7 @@
size="small"
:disabled="configQuery.downstreamEnable"
@click.native="remveBus(scope.$index, scope.row)"
>移除
>移除
</el-button>
</template>
</el-table-column>
@ -489,7 +557,7 @@
size="small"
:disabled="configQuery.downstreamEnable"
@click="addChangeBusTypeDialog()"
>添加业务单据类型
>添加业务单据类型
</el-button>
</div>
<el-table :data="checkedChangeBusTypes" border style="width: 100%">
@ -523,7 +591,7 @@
size="small"
:disabled="configQuery.downstreamEnable"
@click.native="removeChangeBus(scope.$index, scope.row)"
>移除
>移除
</el-button>
</template>
</el-table-column>
@ -541,9 +609,8 @@
>
<div style="float: right; margin-bottom: 10px; margin-right: 25px">
<el-button type="primary" size="small" @click="addToInBusType()"
>选入
</el-button
>
>选入
</el-button>
</div>
<el-table
:data="busTypes"
@ -587,9 +654,8 @@
>
<div style="float: right; margin-bottom: 10px; margin-right: 25px">
<el-button type="primary" size="small" @click="addBusType()"
>选入
</el-button
>
>选入
</el-button>
</div>
<el-table
:data="busTypes"
@ -634,9 +700,8 @@
>
<div style="float: right; margin-bottom: 10px; margin-right: 25px">
<el-button type="primary" size="small" @click="addChangeBusType()"
>选入
</el-button
>
>选入
</el-button>
</div>
<el-table
:data="changeBusTypes"
@ -681,8 +746,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",
@ -798,8 +863,7 @@ export default {
this.loading = false;
});
})
.catch(() => {
});
.catch(() => {});
},
testConnect() {
@ -832,8 +896,7 @@ export default {
this.busTypes = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
});
.catch(() => {});
},
addBusTypeDialog() {

@ -588,6 +588,7 @@ export default {
this.loading = false;
let depList = response.data.list || [];
this.list = this.handleTree(depList, "code", "pcode");
//
this.$nextTick(() => {
console.log(qwe);
if (qwe === null) {

Loading…
Cancel
Save