时间格式修正,导出格式修改

master
zhengyongxing 4 years ago
parent 52fe6d04f8
commit 815e2e3b88

@ -46,21 +46,21 @@ class CpJuheCompanyController extends ThinkController {
foreach ($list_data as $key => $value) {
if ($list_data[$key]['bank_card']){
$list_data[$key]['bank_card'] = '`'.$list_data[$key]['bank_card'];
$list_data[$key]['bank_card'] = ' '.$list_data[$key]['bank_card'];
}
if ($list_data[$key]['alipay_user']) {
$list_data[$key]['alipay_user'] = '`'.$list_data[$key]['alipay_user'];
$list_data[$key]['alipay_user'] = ' '.$list_data[$key]['alipay_user'];
}
$list_data[$key]['agreement_time'] = json_decode($list_data[$key]['agreement_time'],true);
$list_data[$key]['balance_time'] = json_decode($list_data[$key]['balance_time'],true);
$list_data[$key]['agreement_time']['start_time'] = date("Y-m-d H:i:s",$list_data[$key]['agreement_time']['start_time']);
($list_data[$key]['agreement_time']['end_time']!=1)?($list_data[$key]['agreement_time']['end_time'] = date("Y-m-d H:i:s",$list_data[$key]['agreement_time']['end_time'])):($list_data[$key]['agreement_time']['end_time'] = "");
$list_data[$key]['agreement_time']['start_time'] = date("Y-m-d",$list_data[$key]['agreement_time']['start_time']);
($list_data[$key]['agreement_time']['end_time']!=1)?($list_data[$key]['agreement_time']['end_time'] = date("Y-m-d",$list_data[$key]['agreement_time']['end_time'])):($list_data[$key]['agreement_time']['end_time'] = "");
$list_data[$key]['balance_time']['start_time'] = date("Y-m-d H:i:s",$list_data[$key]['balance_time']['start_time']);
($list_data[$key]['balance_time']['end_time']!=1)?($list_data[$key]['balance_time']['end_time'] = date("Y-m-d H:i:s",$list_data[$key]['balance_time']['end_time'])):($list_data[$key]['balance_time']['end_time'] = "");
$list_data[$key]['balance_time']['start_time'] = date("Y-m-d",$list_data[$key]['balance_time']['start_time']);
($list_data[$key]['balance_time']['end_time']!=1)?($list_data[$key]['balance_time']['end_time'] = date("Y-m-d",$list_data[$key]['balance_time']['end_time'])):($list_data[$key]['balance_time']['end_time'] = "");
}
$this->assign("listdata",$list_data);

@ -158,10 +158,10 @@
<td rowspan="{$vo.rowspan}">{$vo.before_amount|default="0"}</td>
<td rowspan="{$vo.rowspan}">{$vo.is_contract|default="------"}</td>
<td rowspan="{$vo.rowspan}">
<span class="form-required" style="line-height: 30px;">{$vo['agreement_time']['start_time']}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span class="form-required" style="line-height: 30px;">{$vo['agreement_time']['start_time']}</span>
<span class="form-required" style="line-height: 30px;">{$vo['agreement_time']['end_time']|default="永久"}</span></td>
<td rowspan="{$vo.rowspan}">
<span class="form-required" style="line-height: 30px;">{$vo['balance_time']['start_time']}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span class="form-required" style="line-height: 30px;">{$vo['balance_time']['start_time']}</span>
<span class="form-required" style="line-height: 30px;">{$vo['balance_time']['end_time']|default="永久"}</span>
</td>
<td rowspan="{$vo.rowspan}">{$vo['tax_point']}%</td>

Loading…
Cancel
Save