refactor: 注释掉出口卷数据同步相关代码并优化钢卷对比默认查询逻辑

本次提交主要变更:
1.  注释掉所有出口卷数据同步的接口、服务实现和相关工具方法
2.  优化钢卷对比页面的默认时间逻辑,移除默认7天前的起始时间,改为默认查询今日全天数据
3.  新增日期格式化工具方法统一处理时间字符串拼接
4.  完善钢卷对比接口的注释和字段映射逻辑
This commit is contained in:
2026-05-22 14:01:16 +08:00
parent 80fbe70ab7
commit c2b7a08414
8 changed files with 332 additions and 266 deletions

View File

@@ -69,7 +69,6 @@ export default {
created() {
const end = new Date();
const start = new Date();
start.setDate(start.getDate() - 7);
this.dateRange = [start, end];
this.handleQuery();
},
@@ -80,6 +79,10 @@ export default {
if (this.dateRange && this.dateRange.length === 2) {
params.startTime = this.dateRange[0];
params.endTime = this.dateRange[1];
} else {
const today = new Date();
params.startTime = this.formatDateTime(today, '00:00:00');
params.endTime = this.formatDateTime(today, '23:59:59');
}
params.lineType = this.activeLine;
getExcoilStatus(params).then(res => {
@@ -89,6 +92,12 @@ export default {
this.loading = false;
});
},
formatDateTime(date, time) {
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
return `${year}-${month}-${day} ${time}`;
},
},
};
</script>