同步界面修改

ywj_dev
anthonywj 2 years ago
parent 879b458a21
commit ecbc552596

@ -119,15 +119,15 @@
splaceholder="请输入内容"
></el-input>
</el-form-item>
<el-form-item label="延时上传(单位:分钟):">
<el-input
style="width: 100px"
size="small" disabled
type="number"
v-model="configQuery.delaySyncTime"
splaceholder="请输入内容"
></el-input>
</el-form-item>
<!-- <el-form-item label="延时上传(单位:分钟):">-->
<!-- <el-input-->
<!-- style="width: 100px"-->
<!-- size="small" disabled-->
<!-- type="number"-->
<!-- v-model="configQuery.delaySyncTime"-->
<!-- splaceholder="请输入内容"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<el-form-item label="数据下载时间间隔(单位:分钟):">
<el-input
style="width: 100px"
@ -497,17 +497,17 @@
splaceholder="请输入内容"
></el-input>
<span style="margin-left: 30px"
>单据下载时间间隔(单位:分钟):&nbsp;</span
>
<el-input
style="width: 100px"
size="small"
type="number"
v-model="configQuery.orderSyncDlTime"
disabled
splaceholder="请输入内容"
></el-input>
<!-- <span style="margin-left: 30px"-->
<!-- >单据下载时间间隔(单位:分钟):&nbsp;</span-->
<!-- >-->
<!-- <el-input-->
<!-- style="width: 100px"-->
<!-- size="small"-->
<!-- type="number"-->
<!-- v-model="configQuery.orderSyncDlTime"-->
<!-- disabled-->
<!-- splaceholder="请输入内容"-->
<!-- ></el-input>-->
</div>
</el-col>
</el-row>

@ -29,13 +29,14 @@
<el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" icon="search" v-if="configParms.orderScanFinish==2 || configParms.orderUnReceive==2 || configParms.orderUnCheck==2" @click="syncData('IO_ORDER')">
<el-button type="primary" icon="search" @click="syncData('IO_ORDER')">
</el-button>
<el-button type="primary" icon="search" @click="syncData('DOCUMENT_TYPE_DATA')"
v-if="configParms.typeBus==2 || configParms.typeScan==2 || configParms.typeThird==2">
同步单据类型
</el-button>
<el-button type="primary" icon="search" @click="syncData('BASIC_DATA')" v-if="configParms.basicProducts==2|| configParms.basicCorp==2|| configParms.supCert==2">
<el-button type="primary" icon="search" @click="syncData('BASIC_DATA')"
v-if="configParms.basicProducts==2|| configParms.basicCorp==2|| configParms.supCert==2">同步基础信息
</el-button>
<el-button type="primary" icon="search" @click="syncData('COUNTRY_DI_DATA')"
v-if="configParms.dbDiProducts==2">同步国家库DI数据
@ -407,17 +408,18 @@ export default {
}
this.getList();
})
.catch(() => {});
.catch(() => {
});
},
syncData(exportType){
if(!this.syncTime){
syncData(exportType) {
if (!this.syncTime) {
this.$message.error("请选择同步时间");
return false
}
let param = {
exportType : exportType,
syncTime: this.syncTime
}
}
let param = {
exportType: exportType,
syncTime: this.syncTime
}
syncData(param).then((response) => {
if (response.code == 20000) {
this.filterQuery.page = 1
@ -425,16 +427,18 @@ export default {
} else {
this.$message.error(response.message);
}
this.syncTime=null
setTimeout(()=>{
this.syncTime = null
setTimeout(() => {
this.getList();
},666)
}, 666)
})
.catch(() => {});
.catch(() => {
});
}
},
mounted() {},
mounted() {
},
components: {},
created() {
this.headers = {

Loading…
Cancel
Save