style:生产计划-甘特图样式修改

pull/1/head
黄伟杰 1 month ago
parent a16beee544
commit 4df1714eef

@ -180,6 +180,7 @@
>
<div>任务明细ID{{ plan.taskDetailId ?? '-' }}</div>
<div>计划数量{{ plan.planNumber ?? '-' }}</div>
<div>交货日期{{ plan.deliveryDateStr ?? '-' }}</div>
<div>开始{{ plan.planStartTimeStr || '-' }}</div>
<div>结束{{ plan.planEndTimeStr || '-' }}</div>
<div>最晚开工{{ plan.latestStartTimeStr || '-' }}</div>
@ -523,7 +524,7 @@ const buildPreviewGanttData = (scheduleList: any[]) => {
tasks.push({
id: deviceId,
text: `${device.deviceName ?? '-'}(产能:${device.ratedCapacity ?? '-'}`,
text: `${device.deviceName ?? '-'}`,
start_date: formatGanttDate(firstPlan?._start),
end_date: formatGanttDate(lastPlan?._end),
duration: parentDuration,
@ -543,7 +544,7 @@ const buildPreviewGanttData = (scheduleList: any[]) => {
const planTaskId = `plan-${device.deviceId}-${plan.taskDetailId ?? index}-${index}`
tasks.push({
id: planTaskId,
text: `${plan.taskCode ?? '-'} / ${plan.productName ?? '-'} / ${plan.planNumber ?? 0}`,
text: `${plan.productCode ?? '-'} / ${plan.productName ?? '-'} / ${plan.taskCode ?? '-'}`,
start_date: startDate,
end_date: endDate,
duration,
@ -639,13 +640,13 @@ const initGanttPreview = () => {
label: '任务名称',
tree: true,
width: '*',
min_width: 220
min_width: 200
},
{
name: 'start_date',
label: '开始时间',
align: 'center',
width: 200,
width: 210,
template: (task: any) =>
task?._planData
? `<span class="gantt-inline-editor-trigger" data-field="start_date">${formatGridDateText(task.start_date)}</span>`
@ -659,7 +660,7 @@ const initGanttPreview = () => {
name: 'duration',
label: '天数',
align: 'center',
width: 80,
width: 60,
template: (task: any) =>
task?._planData
? `<span class="gantt-inline-editor-trigger" data-field="duration">${task.duration ?? 0}</span>`
@ -827,7 +828,7 @@ defineExpose({ open })
.schedule-gantt-container {
flex: 1;
min-width: 0;
height: 620px;
height: 800px;
border: 1px solid var(--el-border-color);
border-radius: 4px;
overflow: hidden;
@ -850,7 +851,7 @@ defineExpose({ open })
}
.schedule-plan-list {
max-height: 400px;
/* max-height: 480px; */
overflow: auto;
border: 1px solid var(--el-border-color);
border-radius: 4px;

Loading…
Cancel
Save