refactor(wms/cost): optimize折线图弹窗交互与时间范围配置
1. 钢卷发货弹窗增加确认步骤,优化用户操作流程
2. 调整报表时间范围默认从07:00开始而非00:00
3. 重构成本综合页面折线图弹窗:
- 新增可拖拽排序的标签选择器
- 本地缓存已选图表列配置
- 优化弹窗样式与空状态提示
This commit is contained in:
@@ -2298,8 +2298,9 @@ export default {
|
||||
});
|
||||
},
|
||||
handleExportCoil(row) {
|
||||
exportCoil(row.coilId).then(response => {
|
||||
this.$modal.msgSuccess("发货成功");
|
||||
this.$modal.confirm('是否确认将钢卷"' + row.currentCoilNo + '"进行发货?').then(() => {
|
||||
exportCoil(row.coilId).then(response => {
|
||||
this.$modal.msgSuccess("发货成功");
|
||||
// 2. 插入一条已完成的待操作记录
|
||||
addPendingAction({
|
||||
coilId: row.coilId,
|
||||
@@ -2318,6 +2319,8 @@ export default {
|
||||
}).catch(error => {
|
||||
this.$modal.msgError("发货失败");
|
||||
});
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
async handleNewExport(row) {
|
||||
this.loading = true
|
||||
|
||||
@@ -530,8 +530,8 @@ export default {
|
||||
}
|
||||
|
||||
return {
|
||||
start: `${startDate} 00:00:00`,
|
||||
end: `${endDate} 23:59:59`
|
||||
start: `${startDate} 07:00:00`,
|
||||
end: `${endDate} 07:00:00`
|
||||
};
|
||||
};
|
||||
|
||||
@@ -812,8 +812,8 @@ export default {
|
||||
// all 类型:年视图日期变更
|
||||
handleYearDateChange() {
|
||||
if (this.yearDate) {
|
||||
this.queryParams.startTime = `${this.yearDate}-01-01 00:00:00`;
|
||||
this.queryParams.endTime = `${this.yearDate}-12-31 23:59:59`;
|
||||
this.queryParams.startTime = `${this.yearDate}-01-01 07:00:00`;
|
||||
this.queryParams.endTime = `${this.yearDate}-12-31 07:00:00`;
|
||||
this.handleQuery();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user