同步界面修改

ywj_dev
anthonywj 2 years ago
parent 879b458a21
commit ecbc552596

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

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

Loading…
Cancel
Save