liding
2026-04-10 c05b81c7f50df80ab247a05f9f92af2d799e77cd
src/views/productionManagement/productionOrder/index.vue
@@ -58,11 +58,13 @@
                @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>
@@ -137,7 +139,7 @@
    },
    {
      label: "生产批号",
      prop: "lotNo",
      prop: "batchNo",
      width: '120px',
    },
    {
@@ -163,6 +165,11 @@
    {
      label: "规格",
      prop: "specificationModel",
      width: '120px',
    },
    {
      label: "料号",
      prop: "materialCode",
      width: '120px',
    },
    {
@@ -204,6 +211,11 @@
      width: 120,
    },
    {
      label: "备注",
      prop: "remark",
      width: 120,
    },
    {
      dataType: "action",
      label: "操作",
      align: "center",
@@ -213,6 +225,7 @@
        {
          name: "工艺路线",
          type: "text",
          showHide: row => row.processRouteCode,
          clickFun: row => {
            showRouteItemModal(row);
          },
@@ -396,6 +409,7 @@
          processRouteCode: data.processRouteCode || "",
          productName: data.productName || "",
          model: data.model || "",
          materialCode: data.materialCode || "",
          bomNo: data.bomNo || "",
          description: data.description || "",
          orderId,
@@ -416,8 +430,24 @@
        bomNo: row.bomNo || "",
        productName: row.productCategory || "",
        productModelName: row.specificationModel || "",
        materialCode: row.materialCode || "",
        orderId: row.id,
        type: "order",
      },
    });
  };
  const goProductionDetail = (row) => {
    if (!row) return;
    router.push({
      path: "/productionManagement/productionOrder/detail",
      query: {
        orderId: row.id,
        npsNo: row.npsNo || "",
        batchNo: row.batchNo || "",
        productCategory: row.productCategory || "",
        specificationModel: row.specificationModel || "",
        materialCode: row.materialCode || "",
      },
    });
  };
@@ -491,4 +521,8 @@
::v-deep .purple{
  background-color: #F4DEFA;
}
.progress-link {
  cursor: pointer;
}
</style>