gaoluyang
20 小时以前 19aa78a505d468739a61054f07d0840477192b2d
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>
@@ -251,8 +255,8 @@
      width: "140",
    },
    {
      label: "规格",
      prop: "model",
      label: "图纸编号",
      prop: "model"
    },
    {
      label: "单位",
@@ -270,6 +274,11 @@
    {
      label: "完成数量",
      prop: "completeQuantity",
      width: "140",
    },
    {
      label: "待生产数量",
      prop: "pendingQuantity",
      width: "140",
    },
    {
@@ -329,7 +338,7 @@
          clickFun: row => {
            showReportDialog(row);
          },
          disabled: row => row.planQuantity <= 0,
          disabled: row => row.status === 1 || row.status === 3 || row.planQuantity <= 0,
        },
      ],
    },
@@ -402,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(() => {
@@ -493,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;