|
@@ -2,8 +2,12 @@
|
|
|
|
|
|
namespace app\api\controller;
|
|
|
|
|
|
+use app\common\constant\ApplyConstant;
|
|
|
use app\common\constant\CommonConstant;
|
|
|
+use app\common\constant\ContractConstant;
|
|
|
use app\common\constant\EvectionConstant;
|
|
|
+use app\common\constant\LeaveConstant;
|
|
|
+use app\common\constant\MaintainConstant;
|
|
|
use app\common\constant\OfferConstant;
|
|
|
use hg\apidoc\annotation as Apidoc;
|
|
|
|
|
@@ -29,27 +33,46 @@ class Common extends Base
|
|
|
$this->success('模块列表', get_one_two_array(CommonConstant::get_module_list(), 'id', 'name'));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 缓急程度列表
|
|
|
+ *
|
|
|
+ * @Apidoc\Method("POST")
|
|
|
+ */
|
|
|
+ public function get_degree_list()
|
|
|
+ {
|
|
|
+ $this->success('缓急程度列表', get_one_two_array(OfferConstant::get_degree_list(), 'id', 'name'));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
- * 呈批类型列表
|
|
|
+ * 采购类型列表
|
|
|
*
|
|
|
* @Apidoc\Method("POST")
|
|
|
*/
|
|
|
- public function get_offer_type_list()
|
|
|
+ public function get_apply_type_list()
|
|
|
{
|
|
|
- $this->success('呈批类型列表', get_one_two_array(OfferConstant::get_type_list(), 'id', 'name'));
|
|
|
+ $this->success('采购类型列表', get_one_two_array(ApplyConstant::get_type_list(), 'id', 'name'));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 呈批缓急程度列表
|
|
|
+ * 采购支付方式列表
|
|
|
*
|
|
|
* @Apidoc\Method("POST")
|
|
|
*/
|
|
|
- public function get_offer_degree_list()
|
|
|
+ public function get_apply_pay_type_list()
|
|
|
{
|
|
|
- $this->success('呈批缓急程度列表', get_one_two_array(OfferConstant::get_degree_list(), 'id', 'name'));
|
|
|
+ $this->success('采购支付方式列表', get_one_two_array(ApplyConstant::get_pay_type_list(), 'id', 'name'));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 呈批类型列表
|
|
|
+ *
|
|
|
+ * @Apidoc\Method("POST")
|
|
|
+ */
|
|
|
+ public function get_offer_type_list()
|
|
|
+ {
|
|
|
+ $this->success('呈批类型列表', get_one_two_array(OfferConstant::get_type_list(), 'id', 'name'));
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 出差类型列表
|
|
@@ -61,4 +84,34 @@ class Common extends Base
|
|
|
$this->success('出差类型列表', get_one_two_array(EvectionConstant::get_type_list(), 'id', 'name'));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 请假类型列表
|
|
|
+ *
|
|
|
+ * @Apidoc\Method("POST")
|
|
|
+ */
|
|
|
+ public function get_leave_type_list()
|
|
|
+ {
|
|
|
+ $this->success('请假类型列表', get_one_two_array(LeaveConstant::get_type_list(), 'id', 'name'));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 维修类型列表
|
|
|
+ *
|
|
|
+ * @Apidoc\Method("POST")
|
|
|
+ */
|
|
|
+ public function get_maintain_type_list()
|
|
|
+ {
|
|
|
+ $this->success('维修类型列表', get_one_two_array(MaintainConstant::get_type_list(), 'id', 'name'));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 合同类型列表
|
|
|
+ *
|
|
|
+ * @Apidoc\Method("POST")
|
|
|
+ */
|
|
|
+ public function get_contract_type_list()
|
|
|
+ {
|
|
|
+ $this->success('合同类型列表', get_one_two_array(ContractConstant::get_type_list(), 'id', 'name'));
|
|
|
+ }
|
|
|
+
|
|
|
}
|