gaoluyang
2025-11-11 3ea4386e3fa8861085fa8c9ba34d0f1644cda338
src/views/inventoryManagement/receiptManagement/index.vue
@@ -99,7 +99,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>
@@ -169,7 +169,7 @@
  getStockInPageByProduction,
  getStockInPageByCustom,
  delStockIn,
  delStockInCustom,
   delStockInCustom, getInPageByCustom,
} from "@/api/inventoryManagement/stockIn.js";
import FormDia from './components/formDia.vue'
import FormDiaManual from './components/formDiaManual.vue'
@@ -226,7 +226,7 @@
  const apiCall = activeTab.value === 'production' 
    ? getStockInPageByProduction(params)
    : activeTab.value === 'manual' 
    ? getStockInPageByCustom(params)
    ? getInPageByCustom(params)
    : getStockInPage(params)
  
  apiCall.then(res => {
@@ -279,7 +279,14 @@
    cancelButtonText: '取消',
    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("已取消")
  })