Commit 7deca896 by hcy001

1

parent ad97e92c
Showing with 4 additions and 2 deletions
...@@ -348,7 +348,7 @@ class InquiryItemsModel extends Model ...@@ -348,7 +348,7 @@ class InquiryItemsModel extends Model
foreach ($goodsData[1] as $k=>&$b){ foreach ($goodsData[1] as $k=>&$b){
$insertArr= [ $insertArr= [
"inquiry_id"=>$b["inquiry_id"] , "inquiry_id"=>$inquiry_id,
"goods_name"=>@$b["goods_name"] ? $b["goods_name"] : "" , "goods_name"=>@$b["goods_name"] ? $b["goods_name"] : "" ,
"brand_id"=>@$b["brand_id"] ? $b["brand_id"] : 0, "brand_id"=>@$b["brand_id"] ? $b["brand_id"] : 0,
"brand_name"=>@$b["brand_name"] ? $b["brand_name"] : "", "brand_name"=>@$b["brand_name"] ? $b["brand_name"] : "",
...@@ -381,7 +381,7 @@ class InquiryItemsModel extends Model ...@@ -381,7 +381,7 @@ class InquiryItemsModel extends Model
#插入销售报价表 #插入销售报价表
(new InquiryItemsReportModel())->insert([ (new InquiryItemsReportModel())->insert([
"inquiry_id"=>$b["inquiry_id"] , "inquiry_id"=>$inquiry_id ,
"inquiry_items_id"=>$inquiryItemsId , "inquiry_items_id"=>$inquiryItemsId ,
]); ]);
} }
...@@ -430,6 +430,8 @@ class InquiryItemsModel extends Model ...@@ -430,6 +430,8 @@ class InquiryItemsModel extends Model
]; ];
#转换字段 #转换字段
$goodsInfo = []; $goodsInfo = [];
foreach ($excel as $k=>$v) { foreach ($excel as $k=>$v) {
if ($k == 0 ) continue; //排除第一行表头 if ($k == 0 ) continue; //排除第一行表头
$temp = []; $temp = [];
......
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