gaoluyang
2025-11-26 a0bee2b2dc61a4c4ca860fcbb34f7848b30fef99
src/views/productionManagement/productionDispatching/index.vue
@@ -50,7 +50,6 @@
<script setup>
import {onMounted, ref} from "vue";
import FormDia from "@/views/productionManagement/productionDispatching/components/formDia.vue";
import dayjs from "dayjs";
import {schedulingListPage} from "@/api/productionManagement/productionOrder.js";
import { ElMessageBox } from "element-plus";
@@ -80,7 +79,7 @@
   },
   {
      label: "录入日期",
      prop: "entryDate",
      prop: "registerDate",
   },
   {
      label: "数量",
@@ -135,11 +134,11 @@
   schedulingListPage(params).then((res) => {
      tableLoading.value = false;
      // 处理每条数据,增加pendingQuantity字段
      tableData.value = res.data.records.map(item => ({
      tableData.value = res.data.data.records.map(item => ({
         ...item,
         pendingQuantity: (Number(item.quantity) || 0) - (Number(item.schedulingNum) || 0)
      }));
      page.total = res.data.total;
      page.total = res.data.data.total;
   }).catch(() => {
      tableLoading.value = false;
   })
@@ -172,7 +171,7 @@
      type: "warning",
   })
      .then(() => {
         proxy.download("/salesLedger/scheduling/exportOne", {}, "生产派工.xlsx");
         proxy.download("/productionOrder/exportOne", {}, "生产派工.xlsx");
      })
      .catch(() => {
         proxy.$modal.msg("已取消");