Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bf1f5353
authored
Dec 25, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加sheetname打印
parent
e450280d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/Admin/Extensions/ToolBar/Forms/ExternalPrescriptionImportForm.php
+4
-4
No files found.
app/Admin/Extensions/ToolBar/Forms/ExternalPrescriptionImportForm.php
View file @
bf1f5353
...
...
@@ -32,10 +32,10 @@ public function handle(array $input): JsonResponse
$filePath
=
storage_path
(
'app/'
.
$file
);
// Log::info("====>".$filePath);
try
{
$excel
=
Excel
::
import
(
$filePath
)
->
toArray
();
#
$excel = Excel::import($filePath)->toArray();
// Get the sheet names from the file
$sheetNames
=
$excel
[
0
]
->
getSheetNames
();
Log
::
info
(
"====>"
.
$sheetNames
.
"====>"
.
json_encode
(
$excel
));
#
$sheetNames = $excel[0]->getSheetNames();
#
Log::info("====>".$sheetNames."====>".json_encode($excel));
// 每100行数据为一批数据进行读取
$chunkSize
=
10
;
$successNum
=
0
;
...
...
@@ -118,7 +118,7 @@ public function form()
->
required
()
->
help
(
"导入要求:<br />
<span style='color:red;'>
1、仅支持xlsx
两种
格式
1、仅支持xlsx格式
</span>"
);
// $downloadUrl = admin_url('dosage-template');
// $this->html("<a target='_blank' href='{$downloadUrl}'>下载用法用量导入模板</a>");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment