口腔客户管理系统
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Collection.php 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace app\admin\validate;
  3. use think\Validate;
  4. class Collection extends Validate
  5. {
  6. protected $rule = [
  7. 'page' => ['require', 'number', 'gt:0'],
  8. 'pageSize' => ['require', 'number', 'gt:0'],
  9. 'appoint_id' => ['require', 'number'],
  10. 'customer_id' => ['require', 'number'],
  11. 'type' => ['require', 'number', 'in:1,2,3'],
  12. 'appoint_time_start' => 'requireWith:appoint_time_end',
  13. 'appoint_time_end' => 'requireWith:appoint_time_start',
  14. 'signup_time_start' => 'requireWith:signup_time_end',
  15. 'signup_time_end' => 'requireWith:signup_time_start',
  16. 'collection_time_start' => 'requireWith:collection_time_end',
  17. 'collection_time_end' => 'requireWith:collection_time_start',
  18. ];
  19. protected $message = [
  20. ];
  21. protected $scene = [
  22. 'getAll' => ['page', 'pageSize', 'signup_time_start', 'signup_time_end', 'collection_time_start', 'collection_time_end', 'appoint_time_start', 'appoint_time_end'],
  23. 'save' => ['appoint_id', 'type', 'customer_id'],
  24. 'getDealDetail' => ['customer_id', 'page', 'pageSize'],
  25. 'getAchievementAccounting' => ['page', 'pageSize'],
  26. 'getDealAll' => ['page', 'pageSize', 'signup_time_start', 'signup_time_end', 'collection_time_start', 'collection_time_end', 'appoint_time_start', 'appoint_time_end'],
  27. // 'update' => ['id', 'appoint_id', 'demand', 'deal_money', 'newdeal_money', 'collection_money', 'collection_time', 'type', 'refunddeal_money', 'refundcollection_money', 'create_time', 'remark',],
  28. // 'delete' => ['id',],
  29. // 'read' => ['id',],
  30. ];
  31. }