| | |
| | | @selection-change="handleSelectionChange" |
| | | @pagination="pagination"> |
| | | <template #completionStatus="{ row }"> |
| | | <el-progress |
| | | :percentage="toProgressPercentage(row?.completionStatus)" |
| | | :color="progressColor(toProgressPercentage(row?.completionStatus))" |
| | | :status="toProgressPercentage(row?.completionStatus) >= 100 ? 'success' : ''" |
| | | /> |
| | | <div class="progress-link" @click="goProductionDetail(row)"> |
| | | <el-progress |
| | | :percentage="toProgressPercentage(row?.completionStatus)" |
| | | :color="progressColor(toProgressPercentage(row?.completionStatus))" |
| | | :status="toProgressPercentage(row?.completionStatus) >= 100 ? 'success' : ''" |
| | | /> |
| | | </div> |
| | | </template> |
| | | </PIMTable> |
| | | </div> |
| | |
| | | { |
| | | name: "工艺路线", |
| | | type: "text", |
| | | showHide: row => row.processRouteCode, |
| | | clickFun: row => { |
| | | showRouteItemModal(row); |
| | | }, |
| | |
| | | }); |
| | | }; |
| | | |
| | | const goProductionDetail = (row) => { |
| | | if (!row) return; |
| | | router.push({ |
| | | path: "/productionManagement/productionOrder/detail", |
| | | query: { |
| | | orderId: row.id, |
| | | npsNo: row.npsNo || "", |
| | | lotNo: row.lotNo || "", |
| | | productCategory: row.productCategory || "", |
| | | specificationModel: row.specificationModel || "", |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | // 表格选择数据 |
| | | const handleSelectionChange = (selection) => { |
| | | selectedRows.value = selection; |
| | |
| | | ::v-deep .purple{ |
| | | background-color: #F4DEFA; |
| | | } |
| | | .progress-link { |
| | | cursor: pointer; |
| | | } |
| | | |
| | | </style> |