owners_620_5

This commit is contained in:
dengbw
2022-06-20 17:49:42 +08:00
committed by lccsw
parent c06f3b5241
commit 3c162b92df
2 changed files with 11 additions and 4 deletions
+6 -1
View File
@@ -117,6 +117,7 @@ class Owners extends HD_Controller
'car_num' => $val['car_num'],
'order_time' => $val['order_time'] != '0000-00-00 00:00:00' ? $val['order_time'] : '',
'ck_time' => $val['ck_time'] != '0000-00-00 00:00:00' ? $val['ck_time'] : '',
'u_time' => $val['u_time'],
);
}
}
@@ -147,6 +148,7 @@ class Owners extends HD_Controller
$info['order_time'] = $row['order_time'] != '0000-00-00 00:00:00' ? $row['order_time'] : '';
$info['ck_time'] = $row['ck_time'] != '0000-00-00 00:00:00' ? $row['ck_time'] : '';
$info['c_time'] = date('Y-m-d H:i:s', $row['c_time']);
$info['birth_day'] = $row['birth_day'] != '0000-00-00' ? $row['birth_day'] : '';
$info['tag'] = $this->get_tag($row['id']);
//操作日志
$rows_log = $this->mdOwnersOplogs->select(['own_id' => $id], 'id desc', 0, 0);
@@ -379,8 +381,11 @@ class Owners extends HD_Controller
$birth_year = date('Y', strtotime($birthday));
$birth_month = date('m', strtotime($birthday));
$birth_day = date('d', strtotime($birthday));
if (!$birthday || $birthday == '0000-00-00') {
return '';
}
if (empty($birth_year) || empty($birth_month) || empty($birth_day)) {
return 0;
return '';
}
$current_year = date('Y', time());
$current_month = date('m', time());
+5 -3
View File
@@ -95,8 +95,9 @@
<th width="8%"><span>车牌号</span></th>
<th width="5%"><span>性别</span></th>
<th width="5%"><span>年龄</span></th>
<th width="10%"><span>购车时间</span></th>
<th width="10%"><span>交付时间</span></th>
<th width="9%"><span>购车时间</span></th>
<th width="9%"><span>交付时间</span></th>
<th width="9%"><span>最后操作时间</span></th>
</tr>
</thead>
<tbody>
@@ -111,9 +112,10 @@
<td>{{v.age}}</td>
<td>{{v.order_time}}</td>
<td>{{v.ck_time}}</td>
<td>{{v.u_time}}</td>
</tr>
<tr>
<td colspan="9">
<td colspan="10">
<div class="row">
<div class="col-md-4 align-l">
</div>