对账系统增加奖罚数据

master
liuweiwen 5 years ago
parent 5ab9f2cc1c
commit dfd198e9b7

@ -1865,7 +1865,7 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_
foreach ($data['statement_info'] as $key => $value) {
$objPHPExcel->getActiveSheet()->insertNewRowBefore($line,1)->mergeCells("J$line:K$line");
$objPHPExcel->getActiveSheet()->setCellValue('C'.$line, $value['statement_begin_time'] . '-' . $value['statement_end_time']);
if ($value['statement_type'] == 1) {//罚款
if ($value['statement_type'] > 0) {//罚款
$product_name = $value['type_name'];
$objPHPExcel->getActiveSheet()->setCellValue('F'.$line , '-');
$objPHPExcel->getActiveSheet()->setCellValue('G'.$line, '-');
@ -1950,7 +1950,7 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al
$objPHPExcel->getActiveSheet()->removeConditionalStyles();
$objPHPExcel->getActiveSheet()->setCellValue('A'.$line, $value['statement_begin_time'] . '-' . $value['statement_end_time']);
if ($value['statement_type'] == 1) {//罚款
if ($value['statement_type']>0) {//罚款
$product_name = $value['type_name'];
$objPHPExcel->getActiveSheet()->setCellValue('D'.$line, '-');
$objPHPExcel->getActiveSheet()->setCellValue('E'.$line, '-');

@ -346,7 +346,7 @@ class PublicController extends \Think\Controller
public function telsafecode($phone = '', $delay = 10, $flag = true)
{
$taskClient = new TaskClient();
$result = $taskClient->sendSmsCode($phone, get_client_ip());
$result = $taskClient->sendSms($phone, get_client_ip());
$data = [];
if ($result['code'] == TaskClient::SUCCESS) {
$data['status'] = 1;

@ -104,7 +104,7 @@
</if>
<notemtpy name = "data">
<volist name="data.statement_info" id="item">
<if condition="$item.statement_type eq 1">
<if condition="$item.statement_type eq 1 or $item.statement_type eq 2">
<tr>
<td >-</td>

@ -101,7 +101,7 @@
</if>
<notemtpy name = "data">
<volist name="data.statement_info" id="item">
<if condition="$item.statement_type eq 1">
<if condition="$item.statement_type eq 1 or $item.statement_type eq 2">
<tr>
<td >-</td>
@ -113,6 +113,7 @@
<td >-</td>
<td >{$item.sum_money}元</td>
</tr>
<else/>

Loading…
Cancel
Save