Blame view

domain/order/RepairOrderStatus.php 674 Bytes
3a892ee0   xu   app-wx(v0.1.0 bui...
1
2
3
4
5
6
7
8
9
10
11
12
<?php

namespace domain\order;

use Yii;
use domain\order\models\RepairOrder as RepairOrderModel;

/**
 * 维修订单状态
 */
class RepairOrderStatus
{
afd2f743   xu   app-ht(v0.0.1 bui...
13
14
15
16
17
18
     const WORKING = 1; //维修中
     const FINISH    = 2; // 维修完成

     /**
      * @param $index
      * @return string
3a892ee0   xu   app-wx(v0.1.0 bui...
19
20
21
22
23
24
25
26
      */
     static function getEnLabel($index = '')
     {
          $arr = [
               self::WORKING => "working",
               self::FINISH => "finish",
          ];
          if ('' === $index) {
f3ed8f51   xu   app-wx(v0.1.0 bui...
27
               return $arr;
3a892ee0   xu   app-wx(v0.1.0 bui...
28
29
30
31
32
33
34
35
          }
          if (isset($arr[$index])) {
               return $arr[$index];
          } else {
               return '';
          }
     }
}
d11ff394   xu   app-ht(v0.0.1 bui...

afd2f743   xu   app-ht(v0.0.1 bui...

3a892ee0   xu   app-wx(v0.1.0 bui...