gaoluyang
21 小时以前 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>
@@ -273,6 +277,11 @@
      width: "140",
    },
    {
      label: "待生产数量",
      prop: "pendingQuantity",
      width: "140",
    },
    {
      label: "完成进度",
      prop: "completionStatus",
      dataType: "slot",
@@ -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(() => {