gaoluyang
21 小时以前 7b55161a4e29e548fef5d92e19bf7c052cf59c5f
src/views/inventoryManagement/receiptManagement/index.vue
@@ -107,6 +107,7 @@
                  <el-table-column label="入库数量/件" prop="inboundNum" width="100" show-overflow-tooltip />
                  <el-table-column label="每件数量/支" prop="boxNum" width="100" show-overflow-tooltip />
                  <el-table-column label="单价(元)/件" prop="taxInclusiveUnitPrice" width="150"></el-table-column>
                  <el-table-column label="单价(美元)/件" prop="dollarPrice" width="150"></el-table-column>
                  <el-table-column label="纸箱规格" prop="cartonSpecifications" width="150"></el-table-column>
            <el-table-column label="入库人" prop="createBy" width="150" show-overflow-tooltip />
            <el-table-column fixed="right" label="操作" width="100" align="center">
@@ -388,7 +389,13 @@
    } else if (activeTab.value === 'manual') {
      exportUrl = "/stockin/exportTwo"
    }
    proxy.download(exportUrl, {}, '入库台账.xlsx')
    // 如果有选中数据,传递选中的数据字段用receiptManagement,否则传递空数组
    const customStorage = selectedRows.value.length > 0 ? selectedRows.value : []
    // 使用 JSON 格式传递数据
    proxy.download(exportUrl, customStorage, '入库台账.xlsx', {
      headers: { 'Content-Type': 'application/json' },
      transformRequest: [(data) => JSON.stringify(data)]
    })
  }).catch(() => {
    proxy.$modal.msg("已取消")
  })