|
@@ -381,7 +381,7 @@ Class Manage
|
|
#工单列表导出
|
|
#工单列表导出
|
|
public function out_info($data)
|
|
public function out_info($data)
|
|
{
|
|
{
|
|
- $header = array('客户名称','手机号','问题类型','问题类型描述','优先级','问题描述','处理结果','创建时间','完成时间');
|
|
|
|
|
|
+ $header = array('客户名称','手机号','问题类型','问题类型描述','优先级','问题描述','处理结果','创建时间','完成时间','工单创建人');
|
|
$body = array();
|
|
$body = array();
|
|
$config = Dever::db('work/info')->config['config_status'];
|
|
$config = Dever::db('work/info')->config['config_status'];
|
|
foreach ($data as $k => $v ) {
|
|
foreach ($data as $k => $v ) {
|
|
@@ -411,6 +411,17 @@ Class Manage
|
|
if ($v['fdate']){
|
|
if ($v['fdate']){
|
|
$fdate = date('Y-m-d H:i',$v['fdate']);
|
|
$fdate = date('Y-m-d H:i',$v['fdate']);
|
|
}
|
|
}
|
|
|
|
+ $chuangjian = '';
|
|
|
|
+ if ($v['audit_admin']) {
|
|
|
|
+ $audit = Dever::db('manage/admin')->find($v['audit_admin']);
|
|
|
|
+ if ($audit) {
|
|
|
|
+ $admin = explode(',',$audit['group']);
|
|
|
|
+ foreach ($admin as $k1 => $v1) {
|
|
|
|
+ $group = Dever::db('manage/group')->find(array('company_id'=>$v['company_id'],'id'=>$v1));
|
|
|
|
+ }
|
|
|
|
+ $chuangjian = $group['name'].' / ' .$audit['username'];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
$d = array
|
|
$d = array
|
|
(
|
|
(
|
|
$v['name'],
|
|
$v['name'],
|
|
@@ -422,6 +433,7 @@ Class Manage
|
|
$status_name,
|
|
$status_name,
|
|
$cdate,
|
|
$cdate,
|
|
$fdate,
|
|
$fdate,
|
|
|
|
+ $chuangjian,
|
|
);
|
|
);
|
|
$body[] = $d;
|
|
$body[] = $d;
|
|
}
|
|
}
|