同步设置样式修改

prod
CTP 2 years ago
parent e5384d6420
commit 6650ffdb94

@ -2,13 +2,7 @@
<el-card> <el-card>
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="数据同步设置" name="1"> <el-collapse-item title="数据同步设置" name="1">
<el-descriptions <el-descriptions class="margin-top" :column="1" :size="100" border>
class="margin-top"
title="数据同步设置"
: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
@ -65,14 +59,7 @@
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="上传至UDI自助平台基础数据" name="2"> <el-collapse-item title="上传至UDI自助平台基础数据" name="2">
<el-descriptions <el-descriptions class="margin-top" :column="1" :size="100" border>
class="margin-top"
title="上传至UDI自助平台基础数据"
:column="1"
:size="100"
style="margin-top: 40px"
border
>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 参数设置 </template> <template slot="label"> 参数设置 </template>
@ -129,27 +116,36 @@
<el-checkbox v-model="configQuery.typeScan" :disabled="configQuery.downstreamEnable"></el-checkbox> <el-checkbox v-model="configQuery.typeScan" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.typeThird" :disabled="configQuery.downstreamEnable"></el-checkbox> --> <el-checkbox v-model="configQuery.typeThird" :disabled="configQuery.downstreamEnable"></el-checkbox> -->
<el-form <el-form
:inline="true"
:model="configQuery" :model="configQuery"
:label-position="labelPosition" :label-position="labelPosition"
label-width="120px"
> >
<el-form-item label="业务单据类型"> <el-form-item label="业务单据类型">
<el-select v-model="configQuery.typeBus" placeholder="请选择"> <el-select
<el-option label="完成同步" value="0"></el-option> v-model="configQuery.typeBus"
<el-option label="由内到外" value="1"></el-option> placeholder="请选择同步方式"
<el-option label="由外到内" value="2"></el-option> >
<el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" :value="2"></el-option>
</el-select> </el-form-item </el-select> </el-form-item
><el-form-item label="扫码单据类型"> ><el-form-item label="扫码单据类型">
<el-select v-model="configQuery.typeScan" placeholder="请选择"> <el-select
<el-option label="不同步" value="0"></el-option> v-model="configQuery.typeScan"
<el-option label="由内到外" value="1"></el-option> placeholder="请选择同步方式"
<el-option label="由外到内" value="2"></el-option> >
<el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" :value="2"></el-option>
</el-select> </el-form-item </el-select> </el-form-item
><el-form-item label="第三方单据类型"> ><el-form-item label="第三方单据类型">
<el-select v-model="configQuery.typeThird" placeholder="请选择"> <el-select
<el-option label="完成同步" value="0"></el-option> v-model="configQuery.typeThird"
<el-option label="由内到外" value="1"></el-option> placeholder="请选择同步方式"
<el-option label="由外到内" value="2"></el-option> >
<el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" :value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -165,24 +161,28 @@
<!-- <el-checkbox v-model="configQuery.basicDept" :disabled="configQuery.downstreamEnable" >部门信息</el-checkbox > <!-- <el-checkbox v-model="configQuery.basicDept" :disabled="configQuery.downstreamEnable" >部门信息</el-checkbox >
<el-checkbox v-model="configQuery.basicInv" :disabled="configQuery.downstreamEnable" >仓库字典</el-checkbox > <el-checkbox v-model="configQuery.basicInv" :disabled="configQuery.downstreamEnable" >仓库字典</el-checkbox >
<el-checkbox v-model="configQuery.sysUser" :disabled="configQuery.downstreamEnable" >用户信息</el-checkbox > --> <el-checkbox v-model="configQuery.sysUser" :disabled="configQuery.downstreamEnable" >用户信息</el-checkbox > -->
<el-form :inline="true" :model="configQuery"> <el-form
:model="configQuery"
:label-position="labelPosition"
label-width="120px"
>
<el-form-item label="部门信息"> <el-form-item label="部门信息">
<el-select v-model="configQuery.basicDept" placeholder="请选择"> <el-select v-model="configQuery.basicDept" placeholder="请选择">
<el-option label="完成同步" value="0"></el-option> <el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" value="1"></el-option> <el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" value="2"></el-option> <el-option label="由外到内" :value="2"></el-option>
</el-select> </el-form-item </el-select> </el-form-item
><el-form-item label="仓库字典"> ><el-form-item label="仓库字典">
<el-select v-model="configQuery.basicInv" placeholder="请选择"> <el-select v-model="configQuery.basicInv" placeholder="请选择">
<el-option label="完成同步" value="0"></el-option> <el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" value="1"></el-option> <el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" value="2"></el-option> <el-option label="由外到内" :value="2"></el-option>
</el-select> </el-form-item </el-select> </el-form-item
><el-form-item label="用户信息"> ><el-form-item label="用户信息">
<el-select v-model="configQuery.sysUser" placeholder="请选择"> <el-select v-model="configQuery.sysUser" placeholder="请选择">
<el-option label="完成同步" value="0"></el-option> <el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" value="1"></el-option> <el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" value="2"></el-option> <el-option label="由外到内" :value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -193,33 +193,37 @@
<el-checkbox v-model="configQuery.basicThirdCorp" :disabled="configQuery.downstreamEnable" >第三方往来信息 </el-checkbox> <el-checkbox v-model="configQuery.basicThirdCorp" :disabled="configQuery.downstreamEnable" >第三方往来信息 </el-checkbox>
<el-checkbox v-model="configQuery.basicThirdInv" :disabled="configQuery.downstreamEnable" >第三方仓库信息 </el-checkbox> <el-checkbox v-model="configQuery.basicThirdInv" :disabled="configQuery.downstreamEnable" >第三方仓库信息 </el-checkbox>
<el-checkbox v-model="configQuery.basicThirdBusOrder" :disabled="configQuery.downstreamEnable" >第三方业务单据 </el-checkbox> --> <el-checkbox v-model="configQuery.basicThirdBusOrder" :disabled="configQuery.downstreamEnable" >第三方业务单据 </el-checkbox> -->
<el-form :inline="true" :model="configQuery"> <el-form
:model="configQuery"
:label-position="labelPosition"
label-width="120px"
>
<el-form-item label="第三方产品信息"> <el-form-item label="第三方产品信息">
<el-select <el-select
v-model="configQuery.basicThirdProducts" v-model="configQuery.basicThirdProducts"
placeholder="请选择" placeholder="请选择"
> >
<el-option label="完成同步" value="0"></el-option> <el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" value="1"></el-option> <el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" value="2"></el-option> <el-option label="由外到内" :value="2"></el-option>
</el-select> </el-form-item </el-select> </el-form-item
><el-form-item label="第三方往来信息"> ><el-form-item label="第三方往来信息">
<el-select <el-select
v-model="configQuery.basicThirdCorp" v-model="configQuery.basicThirdCorp"
placeholder="请选择" placeholder="请选择"
> >
<el-option label="完成同步" value="0"></el-option> <el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" value="1"></el-option> <el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" value="2"></el-option> <el-option label="由外到内" :value="2"></el-option>
</el-select> </el-form-item </el-select> </el-form-item
><el-form-item label="第三方仓库信息"> ><el-form-item label="第三方仓库信息">
<el-select <el-select
v-model="configQuery.basicThirdInv" v-model="configQuery.basicThirdInv"
placeholder="请选择" placeholder="请选择"
> >
<el-option label="完成同步" value="0"></el-option> <el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" value="1"></el-option> <el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" value="2"></el-option> <el-option label="由外到内" :value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="第三方业务单据"> <el-form-item label="第三方业务单据">
@ -227,9 +231,9 @@
v-model="configQuery.basicThirdBusOrder" v-model="configQuery.basicThirdBusOrder"
placeholder="请选择" placeholder="请选择"
> >
<el-option label="完成同步" value="0"></el-option> <el-option label="不同步" :value="0"></el-option>
<el-option label="由内到外" value="1"></el-option> <el-option label="由内到外" :value="1"></el-option>
<el-option label="由外到内" value="2"></el-option> <el-option label="由外到内" :value="2"></el-option>
</el-select> </el-form-item </el-select> </el-form-item
>, >,
</el-form> </el-form>
@ -257,14 +261,7 @@
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="上传至UDI自助平台扫码单据" name="3"> <el-collapse-item title="上传至UDI自助平台扫码单据" name="3">
<el-descriptions <el-descriptions class="margin-top" :column="1" :size="100" border>
class="margin-top"
title="上传至UDI自助平台扫码单据"
:column="1"
:size="100"
style="margin-top: 40px"
border
>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 参数设置 </template> <template slot="label"> 参数设置 </template>
@ -352,14 +349,7 @@
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="上传至UDI自助平台业务单据" name="4"> <el-collapse-item title="上传至UDI自助平台业务单据" name="4">
<el-descriptions <el-descriptions class="margin-top" :column="1" :size="100" border>
class="margin-top"
title="上传至UDI自助平台业务单据"
:column="1"
:size="100"
style="margin-top: 40px"
border
>
<el-descriptions-item <el-descriptions-item
label="单据(单据类型)" label="单据(单据类型)"
label-style="width: 150px" label-style="width: 150px"
@ -577,15 +567,13 @@ export default {
}; };
}, },
methods: { methods: {
handleChange(val) {
console.log(val);
},
getConfig() { getConfig() {
findConfig() findConfig()
.then((response) => { .then((response) => {
this.configQuery = response.data; this.configQuery = response.data;
this.checkedBusTypes = this.configQuery.busTypes; this.checkedBusTypes = this.configQuery.busTypes;
this.checkedChangeBusTypes = this.configQuery.changeBusTypes; this.checkedChangeBusTypes = this.configQuery.changeBusTypes;
this.configQuery.typeBus.value = this.this.configQuery.typeBus;
if (this.configQuery.busTypes != null) { if (this.configQuery.busTypes != null) {
// for (let i = 0; i < this.configQuery.busTypes.length; i++) { // for (let i = 0; i < this.configQuery.busTypes.length; i++) {
// //
@ -762,6 +750,31 @@ export default {
</script> </script>
<style scoped> <style scoped>
/deep/ .el-collapse-item__header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
height: 48px;
line-height: 48px;
background-color: #ffffff;
color: #000610;
cursor: pointer;
border-bottom: 1px solid #e6ebf5;
font-size: 16px;
font-weight: 700;
-webkit-transition: border-bottom-color 0.3s;
transition: border-bottom-color 0.3s;
outline: none;
}
/deep/ .el-collapse-item__content {
padding-bottom: 10px;
font-size: 13px;
color: #303133;
line-height: 1.7692307692;
}
.el-select { .el-select {
width: 100px; width: 100px;
} }

Loading…
Cancel
Save