This commit is contained in:
weiz 2024-03-19 17:21:53 +08:00
parent 1aa47576c5
commit 7d1cd69b1a
2 changed files with 12 additions and 0 deletions

View File

@ -74,5 +74,10 @@ class QuotationController extends BaseAdminController
return $this->data($result);
}
public function datas()
{
return $this->data(QuotationLogic::datas());
}
}

View File

@ -110,4 +110,11 @@ class QuotationLogic extends BaseLogic
$data['total_amount'] = $data['amount_including_tax'] + $data['freight'] + $data['other_fee'];
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();
}
}