liulijun
2026-03-12 fe256a7afaa132910875d3dc73783d9ab2d7ace5
ÏîÄ¿´úÂë/WMS/WMSClient/src/views/outbound/outSGOrder.vue
@@ -93,9 +93,16 @@
      },
      {
        field: "orderId",
        title: "上游生产单号",
        title: "排程号",
        type: "string",
        width: 160,
        align: "left",
      },
      {
        field: "number",
        title: "用纸序号",
        type: "string",
        width: 90,
        align: "left",
      },
      {
@@ -108,10 +115,21 @@
      {
        field: "outSGOrderStatus",
        title: "出库单状态",
        type: "string",
        type: "tag",
        width: 110,
        align: "left",
        bind: { key: "outboundStatusEnum", data: [] },
        getColor: (row) => {
          const status = row.outSGOrderStatus;
          if (status === 3) { // ç¼ºæ–™
            return 'danger'; // çº¢è‰²
          } else if (status === 0) { // æœªå¼€å§‹
            return 'success'; // ç»¿è‰²
          } else if (status === 1) { // å‡ºåº“中
            return 'primary'; // è“è‰²
          }
          return ''; // é»˜è®¤æ— é¢œè‰²
        }
      },
      {
        field: "createDate",
@@ -133,6 +151,19 @@
          type: "string",
          width: 100,
          align: "left",
        },
        {
          field: "isLackMaterial",
          title: "是否缺料",
          type: "string",
          width: 100,
          align: "center",
          formatter: (row) => {
            const isLack = Boolean(row.isLackMaterial);
            const text = isLack ? "是" : "否";
            const bgColor = isLack ? '#ff4d4f' : '#52c41a';
            return `<div style="background-color: ${bgColor}; color: #ffffff; text-align: center; font-weight: bold; width: 100%; height: 100%; padding: 10px 0; display: flex; justify-content: center; align-items: center;">${text}</div>`;
          }
        },
    ]);
    const detail = ref({
@@ -254,12 +285,23 @@
          align: "left",
        },
        {
          field: "outBSTOrderDetailStatus",
          field: "outSGOrderDetailStatus",
          title: "订单明细状态",
          type: "string",
          type: "tag",
          width: 180,
          align: "left",
          bind: { key: "outboundStatusEnum", data: [] },
          getColor: (row) => {
            const status = row.outSGOrderDetailStatus;
            if (status === 3) { // ç¼ºæ–™
              return 'danger'; // çº¢è‰²
            } else if (status === 0) { // æœªå¼€å§‹
              return 'success'; // ç»¿è‰²
            } else if (status === 1) { // å‡ºåº“中
              return 'primary'; // è“è‰²
            }
            return ''; // é»˜è®¤æ— é¢œè‰²
          }
        },
        {
          field: "createDate",