Commit e57c2b3c by 朱继来

调整询价导入

parent 78dc49e6
Showing with 10 additions and 1 deletions
......@@ -449,6 +449,14 @@ class InquiryItemsModel extends Model
"create_time"=>time() ,
"update_time"=>time() ,
];
if ($b['is_quote'] == '否') {
$insertArr['is_quote'] = -1;
$insertArr['status'] = 5;
} else {
$insertArr['is_quote'] = 1;
}
#判断是否已经存在此品牌+型号
$check = $this->where(["inquiry_id"=>$inquiry_id,"goods_name"=>$b["goods_name"],"brand_name"=>$b["brand_name"]])->count();
if ($check >0){
......@@ -512,6 +520,7 @@ class InquiryItemsModel extends Model
"target_price", //可空
"batch",
"delivery_time",
"is_quote",
"assign", //指定采购,可空
];
$filer_need = [ //必填字段
......@@ -526,7 +535,7 @@ class InquiryItemsModel extends Model
foreach ($excel as $k=>$v) {
if ($k == 0 ) continue; //排除第一行表头
if ($k == 0 || $k == 1) continue; //排除第一、二行表头
$temp = [];
$c = 0;
foreach ($v as $a=>$b){
......
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