Commit d7438df8 by hcy001

1

parent 1d20524a
Showing with 0 additions and 5 deletions
...@@ -248,7 +248,6 @@ class QuoteModel extends Model ...@@ -248,7 +248,6 @@ class QuoteModel extends Model
// 报价导入 // 报价导入
public function import($input) public function import($input)
{ {
$inquiry_id = @$input["inquiry_id"];
$file = $_FILES['file']; // $request->file('file') $file = $_FILES['file']; // $request->file('file')
$filePath = $file['tmp_name']; // 临时路径 $filePath = $file['tmp_name']; // 临时路径
...@@ -261,14 +260,10 @@ class QuoteModel extends Model ...@@ -261,14 +260,10 @@ class QuoteModel extends Model
if (empty($excel)) return [1, '未获取到模板内容,请检查模板内容数据格式']; if (empty($excel)) return [1, '未获取到模板内容,请检查模板内容数据格式'];
$map = Config('quote.import_quote_map'); $map = Config('quote.import_quote_map');
if (count($map) != count($excel[0])) return [2, '导入模板错误']; if (count($map) != count($excel[0])) return [2, '导入模板错误'];
$excel = $this->handleExcelData($excel, $map); // 处理数据 $excel = $this->handleExcelData($excel, $map); // 处理数据
print_r($excel);
$valid = $this->excelValid($excel); // 验证excel内容 $valid = $this->excelValid($excel); // 验证excel内容
if ($valid[0] != 0) return $valid; if ($valid[0] != 0) return $valid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment