gaoluyang
2025-11-11 3ea4386e3fa8861085fa8c9ba34d0f1644cda338
src/views/inventoryManagement/issueManagement/index.vue
@@ -102,7 +102,7 @@
        </div>
      </el-tab-pane>
      <el-tab-pane label="手动出库" name="manual">
      <el-tab-pane label="自定义出库" name="manual">
        <div class="search_form">
          <div>
            <span class="search_title">供应商名称:</span>
@@ -186,9 +186,9 @@
import useUserStore from '@/store/modules/user'
import { userListNoPageByTenantId } from "@/api/system/user.js";
import {
  getStockInPage,
  getStockInPageByProduction,
  getStockInPageByCustom
   getStockInPage,
   getStockInPageByProduction,
   getStockInPageByCustom, getInPageByCustom
} from "@/api/inventoryManagement/stockIn.js";
import {
  getStockManagePage,
@@ -258,7 +258,7 @@
  if (activeTab.value === 'production') {
    apiCall = getStockInPageByProduction(params)
  } else if (activeTab.value === 'manual') {
    apiCall = getStockInPageByCustom(params)
    apiCall = getInPageByCustom(params)
  } else {
    apiCall = getStockInPage(params)
  }
@@ -350,7 +350,7 @@
        quantity: form.value.inboundQuantity, // 出库数量
        time: form.value.inboundTime, // 出库时间
        userId: form.value.nickName, // 操作人
        type: typeMap[activeTab.value] // 出库类型:采购1,生产2,手动3
        type: typeMap[activeTab.value] // 出库类型:采购1,生产2,自定义3
      }
      console.log(outData)
@@ -380,7 +380,14 @@
    type: 'warning',
  }
  ).then(() => {
    proxy.download("/stockin/export", {}, '入库台账.xlsx')
    // 根据不同的 tab 类型调用不同的导出接口
    let exportUrl = "/stockin/export"
    if (activeTab.value === 'production') {
      exportUrl = "/stockin/exportOne"
    } else if (activeTab.value === 'manual') {
      exportUrl = "/stockin/exportTwo"
    }
    proxy.download(exportUrl, {}, '入库台账.xlsx')
  }).catch(() => {
    proxy.$modal.msg("已取消")
  })