Datastat.php 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\admin\validate\datastat;
  3. use think\Validate;
  4. class Datastat extends Validate{
  5. protected $rule = [
  6. // 'project_code' => '',
  7. // 'sent_review_time' => '',
  8. // 'division' => '',
  9. 'contract_out_sent_review_amount' => 'float',
  10. 'contract_out_authorize_amount' => 'float',
  11. 'contract_in_sent_review_amount' => 'float',
  12. 'contract_in_authorize_amount' => 'float',
  13. 'contract_amount' => 'float',
  14. 'basic_reserve_funds' => 'float',
  15. ];
  16. protected $message = [
  17. 'contract_out_sent_review_amount.float' => '请输入正确的合同外送审金额',
  18. 'contract_out_authorize_amount.float' => '请输入正确的合同外审定金额',
  19. 'contract_in_sent_review_amount.float' => '请输入正确的合同内审定金额',
  20. 'contract_in_authorize_amount.float' => '请输入正确的合同内审定金额',
  21. 'contract_amount.float' => '请输入正确的合同金额',
  22. 'basic_reserve_funds.float' => '请输入正确的基本预备费',
  23. ];
  24. }