Your Name 2 yıl önce
ebeveyn
işleme
a8ffc2f42e
1 değiştirilmiş dosya ile 13 ekleme ve 1 silme
  1. 13 1
      tool/work/lib/Manage.php

+ 13 - 1
tool/work/lib/Manage.php

@@ -381,7 +381,7 @@ Class Manage
 	#工单列表导出
 	public function out_info($data)
 	{
-		$header = array('客户名称','手机号','问题类型','问题类型描述','优先级','问题描述','处理结果','创建时间','完成时间');
+		$header = array('客户名称','手机号','问题类型','问题类型描述','优先级','问题描述','处理结果','创建时间','完成时间','工单创建人');
 		$body = array();
 		$config = Dever::db('work/info')->config['config_status'];
 		foreach ($data as $k => $v ) {
@@ -411,6 +411,17 @@ Class Manage
 			if ($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
 			(
 				$v['name'],
@@ -422,6 +433,7 @@ Class Manage
 				$status_name,
 				$cdate,
 				$fdate,
+				$chuangjian,
 			);
 			$body[] = $d;
 		}