update
This commit is contained in:
parent
1aa47576c5
commit
7d1cd69b1a
@ -73,6 +73,11 @@ class QuotationController extends BaseAdminController
|
|||||||
$result = QuotationLogic::detail($params);
|
$result = QuotationLogic::detail($params);
|
||||||
return $this->data($result);
|
return $this->data($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function datas()
|
||||||
|
{
|
||||||
|
return $this->data(QuotationLogic::datas());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -110,4 +110,11 @@ class QuotationLogic extends BaseLogic
|
|||||||
$data['total_amount'] = $data['amount_including_tax'] + $data['freight'] + $data['other_fee'];
|
$data['total_amount'] = $data['amount_including_tax'] + $data['freight'] + $data['other_fee'];
|
||||||
return $data->toArray();
|
return $data->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function datas()
|
||||||
|
{
|
||||||
|
return Quotation::field(['id','code'])->order(['id' => 'desc'])->select()->each(function($data){
|
||||||
|
$data['projectinfo'] = 'ID:' . $data['id'] . ' / 单号:' . $data['code'];
|
||||||
|
})->toArray();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user