Commit 13fb5feb by liuyingkang

fix: 修复律师列表查询限制和表单字段只读问题

- 增加律师列表查询的limit限制从100提高到1000,确保首次查询能覆盖所有律师
- 移除LawyerCostListController中多个表单字段的readOnly属性,允许编辑
parent ca87c15c
......@@ -188,8 +188,10 @@ public function getList(Request $request)
$where['name'] = ['like', '%' . $name . '%'];
}
$data = [];
//代码很low,只有第一次进入会查询,所以第一次limit只能覆盖所有律师,不然会缺
$list = ModelLawyer::whereNull('deleted_at')->where($where)
->select(['id', 'number', 'name'])->limit(100)
->select(['id', 'number', 'name'])->limit(1000)
->get()
->toArray();
foreach ($list as $item) {
......
......@@ -209,18 +209,18 @@ protected function form()
$form->text('special_additional')->required();
$form->text('social_person_fee')->required();
$form->text('social_company_fee')->required();
$form->text('social', '社保')->readOnly();
$form->text('social', '社保');
$form->text('accumulation_fund_person_fee')->required();
$form->text('accumulation_fund_company_fee')->required();
$form->text('accumulation_fund', '公积金')->readOnly();
$form->text('accumulation_fund', '公积金');
$form->text('annual_inspection_fee')->required();
$form->text('annuity')->required();
$form->text('assistant_fee')->required();
$form->text('office_rental_fee')->required();
$form->text('posting_tickets_fee_the', '已贴票金额');
$form->text('noticket_cost')->readOnly();
$form->text('noticket_cost');
$form->text('advance_fee');
$form->text('personal_income_tax')->readOnly();
$form->text('personal_income_tax');
$form->disableCreatingCheck();
......
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 to comment