mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-17 02:55:31 +08:00
1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
This commit is contained in:
@@ -1156,7 +1156,30 @@ class inventorydepth_ctl_regulation_apply extends desktop_controller
|
||||
$apply_detail = $applyObj->dump(array('id' => $id), '*');
|
||||
$apply_detail['heading'] = str_replace('%', '', $apply_detail['heading']);
|
||||
$data['name'] = $apply_detail['heading'] . '货品列表';
|
||||
$csvObj->export_header($data, $applyObj);
|
||||
|
||||
// 设置正确的 Content-Type(包含 charset)
|
||||
header("Content-Type: text/csv; charset=UTF-8");
|
||||
|
||||
// 设置文件下载响应头
|
||||
$filename = $data['name'] . ".csv";
|
||||
$encoded_filename = urlencode($filename);
|
||||
$encoded_filename = str_replace("+", "%20", $encoded_filename);
|
||||
$ua = $_SERVER["HTTP_USER_AGENT"];
|
||||
if (preg_match("/MSIE/", $ua)) {
|
||||
header('Content-Disposition: attachment; filename="' . $encoded_filename . '"');
|
||||
} else if (preg_match("/Firefox\/8/", $ua)) {
|
||||
header('Content-Disposition: attachment; filename="' . $filename . '"');
|
||||
} else if (preg_match("/Firefox/", $ua)) {
|
||||
header('Content-Disposition: attachment; filename*="utf8\'\'' . $filename . '"');
|
||||
} else {
|
||||
header('Content-Disposition: attachment; filename="' . $filename . '"');
|
||||
}
|
||||
header('Cache-Control:must-revalidate,post-check=0,pre-check=0');
|
||||
header('Expires:0');
|
||||
header('Pragma:public');
|
||||
|
||||
// 添加 UTF-8 BOM 标记,解决 Office 打开 CSV 乱码问题
|
||||
echo "\xEF\xBB\xBF";
|
||||
|
||||
$title = ['*:销售物料编码', '*:销售物料名称', '*:销售物料类型'];
|
||||
$salesMaterialCsv[] = '"' . implode('","', $title) . '"';
|
||||
|
||||
Reference in New Issue
Block a user