| | |
| | | </div> |
| | | <div class="progress-container"> |
| | | <div class="progress-section"> |
| | | <h3 class="section-title">订单信息</h3> |
| | | <div v-for="item in rowData.orderList" |
| | | :key="item.orderNo" |
| | | class="order-item"> |
| | | <el-descriptions :column="3" |
| | | border> |
| | | <el-descriptions-item label="订单编号">{{ item.orderNo || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="订单状态"> |
| | | <el-tag :type="getStatusType(item.status)">{{ getStatusText(item.status) }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="开始日期">{{ item.startTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="需求数量">{{ item.quantity || 0 }} <span class="unit">方</span></el-descriptions-item> |
| | | <el-descriptions-item label="完成数量">{{ item.completeQuantity || 0 }} <span class="unit">方</span></el-descriptions-item> |
| | | <el-descriptions-item label="完成进度"> |
| | | <el-progress :percentage="item.completionRate" |
| | | :color="customColors(item.completionRate)" |
| | | :status="item.completionRate === 100 ? 'success' : ''" |
| | | style="width: 120px;" /> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <el-table :data="trackProgressForm.progressDetails" |
| | | border |
| | | style="width: auto; height: 200px"> |
| | | <el-table-column prop="step" |
| | | label="步骤(点击查看详情)" |
| | | align="center"> |
| | | <template #default="{ row, $index }"> |
| | | <el-link v-if="$index!=0" |
| | | @click="handleClickStep(row)" |
| | | type="primary">{{ row.step }}</el-link> |
| | | <span v-else |
| | | @click="handleClickStep(row)">{{ row.step }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" |
| | | label="状态" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-tag :type="scope.row.status === 'completed' ? 'success' : scope.row.status === 'processing' ? 'warning' : 'info'"> |
| | | {{ scope.row.status === 'completed' ? '已完成' : scope.row.status === 'processing' ? '进行中' : '待开始' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="quantity" |
| | | label="数量" |
| | | align="center" /> |
| | | <el-table-columnstep prop="startTime" |
| | | label="时间" |
| | | align="center" /> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="progress-section"> |
| | | <h3 class="section-title">进度信息</h3> |
| | | <div class="progress-item"> |
| | | <div class="progress-label">完成进度:</div> |
| | |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="progress-section"> |
| | | <h3 class="section-title">订单信息</h3> |
| | | <div v-for="item in rowData.orderList" |
| | | :key="item.orderNo" |
| | | class="order-item"> |
| | | <el-descriptions :column="3" |
| | | border> |
| | | <el-descriptions-item label="订单编号">{{ item.orderNo || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="订单状态"> |
| | | <el-tag :type="getStatusType(item.status)">{{ getStatusText(item.status) }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="开始日期">{{ item.startTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="需求数量">{{ item.quantity || 0 }} <span class="unit">方</span></el-descriptions-item> |
| | | <el-descriptions-item label="完成数量">{{ item.completeQuantity || 0 }} <span class="unit">方</span></el-descriptions-item> |
| | | <el-descriptions-item label="完成进度"> |
| | | <el-progress :percentage="item.completionRate" |
| | | :color="customColors(item.completionRate)" |
| | | :status="item.completionRate === 100 ? 'success' : ''" |
| | | style="width: 120px;" /> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | |
| | | const generateProgressDetails = status => { |
| | | const details = [ |
| | | { |
| | | step: "计划确认", |
| | | step: "订单生成", |
| | | status: "completed", |
| | | quantity: 233, |
| | | startTime: "2026-03-01 09:00:00", |