|
@@ -3497,9 +3497,14 @@ class Goodup extends Base
|
|
|
$temp=[];
|
|
|
$good_spec_insert_data=[];
|
|
|
$GoodBasic = new GoodBasic();
|
|
|
+
|
|
|
foreach ($good_zixun_list as $item){
|
|
|
$isT =$GoodBasic->where(["spuCode"=>$item['spuCode'],"is_del"=>0])->findOrEmpty();
|
|
|
if($isT->isEmpty()==false)return error_show(1004, "{$item['good_name']}商品已存在成本库中!");
|
|
|
+ $bd=[];
|
|
|
+ if($item['order_source']==2 || $item['order_source']==3){
|
|
|
+ $bd = Db::name("consult_bids")->where(["spuCode"=> $item['spuCode']])->findOrEmpty();
|
|
|
+ }
|
|
|
$temp[] = [
|
|
|
'spuCode' => $item['spuCode'],
|
|
|
'good_code' => $item['good_code'],
|
|
@@ -3528,9 +3533,9 @@ class Goodup extends Base
|
|
|
'packing_weight' => '',
|
|
|
'good_bar' => '',
|
|
|
'supply_area' => $item['supply_area'],
|
|
|
- 'delivery_place' => '',
|
|
|
- 'origin_place' => '',
|
|
|
- 'delivery_day' => '',
|
|
|
+ 'delivery_place' =>$bd['delivery_place']??"",
|
|
|
+ 'origin_place' =>$bd['origin_place']??'',
|
|
|
+ 'delivery_day' => $bd['delivery_day']??'',
|
|
|
'lead_time' => '',
|
|
|
'sample_day' => '',
|
|
|
'sample_fee' => '',
|