dev
曾超新 5 years ago
parent f72d6ca2eb
commit a7d0396a96
  1. 4
      common/models/CarT.php
  2. 12
      frontend/controllers/FinanceController.php

@ -175,11 +175,7 @@ class CarT extends \common\models\Base
switch($this->location) {
case 1:
$car=CarT::findOne(['id'=>$this->id]);
if($car->qiyong==2){
$name = 'A库(永不启用)';
}else{
$name = 'A库';
}
break;
case 2:
$carb=CarBT::findOne(['id'=>$this->id]);

@ -3264,18 +3264,18 @@ class FinanceController extends \frontend\controllers\UserBaseController
for ($i = 7; $i <= $rowCount; $i++) {
$cell = $currentSheet->getCellByColumnAndRow(1, $i);
$insurer_no = $cell->getValue();//$data[$i][1];
$insurer_no = $cell->getFormattedValue();//$data[$i][1];
// var_dump($insurer_no);
$cell = $currentSheet->getCellByColumnAndRow(2, $i);
$policy_man = $cell->getValue();//$data[$i][2];
$policy_man = $cell->getFormattedValue();//$data[$i][2];
$cell = $currentSheet->getCellByColumnAndRow(3, $i);
$total_real = $cell->getValue();//$data[$i][3];
$total_real = $cell->getFormattedValue();//$data[$i][3];
$cell = $currentSheet->getCellByColumnAndRow(4, $i);
$total_rate = $cell->getValue();//$data[$i][4];
$total_rate = $cell->getFormattedValue();//$data[$i][4];
$cell = $currentSheet->getCellByColumnAndRow(5, $i);
$pay_total = $cell->getValue();//$data[$i][5];
$pay_total = $cell->getFormattedValue();//$data[$i][5];
$cell = $currentSheet->getCellByColumnAndRow(6, $i);
$insurer_total = $cell->getValue();//$data[$i][6];
$insurer_total = $cell->getFormattedValue();//$data[$i][6];
$cell = $currentSheet->getCellByColumnAndRow(7, $i);
$insurer_date = $cell->getFormattedValue();
// var_dump($insurer_date);

Loading…
Cancel
Save