Files
liche/common/models/items/Items_transfer_model.php
T
2022-02-21 14:48:41 +08:00

77 lines
1.6 KiB
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Notes:车辆调拨
* Created on: 2021/12/6 16:43
* Created by: dengbw
*/
class Items_transfer_model extends HD_Model
{
private $table_name = 'lc_items_transfer';
public function __construct()
{
parent::__construct($this->table_name, 'default');
}
/**
* Notes:状态
* Created on: 2021/12/6 16:47
* Created by: dengbw
* @return array
*/
public function statusAry()
{
return array(-1 => '未提交',0 => '已调拨', 1 => '确认发车', 2 => '确认接车');
}
/**
* Notes:异常
* Created on: 2021/12/9 17:53
* Created by: dengbw
* @param string $id
* @return array
*/
public function abnormalAry($id = '')
{
$ary = [0 => '正常', 1 => '异常'];
if (strlen($id)) {
$ary = $ary[$id];
}
return $ary;
}
/**
* Notes:拖车费类型
* Created on: 2021/12/16 16:46
* Created by: dengbw
* @param string $id
* @return array|mixed
*/
public function feesTypeAry($id = '')
{
$ary = [1 => '直营店', 2 => '渠道', 3 => '合伙店'];
if (strlen($id)) {
$ary = $ary[$id];
}
return $ary;
}
/**
* Notes:提车人/接车人类型
* Created on: 2021/12/16 16:46
* Created by: dengbw
* @param string $id
* @return array|mixed
*/
public function uidTypeAry($id = '')
{
$ary = [1 => '门店', 2 => '信息员'];
if (strlen($id)) {
$ary = $ary[$id];
}
return $ary;
}
}