|
@@ -7,10 +7,11 @@ use think\facade\Db;
|
|
|
|
|
|
class Consult extends Base
|
|
|
{
|
|
|
-
|
|
|
+ public $noble=[];
|
|
|
public function __construct(App $app)
|
|
|
{
|
|
|
parent::__construct($app);
|
|
|
+ $this->noble =\think\facade\Config::get("noble");
|
|
|
}
|
|
|
// public function list(){
|
|
|
// $page = isset($this->post['page']) && $this->post['page'] !== "" ? intval($this->post['page']) :"1";
|
|
@@ -118,6 +119,7 @@ class Consult extends Base
|
|
|
$kh=Db::name("customer_info")->where(['companyNo'=>$value['khNo']])->find();
|
|
|
$value['khname']= isset($kh['companyName'])?$kh['companyName']:"";
|
|
|
}
|
|
|
+ $value['metal_name']=isset($value['metal_id'])&& $value['metal_id']!=0?$this->noble[$value['metal_id']]:"";
|
|
|
$data[]=$value;
|
|
|
}
|
|
|
return app_show(0,"获取成功",['count'=>$count,'list'=>$data]);
|
|
@@ -457,7 +459,9 @@ class Consult extends Base
|
|
|
$zxinfo['budget_total']="";
|
|
|
$zxinfo['departinfo']=[];
|
|
|
$zxinfo['unit_name']="";
|
|
|
+ $zxinfo['metal_name']=isset($zxinfo['metal_id'])&& $zxinfo['metal_id']!=0?$this->noble[$zxinfo['metal_id']]:"";
|
|
|
$zxinfo['specinfo']=json_decode($zxinfo['specinfo'],true);
|
|
|
+
|
|
|
if($zxorder['khNo']!==""){
|
|
|
$kh=Db::name("customer_info")->where(['companyNo'=>$zxorder['khNo']])->find();
|
|
|
$zxinfo['khname']= isset($kh['companyName'])?$kh['companyName']:"";
|
|
@@ -923,6 +927,7 @@ class Consult extends Base
|
|
|
}
|
|
|
$info['specinfo'] = json_decode($info['specinfo'],true);
|
|
|
$info['sale_price'] =round($price,2);
|
|
|
+ $info['metal_name']=isset($info['metal_id'])&& $info['metal_id']!=0?$this->noble[$info['metal_id']]:"";
|
|
|
$bargain =Db::name("bargain_order")->where(['bidsNo'=>$bidNo,"is_del"=>0])->find();
|
|
|
$info['bargain'] =$bargain;
|
|
|
return app_show(0,"获取成功",$info);
|
|
@@ -1235,7 +1240,7 @@ class Consult extends Base
|
|
|
$price = GoodPrice($god, $budget/100);
|
|
|
}
|
|
|
$value['specinfo'] = json_decode($value['specinfo'],true);
|
|
|
-
|
|
|
+ $value['metal_name']=isset($value['metal_id'])&& $value['metal_id']!=0?$this->noble[$value['metal_id']]:"";
|
|
|
$value['sale_price'] =round($price,2);
|
|
|
$value['bargain_status']=$bidinfo['bargain_status'];
|
|
|
$data[]=$value;
|
|
@@ -1311,6 +1316,7 @@ class Consult extends Base
|
|
|
}else{
|
|
|
$price = GoodPrice($god, $budget/100);
|
|
|
}
|
|
|
+ $value['metal_name']=isset($value['metal_id'])&& $value['metal_id']!=0?$this->noble[$value['metal_id']]:"";
|
|
|
$value['sale_price'] =round($price,2);
|
|
|
$value['specinfo'] = json_decode($value['specinfo'],true);
|
|
|
$value['bargain_status']=$bidinfo['bargain_status'];
|