Close.php 750 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2020/12/10
  6. * Time: 17:17
  7. */
  8. namespace app\backend\modules\refund\services\button;
  9. use app\common\models\refund\RefundApply;
  10. class Close extends RefundButtonBase
  11. {
  12. public function getApi()
  13. {
  14. return 'refund.vue-operation.close';
  15. }
  16. public function getName()
  17. {
  18. return '关闭申请';
  19. }
  20. public function getValue()
  21. {
  22. return 10;
  23. }
  24. public function enable()
  25. {
  26. return $this->refund->isRefunding() && RefundApply::WAIT_CHECK < $this->refund->status;
  27. }
  28. public function getType()
  29. {
  30. return self::TYPE_WARNING;
  31. }
  32. public function getDesc()
  33. {
  34. return '换货完成';
  35. }
  36. }