gaoluyang
10 小时以前 4c6f9bcc9b3f8bdf5298d73d1035bad529f86d69
src/views/productionManagement/workOrder/index.vue
@@ -128,6 +128,10 @@
              <span class="info-value">{{ transferCardRowData.completeQuantity }}</span>
            </div>
            <div class="info-item">
              <span class="info-label">待生产数量</span>
              <span class="info-value">{{ (transferCardRowData.planQuantity || 0) - (transferCardRowData.completeQuantity || 0) }}</span>
            </div>
            <div class="info-item">
              <span class="info-label">良品数量</span>
              <span class="info-value">0</span>
            </div>
@@ -231,6 +235,11 @@
  const tableColumn = ref([
    {
      label: "工单类型",
      prop: "workOrderType",
      width: "80",
    },
    {
      label: "工单编号",
      prop: "workOrderNo",
      width: "140",
@@ -246,8 +255,8 @@
      width: "140",
    },
    {
      label: "规格",
      prop: "model",
      label: "图纸编号",
      prop: "model"
    },
    {
      label: "单位",
@@ -265,6 +274,11 @@
    {
      label: "完成数量",
      prop: "completeQuantity",
      width: "140",
    },
    {
      label: "待生产数量",
      prop: "pendingQuantity",
      width: "140",
    },
    {
@@ -324,7 +338,7 @@
          clickFun: row => {
            showReportDialog(row);
          },
          disabled: row => row.planQuantity <= 0,
          disabled: row => row.status === 1 || row.status === 3 || row.planQuantity <= 0,
        },
      ],
    },
@@ -397,7 +411,10 @@
    productWorkOrderPage(params)
      .then(res => {
        tableLoading.value = false;
        tableData.value = res.data.records;
        tableData.value = res.data.records.map(item => ({
          ...item,
          pendingQuantity: (item.planQuantity || 0) - (item.completeQuantity || 0)
        }));
        page.total = res.data.total;
      })
      .catch(() => {
@@ -488,7 +505,7 @@
  const showReportDialog = row => {
    currentReportRowData.value = row;
    reportForm.planQuantity = row.planQuantity;
      reportForm.planQuantity = row.planQuantity - row.completeQuantity;
    reportForm.quantity = row.quantity;
    reportForm.productProcessRouteItemId = row.productProcessRouteItemId;
    reportForm.workOrderId = row.id;