mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-18 03:15:33 +08:00
1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
This commit is contained in:
@@ -78,9 +78,26 @@ abstract class financebase_abstract_io{
|
||||
$excel = new \Vtiful\Kernel\Excel($config);
|
||||
|
||||
// 读取测试文件
|
||||
$excel->openFile($path['basename'])
|
||||
->openSheet();
|
||||
$excel->openFile($path['basename']);
|
||||
|
||||
// 支持按工作表名称或索引打开工作表
|
||||
if (is_string($sheet) && $sheet !== '0') {
|
||||
// 按工作表名称打开
|
||||
$excel->openSheet($sheet);
|
||||
} elseif (is_numeric($sheet) && $sheet > 0) {
|
||||
// 按工作表索引打开(从0开始)
|
||||
$excel->openSheet(null, \Vtiful\Kernel\Excel::SKIP_NONE);
|
||||
// Vtiful 不直接支持索引,需要通过名称
|
||||
// 如果需要支持索引,需要先获取所有工作表名称
|
||||
} else {
|
||||
// 默认打开第一个工作表
|
||||
$excel->openSheet();
|
||||
}
|
||||
|
||||
$row = $excel->nextRow();
|
||||
if(empty($row)) {
|
||||
throw new \Exception('文件没有数据!');
|
||||
}
|
||||
$type = array_pad([], count($row), \Vtiful\Kernel\Excel::TYPE_STRING);
|
||||
foreach($this->column_date_cnt as $k => $v) {
|
||||
$type[$v-1] = \Vtiful\Kernel\Excel::TYPE_TIMESTAMP;
|
||||
|
||||
Reference in New Issue
Block a user