优化代码

dev
曾超新 5 years ago
parent dd7172af88
commit 75dcf8cf5c
  1. 2
      common/models/GiftT.php
  2. 63
      common/models/GiftUseLogT.php
  3. 26
      frontend/controllers/GiftController.php
  4. 4
      frontend/controllers/PhoneCenterController.php
  5. 349
      frontend/controllers/StatisticsController.php
  6. 31
      frontend/views/appointment/all.php
  7. 31
      frontend/views/appointment/first.php
  8. 31
      frontend/views/appointment/today.php
  9. 8
      frontend/views/bank/edit.php
  10. 2
      frontend/views/bank/index.php
  11. 8
      frontend/views/car-type/edit.php
  12. 2
      frontend/views/car-type/index.php
  13. 2
      frontend/views/car-use/index.php
  14. 4
      frontend/views/car/edit.php
  15. 68
      frontend/views/car/info-track-edit.php
  16. 68
      frontend/views/car/info-track-info.php
  17. 2
      frontend/views/car/info.php
  18. 2
      frontend/views/car/order-add.php
  19. 4
      frontend/views/car/search.php
  20. 8
      frontend/views/city/edit.php
  21. 2
      frontend/views/city/index.php
  22. 8
      frontend/views/common/call-phone.php
  23. 75
      frontend/views/common/left.php
  24. 100
      frontend/views/common/top.php
  25. 24
      frontend/views/common/update-pwd.php
  26. 6
      frontend/views/database/a-index.php
  27. 233
      frontend/views/database/ad-clean-index.php
  28. 6
      frontend/views/database/b-index.php
  29. 6
      frontend/views/database/c-index.php
  30. 4
      frontend/views/database/d-index.php
  31. 94
      frontend/views/database/invalid-index-search.php
  32. 6
      frontend/views/database/invalid-index.php
  33. 16
      frontend/views/district/edit.php
  34. 2
      frontend/views/district/index.php
  35. 2
      frontend/views/finance/budian-list.php
  36. 4
      frontend/views/finance/car-update-frame.php
  37. 6
      frontend/views/finance/chuna-gongzi-info.php
  38. 2
      frontend/views/finance/chuna-gongzi-list.php
  39. 8
      frontend/views/finance/gongzi-all-info.php
  40. 2
      frontend/views/finance/gongzi-all-list.php
  41. 10
      frontend/views/finance/pay2-info.php
  42. 2
      frontend/views/finance/pay2-list.php
  43. 8
      frontend/views/finance/receipt-lirun.php
  44. 2
      frontend/views/finance/receipt.php
  45. 2
      frontend/views/finance/receipt2.php
  46. 4
      frontend/views/finance/ticheng-jisuan.php
  47. 2
      frontend/views/fix-car/add-item.php
  48. 10
      frontend/views/fix-car/ajax-item-list.php
  49. 110
      frontend/views/fix-car/my-list-edit.php
  50. 2
      frontend/views/fix-car/my-list-finish.php
  51. 2
      frontend/views/fix-car/my-list.php
  52. 2
      frontend/views/fix-car/my-search-result.php
  53. 2
      frontend/views/fix-car/my-search.php
  54. 2
      frontend/views/fix-car/step1-list-finish.php
  55. 2
      frontend/views/fix-car/step1-list.php
  56. 2
      frontend/views/fix-car/step2-list.php
  57. 2
      frontend/views/fix-car/step3-list.php
  58. 2
      frontend/views/fix-car/step4-list.php
  59. 170
      frontend/views/gift/gift-out.php
  60. 52
      frontend/views/gift/gift-tj.php
  61. 127
      frontend/views/gift/gift-use-edit.php
  62. 2
      frontend/views/gift/gift-use.php
  63. 4
      frontend/views/gift/index.php
  64. 400
      frontend/views/gift/mng-list-info.php
  65. 74
      frontend/views/gift/mng-list.php
  66. 65
      frontend/views/gift/stastics.php
  67. 56
      frontend/views/gift/ticket-tj.php
  68. 142
      frontend/views/gift/ticket-use-edit.php
  69. 169
      frontend/views/gift/ticket-use.php
  70. 24
      frontend/views/group/edit.php
  71. 2
      frontend/views/group/index.php
  72. 65
      frontend/views/group/permission.php
  73. 2
      frontend/views/insurer-company/edit.php
  74. 2
      frontend/views/insurer-company/index.php
  75. 8
      frontend/views/insurer-company2/edit.php
  76. 2
      frontend/views/insurer-company2/index.php
  77. 20
      frontend/views/insurer-type/edit.php
  78. 2
      frontend/views/insurer-type/index.php
  79. 27
      frontend/views/insurer/finance-mng.php
  80. 856
      frontend/views/insurer/info.php
  81. 2
      frontend/views/insurer/my-list-info.php
  82. 31
      frontend/views/insurer/my-list.php
  83. 27
      frontend/views/insurer/my-return-list.php
  84. 2
      frontend/views/insurer/office-mng-edit.php
  85. 27
      frontend/views/insurer/office-mng.php
  86. 143
      frontend/views/insurer/original-ems-edit.php
  87. 143
      frontend/views/insurer/original-ems-edit1.php
  88. 2
      frontend/views/insurer/original-mng-edit.php
  89. 27
      frontend/views/insurer/original-mng.php
  90. 566
      frontend/views/insurer/original-send-mng-edit.php
  91. 85
      frontend/views/insurer/original-send-mng.php
  92. 4
      frontend/views/insurer/search.php
  93. 226
      frontend/views/insurer/send-mng-edit.php
  94. 91
      frontend/views/insurer/send-mng.php
  95. 20
      frontend/views/invalid/edit.php
  96. 2
      frontend/views/invalid/index.php
  97. 2
      frontend/views/marketing-strategy/add.php
  98. 6
      frontend/views/marketing-strategy/edit.php
  99. 2
      frontend/views/marketing-strategy/index.php
  100. 2
      frontend/views/marketing-strategy/select-fanxian.php
  101. Some files were not shown because too many files have changed in this diff Show More

@ -62,7 +62,7 @@ class GiftT extends \common\models\Base
public function getShowType() public function getShowType()
{ {
if($this->type_id == 1) return '实礼品'; if($this->type_id == 1) return '实礼品';
if($this->type_id == 2) return '礼券'; if($this->type_id == 2) return '礼券';
return ''; return '';
} }

@ -0,0 +1,63 @@
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "car_log_t".
*
* @property integer $id
* @property integer $car_id
* @property string $op_man
* @property integer $op_time
* @property string $group_name
* @property integer $type
* @property string $remark
* @property string $info
* @property string $created_at
* @property string $updated_at
*/
class GiftUseLogT extends \common\models\Base
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'gift_use_log_t';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['gift_use_id', 'op_man', 'op_time'], 'required'],
[['gift_use_id', 'op_time','type'], 'integer'],
[['created_at', 'updated_at'], 'safe'],
[['op_man'], 'string', 'max' => 50],
[['group_name', 'remark','info'], 'string', 'max' => 100],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'gift_use_id' => 'Gift Use ID',
'op_man' => 'Op Man',
'op_time' => 'Op Time',
'group_name' => 'Group Name',
'type' => 'Type',
'remark' => 'Remark',
'info' => 'Info',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}

@ -59,7 +59,7 @@ class GiftController extends \yii\web\Controller
$query = GiftT::find() $query = GiftT::find()
->where('is_delete=0'); ->where('is_delete=0');
if($type_id > 0) { if($type_id > 0) {
$query = $query->andWhere('typeid='.$type_id); $query = $query->andWhere('type_id='.$type_id);
} }
if($name != '') { if($name != '') {
$query = $query->andWhere('name like "'.$name.'"'); $query = $query->andWhere('name like "'.$name.'"');
@ -75,7 +75,7 @@ class GiftController extends \yii\web\Controller
$data['rows'] = []; $data['rows'] = [];
foreach($items as $item) { foreach($items as $item) {
$row = $item->toArray(); $row = $item->toArray();
$row['type'] = $item->getShowType(); $row['type'] = $item->showType;
$data['rows'][] = $row; $data['rows'][] = $row;
} }
@ -818,7 +818,7 @@ class GiftController extends \yii\web\Controller
->leftJoin('order_t','order_t.id=gift_ticket_t_use.order_id') ->leftJoin('order_t','order_t.id=gift_ticket_t_use.order_id')
->leftJoin('gift_t','gift_t.id=gift_ticket_t_use.type_id') ->leftJoin('gift_t','gift_t.id=gift_ticket_t_use.type_id')
->leftJoin('user_t','user_t.id=gift_ticket_t_use.user_id') ->leftJoin('user_t','user_t.id=gift_ticket_t_use.user_id')
->where('gift_t.type_id=2') ->where('gift_t.type_id=1')
->orderBy('id DESC'); ->orderBy('id DESC');
if($code != '') { if($code != '') {
$query->andWhere('gift_ticket_t_use.code="'.$code.'"'); $query->andWhere('gift_ticket_t_use.code="'.$code.'"');
@ -1095,6 +1095,25 @@ class GiftController extends \yii\web\Controller
return $data; return $data;
} }
public function actionGiftUseEdit()
{
$request = Yii::$app->request;
$id = $request->get('id',0);
$back_params = $request->get('back_params');
if($id > 0) {
$info = GiftTicketTUse::findOne(['id'=>$id]);
} else {
$info = new GiftTicketTUse();
}
return $this->render('gift-use-edit',[
'info' => $info
]);
}
public function actionTicketUseEdit() public function actionTicketUseEdit()
{ {
$request = Yii::$app->request; $request = Yii::$app->request;
@ -1114,7 +1133,6 @@ class GiftController extends \yii\web\Controller
} }
public function actionHistoryLogJson() public function actionHistoryLogJson()
{ {
Yii::$app->response->format = Response::FORMAT_JSON;
Yii::$app->response->format = Response::FORMAT_JSON; Yii::$app->response->format = Response::FORMAT_JSON;
$request = Yii::$app->request; $request = Yii::$app->request;
$id = $request->get('id'); $id = $request->get('id');

@ -277,6 +277,10 @@ public function actionDownload(){
$data['rows'] = []; $data['rows'] = [];
foreach($sub_items as $item) { foreach($sub_items as $item) {
$row = $item->toArray(); $row = $item->toArray();
$row['status'] = '';
if($item->bind_id != '') {
$row['status'] = '已绑定';
}
$data['rows'][] = $row; $data['rows'][] = $row;
} }

@ -21,8 +21,21 @@ class StatisticsController extends BaseController
public $enableCsrfValidation = false; public $enableCsrfValidation = false;
public $layout = 'blue-main'; public $layout = 'blue-main';
public function actionWork() public function actionWork() {
$group_items = GroupT::getTree((int)$this->my->group_id);
if($this->my->id == 1 || $this->my->username=='6002')
$group_items = GroupT::getTree();
$company_items = InsurerCompanyT::find()
->all();
return $this->render('work',[
'group_items' => $group_items,
'company_items' => $company_items
]);
}
public function actionWorkJson()
{ {
Yii::$app->response->format = Response::FORMAT_JSON;
$request = Yii::$app->request; $request = Yii::$app->request;
$date_begin = $request->get('date_begin',date('Y-m-d')); $date_begin = $request->get('date_begin',date('Y-m-d'));
$date_end = $request->get('date_end',date('Y-m-d')); $date_end = $request->get('date_end',date('Y-m-d'));
@ -31,9 +44,7 @@ class StatisticsController extends BaseController
$username = $request->get('username'); $username = $request->get('username');
$group_id = $request->get('group_id'); $group_id = $request->get('group_id');
$company_id = $request->get('company_id'); $company_id = $request->get('company_id');
$group_items = GroupT::getTree((int)$this->my->group_id);
if($this->my->id == 1 || $this->my->username=='6002')
$group_items = GroupT::getTree();
$group_ids[] = $group_id; $group_ids[] = $group_id;
if($group_id > 0) { if($group_id > 0) {
$items = GroupT::getTree($group_id); $items = GroupT::getTree($group_id);
@ -42,12 +53,6 @@ class StatisticsController extends BaseController
} }
} }
// 原来的搜索条件
// $userSql = '';
// if($username != '') {
// $userSql = ' username like "'.$username.'"';
// }
// 现在的搜索条件 // 现在的搜索条件
$userSql = ''; $userSql = '';
if($username != '') { if($username != '') {
@ -58,8 +63,6 @@ class StatisticsController extends BaseController
$user_items = $this->my->getChildren($userSql); $user_items = $this->my->getChildren($userSql);
if($this->my->username == '6002') if($this->my->username == '6002')
$user_items = $this->my->getChildren($userSql,1); $user_items = $this->my->getChildren($userSql,1);
// $user_items[] = $this->my;
//var_dump($user_items);
$user_rows = array(); $user_rows = array();
$sum_total = array(); $sum_total = array();
$sum_total[0] = ''; $sum_total[0] = '';
@ -95,22 +98,21 @@ class StatisticsController extends BaseController
->where('user_id='.$user_info->id.' and status_id>1') ->where('user_id='.$user_info->id.' and status_id>1')
->andWhere('insurance_status=1 or insurance_status=3'); ->andWhere('insurance_status=1 or insurance_status=3');
if($date_begin != '') { if($date_begin != '') {
$tmp_query = $tmp_query->andWhere('submit_date>="'.$date_begin.'"'); $tmp_query->andWhere('submit_date>="'.$date_begin.'"');
} }
if($date_end != '') { if($date_end != '') {
$tmp_query = $tmp_query->andWhere('submit_date<="'.$date_end.'"'); $tmp_query->andWhere('submit_date<="'.$date_end.'"');
} }
if($date2_begin != '') { if($date2_begin != '') {
$tmp_query = $tmp_query->andWhere('print_date>="'.$date2_begin.'"'); $tmp_query->andWhere('print_date>="'.$date2_begin.'"');
} }
if($date2_end != '') { if($date2_end != '') {
$tmp_query = $tmp_query->andWhere('print_date<="'.$date2_end.'"'); $tmp_query->andWhere('print_date<="'.$date2_end.'"');
} }
if($company_id > 0) { if($company_id > 0) {
$tmp_query = $tmp_query->andWhere('company_id='.$company_id); $tmp_query->andWhere('company_id='.$company_id);
} }
// exit;
foreach($tmp_query->each() as $item) { foreach($tmp_query->each() as $item) {
$total[0]++; $total[0]++;
//提单总数 //提单总数
@ -129,16 +131,16 @@ class StatisticsController extends BaseController
$tmp_query = FixCarT::find() $tmp_query = FixCarT::find()
->where('user_id='.$user_info->id.' and status>0'); ->where('user_id='.$user_info->id.' and status>0');
if($date_begin != '') { if($date_begin != '') {
$tmp_query = $tmp_query->andWhere('submit_date>="'.$date_begin.'"'); $tmp_query->andWhere('submit_date>="'.$date_begin.'"');
} }
if($date_end != '') { if($date_end != '') {
$tmp_query = $tmp_query->andWhere('submit_date<="'.$date_end.'"'); $tmp_query->andWhere('submit_date<="'.$date_end.'"');
} }
if($date2_begin != '') { if($date2_begin != '') {
$tmp_query = $tmp_query->andWhere('submit_date>="'.$date2_begin.'"'); $tmp_query->andWhere('submit_date>="'.$date2_begin.'"');
} }
if($date2_end != '') { if($date2_end != '') {
$tmp_query = $tmp_query->andWhere('submit_date<="'.$date2_end.'"'); $tmp_query->andWhere('submit_date<="'.$date2_end.'"');
} }
$total[7] = $tmp_query->count(); $total[7] = $tmp_query->count();
@ -146,7 +148,6 @@ class StatisticsController extends BaseController
$phone_time = ''; $phone_time = '';
$query = PhoneDayT::find() $query = PhoneDayT::find()
->where('user_id='.$user_info->id.' and call_date>="'.$date_begin.'" and call_date<="'.$date_end.'"'); ->where('user_id='.$user_info->id.' and call_date>="'.$date_begin.'" and call_date<="'.$date_end.'"');
// echo $query->createCommand()->rawSql;
$items = $query->all(); $items = $query->all();
$call_time = 0; $call_time = 0;
foreach($items as $item) { foreach($items as $item) {
@ -163,7 +164,6 @@ class StatisticsController extends BaseController
$row['total'] = $total; $row['total'] = $total;
$user_rows[] = $row; $user_rows[] = $row;
// $sum_total[0] += $total[0];
$sum_total[1] += $total[1]; $sum_total[1] += $total[1];
$sum_total[2] += $total[2]; $sum_total[2] += $total[2];
$sum_total[3] += $total[3]; $sum_total[3] += $total[3];
@ -173,23 +173,37 @@ class StatisticsController extends BaseController
$sum_total[7] += $total[7]; $sum_total[7] += $total[7];
} }
$company_items = InsurerCompanyT::find() $data = [];
->all(); $data['total'] = count($user_rows);
$data['rows'] = [];
return $this->render('work',[ foreach($user_rows as $item) {
'user_rows' => $user_rows, $row = $item;
'date_begin' => $date_begin, $row['total_0'] = $item['total'][0]!=''?$item['total'][0]:'';
'date_end' => $date_end, $row['total_7'] = $item['total'][7]>0?$item['total'][7]:'';
'date2_begin' => $date2_begin, $row['total_1'] = $item['total'][1]>0?$item['total'][1]:'';
'date2_end' => $date2_end, $row['total_2'] = $item['total'][2]>0?'¥'.number_format($item['total'][2],2):'';
'username' => $username, $row['total_3'] = $item['total'][3]>0?'¥'.number_format($item['total'][3],2):'';
'sum_total' => $sum_total, $row['total_4'] = $item['total'][4]>0?'¥'.number_format($item['total'][4],2):'';
'group_id' => $group_id, $row['total_5'] = $item['total'][5]>0?'¥'.number_format($item['total'][5],2):'';
'group_items' => $group_items, $row['total_6'] = $item['total'][6]>0?'¥'.number_format($item['total'][6],2):'';
'company_items' => $company_items, $row['op'] = 1;
'company_id' => $company_id $data['rows'][] = $row;
]); }
$row = [];
$row['username'] = '汇总';
$row['total_7'] = $sum_total[7]>0?$sum_total[7]:'';
$row['total_1'] = $sum_total[1]>0?$sum_total[1]:'';
$row['total_2'] = $sum_total[2]>0?'¥'.number_format($sum_total[2],2):'';
$row['total_3'] = $sum_total[3]>0?'¥'.number_format($sum_total[3],2):'';
$row['total_4'] = $sum_total[4]>0?'¥'.number_format($sum_total[4],2):'';
$row['total_5'] = $sum_total[5]>0?'¥'.number_format($sum_total[5],2):'';
$row['total_6'] = $sum_total[6]>0?'¥'.number_format($sum_total[6],2):'';
$row['op'] = 0;
$data['rows'][] = $row;
return $data;
} }
public function actionCleanWork() public function actionCleanWork()
{ {
$request = Yii::$app->request; $request = Yii::$app->request;
@ -210,7 +224,6 @@ class StatisticsController extends BaseController
} }
} }
// 现在的搜索条件
$userSql = ''; $userSql = '';
if($username != '') { if($username != '') {
$userSql = ' username like "'.$username.'" and '; $userSql = ' username like "'.$username.'" and ';
@ -221,7 +234,7 @@ class StatisticsController extends BaseController
if($this->my->username == '6002') if($this->my->username == '6002')
$user_items = $this->my->getChildrenClean($userSql,1); $user_items = $this->my->getChildrenClean($userSql,1);
$user_items[] = $this->my; $user_items[] = $this->my;
//var_dump($user_items);
$user_rows = array(); $user_rows = array();
$sum_total = array(); $sum_total = array();
$sum_total[0] = 0; $sum_total[0] = 0;
@ -255,21 +268,6 @@ class StatisticsController extends BaseController
$tmp_query = $tmp_query->andWhere('company_id='.$company_id); $tmp_query = $tmp_query->andWhere('company_id='.$company_id);
} }
// exit;
// foreach($tmp_query->each() as $item) {
// $total[0]++;
// //提单总数
// if ($item->status_id > 0) {
// $total[1]++;
// $total[2] += $item->total1_clear;//提单总净保费
// $total[3] += $item->total2_clear;//交强总净保费
// if($item->status_id > 5) {
// $total[4] += $item->total1_clear;//商业已收净保费
// $total[5] += $item->total2_clear;//商业已收净保费
// }
// $total[6] += $item->total1_clear + $item->total2_clear;//总签单净保费
// }
// }
$total['right_num']=$tmp_query->sum('right_num'); $total['right_num']=$tmp_query->sum('right_num');
$total['wrong_num']=$tmp_query->sum('wrong_num'); $total['wrong_num']=$tmp_query->sum('wrong_num');
$total['yuyue_num']=$tmp_query->sum('yuyue_num'); $total['yuyue_num']=$tmp_query->sum('yuyue_num');
@ -285,11 +283,6 @@ class StatisticsController extends BaseController
$sum_total[1] += $total['wrong_num']; $sum_total[1] += $total['wrong_num'];
$sum_total[2] += $total['yuyue_num']; $sum_total[2] += $total['yuyue_num'];
// $sum_total[3] += $total[3];
// $sum_total[4] += $total[4];
// $sum_total[5] += $total[5];
// $sum_total[6] += $total[6];
} }
$company_items = InsurerCompanyT::find() $company_items = InsurerCompanyT::find()
@ -321,7 +314,7 @@ class StatisticsController extends BaseController
if($date_end != '') { if($date_end != '') {
$query = $query->andWhere('fenpei_date<="'.$date_end.'"'); $query = $query->andWhere('fenpei_date<="'.$date_end.'"');
} }
$CleanFenpei=$query ->count(); $CleanFenpei=$query ->count();
return $this->render('clean-work-zj',[ return $this->render('clean-work-zj',[
'CleanFenpei' => $CleanFenpei, 'CleanFenpei' => $CleanFenpei,
@ -510,198 +503,17 @@ class StatisticsController extends BaseController
'company_id' => $company_id 'company_id' => $company_id
]); ]);
} }
public function actionWorkInfo() {
public function actionWorkOutput()
{
$objectPHPExcel = new \PHPExcel();
$index = 1;
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('A'.$index,'工号');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('B'.$index,'真实姓名');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('C'.$index,'通时');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('D'.$index,'提车总数');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('E'.$index,'提单总数');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('F'.$index,'商业总净保费');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('G'.$index,'交强总净保费');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('H'.$index,'商业已收净保费');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('I'.$index,'交强已收净保费');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('J'.$index,'总签单净保费');
$request = Yii::$app->request; $request = Yii::$app->request;
$date_begin = $request->get('date_begin',date('Y-m-d')); $user_id = $request->get('user_id');
$date_end = $request->get('date_end',date('Y-m-d'));
$date2_begin = $request->get('date2_begin');
$date2_end = $request->get('date2_end');
$username = $request->get('username');
$group_id = $request->get('group_id');
$company_id = $request->get('company_id');
$group_items = GroupT::getTree((int)$this->my->group_id);
if($this->my->id == 1 || $this->my->username=='6002')
$group_items = GroupT::getTree();
$group_ids[] = $group_id;
if($group_id > 0) {
$items = GroupT::getTree($group_id);
foreach($items as $group_info) {
$group_ids[] = $group_info->id;
}
}
// 原来的搜索条件
// $userSql = '';
// if($username != '') {
// $userSql = ' username like "'.$username.'"';
// }
// 现在的搜索条件
$userSql = '';
if($username != '') {
$userSql = ' username like "'.$username.'" and ';
}
//$userSql .= 'is_locked=0 and is_login=1';
$user_items = $this->my->getChildren($userSql);
if($this->my->username == '6002')
$user_items = $this->my->getChildren($userSql,1);
$user_items[] = $this->my;
//var_dump($user_items);
$user_rows = array();
$sum_total = array();
$sum_total[0] = '';
$sum_total[1] = 0;
$sum_total[2] = 0;
$sum_total[3] = 0;
$sum_total[4] = 0;
$sum_total[5] = 0;
$sum_total[6] = 0;
$sum_total[7] = 0;
foreach($user_items as $user_info) {
if($user_info->is_leave == 1) continue;
if($group_id > 0) {
if(!in_array($user_info->group_id,$group_ids)) {
continue;
}
}
$total[0] = 0;
$total[1] = 0;
$total[2] = 0;
$total[3] = 0;
$total[4] = 0;
$total[5] = 0;
$total[6] = 0;
$total[7] = 0;
$row = array();
$row['id'] = $user_info->id;
$row['username'] = trim($user_info->username);
$row['truename'] = $user_info->name;
$tmp_query = OrderT::find()
->where('user_id='.$user_info->id.' and status_id>1');
if($date_begin != '') {
$tmp_query = $tmp_query->andWhere('submit_date>="'.$date_begin.'"');
}
if($date_end != '') {
$tmp_query = $tmp_query->andWhere('submit_date<="'.$date_end.'"');
}
if($date2_begin != '') {
$tmp_query = $tmp_query->andWhere('print_date>="'.$date2_begin.'"');
}
if($date2_end != '') {
$tmp_query = $tmp_query->andWhere('print_date<="'.$date2_end.'"');
}
if($company_id > 0) {
$tmp_query = $tmp_query->andWhere('company_id='.$company_id);
}
$index++;
// exit;
foreach($tmp_query->each() as $item) {
$total[0]++;
//提单总数
if ($item->status_id > 0) {
$total[1]++;
$total[2] += $item->total1_clear;//提单总净保费
$total[3] += $item->total2_clear;//交强总净保费
if($item->status_id > 5) {
$total[4] += $item->total1_clear;//商业已收净保费
$total[5] += $item->total2_clear;//商业已收净保费
}
$total[6] += $item->total1_clear + $item->total2_clear;//总签单净保费
}
}
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('A'.$index,$row['username']);
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('B'.$index,$row['truename']);
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('E'.$index,$total[1]>0?$total[1]:'');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('F'.$index,$total[2]>0?'¥'.number_format($total[2],2):'');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('G'.$index,$total[3]>0?'¥'.number_format($total[3],2):'');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('H'.$index,$total[4]>0?'¥'.number_format($total[4],2):'');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('I'.$index,$total[5]>0?'¥'.number_format($total[5],2):'');
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('J'.$index,$total[6]>0?'¥'.number_format($total[6],2):'');
//提单总数
$tmp_query = FixCarT::find()
->where('user_id='.$user_info->id.' and status>0');
if($date_begin != '') {
$tmp_query = $tmp_query->andWhere('submit_date>="'.$date_begin.'"');
}
if($date_end != '') {
$tmp_query = $tmp_query->andWhere('submit_date<="'.$date_end.'"');
}
if($date2_begin != '') {
$tmp_query = $tmp_query->andWhere('submit_date>="'.$date2_begin.'"');
}
if($date2_end != '') {
$tmp_query = $tmp_query->andWhere('submit_date<="'.$date2_end.'"');
}
$total[7] = $tmp_query->count();
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('D'.$index,$total[7]>0?$total[7]:'');
//通时
$phone_time = '';
$query = PhoneDayT::find()
->where('user_id='.$user_info->id.' and call_date>="'.$date_begin.'" and call_date<="'.$date_end.'"');
// echo $query->createCommand()->rawSql;
$items = $query->all();
$call_time = 0;
foreach($items as $item) {
$call_time += $item->call_time;
}
if($call_time > 0) {
$h = floor($call_time/3600);
$m = floor(($call_time - $h * 3600)/60);
$s = $call_time - $h * 3600 - $m * 60;
$phone_time = $h.':'.$m.':'.$s;
}
$total[0] = $phone_time;
$objectPHPExcel->setActiveSheetIndex(0)->setCellValue('C'.$index,$total[0]!=''?$total[0]:'');
$row['total'] = $total;
$user_rows[] = $row;
// $sum_total[0] += $total[0];
// $sum_total[1] += $total[1];
// $sum_total[2] += $total[2];
// $sum_total[3] += $total[3];
// $sum_total[4] += $total[4];
// $sum_total[5] += $total[5];
// $sum_total[6] += $total[6];
// $sum_total[7] += $total[7];
}
header('Content-Type: application/vnd.ms-excel;charset=utf-8');
header('Content-Disposition:attachment;filename="'.date("YmjHis").'.xls"');
header('Cache-Control: max-age=0');
$objWriter = \PHPExcel_IOFactory::createWriter($objectPHPExcel, 'Excel5');
$objWriter->save('php://output');
return $this->render('work-info',[
'user_id' => $user_id
]);
} }
public function actionWorkInfoJson()
public function actionWorkInfo()
{ {
Yii::$app->response->format = Response::FORMAT_JSON;
$request = Yii::$app->request; $request = Yii::$app->request;
$user_id = $request->get('user_id'); $user_id = $request->get('user_id');
$date_begin = $request->get('date_begin'); $date_begin = $request->get('date_begin');
@ -726,8 +538,7 @@ class StatisticsController extends BaseController
//提交单数 //提交单数
$tmp_query = OrderT::find() $tmp_query = OrderT::find()
->where('user_id='.$user_info->id.' and status_id>1') ->where('user_id='.$user_info->id.' and status_id>1');
->andWhere('insurance_status=1 or insurance_status=3');
if($date_begin != '') { if($date_begin != '') {
$tmp_query = $tmp_query->andWhere('submit_date>="'.$date_begin.'"'); $tmp_query = $tmp_query->andWhere('submit_date>="'.$date_begin.'"');
} }
@ -763,17 +574,29 @@ class StatisticsController extends BaseController
$phone_time = ''; $phone_time = '';
$total[0] = $phone_time; $total[0] = $phone_time;
return $this->render('work-info',[ $data = [];
'user_info' => $user_info, $data['total'] = count($items);
'items' => $items, $data['rows'] = [];
'date_begin' => $date_begin, foreach($items as $item) {
'date_end' => $date_end, $row = $item->toArray();
'date2_begin' => $date2_begin, $row['total1_clear'] = '¥'.$item->total1_clear;
'date2_end' => $date2_end, $row['total1_real'] = '¥'.$item->total1_real;
'username' => $username, $row['total1_dis'] = '¥'.$item->total1_dis;
'total' => $total $row['total1_percent'] = '¥'.$item->total1_percent;
]); $row['status_name'] = '¥'.$item->status->name;
$row['op'] = 1;
$data['rows'][] = $row;
}
$row = [];
$row['id'] = '汇总';
$row['total1_clear'] = $total[2]?'¥'.number_format($total[2],2):'';
$row['total1_real'] = $total[8]?'¥'.number_format($total[8],2):'';
$row['total1_dis'] = $total[9]?'¥'.number_format($total[9],2):'';
$row['op'] = 0;
$data['rows'][] = $row;
return $data;
} }
public function actionFixWorkInfo() public function actionFixWorkInfo()
{ {
$request = Yii::$app->request; $request = Yii::$app->request;

@ -16,21 +16,27 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label>车主</label> <label for="car_man">车主</label>
<input type="text" name="car_man" id="car_man" class="form-control"> <input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="phone">电话</label>
<input type="text" name="phone" id="phone" class="form-control"> <input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="car_no">车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control"> <input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="id_man">被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control"> <input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -80,6 +86,11 @@ use \common\libs\MyLib;
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/appointment/all-json", url: "/appointment/all-json",
@ -87,10 +98,6 @@ use \common\libs\MyLib;
sidePagination: 'server', sidePagination: 'server',
multipleSelectRow: true, multipleSelectRow: true,
queryParams: function(params) { queryParams: function(params) {
o['car_man'] = $('#car_man').val();
o['phone'] = $('#phone').val();
o['car_no'] = $('#car_no').val();
o['id_man'] = $('#id_man').val();
o['limit'] = params['limit']; o['limit'] = params['limit'];
o['offset'] = params['offset']; o['offset'] = params['offset'];
return o; return o;

@ -16,21 +16,27 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label>车主</label> <label for="car_man">车主</label>
<input type="text" name="car_man" id="car_man" class="form-control"> <input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="phone">电话</label>
<input type="text" name="phone" id="phone" class="form-control"> <input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="car_no">车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control"> <input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="id_man">被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control"> <input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -80,6 +86,11 @@ use \common\libs\MyLib;
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/appointment/first-json", url: "/appointment/first-json",
@ -87,10 +98,6 @@ use \common\libs\MyLib;
sidePagination: 'server', sidePagination: 'server',
multipleSelectRow: true, multipleSelectRow: true,
queryParams: function(params) { queryParams: function(params) {
o['car_man'] = $('#car_man').val();
o['phone'] = $('#phone').val();
o['car_no'] = $('#car_no').val();
o['id_man'] = $('#id_man').val();
o['limit'] = params['limit']; o['limit'] = params['limit'];
o['offset'] = params['offset']; o['offset'] = params['offset'];
return o; return o;

@ -16,21 +16,27 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label>车主</label> <label for="car_man">车主</label>
<input type="text" name="car_man" id="car_man" class="form-control"> <input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="phone">电话</label>
<input type="text" name="phone" id="phone" class="form-control"> <input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="car_no">车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control"> <input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="id_man">被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control"> <input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -80,6 +86,11 @@ use \common\libs\MyLib;
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/appointment/today-json", url: "/appointment/today-json",
@ -87,10 +98,6 @@ use \common\libs\MyLib;
sidePagination: 'server', sidePagination: 'server',
multipleSelectRow: true, multipleSelectRow: true,
queryParams: function(params) { queryParams: function(params) {
o['car_man'] = $('#car_man').val();
o['phone'] = $('#phone').val();
o['car_no'] = $('#car_no').val();
o['id_man'] = $('#id_man').val();
o['limit'] = params['limit']; o['limit'] = params['limit'];
o['offset'] = params['offset']; o['offset'] = params['offset'];
return o; return o;

@ -9,18 +9,18 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">名称</label> <label class="col-sm-1 control-label">名称</label>
<div class="col-md-6"> <div class="col-sm-6">
<input type="text" name="name" value="<?=$info->name?>" class="form-control"> <input type="text" name="name" value="<?=$info->name?>" class="form-control">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong><?=$info ? '保 存':'添 加'?></strong> <strong><?=$info ? '保 存':'添 加'?></strong>
</button> </button>

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -9,18 +9,18 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">名称</label> <label class="col-sm-1 control-label">名称</label>
<div class="col-md-6"> <div class="col-sm-6">
<input type="text" name="name" value="<?=$info->name?>" class="form-control"> <input type="text" name="name" value="<?=$info->name?>" class="form-control">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong><?=$info ? '保 存':'添 加'?></strong> <strong><?=$info ? '保 存':'添 加'?></strong>
</button> </button>

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -9,7 +9,7 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">
@ -89,7 +89,7 @@ use \common\libs\MyLib;
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong><?=$info ? '保 存':'添 加'?></strong> <strong><?=$info ? '保 存':'添 加'?></strong>
</button> </button>

@ -34,92 +34,92 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-inline" id="carFrm"> <form role="form" class="form-inline" id="carFrm">
<input type="hidden" name="id" value="" class="form-control"> <input type="hidden" name="id" value="" class="form-control">
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车牌号</label> <label class="control-label">车牌号</label>
<input type="text" name="car_no" value="" class="form-control"> <input type="text" name="car_no" value="" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">厂牌型号</label> <label class="control-label">厂牌型号</label>
<input type="text" name="factory_model" value="" class="form-control"> <input type="text" name="factory_model" value="" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">品牌</label> <label class="control-label">品牌</label>
<select name="brand_id" id="brand_info" class="form-control"> <select name="brand_id" id="brand_info" class="form-control">
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车系</label> <label class="control-label">车系</label>
<select name="series_id" id="series_info" class="form-control"> <select name="series_id" id="series_info" class="form-control">
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">发动机号</label> <label class="control-label">发动机号</label>
<input type="text" name="engine_no" value="" class="form-control"> <input type="text" name="engine_no" value="" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车架号</label> <label class="control-label">车架号</label>
<input type="text" name="car_frame_no" value="" <input type="text" name="car_frame_no" value=""
class="form-control"> class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">初登日期</label> <label class="control-label">初登日期</label>
<input type="text" class="input-date form-control" id="register_date" name="register_date" <input type="text" class="input-date form-control" id="register_date" name="register_date"
autocomplete="off" value=""/> autocomplete="off" value=""/>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">排量</label> <label class="control-label">排量</label>
<select name="displacement_id" id="displacement_info" class="form-control"> <select name="displacement_id" id="displacement_info" class="form-control">
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车辆类型</label> <label class="control-label">车辆类型</label>
<select name="car_type_id" id="car_type_info" class="form-control"> <select name="car_type_id" id="car_type_info" class="form-control">
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">运营性质</label> <label class="control-label">运营性质</label>
<select name="car_use_id" id="car_use_info" class="form-control"> <select name="car_use_id" id="car_use_info" class="form-control">
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">座位数</label> <label class="control-label">座位数</label>
<input type="text" name="seats" value="" class="form-control"> <input type="text" name="seats" value="" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">年份</label> <label class="control-label">年份</label>
<input type="text" name="car_year" value="" class="form-control"> <input type="text" name="car_year" value="" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车主</label> <label class="control-label">车主</label>
<input type="text" name="car_man" value="" class="form-control"> <input type="text" name="car_man" value="" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">联系电话</label> <label class="control-label">联系电话</label>
<input type="text" name="phone" value="" class="form-control"> <input type="text" name="phone" value="" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">证件号码</label> <label class="control-label">证件号码</label>
<input type="text" name="car_man_number" value="" <input type="text" name="car_man_number" value=""
class="form-control"> class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">商业止保日期</label> <label class="control-label">商业止保日期</label>
<input type="text" class="input-date form-control" id="insurer1_date" name="insurer1_date" <input type="text" class="input-date form-control" id="insurer1_date" name="insurer1_date"
autocomplete="off" value=""/> autocomplete="off" value=""/>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">交强止保日期</label> <label class="control-label">交强止保日期</label>
<input type="text" class="input-date form-control" id="insurer2_date" name="insurer2_date" <input type="text" class="input-date form-control" id="insurer2_date" name="insurer2_date"
autocomplete="off" value=""/> autocomplete="off" value=""/>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">保险公司</label> <label class="control-label">保险公司</label>
<input type="text" name="company" value="" class="form-control"> <input type="text" name="company" value="" class="form-control">
</div> </div>
<div class="form-group col-md-12" style="margin-bottom: 8px;"> <div class="form-group col-sm-12" style="margin-bottom: 8px;">
<label class="control-label">备注</label> <label class="control-label">备注</label>
<textarea class="form-control" name="remark" <textarea class="form-control" name="remark"
style="width: calc(100% - 155px);min-height: 100px;"></textarea> style="width: calc(100% - 155px);min-height: 100px;"></textarea>
@ -241,15 +241,15 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-inline clearfix" id="appointmentFrm"> <form role="form" class="form-inline clearfix" id="appointmentFrm">
<input type="hidden" name="car_id" class="car_id" value=""/> <input type="hidden" name="car_id" class="car_id" value=""/>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">预约日期</label> <label class="control-label">预约日期</label>
<input type="text" class="input-date form-control" id="pdate" name="pdate" autocomplete="off" <input type="text" class="input-date form-control" id="pdate" name="pdate" autocomplete="off"
value=""/> value=""/>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">预约时间</label> <label class="control-label">预约时间</label>
<select name="ptime" class="form-control"> <select name="ptime" class="form-control">
<option>08:00</option> <option>08:00</option>
@ -272,35 +272,35 @@ use \common\libs\MyLib;
<option>17:00</option> <option>17:00</option>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">预约类型</label> <label class="control-label">预约类型</label>
<select name="ptype" id="appointment_type_info" class="form-control"> <select name="ptype" id="appointment_type_info" class="form-control">
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">当天预约人数</label> <label class="control-label">当天预约人数</label>
<input type="text" id="day_count" value="0" disabled class="form-control"> <input type="text" id="day_count" value="0" disabled class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">业务分组</label> <label class="control-label">业务分组</label>
<select name="business_group_id" id="business_group_info" class="form-control"></select> <select name="business_group_id" id="business_group_info" class="form-control"></select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">预约备注</label> <label class="control-label">预约备注</label>
<textarea class="form-control" name="remark"></textarea> <textarea class="form-control" name="remark"></textarea>
</div> </div>
<div class="form-group col-md-3" id="appointment_btn" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" id="appointment_btn" style="margin-bottom: 8px;">
<button type="button" class="btn btn-primary" onclick="appointmentSave()">预约保存</button> <button type="button" class="btn btn-primary" onclick="appointmentSave()">预约保存</button>
<button type="button" class="btn btn-primary" onclick="nextInfo()">下一个</button> <button type="button" class="btn btn-primary" onclick="nextInfo()">下一个</button>
<button type="button" class="btn btn-primary" onclick="goBack()">返回</button> <button type="button" class="btn btn-primary" onclick="goBack()">返回</button>
</div> </div>
<hr> <hr>
<div class="form-group col-md-13" style="margin-bottom: 8px;"> <div class="form-group col-sm-13" style="margin-bottom: 8px;">
<label class="control-label">无效数据</label> <label class="control-label">无效数据</label>
<select name="invalid_id" id="invalid_info" class="form-control"> <select name="invalid_id" id="invalid_info" class="form-control">
</select> </select>
</div> </div>
<div class="form-group col-md-13" style="margin-bottom: 8px;"> <div class="form-group col-sm-13" style="margin-bottom: 8px;">
<button type="button" class="btn btn-primary m-l" onclick="appointmentInvalid()">无效数据</button> <button type="button" class="btn btn-primary m-l" onclick="appointmentInvalid()">无效数据</button>
</div> </div>
</form> </form>
@ -335,7 +335,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="insurer_order_table"> <table id="insurer_order_table">
<thead> <thead>
<tr> <tr>
@ -367,7 +367,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="new_gift_table"> <table id="new_gift_table">
<thead> <thead>
<tr> <tr>
@ -381,7 +381,7 @@ use \common\libs\MyLib;
</table> </table>
</div> </div>
<hr> <hr>
<div class="col-md-12"> <div class="col-sm-12">
<table id="old_gift_table"> <table id="old_gift_table">
<thead> <thead>
<tr> <tr>
@ -412,7 +412,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="car_history_table"> <table id="car_history_table">
<thead> <thead>
<tr> <tr>

@ -30,83 +30,83 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-inline" id="carFrm"> <form role="form" class="form-inline" id="carFrm">
<input type="hidden" name="id" value="" class="form-control"> <input type="hidden" name="id" value="" class="form-control">
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车牌号</label> <label class="control-label">车牌号</label>
<span class="car-info" data-name="car_no"></span> <span class="car-info" data-name="car_no"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">厂牌型号</label> <label class="control-label">厂牌型号</label>
<span class="car-info" data-name="factory_model"></span> <span class="car-info" data-name="factory_model"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">品牌</label> <label class="control-label">品牌</label>
<span class="car-info" data-name="brand_txt"></span> <span class="car-info" data-name="brand_txt"></span>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车系</label> <label class="control-label">车系</label>
<span class="car-info" data-name="series_txt"></span> <span class="car-info" data-name="series_txt"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">发动机号</label> <label class="control-label">发动机号</label>
<span class="car-info" data-name="engine_no"></span> <span class="car-info" data-name="engine_no"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车架号</label> <label class="control-label">车架号</label>
<span class="car-info" data-name="car_frame_no"></span> <span class="car-info" data-name="car_frame_no"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">初登日期</label> <label class="control-label">初登日期</label>
<span class="car-info" data-name="register_date"></span> <span class="car-info" data-name="register_date"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">排量</label> <label class="control-label">排量</label>
<span class="car-info" data-name="displacement_txt"></span> <span class="car-info" data-name="displacement_txt"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车辆类型</label> <label class="control-label">车辆类型</label>
<span class="car-info" data-name="car_type_txt"></span> <span class="car-info" data-name="car_type_txt"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">运营性质</label> <label class="control-label">运营性质</label>
<span class="car-info" data-name="car_use_txt"></span> <span class="car-info" data-name="car_use_txt"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">座位数</label> <label class="control-label">座位数</label>
<span class="car-info" data-name="seats"></span> <span class="car-info" data-name="seats"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">年份</label> <label class="control-label">年份</label>
<span class="car-info" data-name="car_year"></span> <span class="car-info" data-name="car_year"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车主</label> <label class="control-label">车主</label>
<span class="car-info" data-name="car_man"></span> <span class="car-info" data-name="car_man"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">联系电话</label> <label class="control-label">联系电话</label>
<span class="car-info" data-name="phone"></span> <span class="car-info" data-name="phone"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">证件号码</label> <label class="control-label">证件号码</label>
<span class="car-info" data-name="car_man_number"></span> <span class="car-info" data-name="car_man_number"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">商业止保日期</label> <label class="control-label">商业止保日期</label>
<span class="car-info" data-name="insurer1_date"></span> <span class="car-info" data-name="insurer1_date"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">交强止保日期</label> <label class="control-label">交强止保日期</label>
<span class="car-info" data-name="insurer2_date"></span> <span class="car-info" data-name="insurer2_date"></span>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">保险公司</label> <label class="control-label">保险公司</label>
<span class="car-info" data-name="company"></span> <span class="car-info" data-name="company"></span>
</div> </div>
<div class="form-group col-md-12" style="margin-bottom: 8px;"> <div class="form-group col-sm-12" style="margin-bottom: 8px;">
<label class="control-label">备注</label> <label class="control-label">备注</label>
<span class="car-info" data-name="remark"></span> <span class="car-info" data-name="remark"></span>
</div> </div>
@ -227,15 +227,15 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-inline clearfix" id="appointmentFrm"> <form role="form" class="form-inline clearfix" id="appointmentFrm">
<input type="hidden" name="car_id" class="car_id" value=""/> <input type="hidden" name="car_id" class="car_id" value=""/>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">预约日期</label> <label class="control-label">预约日期</label>
<input type="text" class="input-date form-control" id="pdate" name="pdate" autocomplete="off" <input type="text" class="input-date form-control" id="pdate" name="pdate" autocomplete="off"
value=""/> value=""/>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">预约时间</label> <label class="control-label">预约时间</label>
<select name="ptime" class="form-control"> <select name="ptime" class="form-control">
<option>08:00</option> <option>08:00</option>
@ -258,35 +258,35 @@ use \common\libs\MyLib;
<option>17:00</option> <option>17:00</option>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">预约类型</label> <label class="control-label">预约类型</label>
<select name="ptype" id="appointment_type_info" class="form-control"> <select name="ptype" id="appointment_type_info" class="form-control">
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">当天预约人数</label> <label class="control-label">当天预约人数</label>
<input type="text" id="day_count" value="0" disabled class="form-control"> <input type="text" id="day_count" value="0" disabled class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">业务分组</label> <label class="control-label">业务分组</label>
<select name="business_group_id" id="business_group_info" class="form-control"></select> <select name="business_group_id" id="business_group_info" class="form-control"></select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">预约备注</label> <label class="control-label">预约备注</label>
<textarea class="form-control" name="remark"></textarea> <textarea class="form-control" name="remark"></textarea>
</div> </div>
<div class="form-group col-md-3" id="appointment_btn" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" id="appointment_btn" style="margin-bottom: 8px;">
<button type="button" class="btn btn-primary" onclick="appointmentSave()">预约保存</button> <button type="button" class="btn btn-primary" onclick="appointmentSave()">预约保存</button>
<button type="button" class="btn btn-primary" onclick="nextInfo()">下一个</button> <button type="button" class="btn btn-primary" onclick="nextInfo()">下一个</button>
<button type="button" class="btn btn-primary" onclick="goBack()">返回</button> <button type="button" class="btn btn-primary" onclick="goBack()">返回</button>
</div> </div>
<hr> <hr>
<div class="form-group col-md-13" style="margin-bottom: 8px;"> <div class="form-group col-sm-13" style="margin-bottom: 8px;">
<label class="control-label">无效数据</label> <label class="control-label">无效数据</label>
<select name="invalid_id" id="invalid_info" class="form-control"> <select name="invalid_id" id="invalid_info" class="form-control">
</select> </select>
</div> </div>
<div class="form-group col-md-13" style="margin-bottom: 8px;"> <div class="form-group col-sm-13" style="margin-bottom: 8px;">
<button type="button" class="btn btn-primary m-l" onclick="appointmentInvalid()">无效数据</button> <button type="button" class="btn btn-primary m-l" onclick="appointmentInvalid()">无效数据</button>
</div> </div>
</form> </form>
@ -321,7 +321,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="insurer_order_table"> <table id="insurer_order_table">
<thead> <thead>
<tr> <tr>
@ -353,7 +353,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="new_gift_table"> <table id="new_gift_table">
<thead> <thead>
<tr> <tr>
@ -367,7 +367,7 @@ use \common\libs\MyLib;
</table> </table>
</div> </div>
<hr> <hr>
<div class="col-md-12"> <div class="col-sm-12">
<table id="old_gift_table"> <table id="old_gift_table">
<thead> <thead>
<tr> <tr>
@ -398,7 +398,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="car_history_table"> <table id="car_history_table">
<thead> <thead>
<tr> <tr>

@ -181,7 +181,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -319,7 +319,7 @@ use common\models\PriceT;
</table> </table>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button type="button" class="btn btn-primary btn-save" type="button"> <button type="button" class="btn btn-primary btn-save" type="button">
<strong>保 存</strong> <strong>保 存</strong>
</button> </button>

@ -46,10 +46,10 @@
<label for="caller">被保险人</label> <label for="caller">被保险人</label>
<input type="text" id="id_man" name="id_man" class="form-control"> <input type="text" id="id_man" name="id_man" class="form-control">
</div> </div>
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -9,18 +9,18 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">名称</label> <label class="col-sm-1 control-label">名称</label>
<div class="col-md-6"> <div class="col-sm-6">
<input type="text" name="name" value="<?=$info->name?>" class="form-control"> <input type="text" name="name" value="<?=$info->name?>" class="form-control">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong><?=$info ? '保 存':'添 加'?></strong> <strong><?=$info ? '保 存':'添 加'?></strong>
</button> </button>

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -16,18 +16,18 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=$user_info->id?>"> <input type="hidden" name="id" value="<?=$user_info->id?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">呼叫电话</label> <label class="col-sm-2 control-label">呼叫电话</label>
<div class="col-md-5"> <div class="col-sm-5">
<input type="text" name="phone" id="phone" value="" class="form-control" autocomplete="off"> <input type="text" name="phone" id="phone" value="" class="form-control" autocomplete="off">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-3"> <div class="col-sm-5 col-sm-offset-3">
<button class="btn btn-primary btn-call" type="button"> <button class="btn btn-primary btn-call" type="button">
<strong>呼叫</strong> <strong>呼叫</strong>
</button> </button>

@ -1,75 +0,0 @@
<?php
use yii\helpers\Html;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>车务管理系统</title>
<link href="/css/left_css.css" rel="stylesheet" type="text/css">
<?=Html::csrfMetaTags() ?>
</head>
<body bgcolor="16ACFF">
<table width="170" border="0" cellpadding="0" cellspacing="0" background="/images/tablemde.jpg">
<?php
foreach($menu_items as $item) {
?>
<tr>
<td height="5" background="/images/tableline_top.jpg" bgcolor="#16ACFF"></td>
</tr>
<tr>
<td>
<TABLE width="97%" border=0 align=right cellPadding=0 cellSpacing=0 class=leftframetable>
<TBODY>
<TR>
<TD height="25" style="background:url(/images/left_tt.gif) no-repeat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD width="20"></TD>
<TD class=STYLE1 style="CURSOR: hand" onclick=showsubmenu(<?=$item['id']?>); height=25><?=$item['name']?></TD>
</tr>
</table>
</TD>
</TR>
<TR>
<TD>
<TABLE id="submenu<?=$item['id']?>" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<?php
if(isset($item['children'])) {
foreach($item['children'] as $sub_item) {
?>
<TR>
<TD width="2%"><IMG src="/images/closed.gif"></TD>
<TD height=23><A href="javascript:void(0);" onclick="parent.openTab({'id':<?=$sub_item['id']?>,'name':'<?=$sub_item['name']?>','path':'<?=$sub_item['path']?>'});"><?=$sub_item['name']?></A></TD>
</TR>
<?php
}}
?>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td height="5" background="/images/tableline_bottom.jpg" bgcolor="#9BC2ED"></td>
</tr>
<?php
}
?>
</table>
<SCRIPT language=JavaScript>
function showsubmenu(sid) {
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none") {
eval("submenu" + sid + ".style.display=\"\";");
}
else {
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
</body>
</html>

@ -1,100 +0,0 @@
<?php
use yii\helpers\Html;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>车务管理系统</title>
<link href="/css/top_css.css" rel="stylesheet" type="text/css">
<?=Html::csrfMetaTags() ?>
</head>
<body bgcolor="#03A8F6">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="194" height="60" align="center" background="/images/top_logo.png"></td>
<td align="center" style="background:url(/images/top_bg.jpg) no-repeat">
<table cellspacing="0" cellpadding="0" border="0" width="100%" height="33">
<tbody>
<tr>
<td width="0" align="left">
</td>
<td align="right">
<!-- <button disabled>不需要签入、签出</button>-->
<!-- <input id="tpy_phone" name="tpy_phone" type="Text">-->
<!-- <button id="tpy_call_in" onclick="tpy_call_in()">拨号</button>-->
<!-- <button id="tpy_call_out" onclick="tpy_call_out()">挂断</button>-->
当前用户:<?=$this->context->my->getShowName()?>&nbsp;&nbsp;
</td>
</tr>
<tr>
<td colspan="2">
<div id="tip_info">
<!-- 今日提单数:0个 未处理退单数: 0个-->
</div>
</td>
</tr>
</tbody>
</table>
<table height="26" border="0" align="right" cellpadding="0" cellspacing="0" class="subbg" NAME=t1>
<tbody>
<tr align="middle">
<td width="71" align="center" valign="middle" background="/images/top_tt_bg.gif"><a href="javascript:void(0);" class="STYLE2" onclick="parent.openTab({'id':0,'name':'修改密码','path':'/common/update-pwd'});">修改密码</a></td>
<td width="71" align="center" valign="middle" background="/images/top_tt_bg.gif"><a href="javascript:void(0);" id="logout-btn" target="_top" class="STYLE2">退出登录</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr height="6">
<td bgcolor="#1F3A65" background="/images/top_bg.jpg"></td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript">
<!--
$(function(){
$("#logout-btn").click(function(){
window.top.location.href = "/common/logout";
});
});
//-->
//太平洋测试拨号挂断
function tpy_call_in(){
var tpy_phone = $("#tpy_phone").val();
alert(tpy_phone);
if(tpy_phone == ""){
alert("请输入号码");
return false;
}
var ext_phone = '<?= $this->context->my->ext_phone ?>';
$.post('/tpy-phone/call-to',{ext_phone:ext_phone,phone_num:tpy_phone},function(obj){
if(obj.success) {
//$('#tpy_call_in').attr('disabled',true);
//$('#tpy_call_out').removeAttr('disabled');
alert(obj.msg);
}else{
alert(obj.msg);
}
},'json');
}
//太平洋测试挂断电话
function tpy_call_out(){
var ext_phone = '<?= $this->context->my->ext_phone ?>';
$.post('/tpy-phone/hang-up',{ext_phone:ext_phone},function(obj){
if(obj.success) {
//$('#tpy_call_out').attr('disabled',true);
//$('#tpy_call_in').removeAttr('disabled');
alert(obj.msg);
}else{
alert(obj.msg);
}
},'json');
}
</script>
</body>
</html>

@ -11,42 +11,42 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=$user_info->id?>"> <input type="hidden" name="id" value="<?=$user_info->id?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">工号</label> <label class="col-sm-1 control-label">工号</label>
<div class="col-md-6"> <div class="col-sm-6">
<label class="form-control-static"><?=$user_info->username?></label> <label class="form-control-static"><?=$user_info->username?></label>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">姓名</label> <label class="col-sm-1 control-label">姓名</label>
<div class="col-md-6"> <div class="col-sm-6">
<label class="form-control-static"><?=$user_info->name?></label> <label class="form-control-static"><?=$user_info->name?></label>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">电话</label> <label class="col-sm-1 control-label">电话</label>
<div class="col-md-6"> <div class="col-sm-6">
<label class="form-control-static"><?=$user_info->phone?></label> <label class="form-control-static"><?=$user_info->phone?></label>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">新密码</label> <label class="col-sm-1 control-label">新密码</label>
<div class="col-md-6"> <div class="col-sm-6">
<input type="password" name="pwd" value="" class="form-control"> <input type="password" name="pwd" value="" class="form-control">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">确认密码</label> <label class="col-sm-1 control-label">确认密码</label>
<div class="col-md-6"> <div class="col-sm-6">
<input type="password" name="re_pwd" value="" class="form-control"> <input type="password" name="re_pwd" value="" class="form-control">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong>修改密码</strong> <strong>修改密码</strong>
</button> </button>

@ -48,7 +48,7 @@ use \common\libs\MyLib;
<label for="datepicker1">初登日期</label> <label for="datepicker1">初登日期</label>
<div class="input-group input-daterange" id="datepicker1"> <div class="input-group input-daterange" id="datepicker1">
<input type="text" class="input-sm form-control" id="register_begin" name="register_begin" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="register_begin" name="register_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="register_end" name="register_end" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="register_end" name="register_end" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -56,7 +56,7 @@ use \common\libs\MyLib;
<label for="datepicker2">保险日期</label> <label for="datepicker2">保险日期</label>
<div class="input-group input-daterange" id="datepicker2"> <div class="input-group input-daterange" id="datepicker2">
<input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -118,7 +118,7 @@ use \common\libs\MyLib;
</div> </div>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -1,233 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
//编辑
function edit(id) {
var params = $('#searchForm').serialize();
window.location.href = '/car/edit?id=' + id + '&back_params=' + encodeURIComponent(params);
}
//详情
function info(id) {
var params = $('#searchForm').serialize();
window.location.href = '/filtrationt/info?id=' + id + '&back_params=' + encodeURIComponent(params);
}
function getData() {
$.get('/database/ajax-a-data', function (obj) {
alert(obj.msg);
if (obj.success) {
window.location.reload();
}
}, 'json');
}
$(function(){
$("#search-btn").click(function(){
$('#page').val(0);
var params = $('#searchForm').serialize();
window.location.href = "/database/ad-clean-index?" + params;
});
$('#all-assign-btn').click(function(){
if(confirm('是否确认批量分配操作?')) {
var params = $('#searchForm').serialize();
$.post('/database/b-all-assign',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.reload();
}
},'json');
}
});
$('.invalid-btn').click(function(){
if(confirm('是否确认无效?')) {
var params = $('#listFrm').serialize();
var invalid_id = $('#invalid_id').val();
params = params + '&invalid_id=' + invalid_id;
$.post('/database/invalid',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.reload();
}
},'json');
}
});
$('#assign-btn').click(function(){
if(confirm('是否确认分配操作?')) {
var params = $('#listFrm').serialize();
var user_id = $('#user_id').val();
params = params + '&user_id=' + user_id;
$.post('/database/clean-assign',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.reload();
}
},'json');
}
});
$('#return-btn').click(function(){
var yuyue = $('#yuyue').val();
var fenpei = $('#fenpei').val();
if(yuyue!=1 || fenpei!=1){
alert('请先选择未预约选项和未分配选项');
return;
}
if(confirm('是否确认收回操作?')) {
var params = $('#listFrm').serialize();
$.post('/database/clean-return-a',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.reload();
}
},'json');
}
});
$('#return-all-btn').click(function(){
var yuyue = $('#yuyue').val();
var fenpei = $('#fenpei').val();
if(yuyue!=1 || fenpei!=1){
alert('请先选择未预约选项和未分配选项');
return;
}
if(confirm('是否确认收回操作?')) {
var params = $('#searchForm').serialize();
$.post('/database/clean-return-all-a',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.reload();
}
},'json');
}
});
$('#all').click(function(){
if($(this).prop('checked')==true) {
$('input:checkbox').each(function() {
$(this).prop('checked', true);
});
} else {
$('input:checkbox').each(function () {
$(this).prop('checked',false);
});
}
});
});
</script>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<form id="searchForm">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<tr>
<td class="td_bg">
车牌:<input name="car_no" type="text" value="<?=$car_no?>" style="width:100px;">
车主:<input name="car_man" type="text" value="<?=$car_man?>" style="width:100px;">
联系电话:<input name="phone" type="text" value="<?=$phone?>" style="width:100px;">
初登日期:从<input class="act_date" name="register_begin" type="text" value="<?=$register_begin?>" onclick="WdatePicker()"><input class="act_date" name="register_end" type="text" value="<?=$register_end?>" onclick="WdatePicker()">截止
保险公司:<input name="company" type="text" value="<?=$company?>" style="width:100px;">
</td>
</tr>
<style>
/*.day_date{*/
/*width: 10px;*/
/*}*/
</style>
<tr>
<td class="td_bg">
保险日期:从<input class="act_date" name="insurer1_begin" type="text" value="<?=$insurer1_begin?>" onclick="WdatePicker()"><input class="act_date" name="insurer1_end" type="text" value="<?=$insurer1_end?>" onclick="WdatePicker()">截止
预约状态:<select name="yuyue" id="yuyue">
<option value="">全部</option>
<option value="1" <?=$yuyue==1?'selected':''?>>未预约</option>
<option value="2" <?=$yuyue==2?'selected':''?>>已预约</option>
</select>
分配状态:<select name="status" id="fenpei">
<option value="3">全部</option>
<option value="1" <?=$status==1?'selected':''?>>未分配</option>
<option value="2" <?=$status==2?'selected':''?>>已分配</option>
</select>
导入状态:<select name="repeat">
<option value="0">全部</option>
<option value="1" <?=$repeat==1?'selected':''?>>原始导入</option>
<option value="2" <?=$repeat==2?'selected':''?>>二次导入</option>
</select>
<!-- 工号:<input name="username" type="text" value="--><?//=$username?><!--" style="width:50px;">-->
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索">
</td>
</tr>
<tr>
<td class="td_bg">
<!-- 业务员:<select name="user_id" id="user_id">-->
<!-- <option value="0">请选择</option>-->
<!-- --><?php
// foreach($user_items as $item) {
// echo '<option value="'.$item->id.'"';
// if($item->id == $user_id)
// echo ' selected ';
// echo '>'.$item->getShowName().'</option>';
// }
// ?>
<!-- </select>-->
<!-- <input type="button" class="act_btn" id="assign-btn" name="assign-btn" value="勾选分配">-->
<input type="button" class="act_btn" id="return-btn" name="return-btn" value="勾选收回">
<input type="button" class="act_btn" id="return-all-btn" name="return-all-btn" value="批量收回">
<!-- 分配给业务员 <input id="assign_users" name="assign_users" type="text" value="" style="width:100px;">-->
<!-- 每个业务员分配 <input id="assign_count" name="assign_count" type="text" value="" style="width:50px;"> 条记录-->
<!-- <input type="button" class="act_btn" id="all-assign-btn" name="all-assign-btn" value="批量分配">-->
</td>
</tr>
</form>
<tr>
<td class="td_bg"><span>总任务数:<?=$carAcount?></span>&nbsp;&nbsp;<input class="act_btn" type="button" onclick="getData()" value="领取数据"></td>
</tr>
</table>
<form id="listFrm">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td align="center" width="24" align="center" class="bg_tr"><input type="checkbox" id="all"></td>
<td width="78" align="center" align="center" class="bg_tr" nowrap>车牌</td>
<td width="78" align="center" align="center" class="bg_tr" nowrap>车型</td>
<td width="78" align="center" align="center" class="bg_tr" nowrap>车主</td>
<td width="78" align="center" align="center" class="bg_tr" nowrap>联系电话</td>
<td width="78" align="center" align="center" class="bg_tr" nowrap>初登日期</td>
<td width="78" align="center" align="center" class="bg_tr" nowrap>保险日期</td>
<td width="78" align="center" align="center" class="bg_tr" nowrap>保险公司</td>
<td width="78" align="center" align="center" class="bg_tr" nowrap>发动机号</td>
<td width="96" align="center" align="center" class="bg_tr" nowrap>车架号</td>
<td width="50" align="center" align="center" class="bg_tr" nowrap>操作员</td>
<!-- <td width="50" align="center" align="center" class="bg_tr" nowrap>详情</td>-->
</tr>
<?php
foreach($items as $index => $item) {
$car_info = $item->car;
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg"nowrap ><input type="checkbox" name="ids[]" value="<?=$car_info->id?>"></td>
<td align="left" class="td_bg"nowrap ><?=$car_info->car_no?></td>
<td align="left" class="td_bg"nowrap ><?=MyLib::substr_cut($car_info->factory_model,10)?></td>
<td align="left" class="td_bg"nowrap ><?=MyLib::substr_cut($car_info->car_man,10)?></td>
<td align="left" class="td_bg"nowrap ><?=$car_info->phone?></td>
<td align="left" class="td_bg"nowrap ><?=$car_info->register_date?></td>
<td align="left" class="td_bg"nowrap ><?=$car_info->insurer1_date?></td>
<td align="left" class="td_bg"nowrap ><?=$car_info->company?></td>
<td align="left" class="td_bg"nowrap ><?=$car_info->engine_no?></td>
<td align="left" class="td_bg"nowrap ><?=$car_info->car_frame_no?></td>
<td align="left" class="td_bg"nowrap ><?=$item->user?$item->user->getShowName():''?></td>
</tr>
<?php
}
?>
<tr >
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
</tr>
</table>
</form>

@ -33,7 +33,7 @@ use \common\libs\MyLib;
<label for="datepicker1">初登日期</label> <label for="datepicker1">初登日期</label>
<div class="input-daterange input-group" id="datepicker1"> <div class="input-daterange input-group" id="datepicker1">
<input type="text" class="input-sm form-control" id="register_begin" name="register_begin" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="register_begin" name="register_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="register_end" name="register_end" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="register_end" name="register_end" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -41,7 +41,7 @@ use \common\libs\MyLib;
<label for="datepicker2">保险日期</label> <label for="datepicker2">保险日期</label>
<div class="input-daterange input-group" id="datepicker2"> <div class="input-daterange input-group" id="datepicker2">
<input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -96,7 +96,7 @@ use \common\libs\MyLib;
</div> </div>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -33,7 +33,7 @@ use \common\libs\MyLib;
<label for="datepicker1">出单日期</label> <label for="datepicker1">出单日期</label>
<div class="input-daterange input-group" id="datepicker1"> <div class="input-daterange input-group" id="datepicker1">
<input type="text" class="input-sm form-control" id="print_begin" name="print_begin" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="print_begin" name="print_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="print_end" name="print_end" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="print_end" name="print_end" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -41,7 +41,7 @@ use \common\libs\MyLib;
<label for="datepicker2">保险日期</label> <label for="datepicker2">保险日期</label>
<div class="input-daterange input-group" id="datepicker2"> <div class="input-daterange input-group" id="datepicker2">
<input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -96,7 +96,7 @@ use \common\libs\MyLib;
</div> </div>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -33,7 +33,7 @@ use \common\libs\MyLib;
<label for="datepicker2">保险日期</label> <label for="datepicker2">保险日期</label>
<div class="input-daterange input-group" id="datepicker2"> <div class="input-daterange input-group" id="datepicker2">
<input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -86,7 +86,7 @@ use \common\libs\MyLib;
</div> </div>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -1,94 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-content">
<form role="form" class="form-horizontal" id="searchFrm" onsubmit="return search();">
<div class="form-group">
<label class="control-label col-sm-1">车牌</label>
<div class="col-sm-3">
<input type="text" id="car_no" name="car_no" class="form-control">
</div>
<label class="control-label col-sm-1">车主</label>
<div class="col-sm-3">
<input type="text" id="car_man" name="car_man" class="form-control">
</div>
<label class="control-label col-sm-1">联系电话</label>
<div class="col-sm-3">
<input type="text" id="phone" name="phone" class="form-control">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-1">初登日期</label>
<div class="col-sm-3">
<div class="input-daterange input-group" id="datepicker">
<input type="text" class="input-sm form-control" name="register_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" name="register_end" value="" autocomplete="off" />
</div>
</div>
<label class="control-label col-sm-1">保险日期</label>
<div class="col-sm-3">
<div class="input-daterange input-group" id="datepicker">
<input type="text" class="input-sm form-control" name="insurer1_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" name="insurer1_end" value="" autocomplete="off" />
</div>
</div>
<label class="control-label col-sm-1">保险公司</label>
<div class="col-sm-3">
<input type="text" id="company" name="company" class="form-control">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-1">无效理由</label>
<div class="col-sm-3">
<select class="form-control" id="invalid_id" name="invalid_id">
<option value="0">请选择无效理由</option>
<?php foreach($invalid_items as $item) {
echo '<option value="'.$item->id.'">'.$item->name.'</option>';
}
?>
</select>
</div>
<label class="control-label col-sm-1">操作者</label>
<div class="col-sm-3">
<input type="text" id="username" name="username" class="form-control">
</div>
</div>
<div class="form-group">
<div class="col-sm-3 col-sm-offset-5">
<button type="submit" class="btn btn-primary">搜索</button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script type="text/javascript" language="javascript">
function search() {
var o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
parent.o = o;
parent.refreshList();
layer_close();
}
$(function () {
$('.input-daterange').datepicker({
keyboardNavigation: false,
forceParse: false,
autoclose: true
});
})
</script>
<?php $this->endBlock('footer_js'); ?>

@ -33,7 +33,7 @@ use \common\libs\MyLib;
<label for="datepicker1">初登日期</label> <label for="datepicker1">初登日期</label>
<div class="input-daterange input-group" id="datepicker1"> <div class="input-daterange input-group" id="datepicker1">
<input type="text" class="input-sm form-control" id="register_begin" name="register_begin" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="register_begin" name="register_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="register_end" name="register_end" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="register_end" name="register_end" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -41,7 +41,7 @@ use \common\libs\MyLib;
<label for="datepicker2">保险日期</label> <label for="datepicker2">保险日期</label>
<div class="input-daterange input-group" id="datepicker2"> <div class="input-daterange input-group" id="datepicker2">
<input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_begin" name="insurer1_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="insurer1_end" name="insurer1_end" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -60,7 +60,7 @@ use \common\libs\MyLib;
<button type="button" class="btn btn-primary btn-assign-all mb-8">批量恢复</button> <button type="button" class="btn btn-primary btn-assign-all mb-8">批量恢复</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -9,16 +9,16 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">名称</label> <label class="col-sm-1 control-label">名称</label>
<div class="col-md-5"> <div class="col-sm-5">
<input type="text" name="name" value="<?=$info->name?>" class="form-control"> <input type="text" name="name" value="<?=$info->name?>" class="form-control">
</div> </div>
<label class="col-md-1 control-label">所属城市</label> <label class="col-sm-1 control-label">所属城市</label>
<div class="col-md-5"> <div class="col-sm-5">
<select name="city_id" id="city_id" class="form-control"> <select name="city_id" id="city_id" class="form-control">
<option value="0">---请选择---</option> <option value="0">---请选择---</option>
<?php <?php
@ -33,14 +33,14 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">排序</label> <label class="col-sm-1 control-label">排序</label>
<div class="col-md-5"> <div class="col-sm-5">
<input type="text" name="order_id" value="<?=$info->order_id?>" class="form-control"> <input type="text" name="order_id" value="<?=$info->order_id?>" class="form-control">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong><?=$info ? '保 存':'添 加'?></strong> <strong><?=$info ? '保 存':'添 加'?></strong>
</button> </button>

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -77,7 +77,7 @@ use \common\libs\MyLib;
<button type="button" class="btn btn-primary mb-8 btn-save">保存</button> <button type="button" class="btn btn-primary mb-8 btn-save">保存</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -12,7 +12,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<div class="form-group"> <div class="form-group">
<label class="control-label col-sm-1">文件</label> <label class="control-label col-sm-1">文件</label>
@ -27,7 +27,7 @@ use \common\libs\MyLib;
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong>提 交</strong> <strong>提 交</strong>
</button> </button>

@ -18,7 +18,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<div class="form-group"> <div class="form-group">
<label class="col-sm-1 control-label">职务</label> <label class="col-sm-1 control-label">职务</label>
<div class="col-sm-3"> <div class="col-sm-3">
@ -46,7 +46,7 @@ use \common\libs\MyLib;
<?php if($pay_info->status_id < 4 || $pay_info->status_id == 8) { ?> <?php if($pay_info->status_id < 4 || $pay_info->status_id == 8) { ?>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong>保 存</strong> <strong>保 存</strong>
</button> </button>
@ -64,7 +64,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<?php if($my_type1_query->count() > 0) { ?> <?php if($my_type1_query->count() > 0) { ?>
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>

@ -65,7 +65,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary mb-8">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -15,7 +15,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<div class="form-group"> <div class="form-group">
<label class="col-sm-1 control-label">职务</label> <label class="col-sm-1 control-label">职务</label>
<div class="col-sm-3"> <div class="col-sm-3">
@ -56,7 +56,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<div class="form-group"> <div class="form-group">
<label class="col-sm-1 control-label">职务</label> <label class="col-sm-1 control-label">职务</label>
<div class="col-sm-3"> <div class="col-sm-3">
@ -84,7 +84,7 @@ use \common\libs\MyLib;
<?php if($pay_info->status_id < 5 || $pay_info->status_id == 8) { ?> <?php if($pay_info->status_id < 5 || $pay_info->status_id == 8) { ?>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-back" type="button"> <button class="btn btn-primary btn-back" type="button">
<strong>退 回</strong> <strong>退 回</strong>
</button> </button>
@ -215,7 +215,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<?php if($my_type1_query->count() > 0) { ?> <?php if($my_type1_query->count() > 0) { ?>
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>

@ -65,7 +65,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary mb-8">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -15,7 +15,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<div class="form-group"> <div class="form-group">
<label class="col-sm-1 control-label">职务</label> <label class="col-sm-1 control-label">职务</label>
<div class="col-sm-3"> <div class="col-sm-3">
@ -56,7 +56,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<div class="form-group"> <div class="form-group">
<label class="col-sm-1 control-label">职务</label> <label class="col-sm-1 control-label">职务</label>
<div class="col-sm-3"> <div class="col-sm-3">
@ -84,14 +84,14 @@ use \common\libs\MyLib;
<?php if($pay_info->status_id < 4 || $pay_info->status_id == 8 || $pay_info->status_id == 10) { ?> <?php if($pay_info->status_id < 4 || $pay_info->status_id == 8 || $pay_info->status_id == 10) { ?>
<div> <div>
<div class="row"> <div class="row">
<div class="col-sm-1 col-md-offset-5"> <div class="col-sm-1 col-sm-offset-5">
<select name="status_id" id="status_id" class="form-control"> <select name="status_id" id="status_id" class="form-control">
<option value="0"></option> <option value="0"></option>
<option value="1">人事管理</option> <option value="1">人事管理</option>
<option value="2">出纳管理</option> <option value="2">出纳管理</option>
</select> </select>
</div> </div>
<div class="col-md-5"> <div class="col-sm-5">
<button class="btn btn-primary btn-back" type="button"> <button class="btn btn-primary btn-back" type="button">
<strong>退 回</strong> <strong>退 回</strong>
</button> </button>
@ -222,7 +222,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<?php if($my_type1_query->count() > 0) { ?> <?php if($my_type1_query->count() > 0) { ?>
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>

@ -65,7 +65,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary mb-8">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -41,7 +41,7 @@ use \common\libs\MyLib;
<label for="datepicker1">出单日期</label> <label for="datepicker1">出单日期</label>
<div class="input-group input-daterange" id="datepicker1"> <div class="input-group input-daterange" id="datepicker1">
<input type="text" class="input-sm form-control" id="begin_date" name="begin_date" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="begin_date" name="begin_date" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="end_date" name="end_date" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="end_date" name="end_date" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -49,7 +49,7 @@ use \common\libs\MyLib;
<label for="datepicker1">回单日期</label> <label for="datepicker1">回单日期</label>
<div class="input-group input-daterange" id="datepicker1"> <div class="input-group input-daterange" id="datepicker1">
<input type="text" class="input-sm form-control" id="r_begin_date" name="r_begin_date" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="r_begin_date" name="r_begin_date" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="r_end_date" name="r_end_date" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="r_end_date" name="r_end_date" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -70,7 +70,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="engine_no">级别</label> <label for="engine_no">级别</label>
<select name="group_id"> <select name="group_id" class="form-control">
<option value="0">全部</option> <option value="0">全部</option>
<?php <?php
foreach($group_items as $item) { foreach($group_items as $item) {
@ -82,7 +82,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary mb-8">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -71,7 +71,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary mb-8">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -70,7 +70,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary mb-8">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -58,7 +58,7 @@ use \common\libs\MyLib;
<label for="datepicker1">出单日期</label> <label for="datepicker1">出单日期</label>
<div class="input-group input-daterange" id="datepicker1"> <div class="input-group input-daterange" id="datepicker1">
<input type="text" class="input-sm form-control" id="begin_date" name="begin_date" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="begin_date" name="begin_date" value="" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" id="end_date" name="end_date" value="" autocomplete="off" /> <input type="text" class="input-sm form-control" id="end_date" name="end_date" value="" autocomplete="off" />
</div> </div>
</div> </div>
@ -130,7 +130,7 @@ use \common\libs\MyLib;
<hr> <hr>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -11,7 +11,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="fix_id" value="<?=$fix_info->id?>"> <input type="hidden" name="fix_id" value="<?=$fix_info->id?>">
<input type="hidden" name="_csrf" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>"> <input type="hidden" name="_csrf" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">

@ -11,7 +11,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="type1ListTable"> <table id="type1ListTable">
<thead> <thead>
<tr> <tr>
@ -38,7 +38,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="type2ListTable"> <table id="type2ListTable">
<thead> <thead>
<tr> <tr>
@ -65,7 +65,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="type3ListTable"> <table id="type3ListTable">
<thead> <thead>
<tr> <tr>
@ -92,7 +92,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="type4ListTable"> <table id="type4ListTable">
<thead> <thead>
<tr> <tr>
@ -119,7 +119,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="type5ListTable"> <table id="type5ListTable">
<thead> <thead>
<tr> <tr>

@ -29,23 +29,23 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-inline" id="theFrm"> <form role="form" class="form-inline" id="theFrm">
<input type="hidden" name="id" id="id" value="<?=$info->id?>" /> <input type="hidden" name="id" id="id" value="<?=$info->id?>" />
<input type="hidden" name="car_id" value="<?=$info->car_id?>" /> <input type="hidden" name="car_id" value="<?=$info->car_id?>" />
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车牌号</label> <label class="control-label">车牌号</label>
<input type="text" name="car_no" value="<?=$info->car_no?>" class="form-control"> <input type="text" name="car_no" value="<?=$info->car_no?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">发动机号</label> <label class="control-label">发动机号</label>
<input type="text" name="engine_no" value="<?=$info->engine_no?>" class="form-control"> <input type="text" name="engine_no" value="<?=$info->engine_no?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车架号</label> <label class="control-label">车架号</label>
<input type="text" name="car_frame_no" value="<?=$info->car_frame_no?>" class="form-control"> <input type="text" name="car_frame_no" value="<?=$info->car_frame_no?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">事故类型</label> <label class="control-label">事故类型</label>
<select name="accident_type" id="accident_type" class="form-control"> <select name="accident_type" id="accident_type" class="form-control">
<option><?=$info->accident_type?></option> <option><?=$info->accident_type?></option>
@ -55,31 +55,31 @@ use \common\libs\MyLib;
<option>自费维修</option> <option>自费维修</option>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">被保险人</label> <label class="control-label">被保险人</label>
<input type="text" name="id_man" value="<?=$info->id_man?>" class="form-control"> <input type="text" name="id_man" value="<?=$info->id_man?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">电话</label> <label class="control-label">电话</label>
<input type="text" name="id_phone" value="<?=$info->id_phone?>" class="form-control"> <input type="text" name="id_phone" value="<?=$info->id_phone?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">联系人</label> <label class="control-label">联系人</label>
<input type="text" name="link_man" value="<?=$info->link_man?>" class="form-control"> <input type="text" name="link_man" value="<?=$info->link_man?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">电话</label> <label class="control-label">电话</label>
<input type="text" name="link_phone" value="<?=$info->link_phone?>" class="form-control"> <input type="text" name="link_phone" value="<?=$info->link_phone?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">保险公司</label> <label class="control-label">保险公司</label>
<input type="text" name="company" value="<?=$info->company?>" class="form-control"> <input type="text" name="company" value="<?=$info->company?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">接车日期</label> <label class="control-label">接车日期</label>
<input type="text" class="input-date form-control" id="receive_date" name="receive_date" autocomplete="off" value="<?=substr($info->receive_date,0,10)?>" /> <input type="text" class="input-date form-control" id="receive_date" name="receive_date" autocomplete="off" value="<?=substr($info->receive_date,0,10)?>" />
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">交车方式</label> <label class="control-label">交车方式</label>
<select name="receive_type" id="receive_type" class="form-control"> <select name="receive_type" id="receive_type" class="form-control">
<option><?=$info->receive_type?></option> <option><?=$info->receive_type?></option>
@ -87,7 +87,7 @@ use \common\libs\MyLib;
<option>客户自送</option> <option>客户自送</option>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">责任</label> <label class="control-label">责任</label>
<select name="responsibility" id="responsibility" class="form-control"> <select name="responsibility" id="responsibility" class="form-control">
<option><?=$info->responsibility?></option> <option><?=$info->responsibility?></option>
@ -97,7 +97,7 @@ use \common\libs\MyLib;
<option>次要责任</option> <option>次要责任</option>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">品牌</label> <label class="control-label">品牌</label>
<select name="brand_id" id="brand_id" class="form-control"> <select name="brand_id" id="brand_id" class="form-control">
<option value="0">---请选择---</option> <option value="0">---请选择---</option>
@ -111,7 +111,7 @@ use \common\libs\MyLib;
?> ?>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">车系</label> <label class="control-label">车系</label>
<select name="series_id" id="series_id" class="form-control"> <select name="series_id" id="series_id" class="form-control">
<option value="0">---请选择---</option> <option value="0">---请选择---</option>
@ -125,7 +125,7 @@ use \common\libs\MyLib;
?> ?>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">排量</label> <label class="control-label">排量</label>
<select name="displacement_id" id="displacement_id" class="form-control"> <select name="displacement_id" id="displacement_id" class="form-control">
<option value="0">---请选择---</option> <option value="0">---请选择---</option>
@ -139,27 +139,27 @@ use \common\libs\MyLib;
?> ?>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">年份</label> <label class="control-label">年份</label>
<input type="text" name="car_year" value="<?=$info->car_year?>" class="form-control"> <input type="text" name="car_year" value="<?=$info->car_year?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">商业保单号</label> <label class="control-label">商业保单号</label>
<input type="text" name="insurer1_no" value="<?=$info->insurer1_no?>" class="form-control"> <input type="text" name="insurer1_no" value="<?=$info->insurer1_no?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">交强保单号</label> <label class="control-label">交强保单号</label>
<input type="text" name="insurer2_no" value="<?=$info->insurer2_no?>" class="form-control"> <input type="text" name="insurer2_no" value="<?=$info->insurer2_no?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">险项</label> <label class="control-label">险项</label>
<input type="text" name="insurer_type" class="form-control"> <input type="text" name="insurer_type" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">新车购置价</label> <label class="control-label">新车购置价</label>
<input type="text" name="new_price" value="<?=$info->new_price?>" class="form-control"> <input type="text" name="new_price" value="<?=$info->new_price?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">方位</label> <label class="control-label">方位</label>
<select name="direction_id" id="direction_id" class="form-control"> <select name="direction_id" id="direction_id" class="form-control">
<option value="0">---请选择---</option> <option value="0">---请选择---</option>
@ -173,7 +173,7 @@ use \common\libs\MyLib;
?> ?>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">范围</label> <label class="control-label">范围</label>
<select name="range_id" id="range_id" class="form-control"> <select name="range_id" id="range_id" class="form-control">
<option value="0">---请选择---</option> <option value="0">---请选择---</option>
@ -187,11 +187,11 @@ use \common\libs\MyLib;
?> ?>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">地址</label> <label class="control-label">地址</label>
<input type="text" name="address" value="<?=$info->address?>" class="form-control"> <input type="text" name="address" value="<?=$info->address?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">范围</label> <label class="control-label">范围</label>
<select name="range_id" id="range_id" class="form-control"> <select name="range_id" id="range_id" class="form-control">
<option value="0">---请选择---</option> <option value="0">---请选择---</option>
@ -205,13 +205,13 @@ use \common\libs\MyLib;
?> ?>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">代步车</label> <label class="control-label">代步车</label>
<select name="replace_car_id" id="replace_car_id" class="form-control"> <select name="replace_car_id" id="replace_car_id" class="form-control">
<option value="0">无代步车</option> <option value="0">无代步车</option>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">接车司机</label> <label class="control-label">接车司机</label>
<select name="driver_id" id="driver_id" class="form-control"> <select name="driver_id" id="driver_id" class="form-control">
<option value="0">---请选择---</option> <option value="0">---请选择---</option>
@ -225,95 +225,95 @@ use \common\libs\MyLib;
?> ?>
</select> </select>
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">接车里程数</label> <label class="control-label">接车里程数</label>
<input type="text" name="receive_mileage" value="<?=$info->receive_mileage?>" class="form-control"> <input type="text" name="receive_mileage" value="<?=$info->receive_mileage?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">接车油表数</label> <label class="control-label">接车油表数</label>
<input type="text" name="receive_oil" value="<?=$info->receive_oil?>" class="form-control"> <input type="text" name="receive_oil" value="<?=$info->receive_oil?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">进厂里程数</label> <label class="control-label">进厂里程数</label>
<input type="text" name="factory_mileage" value="<?=$info->factory_mileage?>" class="form-control"> <input type="text" name="factory_mileage" value="<?=$info->factory_mileage?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">进厂油表数</label> <label class="control-label">进厂油表数</label>
<input type="text" name="factory_oil" value="<?=$info->factory_oil?>" class="form-control"> <input type="text" name="factory_oil" value="<?=$info->factory_oil?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">预计出厂时间</label> <label class="control-label">预计出厂时间</label>
<input type="text" class="input-date form-control" id="finish_date" name="finish_date" autocomplete="off" value="<?=substr($info->finish_date,0,10)?>" /> <input type="text" class="input-date form-control" id="finish_date" name="finish_date" autocomplete="off" value="<?=substr($info->finish_date,0,10)?>" />
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">报案号</label> <label class="control-label">报案号</label>
<input type="text" name="report_no" value="<?=$info->report_no?>" class="form-control"> <input type="text" name="report_no" value="<?=$info->report_no?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">报案人</label> <label class="control-label">报案人</label>
<input type="text" name="baoan_man" value="<?=$info->baoan_man?>" class="form-control"> <input type="text" name="baoan_man" value="<?=$info->baoan_man?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">报案时间</label> <label class="control-label">报案时间</label>
<input type="text" class="input-date form-control" id="baoan_time" name="baoan_time" autocomplete="off" value="<?=substr($info->baoan_time,0,10)?>" /> <input type="text" class="input-date form-control" id="baoan_time" name="baoan_time" autocomplete="off" value="<?=substr($info->baoan_time,0,10)?>" />
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">出险时间</label> <label class="control-label">出险时间</label>
<input type="text" class="input-date form-control" id="chuxian_time" name="chuxian_time" autocomplete="off" value="<?=substr($info->chuxian_time,0,10)?>" /> <input type="text" class="input-date form-control" id="chuxian_time" name="chuxian_time" autocomplete="off" value="<?=substr($info->chuxian_time,0,10)?>" />
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">出险地点</label> <label class="control-label">出险地点</label>
<input type="text" name="baoan_address" value="<?=$info->baoan_address?>" class="form-control"> <input type="text" name="baoan_address" value="<?=$info->baoan_address?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">事故描述</label> <label class="control-label">事故描述</label>
<input type="text" name="shigu_info" value="<?=$info->shigu_info?>" class="form-control"> <input type="text" name="shigu_info" value="<?=$info->shigu_info?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">理赔公司</label> <label class="control-label">理赔公司</label>
<input type="text" name="lipei_company" value="<?=$info->lipei_company?>" class="form-control"> <input type="text" name="lipei_company" value="<?=$info->lipei_company?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">主车定损金额</label> <label class="control-label">主车定损金额</label>
<input type="text" name="zhuche_money" value="<?=$info->zhuche_money?>" class="form-control"> <input type="text" name="zhuche_money" value="<?=$info->zhuche_money?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">三者外修</label> <label class="control-label">三者外修</label>
<input type="text" name="sanzhe_money" value="<?=$info->sanzhe_money?>" class="form-control"> <input type="text" name="sanzhe_money" value="<?=$info->sanzhe_money?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">物损</label> <label class="control-label">物损</label>
<input type="text" name="wusun_money" value="<?=$info->wusun_money?>" class="form-control"> <input type="text" name="wusun_money" value="<?=$info->wusun_money?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">拖车</label> <label class="control-label">拖车</label>
<input type="text" name="tuoche" value="<?=$info->tuoche?>" class="form-control"> <input type="text" name="tuoche" value="<?=$info->tuoche?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">拖车费用</label> <label class="control-label">拖车费用</label>
<input type="text" name="tuoche_money" value="<?=$info->tuoche_money?>" class="form-control"> <input type="text" name="tuoche_money" value="<?=$info->tuoche_money?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">定损工时费</label> <label class="control-label">定损工时费</label>
<input type="text" name="dingsun_hour_money" value="<?=$info->dingsun_hour_money?>" class="form-control"> <input type="text" name="dingsun_hour_money" value="<?=$info->dingsun_hour_money?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">定损换件费</label> <label class="control-label">定损换件费</label>
<input type="text" name="dingsun_huanjian_money" value="<?=$info->dingsun_huanjian_money?>" class="form-control"> <input type="text" name="dingsun_huanjian_money" value="<?=$info->dingsun_huanjian_money?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">赔付比例</label> <label class="control-label">赔付比例</label>
<input type="text" name="peifu_bili" value="<?=$info->peifu_bili?>" class="form-control"> <input type="text" name="peifu_bili" value="<?=$info->peifu_bili?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">赔付金额</label> <label class="control-label">赔付金额</label>
<input type="text" name="peifu_money" value="<?=$info->peifu_money?>" class="form-control"> <input type="text" name="peifu_money" value="<?=$info->peifu_money?>" class="form-control">
</div> </div>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <div class="form-group col-sm-3" style="margin-bottom: 8px;">
<label class="control-label">客户自付</label> <label class="control-label">客户自付</label>
<input type="text" name="kehu_money" value="<?=$info->kehu_money?>" class="form-control"> <input type="text" name="kehu_money" value="<?=$info->kehu_money?>" class="form-control">
</div> </div>
<div class="form-group col-md-12" style="margin-bottom: 8px;"> <div class="form-group col-sm-12" style="margin-bottom: 8px;">
<label class="control-label">备注</label> <label class="control-label">备注</label>
<textarea class="form-control" name="remark" id="remark"><?=$info->remark?></textarea> <textarea class="form-control" name="remark" id="remark"><?=$info->remark?></textarea>
</div> </div>
@ -336,7 +336,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<form id="giftFrm" class="col-md-12"> <form id="giftFrm" class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -384,7 +384,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable2"> <table id="listTable2">
<thead> <thead>
<tr> <tr>
@ -440,10 +440,10 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="otherFrm"> <form role="form" class="form-horizontal data-from" id="otherFrm">
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<div class="col-md-12"> <div class="col-sm-12">
<textarea class="form-control" name="sys_remark" id="sys_remark"></textarea> <textarea class="form-control" name="sys_remark" id="sys_remark"></textarea>
</div> </div>
</div> </div>
@ -530,7 +530,7 @@ use \common\libs\MyLib;
' </div>' + ' </div>' +
' <div class="ibox-content">' + ' <div class="ibox-content">' +
' <div class="row">' + ' <div class="row">' +
' <div class="col-md-12">' + ' <div class="col-sm-12">' +
' <table id="'+ id + '_' + name +'_table" data-name="'+ name +'">' + ' <table id="'+ id + '_' + name +'_table" data-name="'+ name +'">' +
' <thead>' + ' <thead>' +
' <tr>' + ' <tr>' +

@ -27,7 +27,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -27,7 +27,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -17,7 +17,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -11,7 +11,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal" id="theFrm"> <form role="form" class="form-horizontal" id="theFrm">
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label">车牌号</label> <label class="col-sm-2 control-label">车牌号</label>

@ -24,7 +24,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -24,7 +24,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -24,7 +24,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -24,7 +24,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -24,7 +24,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -1,170 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>礼品出库</h5>
<div class="ibox-tools">
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');">
<i class="fa fa-refresh"></i> 刷新
</a>
</div>
</div>
<div class="ibox-content">
<form role="form" class="form-horizontal" onsubmit="return search();">
<div class="form-group">
<label class="control-label col-md-1">礼品编号</label>
<div class="col-md-2">
<input type="text" id="code" name="code" class="form-control">
</div>
<label class="control-label col-md-1">车牌</label>
<div class="col-md-2">
<input type="text" id="car_no" name="car_no" class="form-control">
</div>
<label class="control-label col-md-1">车架号</label>
<div class="col-md-2">
<input type="text" id="frame_no" name="frame_no" class="form-control">
</div>
<label class="control-label col-md-1">发动机号</label>
<div class="col-md-2">
<input type="text" id="engine_no" name="engine_no" class="form-control">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-1">状态</label>
<div class="col-md-2">
<select name="status" class="form-control">
<option value="0" >全部</option>
<option value="4">未出库</option>
<option value="5">已出库</option>
</select>
</div>
<label class="control-label col-md-1">分类</label>
<div class="col-md-2">
<select name="type_id" class="form-control">
<option value="0">---请选择---</option>
<?php
foreach($type_items as $item) {
echo '<option value="'.$item->id.'"';
echo '>'.$item->name.'</option>';
}
?>
</select>
</div>
<label class="control-label col-md-1">业务工号</label>
<div class="col-md-2">
<input type="text" id="username" name="username" class="form-control">
</div>
<label class="control-label col-md-1">商业保单号</label>
<div class="col-md-2">
<input type="text" id="insurer1_no" name="insurer1_no" class="form-control">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-1">提单日期</label>
<div class="col-md-2">
<div class="input-daterange input-group" id="datepicker">
<input type="text" class="input-sm form-control" id="s_start_date" name="s_start_date" autocomplete="off" value="" />
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" id="s_end_date" name="s_end_date" autocomplete="off" value="" />
</div>
</div>
<label class="control-label col-md-1">正本日期</label>
<div class="col-md-2">
<div class="input-daterange input-group" id="datepicker">
<input type="text" class="input-sm form-control" id="p_start_date" name="p_start_date" autocomplete="off" value="" />
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" id="p_end_date" name="p_end_date" autocomplete="off" value="" />
</div>
</div>
<div class="col-md-3">
<button type="submit" class="btn btn-primary">搜索</button>
</div>
</div>
</form>
<div class="row">
<div class="col-md-12">
<table id="listTable">
<thead>
<tr>
<th width="50" data-field="id">ID</th>
<th data-field="code">礼品编号</th>
<th data-field="name">礼品</th>
<th data-field="car_no">车牌号</th>
<th data-field="car_frame_no">车架号</th>
<th data-field="use_total">提单人</th>
<th data-field="use_total">出库时间</th>
<th data-field="use_total">状态</th>
<th data-field="use_total">操作员</th>
<th data-formatter="opFormatter">操作</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script>
function opFormatter(value, row, index) {
var opStr = [];
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">');
if(row.use_num > row.finish_num) {
opStr.push('<i class="fa fa-edit" title="出库"></i>');
} else {
opStr.push('<i class="fa fa-file-o" title="详情"></i>');
}
opStr.push('</a>');
return opStr.join(' ');
}
function refreshList() {
$('#listTable').bootstrapTable('refresh');
}
function search() {
$('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({
url: "/gift/gift-out-json",
pagination: true,
sidePagination: 'server',
queryParams: function(params) {
params.code = $('#code').val();
params.car_no = $('#car_no').val();
params.frame_no = $('#frame_no').val();
params.engine_no = $('#engine_no').val();
params.status = $('#status').val();
params.type_id = $('#type_id').val();
params.username = $('#username').val();
params.insurer1_no = $('#insurer1_no').val();
params.s_start_date = $('#s_start_date').val();
params.s_end_date = $('#s_end_date').val();
params.p_start_date = $('#p_start_date').val();
params.p_end_date = $('#p_end_date').val();
return params;
}
});
return false;
}
$(function() {
$('.input-daterange').datepicker({
keyboardNavigation: false,
forceParse: false,
autoclose: true
});
search();
});
</script>
<?php $this->endBlock(); ?>

@ -16,37 +16,32 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-horizontal" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label class="control-label col-md-1">范围</label> <label for="date_type">范围</label>
<div class="col-md-2"> <select id="date_type" name="date_type" class="form-control">
<select id="date_type" name="date_type" class="form-control"> <option value="0">全部</option>
<option value="0">全部</option> <option value="1">出库时间</option>
<option value="1">出库时间</option> <option value="2">正本生成时间</option>
<option value="2">正本生成时间</option> <option value="3">提单时间</option>
<option value="3">提单时间</option> </select>
</select> </div>
</div> <div class="form-group" style="margin-bottom: 8px;">
<div class="col-md-2"> <div class="input-daterange input-group" id="datepicker">
<div class="input-daterange input-group" id="datepicker"> <input type="text" class="input-sm form-control" id="begin_date" name="begin_date" autocomplete="off" value="" />
<input type="text" class="input-sm form-control" id="begin_date" name="begin_date" autocomplete="off" value="" /> <span class="input-group-addon"></span>
<span class="input-group-addon"></span> <input type="text" class="input-sm form-control" id="end_date" name="end_date" autocomplete="off" value="" />
<input type="text" class="input-sm form-control" id="end_date" name="end_date" autocomplete="off" value="" />
</div>
</div>
<div class="col-md-3">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
<th width="50" data-field="id">ID</th> <th width="50" data-field="id">ID</th>
<th data-field="name">名称</th> <th data-field="name">名称</th>
<th data-field="total">库存</th>
<th data-field="unout_total">待出库</th> <th data-field="unout_total">待出库</th>
<th data-field="out_total">已出库</th> <th data-field="out_total">已出库</th>
</tr> </tr>
@ -64,21 +59,26 @@ use \common\libs\MyLib;
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> <script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> <script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script> <script>
var o = {};
function refreshList() { function refreshList() {
$('#listTable').bootstrapTable('refresh'); $('#listTable').bootstrapTable('refresh');
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/gift/gift-tj-json", url: "/gift/gift-tj-json",
pagination: true, pagination: true,
sidePagination: 'server', sidePagination: 'server',
queryParams: function(params) { queryParams: function(params) {
params.date_type = $('#date_type').val(); o['offset'] = params['offset'];
params.begin_date = $('#begin_date').val(); o['limit'] = params['limit'];
params.end_date = $('#end_date').val(); return o;
return params;
} }
}); });
return false; return false;

@ -0,0 +1,127 @@
<?php
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-content">
<div class="row">
<div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group">
<label class="col-sm-2 control-label">编号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->code?></p>
</div>
<label class="col-sm-2 control-label">车牌号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->car_no?></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">车架号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->order->car_frame_no?></p>
</div>
<label class="col-sm-2 control-label">发动机号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->order->engine_no?></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">商业保单号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->order->insurer1_no?></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">备注</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control"></textarea>
</div>
</div>
<?php if($info->typeNew->use_num > $info->finished_num) {?>
<div>
<div class="row">
<div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button">
<strong>提 交</strong>
</button>
</div>
</div>
</div>
<?php } ?>
</form>
</div>
</div>
</div>
</div>
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>操作记录</h5>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-12">
<table id="listTable">
<thead>
<tr>
<th data-field="id">序号</th>
<th data-field="op_man">操作者</th>
<th data-field="op_time">操作时间</th>
<th data-field="remark">备注</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" language="javascript">
function search() {
$('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({
url: "/gift/history-log-json",
pagination: true,
sidePagination: 'server',
queryParams: function(params) {
params.id = <?=$info->id?>;
return params;
}
});
return false;
}
$(function () {
search();
//提交按钮
$(".btn-save").click(function(){
parent.layer.confirm('是否确认提交?', {
btn: ['确认','取消'], //按钮
shade: false //不显示遮罩
}, function(){
var params = $("#theFrm").serialize();
params += '&status=2';
$.post('/gift/use-save',params,function(obj){
parent.layer.msg(obj.msg);
if(obj.success) {
parent.refreshList();
layer_close();
}
},'json');
}, function(){
//
});
});
})
</script>
<?php $this->endBlock('footer_js'); ?>

@ -81,7 +81,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary mb-8">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -24,7 +24,7 @@ use \common\libs\MyLib;
<label for="free_type">礼品类型</label> <label for="free_type">礼品类型</label>
<select id="type_id" name="type_id" class="form-control"> <select id="type_id" name="type_id" class="form-control">
<option value="0">全部</option> <option value="0">全部</option>
<option value="1">礼品</option> <option value="1">礼品</option>
<option value="2">礼券</option> <option value="2">礼券</option>
</select> </select>
</div> </div>
@ -35,7 +35,7 @@ use \common\libs\MyLib;
<button type="submit" class="btn btn-primary mb-8">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -1,400 +0,0 @@
<?php
use \common\libs\MyLib;
use \common\models\PriceT;
?>
<link href="/css/tabs.css" rel="stylesheet" type="text/css">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td colspan="13" height="22" class="td_bg">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD height="30" align="center" class=tab-on id=navcell onclick=switchCell(1) name="navcell">保单信息</TD>
<TD height="30" align="center" class=tab-off id=navcell onclick=switchCell(2) name="navcell">快递信息</TD>
<TD height="30" align="center" class=tab-off id=navcell onclick=switchCell(3) name="navcell">礼品信息</TD>
<TD height="30" align="center" class=tab-off id=navcell onclick=switchCell(4) name="navcell">操作记录</TD>
<TD height="30" class=tab-none>&nbsp;</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td height="22" colspan="2" class="td_bg">
<table width="100%" align="center" height="120" border="0" cellpadding="0" cellspacing="0" id="mainTable">
<tr>
<td height="120" valign="top" class="td_bg">
<TABLE id=tb cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb">
<TR>
<TD vAlign=top>
<form id="orderFrm">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
<input type="hidden" name="car_id" value="<?=$car_info->id?>">
<tr>
<td width="100" height="25" class="bg_tr">车牌号</td>
<td height="25" class="td_bg"><?=$car_info->car_no?></td>
<td width="100" height="25" class="bg_tr">厂牌型号</td>
<td height="25" class="td_bg"><?=$car_info->factory_model?></td>
<td width="60" height="25" class="bg_tr">品牌</td>
<td width="120" height="25" class="td_bg"><?=$car_info->brand?$car_info->brand->name:''?></td>
<td width="60" height="25" class="bg_tr">车系</td>
<td height="25" class="td_bg"><?=$car_info->series?$car_info->series->name:''?></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">发动机号</td>
<td height="25" class="td_bg"><?=$car_info->engine_no?></td>
<td width="100" height="25" class="bg_tr">车架号</td>
<td height="25" class="td_bg"><?=$car_info->car_frame_no?></td>
<td width="60" height="25" class="bg_tr">初登日期</td>
<td height="25" class="td_bg"><?=$car_info->register_date?></td>
<td width="60" height="25" class="bg_tr">排量</td>
<td height="25" class="td_bg"><?=$car_info->displacement?$car_info->displacement->name:''?></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">车辆类型</td>
<td height="25" class="td_bg"><?=$car_info->carType?$car_info->carType->name:''?></td>
<td width="100" height="25" class="bg_tr">运营性质</td>
<td height="25" class="td_bg"><?=$car_info->carUse?$car_info->carUse->name:''?></td>
<td width="60" height="25" class="bg_tr">座位数</td>
<td height="25" class="td_bg"><?=$car_info->seats?></td>
<td width="60" height="25" class="bg_tr">年份</td>
<td height="25" class="td_bg"><?=$car_info->car_year?></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">车主</td>
<td height="25" class="td_bg"><?=$car_info->car_man?></td>
<td width="100" height="25" class="bg_tr">联系电话</td>
<td height="25" class="td_bg"><?=$car_info->phone?></td>
<td width="60" height="25" class="bg_tr">证件号码</td>
<td colspan="3" height="25" class="td_bg"><?=$car_info->car_man_number?></td>
</tr>
<tr>
<td width="60" height="25" class="bg_tr">备注</td>
<td colspan="7" height="25" class="td_bg"><?=$car_info->remark?></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
<tr>
<td class="bg_tr">被保险人</td>
<td class="td_bg"><?=$order_info->id_man?></td>
<td class="bg_tr">证件号码</td>
<td class="td_bg"><?=$order_info->id_number?></td>
<td width="60" class="bg_tr">联系人</td>
<td class="td_bg"><?=$order_info->link_man?></td>
<td width="60" class="bg_tr">联系电话</td>
<td class="td_bg"><?=$order_info->link_phone?></td>
</tr>
<tr>
<td class="bg_tr">送单日期</td>
<td class="td_bg"><?=$order_info->send_date?></td>
<td class="bg_tr">保险公司</td>
<td class="td_bg"><?=$order_info->company?$order_info->company->name:''?></td>
<td class="bg_tr">付款方式</td>
<td class="td_bg"><?=$order_info->payType?$order_info->payType->name:''?></td>
<td class="bg_tr">电子邮件</td>
<td class="td_bg"><?=$order_info->email?></td>
</tr>
<tr>
<td class="bg_tr">商业起保日期</td>
<td class="td_bg"><?=$order_info->insurer1_begin_date?></td>
<td class="bg_tr">交强起保日期</td>
<td class="td_bg"><?=$order_info->insurer2_begin_date?></td>
<td class="bg_tr">缴费单号</td>
<td colspan="3" class="td_bg"><?=$order_info->pay_no?></td>
</tr>
<tr>
<td class="bg_tr">商业保单号</td>
<td class="td_bg"><?=$order_info->insurer1_no?></td>
<td class="bg_tr">交强保单号</td>
<td class="td_bg"><?=$order_info->insurer2_no?></td>
<td rowspan="3" class="bg_tr" valign="center">备注</td>
<td colspan="3" rowspan="3" valign="top" class="td_bg"><?=$order_info->remark?></td>
</tr>
<tr>
<td class="bg_tr">送单地址</td>
<td colspan="3" class="td_bg">
<?=$order_info->direction1?$order_info->direction1->name:''?>
<?=$order_info->range1?$order_info->range1->name:''?>
<?=$order_info->city1?$order_info->city1->name:''?>
<?=$order_info->district1?$order_info->district1->name:''?>
<?=$order_info->send_address1?>
</td>
</tr>
<tr>
<td class="bg_tr">正本送单地址</td>
<td colspan="3" class="td_bg">
<?=$order_info->direction2?$order_info->direction2->name:''?>
<?=$order_info->range2?$order_info->range2->name:''?>
<?=$order_info->city2?$order_info->city2->name:''?>
<?=$order_info->district2?$order_info->district2->name:''?>
<?=$order_info->send_address2?>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
<tr>
<td width="40%" valign="top">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td align="center" class="bg_tr">险种</td>
<td align="center" class="bg_tr">内容</td>
<td align="center" class="bg_tr" nowrap>不计免赔</td>
</tr>
<?php
$len = count($insurer_type_items);
for($i = 0; $i < $len; $i++) {
$item = $insurer_type_items[$i];
$order_id = $order_info->id;
if(!$order_id)
$order_id = 0;
$tmp_row = PriceT::find()
->where('order_id='.$order_id.' and type_id='.$item->id)
->one();
if($tmp_row->val == '' || $tmp_row->val == '0' || $tmp_row->val == '否' || $tmp_row->val == '无') continue;
?>
<tr>
<td class="bg_tr" nowrap><?=$item->name?>(<?=$item->code?>)</td>
<td class="td_bg"><?=$tmp_row->val?></td>
<td align="center" class="td_bg"><?php
if($tmp_row->is_nopay == 1) {
echo '是';
}
?>
</td>
</tr>
<?php
}
?>
</table>
</td>
<td width="10px;">&nbsp;</td>
<td width="60%" valign="top">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td class="bg_tr">商业总净保费</td>
<td class="td_bg"><?=$order_info->total1_clear?></td>
<td class="bg_tr">商业含税总保费</td>
<td class="td_bg"><?=$order_info->total1?></td>
</tr>
<tr>
<td class="bg_tr">交强总净保费</td>
<td class="td_bg"><?=$order_info->total2_clear?></td>
<td class="bg_tr">交强含税总保费</td>
<td class="td_bg"><?=$order_info->total2?></td>
</tr>
<tr>
<td class="bg_tr">车船税</td>
<td class="td_bg"><?=$order_info->total3?></td>
<td class="bg_tr">共计签单</td>
<td class="td_bg"><?=$order_info->total_all?></td>
</tr>
<tr>
<td class="bg_tr">折扣后商业净保费</td>
<td class="td_bg"><?=$order_info->total1_real?></td>
<td class="bg_tr">减免金额</td>
<td class="td_bg"><?=$order_info->total1_dis?></td>
</tr>
<tr>
<td class="bg_tr">商业折扣率</td>
<td class="td_bg"><?=$order_info->total1_percent?></td>
<td class="bg_tr">应收</td>
<td class="td_bg"><?=$order_info->total_real?></td>
</tr>
<tr>
<td class="bg_tr">备注</td>
<td colspan="3" class="td_bg"><?=$order_info->price_remark?></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td width="100" class="bg_tr">领款人</td>
<td class="td_bg"><?=$order_info->money_man?></td>
</tr>
<tr>
<td class="bg_tr">银行账号</td>
<td class="td_bg"><?=$order_info->money_no?></td>
</tr>
<tr>
<td class="bg_tr">开户行</td>
<td class="td_bg"><?=$order_info->money_bank?></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</TD>
</TR>
</TABLE>
<TABLE id=tb cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table">
<TR>
<TD vAlign=top>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
<form id="emsFrm">
<input type="hidden" name="car_id" value="<?=$car_info->id?>">
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
<tr>
<td width="100" align="right" class="bg_tr">快递公司:</td>
<td class="td_bg">
<select name="ems_company">
<option>德邦</option>
</select>
</td>
<td width="100" align="right" class="bg_tr">快递单号:</td>
<td class="td_bg">
<input name="ems_no" type="text" value=""/>
</td>
<td width="100" align="right" class="bg_tr">配送员电话:</td>
<td class="td_bg">
<input name="ems_phone" type="text" value=""/>
</td>
</tr>
<tr>
<td width="100" align="right" class="bg_tr">描述:</td>
<td colspan="5" class="td_bg">
<input name="ems_remark" type="text" value="" style="width:600px;"/>
</td>
</tr>
<tr>
<td height="22" colspan="6" align="center" class="td_bg">
<input id="ems-save-btn" type=button class="ACT_btn" name="ems-save-btn" value=" 添加快递 "/>
</td>
</tr>
</form>
</table>
<div id="ems_list"></div>
</TD>
</TR>
</TABLE>
<TABLE id=tb cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table">
<TR>
<TD vAlign=top>
<input type="button" class="ACT_btn ok-btn" name="Submit1" value=" 出库 ">
<input type="button" class="ACT_btn cancel-btn" name="Submit2" value=" 退回 ">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table" style="table-layout: fixed;">
<form id="listFrm">
<input type="hidden" name="order_id" id="order_id" value="<?=$order_info->id?>">
<tr>
<td width="50" align="center" class="bg_tr" nowrap><input type="checkbox" id="all">选择</td>
<td width="150" align="center" class="bg_tr" nowrap>礼品名称</td>
<td width="80" align="center" class="bg_tr" nowrap>类型</td>
<td width="50%" align="center" class="bg_tr" nowrap>描述</td>
<td width="80" align="center" class="bg_tr" nowrap>分类</td>
<td width="80" align="center" class="bg_tr" nowrap>添加者</td>
<td width="130" align="center" class="bg_tr" nowrap>操作时间</td>
<td width="50" align="center" class="bg_tr" nowrap>状态</td>
</tr>
<?php
foreach($gift_items as $index => $item) {
if(!$item->gift) continue;
?>
<tr>
<td align="center" class="td_bg"nowrap ><?php
if($item->status == 0 || $item->status == 2) {
echo '<input type="checkbox" name="gift_ids[]" value="'.$item->id.'">';
} else {
echo '';
}
?></td>
<td class="td_bg" style="word-break: break-all;"><?=$item->gift->name?></td>
<td align="center" class="td_bg" nowrap><?=$item->gift->type->name?></td>
<td class="td_bg" style="word-break: break-all;"><?=$item->gift->remark?></td>
<td align="center" class="td_bg" nowrap><?=$item->strategy_id>0?'公司礼品':'自费礼品'?></td>
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
<td align="center" class="td_bg" nowrap><?=date('Y-m-d H:i:s',$item->submit_time)?></td>
<td align="center" class="td_bg" nowrap>
<?php
if($item->status == 0) echo '未出库';
if($item->status == 1) echo '已出库';
if($item->status == 2) echo '正在退换';
?>
</td>
</tr>
<?php
}
?>
</form>
</table>
</TD>
</TR>
</TABLE>
<TABLE id=tb cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table">
<TR>
<TD vAlign=top>
<div id="car_history_list"></div>
</TD>
</TR>
</TABLE>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="22" colspan="2" align="center" class="td_bg">
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 返回 ">
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
$(function(){
//操作历史
gotoPage('/car/ajax-history-index?car_id=<?=$car_info->id?>&page=1&t='+Math.random(),'car_history_list');
//返回
$('#back-btn').click(function(){
window.location.href = '/gift/mng-list';
});
$('#all').click(function(){
if($(this).prop('checked')==true) {
$('input:checkbox').each(function() {
$(this).prop('checked', true);
});
} else {
$('input:checkbox').each(function () {
$(this).prop('checked',false);
});
}
});
//添加EMS
$('#ems-save-btn').click(function(){
var params = $('#emsFrm').serialize();
$.post('/ems/save',params,function(obj){
alert(obj.msg);
if(obj.success) {
$('#emsFrm')[0].reset();
gotoPage('/ems/ajax-car-index?car_id=<?=$car_info->id?>&order_id=<?=$order_info->id?>&t='+Math.random(),'ems_list');
}
},'json');
});
gotoPage('/ems/ajax-car-index?car_id=<?=$car_info->id?>&order_id=<?=$order_info->id?>&t='+Math.random(),'ems_list');
//出库
$('.ok-btn').click(function(){
var params = $('#listFrm').serialize();
if(confirm('是否出库选择礼品?')) {
$.post('/gift/ok-save',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.reload();
}
},'json');
}
});
//退库
$('.cancel-btn').click(function(){
var params = $('#listFrm').serialize();
if(confirm('是否退回礼品?')) {
$.post('/gift/cancel-save',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.reload();
}
},'json');
}
});
});
</script>

@ -1,74 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
//详情
function info(id) {
window.location.href = '/gift/mng-list-info?id=' + id;
}
$(function(){
$("#search-btn").click(function(){
$('#page').val(0);
var params = $('#searchForm').serialize();
window.location.href = "/gift/mng-list?" + params;
});
});
</script>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<form id="searchForm">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<tr>
<td class="td_bg">
车主:<input name="car_man" type="text" value="<?=$car_man?>">
电话:<input name="phone" type="text" value="<?=$phone?>">
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td>
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="30" align="center" class="bg_tr" nowrap>序号</td>
<td width="50" align="center" class="bg_tr" nowrap>车主</td>
<td width="60" align="center" class="bg_tr" nowrap>提单日期</td>
<td width="60" align="center" class="bg_tr" nowrap>送单日期</td>
<td width="60" align="center" class="bg_tr" nowrap>车牌号</td>
<td width="60" align="center" class="bg_tr" nowrap>品牌</td>
<td width="60" align="center" class="bg_tr" nowrap>共计签单</td>
<td width="60" align="center" class="bg_tr" nowrap>应收</td>
<td width="60" align="center" class="bg_tr" nowrap>状态</td>
<td width="60" align="center" class="bg_tr" nowrap>业务员</td>
<td width="60" align="center" class="bg_tr" nowrap>当前操作</td>
<td width="30" align="center" class="bg_tr" nowrap>操作</td>
</tr>
<?php
foreach($items as $index => $item) {
$start_index = ($page - 1) * 20 + $index;
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg"n owrap ><?=$start_index + 1?></td>
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->car_man,15)?></td>
<td class="td_bg" nowrap><?=$item->submit_date?></td>
<td class="td_bg" nowrap><?=$item->send_date?></td>
<td class="td_bg" nowrap><?=$item->car_no?></td>
<td class="td_bg" nowrap><?=$item->car?MyLib::substr_cut($item->car->factory_model,15):''?></td>
<td class="td_bg" nowrap><?=$item->total_all?></td>
<td class="td_bg" ><?=$item->total_real?>&nbsp;</td>
<td class="td_bg" ><?=$item->status->name?></td>
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?></td>
<td class="td_bg" ><?=$item->lock?$item->lock->getShowName():''?></td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
</td>
</tr>
<?php
}
?>
<tr >
<td height="25" colspan="14" align="center" class="td_bg"><?=$page_info?></td>
</tr>
</table>

@ -1,65 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>礼品盘库</h5>
<div class="ibox-tools">
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');">
<i class="fa fa-refresh"></i> 刷新
</a>
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-md-12">
<table id="listTable">
<thead>
<tr>
<th width="50" data-field="id">ID</th>
<th data-field="name">名称</th>
<th data-field="total">总数量</th>
<th data-field="out_total">已出库</th>
<th data-field="use_total">已使用</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script>
function refreshList() {
$('#listTable').bootstrapTable('refresh');
}
function search() {
$('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({
url: "/gift/stastics-json",
pagination: true,
sidePagination: 'server',
queryParams: function(params) {
return params;
}
});
return false;
}
$(function() {
search();
});
</script>
<?php $this->endBlock(); ?>

@ -16,39 +16,34 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-horizontal" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label class="control-label col-md-1">范围</label> <label for="date_type">范围</label>
<div class="col-md-2"> <select id="date_type" name="date_type" class="form-control">
<select id="date_type" name="date_type" class="form-control"> <option value="0">全部</option>
<option value="0">全部</option> <option value="1">出库时间</option>
<option value="1">出库时间</option> <option value="2">正本生成时间</option>
<option value="2">正本生成时间</option> <option value="3">提单时间</option>
<option value="3">提单时间</option> </select>
</select> </div>
</div> <div class="form-group" style="margin-bottom: 8px;">
<div class="col-md-2"> <div class="input-daterange input-group" id="datepicker">
<div class="input-daterange input-group" id="datepicker"> <input type="text" class="input-sm form-control" id="begin_date" name="begin_date" autocomplete="off" value="" />
<input type="text" class="input-sm form-control" id="begin_date" name="begin_date" autocomplete="off" value="" /> <span class="input-group-addon"></span>
<span class="input-group-addon"></span> <input type="text" class="input-sm form-control" id="end_date" name="end_date" autocomplete="off" value="" />
<input type="text" class="input-sm form-control" id="end_date" name="end_date" autocomplete="off" value="" />
</div>
</div>
<div class="col-md-3">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
<th width="50" data-field="id">ID</th> <th width="50" data-field="id">ID</th>
<th data-field="name">名称</th> <th data-field="name">名称</th>
<th data-field="total">库存</th> <th data-field="unuse_total">未使用</th>
<th data-field="unuse_total">待出库</th> <th data-field="use_total">已使用</th>
<th data-field="use_total">已出库</th>
</tr> </tr>
</thead> </thead>
</table> </table>
@ -64,21 +59,26 @@ use \common\libs\MyLib;
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> <script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> <script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script> <script>
var o = {};
function refreshList() { function refreshList() {
$('#listTable').bootstrapTable('refresh'); $('#listTable').bootstrapTable('refresh');
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/gift/ticket-tj-json", url: "/gift/ticket-tj-json",
pagination: true, pagination: true,
sidePagination: 'server', sidePagination: 'server',
queryParams: function(params) { queryParams: function(params) {
params.date_type = $('#date_type').val(); o['offset'] = params['offset'];
params.begin_date = $('#begin_date').val(); o['limit'] = params['limit'];
params.end_date = $('#end_date').val(); return o;
return params;
} }
}); });
return false; return false;

@ -0,0 +1,142 @@
<?php
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-content">
<div class="row">
<div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group">
<label class="col-sm-2 control-label">编号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->code?></p>
</div>
<label class="col-sm-2 control-label">车牌号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->car_no?></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">车架号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->order->car_frame_no?></p>
</div>
<label class="col-sm-2 control-label">发动机号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->order->engine_no?></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">商业保单号</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->order->insurer1_no?></p>
</div>
<label class="col-sm-2 control-label">有效期时间</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->end_date?></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">共使用数</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->typeNew->use_num?></p>
</div>
<label class="col-sm-2 control-label">剩余使用次数</label>
<div class="col-sm-4">
<p class="form-control-static"><?=$info->typeNew->use_num - $info->finished_num?></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">备注</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control"></textarea>
</div>
</div>
<?php if($info->typeNew->use_num > $info->finished_num) {?>
<div>
<div class="row">
<div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button">
<strong>提 交</strong>
</button>
</div>
</div>
</div>
<?php } ?>
</form>
</div>
</div>
</div>
</div>
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>操作记录</h5>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-12">
<table id="listTable">
<thead>
<tr>
<th data-field="id">序号</th>
<th data-field="op_man">操作者</th>
<th data-field="op_time">操作时间</th>
<th data-field="info">操作内容</th>
<th data-field="remark">备注</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" language="javascript">
function search() {
$('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({
url: "/gift/history-log-json",
pagination: true,
sidePagination: 'server',
queryParams: function(params) {
params.id = <?=$info->id?>;
return params;
}
});
return false;
}
$(function () {
search();
//提交按钮
$(".btn-save").click(function(){
parent.layer.confirm('是否确认提交?', {
btn: ['确认','取消'], //按钮
shade: false //不显示遮罩
}, function(){
var params = $("#theFrm").serialize();
params += '&status=2';
$.post('/gift/use-save',params,function(obj){
parent.layer.msg(obj.msg);
if(obj.success) {
parent.refreshList();
layer_close();
}
},'json');
}, function(){
//
});
});
})
</script>
<?php $this->endBlock('footer_js'); ?>

@ -0,0 +1,169 @@
<?php
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>礼券使用</h5>
<div class="ibox-tools">
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');">
<i class="fa fa-refresh"></i> 刷新
</a>
</div>
</div>
<div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();">
<div class="form-group" style="margin-bottom: 8px;">
<label for="code">礼券编号</label>
<input type="text" id="code" name="code" class="form-control">
</div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="car_no">车牌</label>
<input type="text" id="car_no" name="car_no" class="form-control">
</div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="frame_no">车架号</label>
<input type="text" id="frame_no" name="frame_no" class="form-control">
</div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="engine_no">发动机号</label>
<input type="text" id="engine_no" name="engine_no" class="form-control">
</div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="status">状态</label>
<select name="status" id="status" class="form-control">
<option value="0" >全部</option>
<option value="1">未使用</option>
<option value="2">使用中</option>
<option value="3">使用完</option>
</select>
</div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="type_id">分类</label>
<select name="type_id" id="type_id" class="form-control">
<option value="0">---请选择---</option>
<?php
foreach($type_items as $item) {
echo '<option value="'.$item->id.'"';
echo '>'.$item->name.'</option>';
}
?>
</select>
</div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="username">业务工号</label>
<input type="text" id="username" name="username" class="form-control">
</div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="insurer1_no">商业保单号</label>
<input type="text" id="insurer1_no" name="insurer1_no" class="form-control">
</div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="datepicker1">提单日期</label>
<div class="input-daterange input-group" id="datepicker1">
<input type="text" class="input-sm form-control" id="s_start_date" name="s_start_date" autocomplete="off" value="" />
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" id="s_end_date" name="s_end_date" autocomplete="off" value="" />
</div>
</div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="datepicker2">正本日期</label>
<div class="input-daterange input-group" id="datepicker2">
<input type="text" class="input-sm form-control" id="p_start_date" name="p_start_date" autocomplete="off" value="" />
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" id="p_end_date" name="p_end_date" autocomplete="off" value="" />
</div>
</div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form>
<div class="row">
<div class="col-sm-12">
<table id="listTable">
<thead>
<tr>
<th width="50" data-field="id">ID</th>
<th data-field="code">礼券编号</th>
<th data-field="name">礼品</th>
<th data-field="car_no">车牌号</th>
<th data-field="car_frame_no">车架号</th>
<th data-field="input_date">发放日期</th>
<th data-field="end_date">有效期日期</th>
<th data-field="submit_user">提单人</th>
<th data-field="use_date">使用日期</th>
<th data-field="status">状态</th>
<th data-field="username">操作员</th>
<th data-formatter="opFormatter">操作</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script>
function opFormatter(value, row, index) {
var opStr = [];
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">');
if(row.use_num > row.finish_num) {
opStr.push('<i class="fa fa-edit" title="出库"></i>');
} else {
opStr.push('<i class="fa fa-file-o" title="详情"></i>');
}
opStr.push('</a>');
return opStr.join(' ');
}
function edit(id) {
title = '礼品核销';
layer_show(title, '/gift/ticket-use-edit?id='+id);
}
function refreshList() {
$('#listTable').bootstrapTable('refresh');
}
function search() {
$('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({
url: "/gift/ticket-use-json",
pagination: true,
sidePagination: 'server',
queryParams: function(params) {
params.code = $('#code').val();
params.car_no = $('#car_no').val();
params.frame_no = $('#frame_no').val();
params.engine_no = $('#engine_no').val();
params.status = $('#status').val();
params.type_id = $('#type_id').val();
params.username = $('#username').val();
params.insurer1_no = $('#insurer1_no').val();
params.s_start_date = $('#s_start_date').val();
params.s_end_date = $('#s_end_date').val();
params.p_start_date = $('#p_start_date').val();
params.p_end_date = $('#p_end_date').val();
return params;
}
});
return false;
}
$(function() {
$('.input-daterange').datepicker({
keyboardNavigation: false,
forceParse: false,
autoclose: true
});
search();
});
</script>
<?php $this->endBlock(); ?>

@ -9,16 +9,16 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">名称</label> <label class="col-sm-1 control-label">名称</label>
<div class="col-md-5"> <div class="col-sm-5">
<input type="text" name="name" value="<?=$info->name?>" class="form-control"> <input type="text" name="name" value="<?=$info->name?>" class="form-control">
</div> </div>
<label class="col-md-1 control-label">上级</label> <label class="col-sm-1 control-label">上级</label>
<div class="col-md-5"> <div class="col-sm-5">
<select name="parent_id" class="form-control"> <select name="parent_id" class="form-control">
<option value="0">----无上级----</option> <option value="0">----无上级----</option>
<?php <?php
@ -33,22 +33,22 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">基本工资</label> <label class="col-sm-1 control-label">基本工资</label>
<div class="col-md-3"> <div class="col-sm-3">
<input type="text" name="base_pay" value="<?=$info->base_pay?>" class="form-control"> <input type="text" name="base_pay" value="<?=$info->base_pay?>" class="form-control">
</div> </div>
<label class="col-md-1 control-label">职务工资</label> <label class="col-sm-1 control-label">职务工资</label>
<div class="col-md-3"> <div class="col-sm-3">
<input type="text" name="job_pay" value="<?=$info->job_pay?>" class="form-control"> <input type="text" name="job_pay" value="<?=$info->job_pay?>" class="form-control">
</div> </div>
<label class="col-md-1 control-label">岗位工资</label> <label class="col-sm-1 control-label">岗位工资</label>
<div class="col-md-3"> <div class="col-sm-3">
<input type="text" name="station_pay" value="<?=$info->station_pay?>" class="form-control"> <input type="text" name="station_pay" value="<?=$info->station_pay?>" class="form-control">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong><?=$info ? '保 存':'添 加'?></strong> <strong><?=$info ? '保 存':'添 加'?></strong>
</button> </button>

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -1,65 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<form id="searchForm">
<tr>
<td class="td_bg">
<input type="button" class="act_btn" id="save-btn" name="save-btn" value="保存">
<input type="button" class="act_btn" id="return-btn" name="return-btn" value="返回">
<?=$group_info?$group_info->getPath():''?>
</td>
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="24" align="center" class="bg_tr"><input type="checkbox" id="all"></td>
<td width="100" align="center" class="bg_tr">菜单名称</td>
<td width="70%" align="center" class="bg_tr">路径</td>
</tr>
<form id="theFrm">
<input type="hidden" name="group_id" value="<?=$group_id?>">
<?php
foreach($menu_items as $item) {
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td width="24" align="center" class="td_bg">
<label>
<input class="checkbox" type="checkbox" name="menu_ids[]" value="<?=$item->id?>" <?=in_array($item->id,$menu_ids)?'checked':''?>>
</label>
</td>
<td class="td_bg" nowrap><?= $item->name ?></td>
<td class="td_bg" nowrap><?= $item->path ?></td>
</tr>
<?php
}
?>
</form>
</table>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
$(function(){
$('#save-btn').click(function(){
var params = $('#theFrm').serialize();
$.post('/group/permission',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.href = '/group/index';
}
},'json');
});
$('#return-btn').click(function(){
window.location.href = '/group/index';
});
$('#all').click(function(){
var key = $(this).prop('checked');
if(key)
$('.checkbox').prop('checked',true);
else
$('.checkbox').removeProp('checked');
});
});
</script>

@ -9,7 +9,7 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -9,18 +9,18 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">名称</label> <label class="col-sm-1 control-label">名称</label>
<div class="col-md-6"> <div class="col-sm-6">
<input type="text" name="name" value="<?=$info->name?>" class="form-control"> <input type="text" name="name" value="<?=$info->name?>" class="form-control">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong><?=$info ? '保 存':'添 加'?></strong> <strong><?=$info ? '保 存':'添 加'?></strong>
</button> </button>

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -9,28 +9,28 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">名称</label> <label class="col-sm-1 control-label">名称</label>
<div class="col-md-3"> <div class="col-sm-3">
<input type="text" name="name" value="<?=$info->name?>" class="form-control"> <input type="text" name="name" value="<?=$info->name?>" class="form-control">
</div> </div>
<label class="col-md-1 control-label">代码</label> <label class="col-sm-1 control-label">代码</label>
<div class="col-md-3"> <div class="col-sm-3">
<input type="text" name="code" value="<?=$info->code?>" class="form-control"> <input type="text" name="code" value="<?=$info->code?>" class="form-control">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">内容</label> <label class="col-sm-1 control-label">内容</label>
<div class="col-md-6"> <div class="col-sm-6">
<input type="text" name="content" value="<?=$info->content?>" class="form-control"> <input type="text" name="content" value="<?=$info->content?>" class="form-control">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">不计免赔</label> <label class="col-sm-1 control-label">不计免赔</label>
<div class="col-md-3"> <div class="col-sm-3">
<label class="i-checks form-control-static"> <label class="i-checks form-control-static">
<input type="checkbox" name="has_nopay" value="1" <?=$info->has_nopay==1?'checked':''?> ><i></i> <input type="checkbox" name="has_nopay" value="1" <?=$info->has_nopay==1?'checked':''?> ><i></i>
</label> </label>
@ -38,7 +38,7 @@ use \common\libs\MyLib;
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong><?=$info ? '保 存':'添 加'?></strong> <strong><?=$info ? '保 存':'添 加'?></strong>
</button> </button>

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -16,21 +16,27 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label>车主</label> <label for="car_man">车主</label>
<input type="text" name="car_man" id="car_man" class="form-control"> <input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="phone">电话</label>
<input type="text" name="phone" id="phone" class="form-control"> <input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="car_no">车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control"> <input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="id_man">被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control"> <input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -102,6 +108,11 @@ use \common\libs\MyLib;
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/insurer/finance-mng-json", url: "/insurer/finance-mng-json",

@ -1,591 +1,379 @@
<?php <?php
use \common\libs\MyLib; use \common\libs\MyLib;
use common\models\PriceT;
?> ?>
<?php $this->beginBlock('header_css'); ?> <?php $this->beginBlock('header_css'); ?>
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> <link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<style>
label.control-label {
width: 120px;
}
.form-inline .form-control {
width: 180px;
}
</style>
<?php $this->endBlock(); ?> <?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight"> <div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins"> <form class="form-horizontal" id="orderFrm">
<div class="ibox-title fixed"> <input type="hidden" name="car_id" value="<?=$order_info->car_id?>">
<h5>保单信息</h5> <input type="hidden" name="order_id" value="<?=$order_info->id?>">
<div class="ibox-tools"> <input type="hidden" name="celuo_id" value="<?=$order_info->celuo_id?>">
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="print_infos('insurer')"> <input type="hidden" name="fanxian_id" value="<?=$order_info->fanxian_id?>">
<i class="fa fa-plus"></i> 保单打印信息 <div class="ibox float-e-margins">
</a> <div class="ibox-title">
</div> <h5>保单信息</h5>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <table class="table table-bordered">
<div class="col-md-12"> <tr>
<div class="container"> <th class="bg-warning">车牌号</th>
<input type="hidden" name="id" value="" class="form-control car-info"> <td><?=$order_info->car_no?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning" nowrap>初登日期</th>
<label class="control-label">车牌号</label> <td><?=$car_info->register_date?></td>
<span class="car-info" data-name="car_no"></span> <th class="bg-warning" nowrap>座位数</th>
</div> <td><?=$order_info->seats?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning" nowrap>电子邮件</th>
<label class="control-label">厂牌型号</label> <td><?=$order_info->email?></td>
<span class="car-info" data-name="factory_model"></span> </tr>
</div> <tr>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning">车型</th>
<label class="control-label">品牌</label> <td><?=$order_info->factory_model?></td>
<span class="car-info" data-name="brand_txt"></span> <th class="bg-warning" nowrap>发动机号</th>
</div> <td><?=$order_info->engine_no?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning" nowrap>车架号</th>
<label class="control-label">车系</label> <td><?=$order_info->car_frame_no?></td>
<span class="car-info" data-name="series_txt"></span> <th class="bg-warning" nowrap>新车购置价</th>
</div> <td><?=$order_info->purchase_price?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> </tr>
<label class="control-label">发动机号</label> <tr>
<span class="car-info" data-name="engine_no"></span> <th class="bg-warning">车主</th>
</div> <td><?=$order_info->car_man?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning">证件类型</th>
<label class="control-label">车架号</label> <td><?=$order_info->car_man_type?></td>
<span class="car-info" data-name="car_frame_no"></span> <th class="bg-warning">证件号码</th>
</div> <td><?=$order_info->car_man_number?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning">联系电话</th>
<label class="control-label">初登日期</label> <td><?=$order_info->car_man_phone?></td>
<span class="car-info" data-name="register_date"></span> </tr>
</div> <tr>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning">被投保人</th>
<label class="control-label">排量</label> <td><?=$order_info->id_man?></td>
<span class="car-info" data-name="displacement_txt"></span> <th class="bg-warning">证件类型</th>
</div> <td><?=$order_info->id_man_type?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning">证件号码</th>
<label class="control-label">车辆类型</label> <td><?=$order_info->id_man_number?></td>
<span class="car-info" data-name="car_type_txt"></span> <th class="bg-warning">联系电话</th>
</div> <td><?=$order_info->id_man_phone?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> </tr>
<label class="control-label">运营性质</label> <tr>
<span class="car-info" data-name="car_use_txt"></span> <th class="bg-warning">投保人</th>
</div> <td><?=$order_info->link_man?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning">证件类型</th>
<label class="control-label">座位数</label> <td><?=$order_info->link_man_type?></td>
<span class="car-info" data-name="seats"></span> <th class="bg-warning">证件号码</th>
</div> <td><?=$order_info->link_man_number?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning">联系电话</th>
<label class="control-label">年份</label> <td><?=$order_info->link_man_phone?></td>
<span class="car-info" data-name="car_year"></span> </tr>
</div> <tr>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning" nowrap>商业起保日期</th>
<label class="control-label">车主</label> <td><?=$order_info->insurer1_begin_date?></td>
<span class="car-info" data-name="car_man"></span> <th class="bg-warning" nowrap>交强起保日期</th>
</div> <td><?=$order_info->insurer2_begin_date?></td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning">保险公司</th>
<label class="control-label">联系电话</label> <td><?=$order_info->company->name?></td>
<span class="car-info" data-name="phone"></span> <th class="bg-warning">车辆使用性质</th>
</div> <td><?=$order_info->car->carUse->name?></td>
</div><hr> </tr>
<div class="container"> <tr>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <th class="bg-warning" nowrap>商业保单号</th>
<label class="control-label">业务分组</label> <td><?=$order_info->insurer1_no?></td>
<span class="order-info" data-name="business_group_name"></span> <th class="bg-warning" nowrap>商业PDF文件</th>
</div> <td>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <?php if($order_info->shangye_src != '') { ?>
<label class="control-label">被保险人</label> <a href="<?=$order_info->shangye_src?>"><i class="fa fa-image">保单</i></a>
<span class="order-info" data-name="id_man"></span> <?php } ?>
</div> <?php if($order_info->fapiao_src != '') { ?>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <a href="<?=$order_info->fapiao_src?>"><i class="fa fa-file-pdf-o">发票</i></a>
<label class="control-label">证件号码</label> <?php } ?>
<span class="order-info" data-name="id_man_number"></span> </td>
</div> <th class="bg-warning">交强保单号</th>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <td><?=$order_info->insurer2_no?></td>
<label class="control-label">联系人</label> <th class="bg-warning">交强PDF文件</th>
<span class="order-info" data-name="link_man"></span> <td>
</div> <?php if($order_info->jiaoqiang_src != '') { ?>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <a href="<?=$order_info->jiaoqiang_src?>"><i class="fa fa-image">保单</i></a>
<label class="control-label">联系电话</label> <?php } ?>
<span class="order-info" data-name="link_man_phone"></span> <?php if($order_info->jq_fapiao_src != '') { ?>
</div> <a href="<?=$order_info->jq_fapiao_src?>"><i class="fa fa-file-pdf-o">发票</i></a>
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <?php } ?>
<label class="control-label">送单日期</label> </td>
<span class="order-info" data-name="send_date"></span> </tr>
</div> </table>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">保险公司</label>
<span class="order-info" data-name="company_name"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">付款方式</label>
<span class="order-info" data-name="pay_type_txt"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">收款人</label>
<span class="order-info" data-name="payee_name"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">商业起保日期</label>
<span class="order-info" data-name="insurer1_begin_date"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">交强起保日期</label>
<span class="order-info" data-name="insurer2_begin_date"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">付款人</label>
<span class="order-info" data-name="payer_name"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">缴费单号</label>
<span class="order-info" data-name="pay_no"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">商业保单号</label>
<span class="order-info" data-name="insurer1_no"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">交强保单号</label>
<span class="order-info" data-name="insurer2_no"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">收款方式</label>
<span class="order-info" data-name="payment_name"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">送单地址</label>
<span class="order-info" data-name=""></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">备注</label>
<span class="order-info" data-name=""></span>
</div>
<div class="form-group col-md-6" style="margin-bottom: 8px;">
<label class="control-label">正本送单地址</label>
<span class="order-info" data-name="receiver_addr_txt"></span>
</div>
</div><hr>
<div class="container">
<table id="insurer_type_table">
<thead>
<tr>
<th data-field="id">ID</th>
<th data-field="show_name">险种</th>
<th data-field="show_content">内容</th>
<th data-field="is_nopay_txt">不计免赔</th>
</tr>
</thead>
</table>
</div><hr>
<div class="container">
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">商业总净保费</label>
<span class="order-info" data-name="total1_clear"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">商业含税总保费</label>
<span class="order-info" data-name="total1"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">交强总净保费</label>
<span class="order-info" data-name="total2_clear"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">交强含税总保费</label>
<span class="order-info" data-name="total2"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">车船税</label>
<span class="order-info" data-name="total3"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">共计签单</label>
<span class="order-info" data-name="total_all"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">折扣后商业净保费</label>
<span class="order-info" data-name="total1_real"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">减免金额</label>
<span class="order-info" data-name="total1_dis"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">商业折扣率</label>
<span class="order-info" data-name="total1_percent"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">应收</label>
<span class="order-info" data-name="total_real"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">备注</label>
<span class="order-info" data-name="price_remark"></span>
</div>
</div>
</div> </div>
</div> </div>
</div> <div class="ibox float-e-margins">
</div> <div class="ibox-title">
<div class="ibox float-e-margins"> <h5>险种</h5>
<div class="ibox-title fixed"> </div>
<h5>保单文件信息</h5> <div class="ibox-content">
<div class="ibox-tools"> <table class="table table-bordered">
<a class="btn btn-primary btn-xs edit-btn" id="business_print_btn" href="javascript:void(0);" onclick="insurer_files_print('business')"> <tr>
<i class="fa fa-search"></i> 查看商业保单并打印 <?php
</a> $len = count($insurer_type_items);
<a class="btn btn-primary btn-xs edit-btn" id="compulsory_print_btn" href="javascript:void(0);" onclick="insurer_files_print('compulsory')"> $index = 0;
<i class="fa fa-search"></i> 查看交强保单并打印 for($i = 0; $i < $len; $i++) {
</a> $item = $insurer_type_items[$i];
</div> $order_id = $order_info->id;
</div> if(!$order_id)
<div class="ibox-content"> $order_id = 0;
<div class="row"> $tmp_row = PriceT::find()
<div class="col-md-12"> ->where('order_id='.$order_id.' and type_id='.$item->id)
<form method="get" class="form-horizontal"> ->one();
<input type="hidden" name="id" class="form-control order-info"> if(!$tmp_row || $tmp_row->val == '' || $tmp_row->val == '否') continue;
<div class="form-group"> ?>
<label class="col-sm-4 control-label">商业保单文件</label> <th class="bg-warning">
<div class="col-sm-8"> <?=$item->name?>(<?=$item->code?>)
<div class="input-group"> </th>
<input type="text" data-name="shangye_src" name="shangye_src" class="form-control order-info" value=""> <td><?=$tmp_row->val?></td>
<a href="javascript:void(0);" class="input-group-addon upload"> <td><?=($tmp_row->is_nopay == 1)?'不计免赔':''?></td>
上传文件 <?php
</a> if(($index+1)%3==0) {
</div> echo '</tr>';
</div> echo '<tr>';
</div> }
<div class="hr-line-dashed"></div> $index++;
<div class="form-group"> }
<label class="col-sm-4 control-label">交强保单文件</label> ?>
<div class="col-sm-8"> </tr>
<div class="input-group"> </table>
<input type="text" data-name="jiaoqiang_src" name="jiaoqiang_src" class="form-control order-info" value="">
<a href="javascript:void(0);" class="input-group-addon upload">
上传文件
</a>
</div>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group">
<div class="text-center">
<a class="btn btn-primary edit-btn" data-id="0" href="javascript:void(0);" onclick="insurer_files_save()">
<i class="fa fa-save"></i> 保存
</a>
</div>
</div>
</form>
</div> </div>
</div> </div>
</div> <div class="ibox float-e-margins">
</div> <div class="ibox-title">
<div class="ibox float-e-margins"> <h5>保费信息</h5>
<div class="ibox-title fixed"> </div>
<h5>礼品信息</h5> <div class="ibox-content">
</div> <table class="table table-bordered">
<div class="ibox-content">
<div class="row">
<div class="col-md-6">
<h4 class="title">免费礼品</h4>
<table id="free_gift_table">
<thead>
<tr> <tr>
<th data-field="id">ID</th> <th class="bg-warning">商业总净保费</th>
<th data-field="group_name">组名</th> <td><?=$order_info->total1_clear?></td>
<th data-field="gift_name">礼品名</th> <th class="bg-warning">商业含税总保费</th>
<td><?=$order_info->total1?></td>
<th class="bg-warning">车船税</th>
<td><?=$order_info->total3?></td>
</tr>
<tr>
<th class="bg-warning">交强总净保费</th>
<td><?=$order_info->total2_clear?></td>
<th class="bg-warning">交强含税总保费</th>
<td><?=$order_info->total2?></td>
<th class="bg-warning">业务自付金额</th>
<td><?=$order_info->yuangong_money?></td>
</tr>
<tr>
<th class="bg-warning">折扣后商业净保费</th>
<td><?=$order_info->total1_real?></td>
<th class="bg-warning">减免金额</th>
<td><?=$order_info->total1_dis?></td>
<th class="bg-warning">商业折扣率</th>
<td><?=$order_info->total1_percent?></td>
</tr>
<tr>
<th class="bg-warning">共计签单</th>
<td><?=$order_info->total_all?></td>
<th class="bg-warning">应收</th>
<td><?=$order_info->total_real?></td>
<th class="bg-warning">支付方式</th>
<td><?=$order_info->payType ? $order_info->payType->name : ''?></td>
</tr>
<tr>
<th class="bg-warning">备注</th>
<td colspan="5"><?=$order_info->price_remark?></td>
</tr> </tr>
</thead>
</table> </table>
</div> </div>
<div class="col-md-6"> </div>
<h4 class="title">自费礼品</h4> <div class="ibox float-e-margins">
<table id="private_gift_table"> <div class="ibox-title">
<h5>礼券信息</h5>
<div class="ibox-tools">
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#giftTable').bootstrapTable('refresh');">
<i class="fa fa-refresh"></i> 刷新
</a>
</div>
</div>
<div class="ibox-content">
<table id="giftTable">
<thead> <thead>
<tr> <tr>
<th data-field="id">ID</th> <th width="50" data-field="id">ID</th>
<th data-field="group_name">组名</th> <th data-field="code">礼券编号</th>
<th data-field="gift_name">礼品名</th> <th data-field="name">礼品</th>
<th data-field="car_no">车牌号</th>
<th data-field="car_frame_no">车架号</th>
<th data-field="input_date">发放日期</th>
<th data-field="end_date">有效期日期</th>
<th data-field="submit_user">提单人</th>
<th data-field="use_date">使用日期1</th>
<th data-field="status">状态</th>
<th data-field="username">操作员</th>
</tr> </tr>
</thead> </thead>
</table> </table>
</div> </div>
</div> </div>
</div> <div class="ibox float-e-margins">
</div> <div class="ibox-title">
<div class="ibox float-e-margins"> <h5>其他信息</h5>
<div class="ibox-title fixed"> </div>
<h5>财务信息</h5> <div class="ibox-content">
<div class="ibox-tools"> <table class="table table-bordered">
<tr>
<th class="bg-warning">领款人</th>
<td><?=$order_info->money_man?></td>
<th class="bg-warning">开户行</th>
<td><?=$order_info->money_bank?></td>
<th class="bg-warning">银行账号</th>
<td><?=$order_info->money_no?></td>
</tr>
<tr>
<th class="bg-warning">送单地址</th>
<td colspan="5" class="form-inline">
<?=$order_info->sendCity->name?>
<?=$order_info->sendDistrict->name?>
<?=$order_info->send_address?>
</td>
</tr>
<tr>
<th class="bg-warning">备注</th>
<td colspan="5"><?=$order_info->remark?></td>
</tr>
</table>
</div>
</div> </div>
</div> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-title">
<div class="row"> <h5>操作记录</h5>
<div class="col-md-12"> <div class="ibox-tools">
<div class="form-group col-md-3" style="margin-bottom: 8px;"> <a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#logTable').bootstrapTable('refresh');">
<label class="control-label">领款人</label> <i class="fa fa-refresh"></i> 刷新
<span class="order-insurer-info" data-name="money_man"></span> </a>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">开户行</label>
<span class="order-insurer-info" data-name="money_bank"></span>
</div>
<div class="form-group col-md-3" style="margin-bottom: 8px;">
<label class="control-label">品牌</label>
<span class="order-insurer-info" data-name="money_no"></span>
</div> </div>
</div> </div>
</div> <div class="ibox-content">
</div> <table id="logTable">
</div>
<div class="ibox float-e-margins">
<div class="ibox-title fixed">
<h5>操作记录</h5>
<div class="ibox-tools">
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-md-12">
<table id="car_history_table">
<thead> <thead>
<tr> <tr>
<th data-field="id">ID</th>
<th data-field="op_man">操作者</th> <th data-field="op_man">操作者</th>
<th data-field="op_time_txt">操作时间</th> <th data-field="op_time">操作时间</th>
<th data-field="remark">操作内容</th> <th data-field="remark">操作内容</th>
</th>
</tr> </tr>
</thead> </thead>
</table> </table>
</div> </div>
</div> </div>
</div>
</div> </form>
<div class="ibox float-e-margins">
<div class="ibox-title fixed">
<div class="ibox-tools">
<a class="btn btn-primary edit-btn" data-id="0" href="javascript:void(0);"
onclick="reBack()">
<i class="fa fa-backward"></i> 退单
</a>
<a class="btn btn-primary edit-btn" data-id="0" href="javascript:void(0);"
onclick="goBack()">
<i class="fa fa-close"></i> 关闭
</a>
</div>
<div class="clearfix"></div>
</div>
</div> </div>
</div>
<?php $this->beginBlock('footer_js'); ?> <?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> <script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> <script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> <script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="/assets/js/plugins/webuploader/webuploader.min.js"></script> <script>
<script type="text/javascript" language="javascript"> var o = {};
var params = {}; //判断是否填写了选项
$(function () { function isNull(data){
layui.use(['upload'], function(){ if(data == "" || data == undefined || data == null){
var upload = layui.upload; return true;
var uploadInst = upload.render({ }else{
elem: '.upload' /*绑定元素*/, return false;
url: '/common/upload' /*上传接口*/,
accept: 'file',
done: function(res){
//上传完毕回调
if(res.status == 'SUCCESS') {
$('#file').val(res.fileUrl);
}
},
error: function(){
//请求异常回调
}
});
});
$('.input-date').datepicker({
keyboardNavigation: false,
forceParse: false,
autoclose: true
});
// 获取数据,初始化
$.get('info-json' + window.location.search, function (obj) {
if (obj.code == 200) {
params = obj.data;
init();
} else {
alert('数据加载错误');
}
}, 'json');
$('#pdate').blur(function () {
var params = $("#appointmentFrm").serialize();
$.post('/appointment/count', params, function (obj) {
if (obj.success) {
$('#day_count').val(obj.count);
}
}, 'json');
});
$('#brand_info').change(function () {
var brand_id = $(this).val();
$('#series_info').html('<option value="0">---请选择---</option>');
$('#displacement_info').html('<option value="0">---请选择---</option>');
if (brand_id > 0) {
$.get('/car/series-fix', {brand_id: brand_id}, function (obj) {
if (obj.success) {
$('#series_info').html(obj.html);
}
}, 'json');
}
});
$('#series_info').change(function () {
var series_id = $(this).val();
$('#displacement_info').html('<option value="0">---请选择---</option>');
if (series_id > 0) {
$.get('/car/displacements-fix', {series_id: series_id}, function (obj) {
if (obj.success) {
$('#displacement_info').html(obj.html);
}
}, 'json');
}
});
});
function init(){
console.log(params);
carInfoInit(params['car_info']);
if(!params['order_info']['shangye_src']){
$('#business_print_btn').hide();
} }
if(!params['order_info']['jiaoqiang_src']){ }
$('#compulsory_print_btn').hide(); function searchGifts() {
} $('#giftTable').bootstrapTable('destroy');
orderInfoInit(params['order_info']); $('#giftTable').bootstrapTable({
url: "/gift/ticket-use-json",
orderInsurerInfoInit(params['order_insurer_info']); pagination: true,
sidePagination: 'server',
var free_gift = [], queryParams: function(params) {
private_gift = []; o['order_id'] = '<?=$order_info->id?>';
$.each(params['gift_info'],function (i,d) { o['limit'] = params['limit'];
if(d['is_free'] == 1){ o['offset'] = params['offset'];
free_gift.push(d); return o;
}else {
private_gift.push(d);
} }
}); });
var tables = { return false;
'insurer_type': params['insurer_type_info'],
'free_gift': free_gift,
'private_gift': private_gift,
'car_history': {
url: '/car/ajax-history-index-json',
queryParamsFunc: function (param) {
param['car_id'] = params['car_info']['id'];
param['limit'] = param['limit'];
param['offset'] = param['offset'];
return param;
}
}
};
tableInfoInit(tables, params);
} }
//保存订单
function insurer_files_print(type) { function saveOrder(status_id) {
if(type == 'compulsory' && params['order_info']['jiaoqiang_src']){ var params = $('#orderFrm').serialize();
window.open('/upload/files'+ params['order_info']['jiaoqiang_src']) params = params + '&status_id=' + status_id;
} $.post('/insurer/office-mng-save',params,function(obj){
if(type == 'compulsory' && !params['order_info']['jiaoqiang_src']){ parent.layer.msg(obj.msg);
alert('找不到文件,加载失败'); if(obj.success && status_id>2) {
} $('.btn-back').click();
if(type == 'business' && params['order_info']['shangye_src']){
window.open('/upload/files'+ params['order_info']['shangye_src'])
}
if(type == 'business' && !params['order_info']['shangye_src']){
alert('找不到文件,加载失败');
}
}
function insurer_files_save() {
var param = $(this).closest('form').serialize();
$.post('/insurer/pdf-save',param,function(obj){
console.log(obj);
if(obj.success) {
alert('保单上传成功');
window.location.reload();
} }
},'json'); },'json');
} }
//操作记录
function reBack(){ function searchOps() {
if(confirm('请核对好出单日期,确认退回到正本?')) { $('#logTable').bootstrapTable('destroy');
$.post('/insurer/tuidan-save',{id:params['order_info']['id']},function(obj){ $('#logTable').bootstrapTable({
if(obj.success) { url: "/car/history-json",
alert('退单成功'); pagination: true,
} sidePagination: 'server',
},'json'); multipleSelectRow: true,
} queryParams: function(params) {
} o['car_id'] = '<?=$order_info->car_id?>';
o['limit'] = params['limit'];
function goBack(){ o['offset'] = params['offset'];
window.close(); return o;
}
function tableInfoInit(tables){
$.each(tables,function(name,data){
var $table = $('#'+ name +'_table');
var options = {};
if(typeof data == 'String'){
options = {
url: data.url,
pagination: true,
sidePagination: 'server',
queryParams: data.queryParamsFunc
}
}else {
options = {
data: data
}
} }
$table.bootstrapTable('destroy');
$table.bootstrapTable(options);
}); });
} }
// 页面车辆数据初始化 $(function() {
function carInfoInit(data){ searchOps();
$('.car-info:not(input)').each(function(key,item) { searchGifts();
$(item).html(data[$(item).data('name')]); $('.btn-return').click(function(){
}); var remark = $('#return_remark').val();
$('.car-info:input').each(function(key,item) { if(remark === '') {
$(item).val(data[$(item).data('name')]); parent.layer.msg('请输入退回理由');
return;
}
$.post('/insurer/return-op',{
order_id:<?=$order_info->id?>,
return_remark:remark,
return_status_id:<?=$order_info->status_id?>
},function(obj){
parent.layer.msg(obj.msg);
if(obj.success) {
$('.btn-back').click();
}
},'json');
}); });
} $('.btn-cancel').click(function(){
parent.layer.confirm('是否确认放弃处理?', {
function orderInfoInit(data){ btn: ['确认','取消'], //按钮
$('.order-info:not(input)').each(function(key,item) { shade: false //不显示遮罩
$(item).html(data[$(item).data('name')]); }, function(){
var params = $("#theFrm").serialize();
$.post('/insurer/order-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
parent.layer.msg(obj.msg);
if(obj.success) {
$('.btn-back').click();
}
},'json');
}, function(){
//
});
}); });
$('.order-info:input').each(function(key,item) { $('.btn-save').click(function(){
$(item).val(data[$(item).data('name')]); saveOrder(2);
}); });
} $('.btn-submit').click(function(){
saveOrder(5);
function orderInsurerInfoInit(data){
$('.order-insurer-info:not(input)').each(function(key,item) {
$(item).html(data[$(item).data('name')]);
}); });
$('.order-insurer-info:input').each(function(key,item) { $('.btn-back').click(function() {
$(item).val(data[$(item).data('name')]); window.location.href = '/insurer/office-mng';
}); });
} });
function buttonInit(param) {
if(param){
$('#appointment_btn').prepend('<button type="button" class="btn btn-primary" onclick="cancelAppointment()">放弃</button>');
}
}
</script> </script>
<?php $this->endBlock('footer_js'); ?> <?php $this->endBlock(); ?>

@ -207,7 +207,7 @@ use common\models\PriceT;
</table> </table>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-4"> <div class="col-sm-5 col-sm-offset-4">
<?php if($order_info->gift_status == 0) { ?> <?php if($order_info->gift_status == 0) { ?>
<button type="button" class="btn btn-primary btn-save" type="button"> <button type="button" class="btn btn-primary btn-save" type="button">
<strong>确认礼品</strong> <strong>确认礼品</strong>

@ -16,21 +16,27 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label>车主</label> <label for="car_man">车主</label>
<input type="text" name="car_man" id="car_man" class="form-control"> <input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="phone">电话</label>
<input type="text" name="phone" id="phone" class="form-control"> <input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="car_no">车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control"> <input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="id_man">被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control"> <input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -79,6 +85,11 @@ use \common\libs\MyLib;
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/insurer/my-list-json", url: "/insurer/my-list-json",
@ -86,10 +97,6 @@ use \common\libs\MyLib;
sidePagination: 'server', sidePagination: 'server',
multipleSelectRow: true, multipleSelectRow: true,
queryParams: function(params) { queryParams: function(params) {
o['car_man'] = $('#car_man').val();
o['phone'] = $('#phone').val();
o['car_no'] = $('#car_no').val();
o['id_man'] = $('#id_man').val();
o['limit'] = params['limit']; o['limit'] = params['limit'];
o['offset'] = params['offset']; o['offset'] = params['offset'];
return o; return o;

@ -16,21 +16,27 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label>车主</label> <label for="car_man">车主</label>
<input type="text" name="car_man" id="car_man" class="form-control"> <input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="phone">电话</label>
<input type="text" name="phone" id="phone" class="form-control"> <input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="car_no">车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control"> <input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="id_man">被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control"> <input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -74,6 +80,11 @@ use \common\libs\MyLib;
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/insurer/my-return-list-json", url: "/insurer/my-return-list-json",

@ -250,7 +250,7 @@ use common\models\PriceT;
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-4"> <div class="col-sm-5 col-sm-offset-4">
<button type="button" class="btn btn-primary btn-return" type="button"> <button type="button" class="btn btn-primary btn-return" type="button">
<strong>退 回</strong> <strong>退 回</strong>
</button> </button>

@ -16,21 +16,27 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label>车主</label> <label for="car_man">车主</label>
<input type="text" name="car_man" id="car_man" class="form-control"> <input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="phone">电话</label>
<input type="text" name="phone" id="phone" class="form-control"> <input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="car_no">车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control"> <input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="id_man">被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control"> <input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -78,6 +84,11 @@ use \common\libs\MyLib;
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/insurer/office-mng-json", url: "/insurer/office-mng-json",

@ -1,143 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<form id="theFrm">
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
<tr>
<td colspan="6" align="center">送单表</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">收件人</td>
<td width="300" height="25" class="td_bg"><input class="Ainput" name="insurer_name" type="text" value="<?=$order_info->id_man?>" style="width:250px;" /></td>
<td width="100" height="25" class="td_bg">联系电话</td>
<td width="300" height="25" class="td_bg"><input class="Ainput" name="link_tel" type="text" value="<?=$order_info->link_phone?>" style="width:250px;" /></td>
</tr>
<?php if($order_info->send_address2):?>
<tr>
<td width="100" height="25" class="td_bg">正本送单地址</td>
<td colspan="3" height="25" class="td_bg">
<?php
$address2 = $order_info->city2?$order_info->city2->name:'';
$address2 .= $order_info->district2?$order_info->district2->name:'';
$address2 .= $order_info->send_address2;
?>
<input class="Ainput" name="send_address" type="text" value="<?=$address2?>" style="width:770px;"/>
</td>
</tr>
<?php endif;?>
<?php if($order_info->send_address2):?>
<tr>
<td width="100" height="25" class="td_bg">收货人省份</td>
<td height="25" class="td_bg"><input class="Ainput province" name="receiver_province" type="text" value="" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg">收货人城市</td>
<td height="25" class="td_bg"><input class="Ainput city" name="receiver_city" type="text" value=" " style="width:250px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">收货人区县</td>
<td height="25" class="td_bg"><input class="Ainput county" name="receiver_county" type="text" value="" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg">收货人详细地址</td>
<td height="25" class="td_bg"><input class="Ainput address" name="receiver_address" type="text" value="" style="width:250px;"/></td>
</tr>
<?php elseif($order_info->receiver_province):?>
<tr>
<td width="100" height="25" class="td_bg">收货人省份</td>
<td height="25" class="td_bg"><input class="Ainput province" name="receiver_province" type="text" value="<?=$order_info->receiver_province?>" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg">收货人城市</td>
<td height="25" class="td_bg"><input class="Ainput city" name="receiver_city" type="text" value="<?=$order_info->receiver_city?>" style="width:250px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">收货人区县</td>
<td height="25" class="td_bg"><input class="Ainput county" name="receiver_county" type="text" value="<?=$order_info->receiver_county?>" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg">收货人详细地址</td>
<td height="25" class="td_bg"><input class="Ainput address" name="receiver_address" type="text" value="<?=$order_info->receiver_address?>" style="width:250px;"/></td>
</tr>
<?php else:?>
<tr>
<td width="100" height="25" class="td_bg">收货人省份</td>
<td height="25" class="td_bg"><input class="Ainput province" name="receiver_province" type="text" value="<?=$order_info->addr->regionP->name?>" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg">收货人城市</td>
<td height="25" class="td_bg"><input class="Ainput city" name="receiver_city" type="text" value="<?php if($order_info->addr->regionC->name=='市辖区'|| $order_info->addr->regionC->name=='市辖县'|| $order_info->addr->regionC->name=='县'):?><?=$order_info->addr->regionP->name?><?php else:?><?=$order_info->addr->regionC->name?><?php endif;?>
" style="width:250px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">收货人区县</td>
<td height="25" class="td_bg"><input class="Ainput county" name="receiver_county" type="text" value="<?=$order_info->addr->regionD->name?>" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg">收货人详细地址</td>
<td height="25" class="td_bg"><input class="Ainput address" name="receiver_address" type="text" value=" <?=$order_info->addr->regionT->name?><?=$order_info->addr->address?>" style="width:250px;"/></td>
</tr>
<?php endif;?>
<tr>
<td width="100" height="25" class="td_bg">保险公司</td>
<td height="25" class="td_bg"><input class="Ainput" name="sender_name" type="text" value="<?=$order_info->company2_id?$order_info->company2->name:''?>" style="width:250px;"/></td>
<td height="25" class="td_bg" colspan="2"></td>
</tr>
</form>
<tr>
<td height="22" colspan="6" align="center" class="td_bg">
<input id="print-btn" type=button class="ACT_btn" name=Submit1 value=" 打印 "/>
&nbsp;&nbsp;
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 关闭 ">
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
function isNull(data){
if(data == "" || data == undefined || data == null){
return true;
}else{
return false;
}
}
$(function () {
//打印按钮
$("#print-btn").click(function(){
var params = $("#theFrm").serialize();
var province = $('.province').val();
var city = $('.city').val();
var county = $('.county').val();
var address = $('.address').val()
if(isNull(province)){
alert('收货人省份必填项!');
return false;
}
if(isNull(city)){
alert('收货人城市必填项!');
return false;
}
if(isNull(county)){
alert('收货人区县必填项!');
return false;
}
if(isNull(address)){
alert('收货人详细地址必填项!');
return false;
}
window.open('/print/op-ems-print1?'+params);
});
//返回按钮
$('#back-btn').click(function(){
//window.location.href='/insurer/original-send-mng?<?=$back_params?>';
window.close();
});
})
</script>

@ -1,143 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<form id="theFrm">
<tr>
<td colspan="6" align="center">送单表</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">收件人</td>
<td width="300" height="25" class="td_bg"><input class="Ainput" name="insurer_name" type="text" value="" style="width:250px;" /></td>
<td width="100" height="25" class="td_bg">联系电话</td>
<td width="300" height="25" class="td_bg"><input class="Ainput" name="link_tel" type="text" value="" style="width:250px;" /></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">收货人省份</td>
<td height="25" class="td_bg"><input class="Ainput province" name="receiver_province" type="text" value="" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg">收货人城市</td>
<td height="25" class="td_bg"><input class="Ainput city" name="receiver_city" type="text" value="" style="width:250px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">收货人区县</td>
<td height="25" class="td_bg"><input class="Ainput county" name="receiver_county" type="text" value="" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg">收货人详细地址</td>
<td height="25" class="td_bg"><input class="Ainput address" name="receiver_address" type="text" value="" style="width:250px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">保险公司</td>
<td height="25" class="td_bg"><input class="Ainput sender_name" name="sender_name" type="text" value="人保" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg">快递备注</td>
<td height="25" class="td_bg"><input class="Ainput sender_name" name="ems_remark" type="text" value="" style="width:250px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">快递单号</td>
<td height="25" class="td_bg"><input class="Ainput ems_no_name" name="ems_no" type="text" value="" style="width:250px;"/></td>
<td width="100" height="25" class="td_bg"></td>
<td height="25" class="td_bg"></td>
</tr>
</form>
<tr>
<td height="22" colspan="6" align="center" class="td_bg">
<input id="sub-btn" type=button class="ACT_btn" name=Submit2 value="提交"/>
<input id="print-btn" type=button class="ACT_btn" name=Submit1 value=" 打印 "/>
&nbsp;&nbsp;
<!-- <input id="back-btn" type="button" class="ACT_btn ui-icon-close" name="Submit3" value=" 关闭 ">-->
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
function isNull(data){
if(data == "" || data == undefined || data == null){
return true;
}else{
return false;
}
}
$(function () {
//打印按钮
$("#print-btn").click(function(){
var params = $("#theFrm").serialize();
var province = $('.province').val();
var city = $('.city').val();
var county = $('.county').val();
var address = $('.address').val()
var sender_name = $('.sender_name').val()
var ems_no = $('.ems_no_name').val()
if(isNull(province)){
alert('收货人省份必填项!');
return false;
}
if(isNull(city)){
alert('收货人城市必填项!');
return false;
}
if(isNull(county)){
alert('收货人区县必填项!');
return false;
}
if(isNull(address)){
alert('收货人详细地址必填项!');
return false;
}
if(isNull(sender_name)){
alert('保险公司必填项!');
return false;
}
window.open('/print/op-ems-print2?'+params);
});
$('#sub-btn').click(function(){
var province = $('.province').val();
var city = $('.city').val();
var county = $('.county').val();
var address = $('.address').val()
var sender_name = $('.sender_name').val()
var ems_no = $('.ems_no_name').val()
if(isNull(province)){
alert('收货人省份必填项!');
return false;
}
if(isNull(city)){
alert('收货人城市必填项!');
return false;
}
if(isNull(county)){
alert('收货人区县必填项!');
return false;
}
if(isNull(address)){
alert('收货人详细地址必填项!');
return false;
}
var params = $('#theFrm').serialize();
$.post('/insurer/kuaidi-save',params,function(obj){
if(obj.success) {
$('#sub-btn').attr('disabled',true);
alert(obj.msg);
}else{
alert(obj.msg);
}
},'json');
});
//返回按钮
// $('#back-btn').click(function(){
//// window.location.href='/insurer/original-send-mng?<?////=$back_params?>////';
//// window.close();
// });
})
</script>

@ -294,7 +294,7 @@ use common\models\PriceT;
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-4"> <div class="col-sm-5 col-sm-offset-4">
<button type="button" class="btn btn-primary btn-return" type="button"> <button type="button" class="btn btn-primary btn-return" type="button">
<strong>退 回</strong> <strong>退 回</strong>
</button> </button>

@ -16,21 +16,27 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" id="searchFrm" class="form-inline" onsubmit="return search();">
<div class="form-group"> <div class="form-group" style="margin-bottom: 8px;">
<label>车主</label> <label for="car_man">车主</label>
<input type="text" name="car_man" id="car_man" class="form-control"> <input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="phone">电话</label>
<input type="text" name="phone" id="phone" class="form-control"> <input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="car_no">车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control"> <input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label> </div>
<div class="form-group" style="margin-bottom: 8px;">
<label for="id_man">被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control"> <input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
<button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -77,6 +83,11 @@ use \common\libs\MyLib;
} }
function search() { function search() {
o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
$('#listTable').bootstrapTable('destroy'); $('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({ $('#listTable').bootstrapTable({
url: "/insurer/original-mng-json", url: "/insurer/original-mng-json",

@ -1,566 +0,0 @@
<?php
use \common\libs\MyLib;
use \common\models\PriceT;
?>
<link href="/css/tabs.css" rel="stylesheet" type="text/css">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td height="22" colspan="2" class="td_bg">
<table width="100%" align="center" height="120" border="0" cellpadding="0" cellspacing="0" id="mainTable">
<tr>
<td height="120" valign="top" class="td_bg">
<!--保单信息-->
<form id="orderFrm">
<table>
<tbody>
<tr>
<TD height="30" align="center" class=tab-on id=navcell onclick=open_up(1) name="navcell">▼保单信息</TD>
</tr>
</tbody>
</table>
<TABLE id=tb1 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb">
<TR>
<TD vAlign=top>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
<input type="hidden" name="car_id" value="<?=$car_info->id?>">
<tr>
<td width="100" height="25" class="bg_tr">车牌号</td>
<td height="25" class="td_bg"><?=$car_info->car_no?></td>
<td width="100" height="25" class="bg_tr">厂牌型号</td>
<td height="25" class="td_bg"><?=$car_info->factory_model?></td>
<td width="60" height="25" class="bg_tr">品牌</td>
<td width="120" height="25" class="td_bg"><?=$car_info->brand?$car_info->brand->name:''?></td>
<td width="60" height="25" class="bg_tr">车系</td>
<td height="25" class="td_bg"><?=$car_info->series?$car_info->series->name:''?></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">发动机号</td>
<td height="25" class="td_bg"><?=$car_info->engine_no?></td>
<td width="100" height="25" class="bg_tr">车架号</td>
<td height="25" class="td_bg"><?=$car_info->car_frame_no?></td>
<td width="60" height="25" class="bg_tr">初登日期</td>
<td height="25" class="td_bg"><?=$car_info->register_date?></td>
<td width="60" height="25" class="bg_tr">排量</td>
<td height="25" class="td_bg"><?=$car_info->displacement?$car_info->displacement->name:''?></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">车辆类型</td>
<td height="25" class="td_bg"><?=$car_info->carType?$car_info->carType->name:''?></td>
<td width="100" height="25" class="bg_tr">运营性质</td>
<td height="25" class="td_bg"><?=$car_info->carUse?$car_info->carUse->name:''?></td>
<td width="60" height="25" class="bg_tr">座位数</td>
<td height="25" class="td_bg"><?=$car_info->seats?></td>
<td width="60" height="25" class="bg_tr">年份</td>
<td height="25" class="td_bg"><?=$car_info->car_year?></td>
</tr>
<tr>
<td width="100" height="25" class="bg_tr">车主</td>
<td height="25" class="td_bg"><?=$car_info->car_man?></td>
<td width="100" height="25" class="bg_tr">联系电话</td>
<td height="25" class="td_bg"><?=$car_info->phone?></td>
<td width="60" height="25" class="bg_tr">证件号码</td>
<td colspan="3" height="25" class="td_bg"><?=$car_info->car_man_number?></td>
</tr>
<tr>
<td width="60" height="25" class="bg_tr">备注</td>
<td colspan="3" height="25" class="td_bg"><?=$car_info->remark?></td>
<td width="100" height="25" class="bg_tr">业务员</td>
<td height="25" class="td_bg"><?=$order_info->user?$order_info->user->getShowName():''?></td>
<td width="60" height="25" class="bg_tr">联系电话</td>
<td height="25" class="td_bg"><?=$order_info->user?$order_info->user->phone:''?></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
<tr>
<td class="bg_tr">被保险人</td>
<td class="td_bg"><?=$order_info->id_man?></td>
<td class="bg_tr">证件号码</td>
<td class="td_bg"><?=$order_info->id_number?></td>
<td width="60" class="bg_tr">联系人</td>
<td class="td_bg"><?=$order_info->link_man?></td>
<td width="60" class="bg_tr">联系电话</td>
<td class="td_bg"><?=$order_info->link_phone?></td>
</tr>
<tr>
<td class="bg_tr">送单日期</td>
<td class="td_bg"><?=$order_info->send_date?></td>
<td class="bg_tr">保险公司</td>
<td class="td_bg"><?=$order_info->company?$order_info->company->name:''?></td>
<td class="bg_tr">付款方式</td>
<td class="td_bg"><?=$order_info->payType?$order_info->payType->name:''?></td>
<td class="bg_tr">电子邮件</td>
<td class="td_bg"><?=$order_info->email?></td>
</tr>
<tr>
<td class="bg_tr">商业起保日期</td>
<td class="td_bg"><?=$order_info->insurer1_begin_date?></td>
<td class="bg_tr">交强起保日期</td>
<td class="td_bg"><?=$order_info->insurer2_begin_date?></td>
<td class="bg_tr">缴费单号</td>
<td colspan="3" class="td_bg"><?=$order_info->pay_no?></td>
</tr>
<tr>
<td class="bg_tr">商业保单号</td>
<td class="td_bg"><?=$order_info->insurer1_no?></td>
<td class="bg_tr">交强保单号</td>
<td class="td_bg"><?=$order_info->insurer2_no?></td>
<td rowspan="3" class="bg_tr" valign="center">备注</td>
<td colspan="3" rowspan="3" valign="top" class="td_bg"><?=$order_info->remark?></td>
</tr>
<tr>
<td class="bg_tr">送单地址</td>
<td colspan="3" class="td_bg">
<?=$order_info->direction1?$order_info->direction1->name:''?>
<?=$order_info->range1?$order_info->range1->name:''?>
<?=$order_info->city1?$order_info->city1->name:''?>
<?=$order_info->district1?$order_info->district1->name:''?>
<?=$order_info->send_address1?>
</td>
</tr>
<tr>
<td class="bg_tr">正本送单地址</td>
<td colspan="3" class="td_bg">
<?php if($order_info->send_address2):?>
<?=$order_info->direction2?$order_info->direction2->name:''?>
<?=$order_info->range2?$order_info->range2->name:''?>
<?=$order_info->city2?$order_info->city2->name:''?>
<?=$order_info->district2?$order_info->district2->name:''?>
<?=$order_info->send_address2?>
<?php elseif($order_info->receiver_province):?>
<?=$order_info->receiver_province?>
<?=$order_info->receiver_city?>
<?=$order_info->receiver_county?>
<?=$order_info->receiver_address?>
<?php else:?>
<?=$order_info->addr->regionP->name?>
<?=$order_info->addr->regionC->name?>
<?=$order_info->addr->regionD->name?>
<?php if(is_string($order_info->addr->regionT)):?>
<?=$order_info->addr->regionT?>
<?php else:?>
<?=$order_info->addr->regionT->name?>
<?php endif;?>
<?=$order_info->addr->address?>
<?php endif;?>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
<tr>
<td width="40%" valign="top">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td align="center" class="bg_tr">险种</td>
<td align="center" class="bg_tr">内容</td>
<td align="center" class="bg_tr" nowrap>不计免赔</td>
</tr>
<?php
$len = count($insurer_type_items);
for($i = 0; $i < $len; $i++) {
$item = $insurer_type_items[$i];
$order_id = $order_info->id;
if(!$order_id)
$order_id = 0;
$tmp_row = PriceT::find()
->where('order_id='.$order_id.' and type_id='.$item->id)
->one();
if($tmp_row->val == '' || $tmp_row->val == '0' || $tmp_row->val == '否' || $tmp_row->val == '无') continue;
?>
<tr>
<td class="bg_tr" nowrap><?=$item->name?>(<?=$item->code?>)</td>
<td class="td_bg"><?=$tmp_row->val?></td>
<td align="center" class="td_bg"><?php
if($tmp_row->is_nopay==1) {
echo '是';
}
?>
</td>
</tr>
<?php
}
?>
</table>
</td>
<td width="10px;">&nbsp;</td>
<td width="60%" valign="top">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td class="bg_tr">商业总净保费</td>
<td class="td_bg"><?=$order_info->total1_clear?></td>
<td class="bg_tr">商业含税总保费</td>
<td class="td_bg"><?=$order_info->total1?></td>
</tr>
<tr>
<td class="bg_tr">交强总净保费</td>
<td class="td_bg"><?=$order_info->total2_clear?></td>
<td class="bg_tr">交强含税总保费</td>
<td class="td_bg"><?=$order_info->total2?></td>
</tr>
<tr>
<td class="bg_tr">车船税</td>
<td class="td_bg"><?=$order_info->total3?></td>
<td class="bg_tr">共计签单</td>
<td class="td_bg"><?=$order_info->total_all?></td>
</tr>
<tr>
<td class="bg_tr">折扣后商业净保费</td>
<td class="td_bg"><?=$order_info->total1_real?></td>
<td class="bg_tr">减免金额</td>
<td class="td_bg"><?=$order_info->total1_dis?></td>
</tr>
<tr>
<td class="bg_tr">商业折扣率</td>
<td class="td_bg"><?=$order_info->total1_percent?></td>
<td class="bg_tr">应收</td>
<td class="td_bg"><?=$order_info->total_real?></td>
</tr>
<tr>
<td class="bg_tr">备注</td>
<td colspan="3" class="td_bg"><?=$order_info->price_remark?></td>
</tr>
</table>
</td>
</tr>
</table>
<p>礼券</p>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<?php
$index = 0;
foreach($gift_free_group_items as $item) {
// $ticket_info = \common\models\GiftTicketT::find()
// ->where('group_id='.$item->id.' and car_no like "'.$order_info->car_no.'"')
// ->one();
$index++;
echo '<tr>';
echo '<td width="85" class="bg_tr">'.$index.'</td>';
echo '<td class="td_bg">&nbsp;'.$item->name.'</td>';
echo '<td class="td_bg">';
echo '<select name="gift_types['.$item->id.']">';
echo '<option value="0">---请选择---</option>';
foreach($type_items as $type) {
echo '<option value="'.$type->id.'">'.$type->name.'</option>';
}
echo '</selected>';
echo '</td>';
echo '<td class="td_bg">';
echo '<input name="gifts['.$item->id.'][]" value="" style="width:200px;">';
echo '</td>';
}
echo '</tr>';
?>
</table>
<p>实物礼品</p>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<?php
$index = 0;
foreach($gift_group_items as $item) {
$ticket_info = \common\models\GiftTicketT::find()
->where('group_id='.$item->id.' and car_no="'.$order_info->car_no.'"')
->one();
$index++;
echo '<tr>';
echo '<td width="85" class="bg_tr">'.$index.'</td>';
echo '<td class="td_bg">&nbsp;'.$item->name.'</td>';
if($ticket_info) {
echo '<td class="td_bg">';
echo $ticket_info->type->name;
echo '</td>';
echo '<td class="td_bg">';
echo sprintf("%07d",$ticket_info->code);
echo '</td>';
} else {
echo '<td class="td_bg">';
echo '<select name="gift_types['.$item->id.']">';
echo '<option value="0">---请选择---</option>';
foreach($type_items as $type) {
echo '<option value="'.$type->id.'">'.$type->name.'</option>';
}
echo '</selected>';
echo '</td>';
echo '<td class="td_bg">';
echo '<input name="gifts['.$item->id.']" value="1" style="" type="radio">未出库<input name="gifts['.$item->id.']" value="2" style="" type="radio">已出库';
echo '</td>';
}
echo '</tr>';
}
?>
</table>
</TD>
</TR>
</TABLE>
<!--快递信息-->
<table>
<tbody>
<tr>
<TD height="30" align="center" class=tab-on id=navcell onclick=open_up(2) name="navcell">▼快递信息</TD>
</tr>
</tbody>
</table>
<TABLE id=tb2 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb">
<TR>
<TD vAlign=top>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
<tr>
<td width="100" align="right" class="bg_tr">快递公司:</td>
<td class="td_bg">
<select name="ems_company">
<option value="1">德邦</option>
</select>
</td>
<td width="100" align="right" class="bg_tr">快递单号:</td>
<td class="td_bg">
<input name="ems_no" type="text" value="<?=$order_info->mail_no?>"/>
</td>
<td width="100" align="right" class="bg_tr">体检卡号:</td>
<td class="td_bg">
<input name="physical_no" type="text" value=""/>
</td>
<td width="100" align="right" class="bg_tr">收件人姓名:</td>
<td class="td_bg">
<input name="link_name" type="text" value="<?=$order_info->id_man?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="bg_tr">收件人电话:</td>
<td class="td_bg">
<input name="link_tel" type="text" value="<?=$order_info->link_phone?>"/>
</td>
<td width="100" align="right" class="bg_tr">是否发送快递</td>
<td class="td_bg">
发快递 <input type="radio" class="is_express" name="is_express" value="1"><span style="margin: 0 10px;">|</span>自上门或其它<input type="radio" class="is_express" name="is_express" value="2">
</td>
<td width="100" align="right" class="bg_tr">收件人地址:</td>
<?php if($order_info->send_address2){
$address2 = $order_info->city2?$order_info->city2->name:'';
$address2 .= $order_info->district2?$order_info->district2->name:'';
$address2 .= $order_info->send_address2;
?>
<?php }elseif($order_info->receiver_province){
$address2 = $order_info->receiver_province;
$address2 .= $order_info->receiver_city;
$address2 .= $order_info->receiver_county;
$address2 .= $order_info->receiver_address;
?>
<?php }else{
$address2 =$order_info->addr->regionP->name;
$address2.=$order_info->addr->regionC->name;
$address2.=$order_info->addr->regionD->name;
if(is_string($order_info->addr->regionT)){
$address2.= $order_info->addr->regionT;
}else{
$address2.= $order_info->addr->regionT->name;
}
$address2.=$order_info->addr->address;
?>
<?php }?>
<td class="td_bg" colspan="3">
<input name="link_address" type="text" value="<?=$address2?>" style="width: 300px;"/>
</td>
</tr>
</table>
</TD>
</TR>
</TABLE>
</form>
<table>
<tbody>
<tr>
<TD height="30" align="center" class=tab-on id=navcell onclick=open_up(4) name="navcell">▼保单查看</TD>
</tr>
</tbody>
</table>
<TABLE id=tb4 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb">
<TR>
<TD vAlign=top>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
<tr>
<td width="110" align="left" class="bg_tr">保单文件打印:</td>
<td class="td_bg">
<?php if($order_info->shangye_src):?>
<a href="/upload/files<?=$order_info->shangye_src?>" target="_blank">查看商业保单并打印</a>
<?php endif;?>
<?php if($order_info->jiaoqiang_src):?>
<a href="/upload/files<?=$order_info->jiaoqiang_src?>" target="_blank">查看交强保单并打印</a>
<?php endif;?>
</td>
</tr>
</table>
</TD>
</TR>
</TABLE>
<!--操作记录-->
<table>
<tbody>
<tr>
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(3) name="navcell">▲操作记录</TD>
</tr>
</tbody>
</table>
<TABLE id=tb3 cellSpacing=1 cellPadding=0 width="100%" border=0 name="tb" class="hide-table">
<TR>
<TD vAlign=top>
<div id="car_history_list"></div>
</TD>
</TR>
</TABLE>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="22" colspan="2" align="center" class="td_bg">
<input id="return-btn" type=button class="ACT_btn" name=Submit5 value=" 退回 "/>
&nbsp;&nbsp;
<input id="cancel-btn" type=button class="ACT_btn" name=Submit4 value=" 放弃处理 "/>
&nbsp;&nbsp;
<input id="ems-btn" type=button class="ACT_btn" name=Submit6 value=" 快递打印 "/>
&nbsp;&nbsp
<input id="save-btn" type=button class="ACT_btn" name=Submit1 value=" 保存 "/>
&nbsp;&nbsp;
<input id="submit-btn" type=button class="ACT_btn" name=Submit2 value=" 提交 "/>
&nbsp;&nbsp;
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 返回 ">
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript" src="/js/common2.js"></script>
<script type="text/javascript" language="javascript">
//保单处理
function SaveOrder(status_id) {
var is_express=$('input:radio[name="is_express"]:checked').val();
var param = $('#orderFrm').serialize();
if(status_id > 8){
if(isNull(is_express)){
alert('是否发送快递必选项!');
return false;
}
}
param = param + '&status_id=' + status_id;
$.post('/insurer/original-send-mng-save',param,function(obj){
if(obj.success) {
if(status_id > 8)
$('#back-btn').click();
else
alert(obj.msg);
} else {
alert(obj.msg);
}
},'json');
}
//判断是否填写了选项
function isNull(data){
if(data == "" || data == undefined || data == null){
return true;
}else{
return false;
}
}
$(function(){
// $('.shangy').click(function () {
// var dizhi=$(this).attr('texts');
// window.location.href = "/insurer/arrived?dizhi=" + dizhi+"&stauts=1";
// });
// $('.xzj').click(function () {
// var dizhi=$(this).attr('texts');
// window.location.href = "/insurer/arrived?dizhi=" + dizhi+"&stauts=2";
//
// });
//操作历史
gotoPage('/car/ajax-history-index?car_id=<?=$car_info->id?>&page=1','car_history_list');
//退回处理
$('#return-btn').click(function(){
var r = prompt('退回原因', '');
if(r != null && r != '') {
$.post('/insurer/return-op',{
order_id:<?=$order_info->id?>,
return_remark:r,
return_status_id:<?=$order_info->status_id?>
},function(obj){
alert(obj.msg);
if(obj.success) {
$('#back-btn').click();
}
},'json');
} else {
alert('不填写原因,无法退回');
}
});
//添加EMS
// $('#ems-save-btn').click(function(){
// var params = $('#emsFrm').serialize();
// $.post('/ems/save',params,function(obj){
// alert(obj.msg);
// if(obj.success) {
// $('#emsFrm')[0].reset();
// gotoPage('/ems/ajax-car-index?car_id=<?//=$car_info->id?>//&order_id=<?//=$order_info->id?>//&t='+Math.random(),'ems_list');
// }
// },'json');
// });
// gotoPage('/ems/ajax-car-index?car_id=<?//=$car_info->id?>//&order_id=<?//=$order_info->id?>//&t='+Math.random(),'ems_list');
//EMS打印
$('#ems-btn').click(function(){
window.open('/insurer/original-ems-edit?id=<?=$order_info->id?>');
});
//放弃处理
$('#cancel-btn').click(function(){
if(confirm('是否确认放弃处理?')) {
$.post('/insurer/order-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
if(obj.success) {
$('#back-btn').click();
} else {
alert(obj.msg);
}
},'json');
}
});
//保存
$('#save-btn').click(function(){
SaveOrder(8);
});
//提交
$('#submit-btn').click(function(){
if(confirm('是否提交此保单?')) {
SaveOrder(10);
}
});
//返回
$('#back-btn').click(function(){
window.location.href = '/insurer/original-send-mng?<?=$back_params?>';
});
});
</script>

@ -1,85 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
//详情
function info(id) {
var params = $('#searchForm').serialize();
window.location.href = '/insurer/original-send-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params);
}
function ems_print(id) {
var params = $('#searchForm').serialize();
window.location.href = '/insurer/original-ems-edit?id=' + id + '&back_params=' + encodeURIComponent(params);
}
$(function(){
$("#search-btn").click(function(){
$('#page').val(0);
var params = $('#searchForm').serialize();
window.location.href = "/insurer/original-send-mng?" + params;
});
$("#kd-btn").click(function(){
window.location.href = "/insurer/original-ems-edit1";
});
});
</script>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<form id="searchForm">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<tr>
<td class="td_bg">
被保险人:<input name="car_man" type="text" value="<?=$car_man?>">
电话:<input name="phone" type="text" value="<?=$phone?>">
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索">
<input type="button" class="act_btn" id="kd-btn" name="kd-btn" value="快递模板">
<!-- <a class="act_btn" href="/insurer/original-ems-edit1">快递模板</a> </td>-->
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="50" align="center" class="bg_tr" nowrap>序号</td>
<td width="50" align="center" class="bg_tr" nowrap>被保险人</td>
<td width="60" align="center" class="bg_tr" nowrap>联系电话</td>
<td width="60" align="center" class="bg_tr" nowrap>车牌号</td>
<td width="60" align="center" class="bg_tr" nowrap>保险公司</td>
<td width="60" align="center" class="bg_tr" nowrap>送单时间</td>
<td width="80" align="center" class="bg_tr" nowrap>送单地址</td>
<td width="200" align="center" class="bg_tr" nowrap>送单备注</td>
<td width="60" align="center" class="bg_tr" nowrap>销售座席</td>
<td width="60" align="center" class="bg_tr" nowrap>状态</td>
<td width="60" align="center" class="bg_tr" nowrap>当前操作</td>
<td width="30" align="center" class="bg_tr" nowrap>操作</td>
</tr>
<?php
foreach($items as $index => $item) {
$start_index = ($page - 1) * 20 + $index;
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg"nowrap ><?=$start_index + 1?></td>
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,10)?></td>
<td class="td_bg" nowrap><?=$item->link_phone?></td>
<td class="td_bg" nowrap><?=$item->car_no?></td>
<td class="td_bg" nowrap><?=$item->company?$item->company->name:''?></td>
<td class="td_bg" nowrap><?=$item->send_date?></td>
<td class="td_bg" nowrap><?=MyLib::substr_cut($item['send_address2'],30)?></td>
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->remark,30)?></td>
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?>&nbsp;</td>
<td class="td_bg" nowrap><?=$item->status->name?></td>
<td class="td_bg" nowrap><?=$item->lock?$item->lock->getShowName():''?></td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
</td>
</tr>
<?php
}
?>
<tr >
<td height="25" colspan="14" align="center" class="td_bg"><?=$page_info?></td>
</tr>
</table>

@ -65,10 +65,10 @@ use \common\libs\MyLib;
<option value="2">已完成</option> <option value="2">已完成</option>
</select> </select>
</div> </div>
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary mb-8">搜索</button>
</form> </form>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -1,226 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<link href="/css/tabs.css" rel="stylesheet" type="text/css">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table" style="table-layout: fixed;">
<form id="orderFrm">
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
<tr>
<td colspan="6" align="center">送单表</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">车牌</td>
<td width="300" height="25" class="td_bg"><input name="car_no" type="text" value="<?=$order_info->car_no?>" style="width:100px;" /></td>
<td width="100" height="25" class="td_bg">出单日期</td>
<td width="300" height="25" class="td_bg"><input name="upload_date" type="text" value="<?=$order_info->submit_date?>" style="width:100px;" /></td>
<td width="100" height="25" class="td_bg">送单日期</td>
<td width="300" height="25" class="td_bg"><input name="send_date" type="text" value="<?=$order_info->send_date?>" style="width:100px;" /></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">保险起期</td>
<td height="25" class="td_bg"><input name="insurer_date" type="text" value="<?=$order_info->insurer1_begin_date?>" style="width:100px;" /></td>
<td width="100" height="25" class="td_bg">保险公司</td>
<td height="25" class="td_bg"><input name="insurer_company" type="text" value="<?=$order_info->company?$order_info->company->name:''?>" style="width:100px;" /></td>
<td width="100" height="25" class="td_bg">缴费单号</td>
<td height="25" class="td_bg"><input name="pay_no" type="text" value="<?=$order_info->pay_no?>" style="width:100px;" /></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">车型种类</td>
<td height="25" class="td_bg"><input name="car_model" type="text" value="<?=$order_info->car->factory_model?>" style="width:100px;"/></td>
<td width="100" height="25" class="td_bg">联系人</td>
<td height="25" class="td_bg"><input name="link_man" type="text" value="<?=$order_info->link_man?>" style="width:100px;"/></td>
<td width="100" height="25" class="td_bg">电话</td>
<td height="25" class="td_bg"><input name="link_tel" type="text" value="<?=$order_info->link_phone?>" style="width:100px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">交强签单</td>
<td height="25" class="td_bg"><input name="total4" type="text" value="<?=$order_info->total2?>" style="width:100px;"/></td>
<td width="100" height="25" class="td_bg">车船税</td>
<td height="25" class="td_bg"><input name="total5" type="text" value="<?=$order_info->total3?>" style="width:100px;"/></td>
<td width="100" height="25" class="td_bg">商业签单</td>
<td height="25" class="td_bg"><input name="total3" type="text" value="<?=$order_info->total1?>" style="width:100px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">共计签单</td>
<td height="25" class="td_bg"><input name="total6" type="text" value="<?=$order_info->total_all?>" style="width:100px;"/></td>
<td width="100" height="25" class="td_bg">实收金额</td>
<td height="25" class="td_bg"><input name="total8" type="text" value="<?=$order_info->total_real?>" style="width:100px;"/></td>
<td width="100" height="25" class="td_bg">实际回款</td>
<td height="25" class="td_bg">&nbsp;</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">发票抬头</td>
<td colspan="3" height="25" class="td_bg"><input name="piao_header" type="text" value="个人" style="width:400px;"/></td>
<td width="100" height="25" class="td_bg">缴费方式</td>
<td height="25" class="td_bg"><input name="pay_type" type="text" value="<?=$order_info->payType?$order_info->payType->name:''?>" style="width:100px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">送单备注</td>
<td colspan="5" height="25" class="td_bg"><input name="send_remark" type="text" value="<?=$order_info->remark?>" style="width:600px;"/></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">礼品</td>
<td colspan="5" height="25" class="td_bg">
<input name="gift" type="text" value="<?=$gift_str?>" style="width:600px;"/>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">送单地址</td>
<td colspan="5" width="80%" height="25" class="td_bg">
<?php
$address1 = $order_info->direction1?$order_info->direction1->name:'';
$address1 .= $order_info->range1?$order_info->range1->name:'';
$address1 .= $order_info->city1?$order_info->city1->name:'';
$address1 .= $order_info->district1?$order_info->district1->name:'';
$address1 .= $order_info->send_address1;
?>
<input name="address1" type="text" value="<?=$address1?>" style="width: 600px;">
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">正本送单地址</td>
<td colspan="5" width="80%" height="25" class="td_bg">
<?php if($order_info->send_address2){
$address2 = $order_info->city2?$order_info->city2->name:'';
$address2 .= $order_info->district2?$order_info->district2->name:'';
$address2 .= $order_info->send_address2;
?>
<?php }elseif($order_info->receiver_province){
$address2 = $order_info->receiver_province;
$address2 .= $order_info->receiver_city;
$address2 .= $order_info->receiver_county;
$address2 .= $order_info->receiver_address;
?>
<?php }else{
$address2 =$order_info->addr->regionP->name;
$address2.=$order_info->addr->regionC->name;
$address2.=$order_info->addr->regionD->name;
if(is_string($order_info->addr->regionT)){
$address2.= $order_info->addr->regionT;
}else{
$address2.= $order_info->addr->regionT->name;
}
$address2.=$order_info->addr->regionT->name;
$address2.=$order_info->addr->address;
?>
<?php }?>
<input name="address1" type="text" value="<?=$address2?>" style="width: 600px;">
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">业务员</td>
<td height="25" class="td_bg"><input name="sale_man" type="text" value="<?=$order_info->user?$order_info->user->getShowName():''?>" style="width:100px;"/></td>
<td width="100" height="25" class="td_bg">电话</td>
<td height="25" class="td_bg"><input name="sale_tel" type="text" value="<?=$order_info->user?$order_info->user->phone:''?>" /></td>
<td width="100" height="25" class="td_bg">送单员</td>
<td height="25" class="td_bg">
<select name="lock_id" id="lock_id">
<option value="0">---请选择---</option>
<?php
foreach($user_items as $item) {
echo '<option value="'.$item->id.'"';
if($order_info->lock_id == $item->id)
echo ' selected ';
echo '>'.$item->getShowName().'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">优惠金额</td>
<td height="25" class="td_bg"><input name="total9" type="text" value="<?=$order_info->total1_dis?>" /></td>
<td width="100" height="25" class="td_bg">被保险人</td>
<td height="25" class="td_bg"><input name="insurer_man" type="text" value="<?=$order_info->id_man?>" /></td>
<td width="100" height="25" class="td_bg">签字</td>
<td height="25" class="td_bg"></td>
</tr>
</form>
<tr>
<td height="22" colspan="6" align="center" class="td_bg">
<input id="return-btn" type=button class="ACT_btn" name=Submit5 value=" 退回 "/>
&nbsp;&nbsp;
<input id="cancel-btn" type=button class="ACT_btn" name=Submit1 value=" 放弃处理 "/>
&nbsp;&nbsp;
<input id="submit-btn" type=button class="ACT_btn" name=Submit3 value=" 分配 "/>
<!-- &nbsp;&nbsp;
<input id="next-btn" type=button class="ACT_btn" name=Submit3 value=" 提交 "/>
//--> &nbsp;&nbsp;
<input id="back-btn" type="button" class="ACT_btn" name="Submit4" value=" 返回 ">
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
//保单处理
function SaveOrder(status_id) {
var param = $('#orderFrm').serialize();
param = param + '&status_id=' + status_id;
$.post('/insurer/send-mng-save',param,function(obj){
if(obj.success) {
$('#back-btn').click();
} else {
alert(obj.msg);
}
},'json');
}
$(function () {
//退回处理
$('#return-btn').click(function(){
var r = prompt('退回原因', '');
if(r != null && r != '') {
$.post('/insurer/return-op',{
order_id:<?=$order_info->id?>,
return_remark:r,
return_status_id:<?=$order_info->status_id?>
},function(obj){
alert(obj.msg);
if(obj.success) {
$('#back-btn').click();
}
},'json');
} else {
alert('不填写原因,无法退回');
}
});
//放弃处理
$('#cancel-btn').click(function(){
if(confirm('是否确认放弃处理?')) {
$.post('/insurer/order-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
if(obj.success) {
$('#back-btn').click();
} else {
alert(obj.msg);
}
},'json');
}
});
//分配
$('#submit-btn').click(function(){
if(confirm('是否分配此保单?')) {
SaveOrder(4);
}
});
//提交
$('#next-btn').click(function(){
if(confirm('是否提交此保单?')) {
SaveOrder(5);
}
});
//返回按钮
$('#back-btn').click(function(){
window.location.href='/insurer/send-mng?<?=$back_params?>';
});
})
</script>

@ -1,91 +0,0 @@
<?php
use \common\libs\MyLib;
?>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
//详情
function info(id) {
var params = $('#searchForm').serialize();
window.location.href = '/insurer/send-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params);
}
$(function(){
$("#search-btn").click(function(){
$('#page').val(0);
var params = $('#searchForm').serialize();
window.location.href = "/insurer/send-mng?" + params;
});
});
</script>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<form id="searchForm">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<tr>
<td class="td_bg">
被保险人:<input name="car_man" type="text" value="<?=$car_man?>" style="width: 100px;">
电话:<input name="phone" type="text" value="<?=$phone?>" style="width: 100px;">
车牌:<input name="car_no" type="text" value="<?=$car_no?>" style="width: 100px;">
送单日期:<input name="send_date" type="text" value="<?=$send_date?>" onclick="WdatePicker()" style="width:100px;">
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td>
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr>
<td width="40" align="center" class="bg_tr" nowrap>序号</td>
<td width="60" align="center" class="bg_tr" nowrap>车牌号</td>
<td width="50" align="center" class="bg_tr" nowrap>被保险人</td>
<td width="60" align="center" class="bg_tr" nowrap>保险公司</td>
<td width="60" align="center" class="bg_tr" nowrap>送单时间</td>
<td width="60" align="center" class="bg_tr" nowrap>方位</td>
<td width="80" align="center" class="bg_tr" nowrap>送单地址</td>
<td width="150" align="center" class="bg_tr" nowrap>送单备注</td>
<td width="80" align="center" class="bg_tr" nowrap>商业起保时间</td>
<td width="60" align="center" class="bg_tr" nowrap>配送次数</td>
<td width="80" align="center" class="bg_tr" nowrap>交强起保时间</td>
<td width="60" align="center" class="bg_tr" nowrap>销售座席</td>
<td width="60" align="center" class="bg_tr" nowrap>核保人员</td>
<td width="60" align="center" class="bg_tr" nowrap>状态</td>
<td width="60" align="center" class="bg_tr" nowrap>当前操作</td>
<td width="30" align="center" class="bg_tr" nowrap>操作</td>
</tr>
<?php
foreach($items as $index => $item) {
$start_index = ($page-1)*20+$index;
$op_user = $item->getUsers()->where('type_id=2')->one();
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
<td class="td_bg" nowrap><?=$item->car_no?></td>
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,10)?></td>
<td class="td_bg" nowrap><?=$item->company?$item->company->name:''?></td>
<td class="td_bg" nowrap><?=$item->send_date?></td>
<td class="td_bg" align="center" nowrap><?=$item->direction1?$item->direction1->name:''?></td>
<td class="td_bg" nowrap><?php
$address = $item->city1?$item->city1->name:'';
$address .= $item->district1?$item->district1->name:'';
$address .= $item->send_address1;
echo MyLib::substr_cut($address,30);
?>
</td>
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->remark,20)?></td>
<td class="td_bg" nowrap><?=$item->insurer1_begin_date?></td>
<td class="td_bg" align="center" ><?=$item->send_times?></td>
<td class="td_bg" nowrap><?=$item->insurer2_begin_date?></td>
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?>&nbsp;</td>
<td class="td_bg" nowrap><?=$op_user && $op_user->user ? $op_user->user->getShowName():''?></td>
<td class="td_bg" nowrap><?=$item->status->name?></td>
<td class="td_bg" nowrap><?=$item->lock?$item->lock->getShowName():''?></td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
</td>
</tr>
<?php
}
?>
<tr >
<td height="25" colspan="16" align="center" class="td_bg"><?=$page_info?></td>
</tr>
</table>

@ -9,16 +9,16 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=intval($info->id)?>"> <input type="hidden" name="id" value="<?=intval($info->id)?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">名称</label> <label class="col-sm-1 control-label">名称</label>
<div class="col-md-5"> <div class="col-sm-5">
<input type="text" name="name" value="<?=$info->name?>" class="form-control"> <input type="text" name="name" value="<?=$info->name?>" class="form-control">
</div> </div>
<label class="col-md-1 control-label">上级</label> <label class="col-sm-1 control-label">上级</label>
<div class="col-md-5"> <div class="col-sm-5">
<select name="parent_id" class="form-control"> <select name="parent_id" class="form-control">
<option value="0">--无上级---</option> <option value="0">--无上级---</option>
<?php <?php
@ -35,8 +35,8 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">区别</label> <label class="col-sm-1 control-label">区别</label>
<div class="col-md-5"> <div class="col-sm-5">
<select name="difc" class="form-control"> <select name="difc" class="form-control">
<option value="0"></option> <option value="0"></option>
<option value="1" <?=$info->difc==1?'selected':''?>>新保</option> <option value="1" <?=$info->difc==1?'selected':''?>>新保</option>
@ -45,14 +45,14 @@ use \common\libs\MyLib;
<option value="4" <?=$info->difc==4?'selected':''?>>增加清洗库</option> <option value="4" <?=$info->difc==4?'selected':''?>>增加清洗库</option>
</select> </select>
</div> </div>
<label class="col-md-1 control-label">排序</label> <label class="col-sm-1 control-label">排序</label>
<div class="col-md-5"> <div class="col-sm-5">
<input type="text" name="paixu_id" value="<?=$info->paixu_id?>" class="form-control"> <input type="text" name="paixu_id" value="<?=$info->paixu_id?>" class="form-control">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong><?=$info ? '保 存':'添 加'?></strong> <strong><?=$info ? '保 存':'添 加'?></strong>
</button> </button>

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -9,7 +9,7 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="op" value="add" /> <input type="hidden" name="op" value="add" />
<div class="form-group"> <div class="form-group">

@ -23,7 +23,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="op" value="edit" /> <input type="hidden" name="op" value="edit" />
<input type="hidden" name="id" value="<?=$info->id?>" /> <input type="hidden" name="id" value="<?=$info->id?>" />
@ -70,7 +70,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12" id="users"> <div class="col-sm-12" id="users">
</div> </div>
</div> </div>
</div> </div>
@ -106,7 +106,7 @@ use \common\libs\MyLib;
html += '</div>'; html += '</div>';
html += '<div class="ibox-content">'; html += '<div class="ibox-content">';
html += '<div class="row">'; html += '<div class="row">';
html += '<div class="col-md-12">'; html += '<div class="col-sm-12">';
html += '<h5>条件:</h5>'; html += '<h5>条件:</h5>';
html += '<p>保费:' + item.tiaojian.baofei + '元</p>'; html += '<p>保费:' + item.tiaojian.baofei + '元</p>';
if(item.tiaojian.car_type != '') if(item.tiaojian.car_type != '')

@ -20,7 +20,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>

@ -9,7 +9,7 @@ use \common\libs\MyLib;
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="op" value="add" /> <input type="hidden" name="op" value="add" />
<div class="form-group"> <div class="form-group">

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save