* wanfang: (63 commits) 完善保单查询条件搜索 修复无法退回操作 修复显示全部通话记录bug 测试 修改BUG 在我的通话功能中,添加只显示用户自己信息标志 用户通时记录查询时间,添加初始时间为当天 修复更改车船税时,没法参与计算BUG 完成补点匹配功能开发 完成补点设置功能开发 完成返现管理功能开发 no message 修复正本提交时报错。 修复正本生成报错 修复拨号回调问题 修复生成短信时,没有包括车船BUG test2 test1 完善通时统计 完善通时统计 ... # Conflicts: # common/libs/MyLib.php # composer.json # composer.lock # frontend/controllers/CarController.php # frontend/controllers/GiftController.php # frontend/controllers/InsurerController.php # frontend/views/car/order-add.php # frontend/views/gift/gift-use.php # frontend/views/insurer/search.phpdev
commit
d738d32857
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,591 +0,0 @@ |
||||
<?php |
||||
|
||||
namespace frontend\controllers; |
||||
|
||||
use common\libs\MyLib; |
||||
use common\models\CarGiftT; |
||||
use common\models\EmsT; |
||||
use common\models\Gift2T; |
||||
use common\models\GiftGroupT; |
||||
use common\models\GiftT; |
||||
use common\models\GiftTicket2T; |
||||
use common\models\GiftTicketT; |
||||
use common\models\GiftType2T; |
||||
use common\models\GiftTypeT; |
||||
use common\models\GroupT; |
||||
use common\models\InsurerTypeT; |
||||
use common\models\OrderT; |
||||
use common\models\StrategyT; |
||||
use common\models\UserT; |
||||
use Yii; |
||||
use yii\data\Pagination; |
||||
use yii\web\Response; |
||||
|
||||
class Gift2Controller extends \yii\web\Controller |
||||
{ |
||||
public $my = null; |
||||
|
||||
public function init() |
||||
{ |
||||
parent::init(); |
||||
|
||||
$cookie = Yii::$app->request->cookies; |
||||
$user_id = MyLib::encrypt($cookie->get('aid'),'DECODE'); |
||||
|
||||
if($user_id != 0) |
||||
{ |
||||
$this->my = UserT::findOne(['id'=>$user_id]); |
||||
} else { |
||||
Yii::$app->response->redirect('/common/login')->send(); |
||||
exit; |
||||
} |
||||
} |
||||
|
||||
public function actionGift1Index() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$code = $request->get('code'); |
||||
$car_no = $request->get('car_no'); |
||||
$status = $request->get('status',6); |
||||
$type_id = $request->get('type_id',0); |
||||
$page = $request->get('page',1); |
||||
if($page < 1) $page = 1; |
||||
|
||||
$query = GiftTicketT::find() |
||||
->orderBy('id DESC'); |
||||
if($code != '') { |
||||
$query = $query->andWhere('code="'.$code.'"'); |
||||
} |
||||
if($car_no != '') { |
||||
$query = $query->andWhere('car_no like "'.$car_no.'"'); |
||||
} |
||||
if($status != '' && $status != 6) { |
||||
$query = $query->andWhere('status='.$status); |
||||
} |
||||
if($type_id > 0) { |
||||
$query = $query->andWhere('type_id='.$type_id); |
||||
} |
||||
// echo $query->createCommand()->rawSql; |
||||
$total = $query->count(); |
||||
|
||||
$pagination = new Pagination(['totalCount' => $total,'pageSize'=>20]); |
||||
$pagination->setPage($page-1); |
||||
|
||||
$query = $query->offset($pagination->offset)->limit($pagination->limit); |
||||
$items = $query->all(); |
||||
|
||||
$type_items = GiftType2T::find()->all(); |
||||
$page_info = MyLib::getPageInfo($pagination); |
||||
|
||||
return $this->render('gift1-index',[ |
||||
'items' => $items, |
||||
'code' => $code, |
||||
'car_no' => $car_no, |
||||
'page' => $page, |
||||
'page_info' => $page_info, |
||||
'status' => $status, |
||||
'type_items' => $type_items, |
||||
'type_id' => $type_id, |
||||
]); |
||||
} |
||||
|
||||
public function actionGift2Index() |
||||
{ |
||||
return $this->render('gift2-index'); |
||||
} |
||||
|
||||
public function actionIndex() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$code = $request->get('code'); |
||||
$car_no = $request->get('car_no'); |
||||
$page = $request->get('page',1); |
||||
if($page < 1) $page = 1; |
||||
|
||||
$query = GiftTicketT::find() |
||||
->orderBy('id DESC'); |
||||
if($code != '') { |
||||
$query = $query->andWhere('code="'.$code.'"'); |
||||
} |
||||
if($car_no != '') { |
||||
$query = $query->andWhere('car_no="'.$car_no.'"'); |
||||
} |
||||
// echo $query->createCommand()->rawSql; |
||||
$total = $query->count(); |
||||
|
||||
$pagination = new Pagination(['totalCount' => $total,'pageSize'=>20]); |
||||
$pagination->setPage($page-1); |
||||
|
||||
$query = $query->offset($pagination->offset)->limit($pagination->limit); |
||||
$items = $query->all(); |
||||
|
||||
$page_info = MyLib::getPageInfo($pagination); |
||||
|
||||
return $this->render('index',[ |
||||
'items' => $items, |
||||
'code' => $code, |
||||
'car_no' => $car_no, |
||||
'page' => $page, |
||||
'page_info' => $page_info |
||||
]); |
||||
} |
||||
|
||||
public function actionAdd() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$type_items = GiftType2T::find()->all(); |
||||
|
||||
return $this->render('add',[ |
||||
'type_items' => $type_items, |
||||
]); |
||||
} |
||||
|
||||
public function actionAddSave() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '保存失败'; |
||||
|
||||
if($request->isPost) { |
||||
$min_code = $request->post('min_code'); |
||||
$max_code = $request->post('max_code'); |
||||
$type_id = $request->post('type_id'); |
||||
|
||||
if($min_code == '') { |
||||
$result['msg'] = '请输入开始编号!'; |
||||
return $result; |
||||
} |
||||
if($max_code == '') { |
||||
$result['msg'] = '请输入结束编号!'; |
||||
return $result; |
||||
} |
||||
if($type_id == 0) { |
||||
$result['msg'] = '请选择类型!'; |
||||
return $result; |
||||
} |
||||
|
||||
$row = null; |
||||
for($i = $min_code; $i <= $max_code; $i++) { |
||||
$row = GiftTicketT::findOne(['code'=>$i,'type_id'=>$type_id]); |
||||
if(!$row) { |
||||
$row = new GiftTicketT(); |
||||
$row->code = $i; |
||||
$row->type_id = $type_id; |
||||
$row->input_date = date('Y-m-d H:i:s'); |
||||
$row->op_id = $this->my->id; |
||||
$row->status = 0; |
||||
$row->save(); |
||||
} |
||||
} |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '保存成功'; |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionOutput() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$type_items = GiftType2T::find()->all(); |
||||
|
||||
$gift_group_items = GiftGroupT::find()->all(); |
||||
|
||||
return $this->render('output',[ |
||||
'type_items' => $type_items, |
||||
'gift_group_items' => $gift_group_items, |
||||
]); |
||||
} |
||||
|
||||
public function actionOutputSave() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '保存失败'; |
||||
|
||||
if($request->isPost) { |
||||
$codes = $request->post('codes',array()); |
||||
$types = $request->post('types',array()); |
||||
$car_no = $request->post('car_no'); |
||||
|
||||
$tran = GiftTicketT::getDb()->beginTransaction(); |
||||
try { |
||||
foreach($types as $index => $type_id) { |
||||
if($type_id == 0) continue; |
||||
$ticket_info = GiftTicketT::findOne(['code'=>$codes[$index],'type_id'=>$type_id]); |
||||
if(!$ticket_info) { |
||||
$result['msg'] = '第'.($index+1).'组礼品编号不存在!'; |
||||
return $result; |
||||
} |
||||
if($ticket_info->status != 0) { |
||||
$result['msg'] = '第'.($index+1).'组礼品编号已经出库!'; |
||||
return $result; |
||||
} |
||||
$ticket_info->group_id = 0; |
||||
$ticket_info->car_no = $car_no; |
||||
$ticket_info->status = 1; |
||||
$ticket_info->use_date = date('Y-m-d H:i:s'); |
||||
$ticket_info->op_id = $this->my->id; |
||||
if(!$ticket_info->save()) { |
||||
var_dump($ticket_info->errors); |
||||
} |
||||
} |
||||
|
||||
$tran->commit(); |
||||
} catch(\Exception $e) { |
||||
$tran->rollBack(); |
||||
throw $e; |
||||
} |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '保存成功'; |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionEdit() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$id = $request->get('id',0); |
||||
$back_params = $request->get('back_params'); |
||||
if($id > 0) { |
||||
$info = GiftTicketT::findOne(['id'=>$id]); |
||||
} else { |
||||
$info = new GiftTicketT(); |
||||
} |
||||
|
||||
$type_items = GiftTypeT::find()->all(); |
||||
|
||||
return $this->render('edit',[ |
||||
'info' => $info, |
||||
'type_items' => $type_items, |
||||
'back_params' => $back_params, |
||||
]); |
||||
} |
||||
|
||||
public function actionSave() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '保存失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id'); |
||||
$status = $request->post('status'); |
||||
$car_no = $request->post('car_no'); |
||||
|
||||
$ticket_info = GiftTicketT::findOne(['id'=>$id]); |
||||
if(!$ticket_info) { |
||||
$result['msg'] = '礼品券不存在!'; |
||||
return $result; |
||||
} |
||||
|
||||
$ticket_info->car_no = $car_no; |
||||
$ticket_info->status = $status; |
||||
$ticket_info->use_date = date('Y-m-d H:i:s'); |
||||
$ticket_info->op_id = $this->my->id; |
||||
$ticket_info->save(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '保存成功'; |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionDelete() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '删除失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
|
||||
if($id > 0) { |
||||
$row = GiftTicketT::findOne(['id'=>$id]); |
||||
if($row->status == 0) { |
||||
$row->delete(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '删除成功'; |
||||
} |
||||
|
||||
} |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionTicket2List() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$code = $request->get('code'); |
||||
$car_no = $request->get('car_no'); |
||||
$type_id = $request->get('type_id',0); |
||||
$page = $request->get('page',1); |
||||
if($page < 1) $page = 1; |
||||
|
||||
$query = GiftTicketT::find() |
||||
->where('status=1') |
||||
->orderBy('id DESC'); |
||||
if($code != '') { |
||||
$query = $query->andWhere('code="'.$code.'"'); |
||||
} |
||||
if($car_no != '') { |
||||
$query = $query->andWhere('car_no like "'.$car_no.'"'); |
||||
} |
||||
if($type_id > 0) { |
||||
$query = $query->andWhere('type_id='.$type_id); |
||||
} |
||||
// echo $query->createCommand()->rawSql; |
||||
$total = $query->count(); |
||||
|
||||
$pagination = new Pagination(['totalCount' => $total,'pageSize'=>20]); |
||||
$pagination->setPage($page-1); |
||||
|
||||
$query = $query->offset($pagination->offset)->limit($pagination->limit); |
||||
$items = $query->all(); |
||||
|
||||
$type_items = GiftType2T::find()->all(); |
||||
$page_info = MyLib::getPageInfo($pagination); |
||||
|
||||
return $this->render('ticket2-list',[ |
||||
'items' => $items, |
||||
'code' => $code, |
||||
'car_no' => $car_no, |
||||
'page' => $page, |
||||
'page_info' => $page_info, |
||||
'type_items' => $type_items, |
||||
'type_id' => $type_id, |
||||
]); |
||||
} |
||||
|
||||
public function actionTicket2Output() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$id = $request->get('id',0); |
||||
if($id == 0) { |
||||
echo '无效礼券'; |
||||
exit; |
||||
} |
||||
$ticket_info = GiftTicketT::findOne(['id'=>$id]); |
||||
|
||||
$gift_items = Gift2T::find()->all(); |
||||
$type_items = GiftType2T::find()->all(); |
||||
|
||||
return $this->render('ticket2-output',[ |
||||
'ticket_info' => $ticket_info, |
||||
'gift_items' => $gift_items, |
||||
'type_items' => $type_items |
||||
]); |
||||
} |
||||
|
||||
public function actionTicket2OutputSave() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '保存失败'; |
||||
|
||||
if($request->isPost) { |
||||
$ticket_id = $request->post('ticket_id'); |
||||
$gift_id = (int)$request->post('gift_id'); |
||||
$send_type = $request->post('send_type'); |
||||
$send_no = $request->post('send_no'); |
||||
|
||||
$ticket_info = GiftTicketT::findOne(['id'=>$ticket_id]); |
||||
if(!$ticket_info) { |
||||
$result['msg'] = '礼品编号不存在!'; |
||||
return $result; |
||||
} |
||||
|
||||
if($gift_id == 0) { |
||||
$result['msg'] = '请选择礼品!'; |
||||
return $result; |
||||
} |
||||
|
||||
$ticket2_info = new GiftTicket2T(); |
||||
$ticket2_info->ticket_id = $ticket_info->id; |
||||
$ticket2_info->gift_id = $gift_id; |
||||
$ticket2_info->send_type = $send_type; |
||||
$ticket2_info->send_no = $send_no; |
||||
|
||||
$ticket2_info->status = 1; |
||||
$ticket2_info->op_id = $this->my->id; |
||||
$ticket2_info->use_date = date('Y-m-d H:i:s'); |
||||
|
||||
$ticket2_info->save(); |
||||
|
||||
$ticket_info->status = 2; |
||||
$ticket_info->use_date; |
||||
$ticket_info->op_id = $this->my->id; |
||||
$ticket_info->save(); |
||||
|
||||
//礼品 |
||||
$gift_info = Gift2T::findOne(['id'=>$gift_id]); |
||||
$gift_info->total = $gift_info->total - 1; |
||||
$gift_info->save(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '保存成功'; |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionTicket2Edit() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$id = $request->get('id',0); |
||||
if($id > 0) { |
||||
$info = GiftTicket2T::findOne(['id'=>$id]); |
||||
} else { |
||||
$info = new GiftTicket2T(); |
||||
} |
||||
|
||||
$gift_items = GiftT::find()->all(); |
||||
$type_items = GiftTypeT::find()->all(); |
||||
|
||||
return $this->render('ticket2-edit',[ |
||||
'info' => $info, |
||||
'gift_items' => $gift_items, |
||||
'type_items' => $type_items |
||||
]); |
||||
} |
||||
|
||||
public function actionTicket2Save() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '保存失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
$status = (int)$request->post('status'); |
||||
|
||||
$row = GiftTicket2T::findOne(['id'=>$id]); |
||||
$gift_info = $row->gift; |
||||
$gift_info->total = $gift_info->total + 1; |
||||
$gift_info->save(); |
||||
$row->status = 3; |
||||
$row->use_date = date('Y-m-d H:i:s'); |
||||
$row->save(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '保存成功'; |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionGift2List() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$name = $request->get('name'); |
||||
|
||||
$query = Gift2T::find(); |
||||
if($name != '') { |
||||
$query = $query->andWhere(['like','name',$name]); |
||||
} |
||||
$items = $query->all(); |
||||
|
||||
return $this->render('gift2-list',[ |
||||
'items' => $items, |
||||
'name' => $name |
||||
]); |
||||
} |
||||
|
||||
public function actionGift2Edit() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$id = $request->get('id',0); |
||||
if($id > 0) { |
||||
$info = Gift2T::findOne(['id'=>$id]); |
||||
} else { |
||||
$info = new GiftT(); |
||||
} |
||||
|
||||
return $this->render('gift2-edit',[ |
||||
'info' => $info |
||||
]); |
||||
} |
||||
|
||||
public function actionGift2Save() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '保存失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
$name = $request->post('name'); |
||||
$price = $request->post('price'); |
||||
$remark = $request->post('remark'); |
||||
$total = (int)$request->post('total'); |
||||
|
||||
if($name == '') { |
||||
$result['msg'] = '请输入名称!'; |
||||
return $result; |
||||
} |
||||
|
||||
$row = null; |
||||
if($id > 0) { |
||||
$row = Gift2T::findOne(['id'=>$id]); |
||||
} else { |
||||
$row = new Gift2T(); |
||||
} |
||||
$row->name = $name; |
||||
$row->price = $price; |
||||
$row->remark = $remark; |
||||
$row->total = $total; |
||||
$row->save(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '保存成功'; |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionGift2Delete() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '删除失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
|
||||
if($id > 0) { |
||||
$row = Gift2T::findOne(['id'=>$id]); |
||||
$row->delete(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '删除成功'; |
||||
} |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionStastics() |
||||
{ |
||||
$gift_type_items = GiftType2T::find()->all(); |
||||
$gift_items = Gift2T::find()->all(); |
||||
|
||||
return $this->render('stastics',[ |
||||
'gift_type_items' => $gift_type_items, |
||||
'gift_items' => $gift_items, |
||||
]); |
||||
} |
||||
} |
@ -1,141 +0,0 @@ |
||||
<?php |
||||
|
||||
namespace frontend\controllers; |
||||
|
||||
use common\libs\MyLib; |
||||
use common\models\GiftGroupT; |
||||
use common\models\GiftType2T; |
||||
use common\models\GiftType3T; |
||||
use common\models\GiftTypeT; |
||||
use common\models\UserT; |
||||
use Yii; |
||||
use yii\web\Response; |
||||
|
||||
class GiftGroupController extends \yii\web\Controller |
||||
{ |
||||
public $my = null; |
||||
|
||||
public function init() |
||||
{ |
||||
parent::init(); |
||||
|
||||
$cookie = Yii::$app->request->cookies; |
||||
$user_id = MyLib::encrypt($cookie->get('aid'),'DECODE'); |
||||
|
||||
if($user_id != 0) |
||||
{ |
||||
$this->my = UserT::findOne(['id'=>$user_id]); |
||||
} else { |
||||
Yii::$app->response->redirect('/common/login')->send(); |
||||
exit; |
||||
} |
||||
} |
||||
|
||||
public function actionIndex() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$name = $request->get('name'); |
||||
|
||||
$query = GiftGroupT::find() |
||||
->orderBy('id ASC') |
||||
->where('id>0'); |
||||
if($name != '') { |
||||
$query = $query->andWhere('name like "'.$name.'%"'); |
||||
} |
||||
$total = $query->count(); |
||||
|
||||
$items = $query->all(); |
||||
|
||||
return $this->render('index',[ |
||||
'items' => $items, |
||||
'name' => $name |
||||
]); |
||||
} |
||||
|
||||
public function actionEdit() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$id = $request->get('id',0); |
||||
$info = GiftGroupT::findOne(['id'=>$id]); |
||||
if(!$info) |
||||
$info = new GiftGroupT(); |
||||
$gifts = $info->gifts; |
||||
$gift_ids = array(); |
||||
if($gifts) { |
||||
foreach($gifts as $gift) { |
||||
$gift_ids[] = $gift->id; |
||||
} |
||||
} |
||||
|
||||
$gift_items = GiftType3T::find()->all(); |
||||
|
||||
return $this->render('edit',[ |
||||
'info'=>$info, |
||||
'gift_ids'=>$gift_ids, |
||||
'gift_items'=>$gift_items |
||||
]); |
||||
} |
||||
|
||||
public function actionSave() { |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
if($request->isPost) { |
||||
$id = intval($request->post('id')); |
||||
$name = $request->post('name'); |
||||
$is_free = $request->post('is_free',0); |
||||
$is_damage = $request->post('is_damage',0); |
||||
$gift_ids = $request->post('gift_ids'); |
||||
$gift_str = join(',',$gift_ids); |
||||
$min_money = $request->post('min_money'); |
||||
$max_money = $request->post('max_money'); |
||||
$group_ids = $request->post('group_ids'); |
||||
|
||||
$row = null; |
||||
if($id > 0) { |
||||
$row = GiftGroupT::findOne(['id'=>$id]); |
||||
} else { |
||||
$row = new GiftGroupT(); |
||||
} |
||||
$row->name = $name; |
||||
$row->is_free = $is_free; |
||||
$row->is_damage = $is_damage; |
||||
$row->gift_ids = $gift_str; |
||||
$row->min_money = $min_money; |
||||
$row->max_money = $max_money; |
||||
$row->group_ids = $group_ids; |
||||
if(!$row->save()) { |
||||
var_dump($row->errors); |
||||
} |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '操作成功'; |
||||
return $result; |
||||
} |
||||
$result['success'] = false; |
||||
$reuslt['msg'] = '操作失败'; |
||||
return $result; |
||||
} |
||||
|
||||
public function actionDelete() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '删除失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
|
||||
if($id > 0) { |
||||
$row = GiftGroupT::findOne(['id'=>$id]); |
||||
$row->delete(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '删除成功'; |
||||
} |
||||
} |
||||
return $result; |
||||
} |
||||
} |
@ -1,298 +0,0 @@ |
||||
<?php |
||||
|
||||
namespace frontend\controllers; |
||||
|
||||
use common\libs\MyLib; |
||||
use common\models\GiftType2T; |
||||
use common\models\GiftType3T; |
||||
use common\models\GiftTypeT; |
||||
use common\models\UserT; |
||||
use Yii; |
||||
use yii\web\Response; |
||||
|
||||
class GiftTypeController extends \yii\web\Controller |
||||
{ |
||||
public $my = null; |
||||
|
||||
public function init() |
||||
{ |
||||
parent::init(); |
||||
|
||||
$cookie = Yii::$app->request->cookies; |
||||
$user_id = MyLib::encrypt($cookie->get('aid'),'DECODE'); |
||||
|
||||
if($user_id != 0) |
||||
{ |
||||
$this->my = UserT::findOne(['id'=>$user_id]); |
||||
} else { |
||||
Yii::$app->response->redirect('/common/login')->send(); |
||||
exit; |
||||
} |
||||
} |
||||
|
||||
public function actionIndex() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$name = $request->get('name'); |
||||
|
||||
$query = GiftTypeT::find(); |
||||
if($name != '') { |
||||
$query = $query->andWhere(['like','name',$name]); |
||||
} |
||||
$items = $query->all(); |
||||
|
||||
return $this->render('index',[ |
||||
'items' => $items, |
||||
'name' => $name |
||||
]); |
||||
} |
||||
|
||||
public function actionEdit() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$id = $request->get('id',0); |
||||
if($id > 0) { |
||||
$info = GiftTypeT::findOne(['id'=>$id]); |
||||
} else { |
||||
$info = new GiftTypeT(); |
||||
} |
||||
|
||||
return $this->render('edit',[ |
||||
'info' => $info |
||||
]); |
||||
} |
||||
|
||||
public function actionSave() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '保存失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
$name = $request->post('name'); |
||||
|
||||
if($name == '') { |
||||
$result['msg'] = '请输入名称!'; |
||||
return $result; |
||||
} |
||||
|
||||
$row = null; |
||||
if($id > 0) { |
||||
$row = GiftTypeT::findOne(['id'=>$id]); |
||||
} else { |
||||
$row = new GiftTypeT(); |
||||
} |
||||
$row->name = $name; |
||||
$row->save(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '保存成功'; |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionDelete() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '删除失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
|
||||
if($id > 0) { |
||||
$row = GiftTypeT::findOne(['id'=>$id]); |
||||
$row->delete(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '删除成功'; |
||||
} |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionType2List() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$name = $request->get('name'); |
||||
|
||||
$query = GiftType2T::find(); |
||||
if($name != '') { |
||||
$query = $query->andWhere(['like','name',$name]); |
||||
} |
||||
$items = $query->all(); |
||||
|
||||
return $this->render('type2-list',[ |
||||
'items' => $items, |
||||
'name' => $name |
||||
]); |
||||
} |
||||
|
||||
public function actionType2Edit() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$id = $request->get('id',0); |
||||
if($id > 0) { |
||||
$info = GiftType2T::findOne(['id'=>$id]); |
||||
} else { |
||||
$info = new GiftType2T(); |
||||
} |
||||
|
||||
return $this->render('type2-edit',[ |
||||
'info' => $info |
||||
]); |
||||
} |
||||
|
||||
public function actionType2Save() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '保存失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
$name = $request->post('name'); |
||||
|
||||
if($name == '') { |
||||
$result['msg'] = '请输入名称!'; |
||||
return $result; |
||||
} |
||||
|
||||
$row = null; |
||||
if($id > 0) { |
||||
$row = GiftType2T::findOne(['id'=>$id]); |
||||
} else { |
||||
$row = new GiftType2T(); |
||||
} |
||||
$row->name = $name; |
||||
$row->save(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '保存成功'; |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionType2Delete() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '删除失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
|
||||
if($id > 0) { |
||||
$row = GiftType2T::findOne(['id'=>$id]); |
||||
$row->delete(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '删除成功'; |
||||
} |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionType3List() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$name = $request->get('name'); |
||||
|
||||
$query = GiftType3T::find(); |
||||
if($name != '') { |
||||
$query = $query->andWhere(['like','name',$name]); |
||||
} |
||||
$items = $query->all(); |
||||
|
||||
return $this->render('type3-list',[ |
||||
'items' => $items, |
||||
'name' => $name |
||||
]); |
||||
} |
||||
|
||||
public function actionType3Edit() |
||||
{ |
||||
$request = Yii::$app->request; |
||||
$id = $request->get('id',0); |
||||
if($id > 0) { |
||||
$info = GiftType3T::findOne(['id'=>$id]); |
||||
} else { |
||||
$info = new GiftType3T(); |
||||
} |
||||
|
||||
return $this->render('type3-edit',[ |
||||
'info' => $info |
||||
]); |
||||
} |
||||
|
||||
public function actionType3Save() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '保存失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
$name = $request->post('name'); |
||||
$price = $request->post('price',0); |
||||
$total = $request->post('total',-1); |
||||
$type = $request->post('type',0); |
||||
|
||||
if($name == '') { |
||||
$result['msg'] = '请输入名称!'; |
||||
return $result; |
||||
} |
||||
|
||||
$row = null; |
||||
if($id > 0) { |
||||
$row = GiftType3T::findOne(['id'=>$id]); |
||||
} else { |
||||
$row = new GiftType3T(); |
||||
} |
||||
$row->name = $name; |
||||
$row->price = $price; |
||||
$row->total = $total; |
||||
$row->type = $type; |
||||
if(!$row->save()) { |
||||
var_dump($row->errors); |
||||
} |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '保存成功'; |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
public function actionType3Delete() |
||||
{ |
||||
Yii::$app->response->format = Response::FORMAT_JSON; |
||||
$request = Yii::$app->request; |
||||
$result = array(); |
||||
$result['success'] = false; |
||||
$result['msg'] = '删除失败'; |
||||
|
||||
if($request->isPost) { |
||||
$id = $request->post('id',0); |
||||
|
||||
if($id > 0) { |
||||
$row = GiftType3T::findOne(['id'=>$id]); |
||||
$row->delete(); |
||||
|
||||
$result['success'] = true; |
||||
$result['msg'] = '删除成功'; |
||||
} |
||||
} |
||||
return $result; |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,67 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/iCheck/custom.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="car_id" value="<?=intval($car_id)?>">
|
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">无效理由</label> |
||||
<div class="col-sm-7"> |
||||
<select name="invalid_id" class="form-control"> |
||||
<option value="0">---请选择---</option> |
||||
<?php |
||||
foreach($invalid_items as $item) { |
||||
echo '<option value="'.$item->id.'">'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</div> |
||||
</div> |
||||
<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> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script type="text/javascript" language="javascript"> |
||||
$(function () { |
||||
//提交按钮 |
||||
$(".btn-save").click(function(){ |
||||
parent.layer.confirm('是否确认提交?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/car/invalid-save',params,function(obj){ |
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success) { |
||||
parent.history.go(-1); |
||||
layer_close(); |
||||
} |
||||
},'json'); |
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -1,79 +1,105 @@ |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="theFrm"> |
||||
<input type="hidden" name="id" value="<?=$caiwu_info->id?>">
|
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">车牌号</td> |
||||
<td colspan="3" height="25" class="td_bg"> |
||||
<?=$caiwu_info->car_no?> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">保险公司</td> |
||||
<td height="25" class="td_bg"> |
||||
<?=$caiwu_info->company?> |
||||
</td> |
||||
<td width="100" height="25" class="td_bg">保单号</td> |
||||
<td height="25" class="td_bg"> |
||||
<input name="insurer_no" type="text" id="insurer_no" value="<?=$caiwu_info->insurer_no?>" style="width:300px;"/>
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">总保费</td> |
||||
<td height="25" class="td_bg"> |
||||
<?=$caiwu_info->total?> |
||||
</td> |
||||
<td width="100" height="25" class="td_bg">净保费</td> |
||||
<td height="25" class="td_bg"> |
||||
<?=$caiwu_info->total_clear?> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">手续费比例</td> |
||||
<td colspan="3" height="25" class="td_bg"> |
||||
<input name="total_rate" type="text" id="total_rate" value="<?=$caiwu_info->total_rate?>" style="width:100px;"/>%
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">回款金额</td> |
||||
<td height="25" class="td_bg"> |
||||
<input name="r_total" type="text" id="r_total" value="<?=$caiwu_info->r_total?>" style="width:100px;"/>
|
||||
</td> |
||||
<td width="100" height="25" class="td_bg">回款日期</td> |
||||
<td height="25" class="td_bg"> |
||||
<input name="r_date" type="text" id="r_date" class="Wdate" value="<?=$caiwu_info->r_date?>" style="width:100px;" onclick="WdatePicker()"/>
|
||||
</td> |
||||
</tr> |
||||
</form> |
||||
<tr> |
||||
<td height="22" colspan="4" align="center" class="td_bg"> |
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
||||
|
||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" 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> |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/iCheck/custom.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($caiwu_info->id)?>">
|
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">无效理由</label> |
||||
<div class="col-sm-3"> |
||||
<p class="form-control-static"><?=$caiwu_info->car_no?></p>
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">保险公司</label> |
||||
<div class="col-sm-3"> |
||||
<p class="form-control-static"><?=$caiwu_info->order->company2->name?></p>
|
||||
</div> |
||||
<label class="col-sm-2 control-label">保单号</label> |
||||
<div class="col-sm-3"> |
||||
<input type="text" name="insurer_no" value="<?=$caiwu_info->insurer_no?>" class="form-control">
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">总保费</label> |
||||
<div class="col-sm-3"> |
||||
<p class="form-control-static"><?=$caiwu_info->total?></p>
|
||||
</div> |
||||
<label class="col-sm-2 control-label">净保费</label> |
||||
<div class="col-sm-3"> |
||||
<p class="form-control-static"><?=$caiwu_info->total_clear?></p>
|
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">手续费比例</label> |
||||
<div class="col-sm-3"> |
||||
<div class="input-group"> |
||||
<input type="text" name="total_rate" value="<?=$caiwu_info->total_rate?>" class="form-control">
|
||||
<div class="input-group-addon">%</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-sm-2 control-label">回款金额</label> |
||||
<div class="col-sm-3"> |
||||
<input type="text" name="r_total" value="<?=$caiwu_info->r_total?>" class="form-control">
|
||||
</div> |
||||
<label class="col-sm-2 control-label">回款日期</label> |
||||
<div class="col-sm-3"> |
||||
<input type="text" name="r_date" id="r_date" value="<?=$caiwu_info->r_date?>" class="form-control" autocomplete="off">
|
||||
</div> |
||||
</div> |
||||
<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> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script src="/assets/js/plugins/layer/laydate/laydate.js"></script> |
||||
<script type="text/javascript" language="javascript"> |
||||
$(function () { |
||||
laydate({ |
||||
elem:'#r_date', |
||||
format: 'YYYY-MM-DD' |
||||
}); |
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
$(".btn-save").click(function(){ |
||||
parent.layer.confirm('是否确认提交?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/finance/receipt-save',params,function(obj){ |
||||
alert(obj.msg); |
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success) { |
||||
$('#back-btn').click(); |
||||
parent.refreshList(); |
||||
layer_close(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
|
||||
//返回按钮 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href='/finance/receipt?<?=$back_params?>';
|
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
||||
|
||||
|
@ -0,0 +1,93 @@ |
||||
<?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"> |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||
<div class="form-group"> |
||||
<label class="control-label col-sm-2">批次</label> |
||||
<div class="col-sm-6"> |
||||
<select name="bdlx" class="form-control"> |
||||
<option value="1">补点1</option> |
||||
<option value="2">补点2</option> |
||||
<option value="3">补点3</option> |
||||
</select> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="control-label col-sm-2">导入文件</label> |
||||
<div class="col-sm-6"> |
||||
<div class="input-group"> |
||||
<input type="text" name="urlfile" id="urlfile" class="form-control" value=""> |
||||
<a href="javascript:void(0);" class="input-group-addon" id="upload"> |
||||
上传文件 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<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> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php $this->beginBlock('footer_js'); ?> |
||||
<script type="text/javascript" language="javascript"> |
||||
layui.use(['upload'], function(){ |
||||
var upload = layui.upload; |
||||
var uploadInst = upload.render({ |
||||
elem: '#upload' //绑定元素 |
||||
,url: '/common/upload' //上传接口 |
||||
,accept: 'file' |
||||
,done: function(res){ |
||||
//上传完毕回调 |
||||
if(res.status == 'SUCCESS') { |
||||
$('#urlfile').val(res.fileUrl); |
||||
} |
||||
} |
||||
,error: function(){ |
||||
//请求异常回调 |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
$(function () { |
||||
//提交按钮 |
||||
$(".btn-save").click(function(){ |
||||
parent.layer.confirm('是否确认提交?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/finance/receipt2-process',params,function(obj){ |
||||
if(obj.success) { |
||||
parent.layer.msg('保存成功'); |
||||
parent.refreshList(); |
||||
layer_close(); |
||||
} else { |
||||
parent.layer.msg(data.msg); |
||||
} |
||||
},'json'); |
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
}) |
||||
</script> |
||||
<?php $this->endBlock('footer_js'); ?> |
@ -1,222 +1,141 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
?> |
||||
<link rel="stylesheet" href="/js/fileupload/css/jquery.fileupload.css"> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<form id="theFrm"> |
||||
<tr> |
||||
<td align="center" width="100" height="25" class="td_bg">导入类型</td> |
||||
<td height="25" class="td_bg"> |
||||
<select name="bdlx"> |
||||
<option value="1">补点1</option> |
||||
<option value="2">补点2</option> |
||||
<option value="3">补点3</option> |
||||
</select> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td align="center" width="100" height="25" class="td_bg">批对日期</td> |
||||
<td height="25" class="td_bg"> |
||||
<input type="text" name="urlfile" id="urlfile" style="width: 300px;"> |
||||
<input id="fileupload" type="file" name="file"> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
||||
|
||||
<input type="button" class="ACT_btn" name="Submit3" value=" 刷新 " onclick="window.location.reload();"> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
<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"> |
||||
<!--新增搜索项--> |
||||
<!--完成程度--> |
||||
<select name="status" class="status"> |
||||
<option value=0>全部</option> |
||||
<option value=1 <?= $status==1?'selected':'' ?>>未匹配</option>
|
||||
<option value=2 <?= $status==2?'selected':'' ?>>已完成</option>
|
||||
</select> |
||||
保单号:<input name="insurer_no" type="text" value="<?=$insurer_no?>">
|
||||
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
|
||||
<!--日期--> |
||||
出单日期: |
||||
<input type="Text" class="Wdate" name="begin_date" onclick="WdatePicker()" value="<?= $begin_date ?>" />
|
||||
-- |
||||
<input type="Text" class="Wdate" name="end_date" onclick="WdatePicker()" value="<?= $end_date ?>" />
|
||||
回单日期: |
||||
<input type="Text" class="Wdate" name="r_begin_date" onclick="WdatePicker()" value="<?= $r_begin_date ?>" />
|
||||
-- |
||||
<input type="Text" class="Wdate" name="r_end_date" onclick="WdatePicker()" value="<?= $r_end_date ?>" />
|
||||
保险公司:<select name="company_id"> |
||||
<option value="0">全部</option> |
||||
<?php |
||||
foreach($company_items as $item) { |
||||
echo '<option value="'.$item->id.'"'; |
||||
if($item->id == $company_id) |
||||
echo ' selected '; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
排序: |
||||
<select name="sort_key"> |
||||
<option value="0">请选择</option> |
||||
<option value="print_date" <?= $sort_key == 'print_date' ? 'selected' : ''?>>出单日期</option>
|
||||
<option value="total" <?= $sort_key == 'total' ? 'selected' : ''?>>商业总保费</option>
|
||||
<option value="total_clear" <?= $sort_key == 'total_clear' ? 'selected' : ''?>>商业净保费</option>
|
||||
<option value="total_rate" <?= $sort_key == 'total_rate' ? 'selected' : ''?>>手续费比例</option>
|
||||
</select> |
||||
<select name="sort_value"> |
||||
<option value="0">请选择</option> |
||||
<option value="ASC" <?= $sort_value == 'ASC' ? 'selected' : ''?>>正序</option>
|
||||
<option value="DESC" <?= $sort_value == 'DESC' ? 'selected' : ''?>>倒序</option>
|
||||
</select> |
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
<input type="button" class="act_btn" id="output-btn" name="output-btn" value="导出"> |
||||
</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">序号</td> |
||||
<td align="center" class="bg_tr">车牌号</td> |
||||
<td align="center" class="bg_tr">保险公司</td> |
||||
<td align="center" class="bg_tr">保单号</td> |
||||
<td align="center" class="bg_tr">出单日期</td> |
||||
<td align="center" class="bg_tr">商业净保费</td> |
||||
<td align="center" class="bg_tr">补点比例</td> |
||||
<td align="center" class="bg_tr">应得金额</td> |
||||
<td align="center" class="bg_tr">补点1回款</td> |
||||
<td align="center" class="bg_tr">补点1日期</td> |
||||
<td align="center" class="bg_tr">补点2回款</td> |
||||
<td align="center" class="bg_tr">补点2日期</td> |
||||
<td align="center" class="bg_tr">补点3回款</td> |
||||
<td align="center" class="bg_tr">补点3日期</td> |
||||
<td align="center" class="bg_tr">已回金额</td> |
||||
<td align="center" class="bg_tr">未回金额</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
$start_index = ($page-1)*20+$index; |
||||
$order = $item->order; |
||||
$caiwu = $order->caiwu; |
||||
// $caiwu = $order->caiwu; |
||||
// $rate = $caiwu ? $caiwu->budian_rate : 0; |
||||
if($item->insurer_type==2){ |
||||
$caiwu->budian_rate=0; |
||||
} |
||||
$total_clear = round($item->total_clear * $caiwu->budian_rate/100,2); |
||||
$b_total = $item->b1_total+$item->b2_total+$item->b3_total; |
||||
// $total_clear_real = $item->total_clear * $rate/100; |
||||
// $total_dis = round($total_clear_real - $item->r_total,2); |
||||
?> |
||||
<tr style="height:24px;" onMouseOver="overColor(this)" onMouseOut="outColor(this)"> |
||||
<td align="center" class="td_bg" nowrap><?=$start_index+1?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$order->car_no?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$order && $order->company ? $order->company->name:''?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->insurer_no?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$order->print_date?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total_clear?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$caiwu->budian_rate?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$total_clear?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->b1_total?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->b1_date?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->b2_total?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->b2_date?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->b3_total?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->b3_date?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$b_total?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$total_clear-$b_total?></td>
|
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
<tr> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
<td align="center" class="bg_tr" nowrap></td> |
||||
</tr> |
||||
<tr > |
||||
<td height="25" colspan="16" align="center" class="td_bg"><?=$page_info?></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/fileupload/js/vendor/jquery.ui.widget.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/fileupload/js/jquery.iframe-transport.js"></script> |
||||
<script type="text/javascript" language="javascript" src="/js/fileupload/js/jquery.fileupload.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 () { |
||||
//上传按钮 |
||||
$('#upload-btn').click(function(){ |
||||
$('#fileupload').click(); |
||||
}); |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
var urlfile = $("#urlfile").val(); |
||||
var import_type = $(".import_type").val(); |
||||
<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="importDlg()"> |
||||
<i class="fa fa-plus"></i> 补点导入 |
||||
</a> |
||||
<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" id="searchFrm" class="form-inline" onsubmit="return search();"> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="name">匹配程度</label> |
||||
<select name="status" class="status" class="form-control"> |
||||
<option value=0>全部</option> |
||||
<option value=1>未匹配</option> |
||||
<option value=2>已完成</option> |
||||
</select> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="name">保单号</label> |
||||
<input type="text" id="insurer_no" name="insurer_no" class="form-control"> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="name">车牌</label> |
||||
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="name">出单日期</label> |
||||
<div class="input-group"> |
||||
<input type="text" id="begin_date" name="begin_date" class="form-control date"> |
||||
<div class="input-group-addon">-</div> |
||||
<input type="text" id="end_date" name="end_date" class="form-control date"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="name">回单日期</label> |
||||
<div class="input-group"> |
||||
<input type="text" id="r_begin_date" name="r_begin_date" class="form-control date"> |
||||
<div class="input-group-addon">-</div> |
||||
<input type="text" id="r_end_date" name="r_end_date" class="form-control date"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="name">保险公司</label> |
||||
<select name="company_id" id="company_id" class="form-control"> |
||||
<option value="0">---请选择---</option> |
||||
<?php |
||||
foreach($insurer_company_items as $item) { |
||||
echo '<option value="'.$item->id.'">'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</div> |
||||
<div class="form-group" style="margin-bottom: 8px;"> |
||||
<label for="name">级别</label> |
||||
<input type="text" id="name" name="name" class="form-control"> |
||||
</div> |
||||
<button type="submit" class="btn btn-primary mb-8">搜索</button> |
||||
</form> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<table id="listTable"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="id">ID</th> |
||||
<th data-field="car_no">车牌号</th> |
||||
<th data-field="company_name">保险公司</th> |
||||
<th data-field="insurer_no">保单号</th> |
||||
<th data-field="print_date">出单日期</th> |
||||
<th data-field="total_clear">商业净保费</th> |
||||
<th data-field="budian_rate">补点比例</th> |
||||
<th data-field="budian_money">应得金额</th> |
||||
<th data-field="b1_total">补点1回款</th> |
||||
<th data-field="b1_date">补点1日期</th> |
||||
<th data-field="b2_total">补点2回款</th> |
||||
<th data-field="b2_date">补点2日期</th> |
||||
<th data-field="b3_total">补点3回款</th> |
||||
<th data-field="b3_date">补点3日期</th> |
||||
<th data-field="b_total">已回金额</th> |
||||
<th data-field="un_b_total">未回金额</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
if(urlfile == ''){ |
||||
alert('请先选择文件!'); |
||||
return false; |
||||
} |
||||
var last_url = '/finance/receipt2-process'; |
||||
var params = $("#theFrm").serialize(); |
||||
|
||||
$.post(last_url,params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success){ |
||||
$('#theFrm')[0].reset(); |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
<?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> |
||||
var o = {}; |
||||
function importDlg(id) { |
||||
var title = '手续费导入'; |
||||
layer_show(title, '/finance/receipt2-import'); |
||||
} |
||||
function refreshList() { |
||||
$('#listTable').bootstrapTable('refresh'); |
||||
} |
||||
|
||||
function search() { |
||||
o = {}; |
||||
var params = $("#searchFrm").serializeArray(); |
||||
$.each(params, function(index) { |
||||
o[this['name']] = this['value']; |
||||
}); |
||||
//上传 |
||||
$('#fileupload').fileupload({ |
||||
url: '/finance/receipt-upload', |
||||
dataType: 'json', |
||||
done: function (e, data) { |
||||
var file_info = data.result.files[0]; |
||||
$('#urlfile').val(file_info.url); |
||||
$('#submit-btn').removeAttr('disabled'); |
||||
$('#listTable').bootstrapTable('destroy'); |
||||
$('#listTable').bootstrapTable({ |
||||
url: "/finance/receipt2-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
queryParams: function(params) { |
||||
o['offset'] = params['offset']; |
||||
o['limit'] = params['limit']; |
||||
return o; |
||||
} |
||||
}); |
||||
//搜索 |
||||
$("#search-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/receipt2?" + params; |
||||
}); |
||||
//导出 |
||||
$("#output-btn").click(function(){ |
||||
$('#page').val(0); |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/finance/receipt2-output?" + params; |
||||
}); |
||||
}) |
||||
return false; |
||||
} |
||||
|
||||
$(function() { |
||||
search(); |
||||
}); |
||||
</script> |
||||
<?php $this->endBlock(); ?> |
||||
|
@ -1,84 +0,0 @@ |
||||
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<form id="theFrm"> |
||||
<input type="hidden" name="id" value="<?=$info->id?>">
|
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">分组名称</td> |
||||
<td height="25" class="td_bg"><input class="Ainput" name="name" type="text" id="name" value="<?=$info->name?>" style="width:300px;"/></td>
|
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">针对岗位</td> |
||||
<td height="25" class="td_bg"> |
||||
<input class="Ainput" name="group_ids" type="text" id="group_ids" value="<?=$info->group_ids?>" style="width:300px;"/>
|
||||
注:如果针对全部岗位,则保持空。多个岗位之间用逗号间隔。 |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">是否免费</td> |
||||
<td height="25" class="td_bg"> |
||||
<label> |
||||
<input name="is_free" type="checkbox" id="is_free" value="1" <?=$info->is_free==1?'checked':''?>/>是
|
||||
</label> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">是否需要车损险</td> |
||||
<td height="25" class="td_bg"> |
||||
<label> |
||||
<input name="is_damage" type="checkbox" id="is_damage" value="1" <?=$info->is_damage==1?'checked':''?>/>是
|
||||
</label> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">最低额度</td> |
||||
<td height="25" class="td_bg"><input class="Ainput" name="min_money" type="text" id="min_money" value="<?=$info->min_money?>" style="width:300px;"/></td>
|
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">最高额度</td> |
||||
<td height="25" class="td_bg"><input class="Ainput" name="max_money" type="text" id="max_money" value="<?=$info->max_money?>" style="width:300px;"/></td>
|
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">包含礼品</td> |
||||
<td height="25" class="td_bg"> |
||||
<?php |
||||
foreach($gift_items as $item) { |
||||
echo '<label><input type="checkbox" name="gift_ids[]" value="'.$item->id.'"'; |
||||
if(in_array($item->id,$gift_ids)) |
||||
echo ' checked '; |
||||
echo '>'.$item->name.'</label>'; |
||||
} |
||||
?> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
||||
|
||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" 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 () { |
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/gift-group/save',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
$('#back-btn').click(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
|
||||
//返回按钮 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href='/gift-group/index'; |
||||
}); |
||||
}) |
||||
</script> |
@ -1,79 +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 edit(id) { |
||||
window.location.href = '/gift-group/edit?id=' + id; |
||||
} |
||||
//删除 |
||||
function del(id) { |
||||
if(confirm('是否确认删除?')) { |
||||
$.post('/gift-group/delete',{id:id},function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
} |
||||
|
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/gift-group/index?" + params; |
||||
}); |
||||
$('#add-btn').click(function(){ |
||||
edit(0); |
||||
}); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
名称:<input name="name" type="text" value="<?=$name?>">
|
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
<input type="button" class="act_btn" id="add-btn" name="add-btn" value="添加"> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td align="center" width="24" align="center" class="bg_tr">ID</td> |
||||
<td width="150" align="center" align="center" class="bg_tr">分类名称</td> |
||||
<td width="50" align="center" align="center" class="bg_tr">是否免费</td> |
||||
<td width="50" align="center" align="center" class="bg_tr">是否车损险</td> |
||||
<td width="100" align="center" align="center" class="bg_tr">最低额度</td> |
||||
<td width="100" align="center" align="center" class="bg_tr">最高额度</td> |
||||
<td width="300" align="center" align="center" class="bg_tr">包含礼品</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg"nowrap ><?=$item->id?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?=$item->name?></td>
|
||||
<td align="center" class="td_bg"nowrap ><?=$item->is_free==1?'是':''?></td>
|
||||
<td align="center" class="td_bg"nowrap ><?=$item->is_damage==1?'是':''?></td>
|
||||
<td align="center" class="td_bg"nowrap ><?=$item->min_money==0?'无限制':$item->min_money.'元'?></td>
|
||||
<td align="center" class="td_bg"nowrap ><?=$item->max_money==0?'无限制':$item->max_money.'元'?></td>
|
||||
<td align="left" class="td_bg"nowrap ><?php |
||||
if($item->gifts) foreach($item->gifts as $gift) { |
||||
echo $gift->name.', '; |
||||
} |
||||
?></td> |
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">修改</a>]
|
||||
[<a href="javascript:void(0);" onclick="del(<?=$item->id?>)">删除</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
@ -1,42 +0,0 @@ |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="theFrm"> |
||||
<input type="hidden" name="id" value="<?=$info->id?>">
|
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">名称</td> |
||||
<td height="25" class="td_bg"> |
||||
<input name="name" type="text" id="name" value="<?=$info->name?>" style="width:400px;"/>
|
||||
</td> |
||||
</tr> |
||||
</form> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
||||
|
||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" 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 () { |
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/gift-type/save',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
$('#back-btn').click(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
|
||||
//返回按钮 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href='/gift-type/index'; |
||||
}); |
||||
}) |
||||
</script> |
@ -1,64 +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 edit(id) { |
||||
window.location.href = '/gift-type/edit?id=' + id; |
||||
} |
||||
//删除 |
||||
function del(id) { |
||||
if(confirm('是否确认删除?')) { |
||||
$.post('/gift-type/delete',{id:id},function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/gift-type/index?" + params; |
||||
}); |
||||
$('#add-btn').click(function(){ |
||||
edit(0); |
||||
}); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
名称:<input name="name" type="text" value="<?=$name?>">
|
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
<input type="button" class="act_btn" id="add-btn" name="add-btn" value="添加"> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="50" align="center" align="center" class="bg_tr" nowrap>排序</td> |
||||
<td width="80%" align="center" align="center" class="bg_tr">名称</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->name?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">修改</a>]
|
||||
[<a href="javascript:void(0);" onclick="del(<?=$item->id?>)">删除</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
@ -1,42 +0,0 @@ |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="theFrm"> |
||||
<input type="hidden" name="id" value="<?=$info->id?>">
|
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">名称</td> |
||||
<td height="25" class="td_bg"> |
||||
<input name="name" type="text" id="name" value="<?=$info->name?>" style="width:400px;"/>
|
||||
</td> |
||||
</tr> |
||||
</form> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
||||
|
||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" 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 () { |
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/gift-type/type2-save',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
$('#back-btn').click(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
|
||||
//返回按钮 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href='/gift-type/type2-list'; |
||||
}); |
||||
}) |
||||
</script> |
@ -1,64 +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 edit(id) { |
||||
window.location.href = '/gift-type/type2-edit?id=' + id; |
||||
} |
||||
//删除 |
||||
function del(id) { |
||||
if(confirm('是否确认删除?')) { |
||||
$.post('/gift-type/type2-delete',{id:id},function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/gift-type/type2-list?" + params; |
||||
}); |
||||
$('#add-btn').click(function(){ |
||||
edit(0); |
||||
}); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
名称:<input name="name" type="text" value="<?=$name?>">
|
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
<input type="button" class="act_btn" id="add-btn" name="add-btn" value="添加"> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="50" align="center" align="center" class="bg_tr" nowrap>排序</td> |
||||
<td width="80%" align="center" align="center" class="bg_tr">名称</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->name?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">修改</a>]
|
||||
[<a href="javascript:void(0);" onclick="del(<?=$item->id?>)">删除</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
@ -1,65 +0,0 @@ |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="theFrm"> |
||||
<input type="hidden" name="id" value="<?=$info->id?>">
|
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">名称</td> |
||||
<td height="25" class="td_bg"> |
||||
<input name="name" type="text" id="name" value="<?=$info->name?>" style="width:400px;"/>
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">价格</td> |
||||
<td height="25" class="td_bg"> |
||||
<input name="price" type="text" id="price" value="<?=$info->price?>" style="width:100px;"/>小于零时,为百分比。
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">数量</td> |
||||
<td height="25" class="td_bg"> |
||||
<input name="total" type="text" id="total" value="<?=$info->total?>" style="width:100px;"/>-1为无限数量。
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td width="100" height="25" class="td_bg">类型</td> |
||||
<td height="25" class="td_bg"> |
||||
<label> |
||||
<input type="radio" name="type" value="0" <?=$info->type==0?'checked':''?>> 实物
|
||||
</label> |
||||
<label> |
||||
<input type="radio" name="type" value="1" <?=$info->type==1?'checked':''?>> 礼券
|
||||
</label> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
||||
|
||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" 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 () { |
||||
//提交按钮 |
||||
$("#submit-btn").click(function(){ |
||||
if(confirm('是否确认提交?')) { |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/gift-type/type3-save',params,function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
$('#back-btn').click(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}); |
||||
|
||||
//返回按钮 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href='/gift-type/type3-list'; |
||||
}); |
||||
}) |
||||
</script> |
@ -1,70 +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 edit(id) { |
||||
window.location.href = '/gift-type/type3-edit?id=' + id; |
||||
} |
||||
//删除 |
||||
function del(id) { |
||||
if(confirm('是否确认删除?')) { |
||||
$.post('/gift-type/type3-delete',{id:id},function(obj){ |
||||
alert(obj.msg); |
||||
if(obj.success) { |
||||
window.location.reload(); |
||||
} |
||||
},'json'); |
||||
} |
||||
} |
||||
$(function(){ |
||||
$("#search-btn").click(function(){ |
||||
var params = $('#searchForm').serialize(); |
||||
window.location.href = "/gift-type/type3-list?" + params; |
||||
}); |
||||
$('#add-btn').click(function(){ |
||||
edit(0); |
||||
}); |
||||
}); |
||||
</script> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<form id="searchForm"> |
||||
<tr> |
||||
<td class="td_bg"> |
||||
名称:<input name="name" type="text" value="<?=$name?>">
|
||||
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> |
||||
<input type="button" class="act_btn" id="add-btn" name="add-btn" value="添加"> |
||||
</td> |
||||
</tr> |
||||
</form> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td width="50" align="center" align="center" class="bg_tr" nowrap>排序</td> |
||||
<td width="70%" align="center" align="center" class="bg_tr">名称</td> |
||||
<td width="50" align="center" class="bg_tr">价格</td> |
||||
<td width="50" align="center" class="bg_tr">数量</td> |
||||
<td width="50" align="center" class="bg_tr">类型</td> |
||||
<td width="30" align="center" class="bg_tr">操作</td> |
||||
</tr> |
||||
<?php |
||||
foreach($items as $index => $item) { |
||||
?> |
||||
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)> |
||||
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
|
||||
<td align="left" class="td_bg" nowrap><?=$item->name?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->price?><?=$item->price<0?'%':'元'?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->total<0?'无限':$item->total?></td>
|
||||
<td align="center" class="td_bg" nowrap><?=$item->type==0?'实物':'礼券'?></td>
|
||||
<td align="center" class="td_bg" nowrap> |
||||
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">修改</a>]
|
||||
[<a href="javascript:void(0);" onclick="del(<?=$item->id?>)">删除</a>]
|
||||
</td> |
||||
</tr> |
||||
<?php |
||||
} |
||||
?> |
||||
</table> |
@ -1,571 +1,382 @@ |
||||
<?php |
||||
use \common\libs\MyLib; |
||||
use \common\models\PriceT; |
||||
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"> |
||||
<form id="orderFrm"> |
||||
<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> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-off 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> |
||||
</TD> |
||||
</TR> |
||||
</TABLE> |
||||
<!--保单信息--> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-off 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;"> |
||||
<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->company?$order_info->company->name:''?></td>
|
||||
<td class="bg_tr">付款方式</td> |
||||
<td class="td_bg"><?=$order_info->shoufei_id?MyLib::zhifufs($order_info->shoufei_id).'-':''?><?=$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->send_address?> |
||||
</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"> |
||||
<tr> |
||||
<td valign="top"> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout:fixed;"> |
||||
<?php |
||||
$xianzhong = '<tr><td class="bg_tr">险种</td>'; |
||||
$neirong = '<tr><td class="bg_tr">内容</td>'; |
||||
$bujimianpei = '<tr><td class="bg_tr">不计免赔</td>'; |
||||
foreach ($new_array as $k=>$v){ |
||||
$xianzhong .= "<td align='center' class='bg_tr'>".$v['zl']."</td>"; |
||||
$neirong .= "<td align='center' class='td_bg'>".$v['neir']."</td>"; |
||||
$bujimianpei .= "<td align='center' class='td_bg'>".$v['bjmp']."</td>"; |
||||
} |
||||
echo $xianzhong.'</tr>'.$neirong.'</tr>'.$bujimianpei.'</tr>'; |
||||
?> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</TABLE> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-off 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 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>
|
||||
<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>
|
||||
<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>
|
||||
<td class="bg_tr">商业手续费</td> |
||||
<td class="td_bg"><?=$order_info->total1_rate?></td>
|
||||
<td class="bg_tr">交强手续费</td> |
||||
<td class="td_bg"><?=$order_info->total2_rate?></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">备注</td> |
||||
<td colspan="7" class="td_bg"><?=$order_info->price_remark?></td>
|
||||
</tr> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td class="bg_tr">商业补点比例</td> |
||||
<td class="td_bg"><input type="Text" name="budian_rate" id="budian_rate" value="<?=$caiwu_info->budian_rate?>" class="supplement_proportion" onblur="cal_money('budian_rate','<?=$order_info->total1_clear?>','budian_money');"/>%</td>
|
||||
<td class="bg_tr">商业补点手续费</td> |
||||
<td class="td_bg"><input type="Text" name="budian_money" id="budian_money" value="<?=$caiwu_info->budian_money?>" readonly class="supplement_servicecharge" /></td>
|
||||
<td class="bg_tr"></td> |
||||
<td class="td_bg"></td> |
||||
<td class="bg_tr"></td> |
||||
<td class="td_bg"></td> |
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">商业退保保费</td> |
||||
<td class="td_bg"><input type="Text" name="business_back_money" id="business_back_money" value="<?=$caiwu_info->business_back_money?>" class="sy_tb_retreat" onblur="cal_money2('business_back_money','business_back_rate','business_back_routine');"/></td>
|
||||
<td class="bg_tr">退保手续费比例</td> |
||||
<td class="td_bg"><input type="Text" name="business_back_rate" id="business_back_rate" value="<?=$caiwu_info->business_back_rate?>" class="sy_tb_bili" onblur="cal_money2('business_back_money','business_back_rate','business_back_routine');"/>%</td>
|
||||
<td class="bg_tr">商业退保手续费</td> |
||||
<td class="td_bg"><input type="Text" name="business_back_routine" id="business_back_routine" value="<?=$caiwu_info->business_back_routine?>" class="jq_tb_routine" readonly /></td>
|
||||
<td class="bg_tr">商业退保日期</td> |
||||
<td class="td_bg"><input type="Text" name="business_back_date" id="business_back_date" value="<?=$caiwu_info->business_back_date?>" class="Wdate" onClick="WdatePicker()" /></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">交强退保保费</td> |
||||
<td class="td_bg"><input type="Text" name="force_back_money" id="force_back_money" value="<?=$caiwu_info->force_back_money?>" class="jq_tb_retreat" onblur="cal_money2('force_back_money','force_back_rate','force_back_routine');"/></td>
|
||||
<td class="bg_tr">退保手续费比例</td> |
||||
<td class="td_bg"><input type="Text" name="force_back_rate" id="force_back_rate" value="<?=$caiwu_info->force_back_rate?>" class="jq_tb_bili" onblur="cal_money2('force_back_money','force_back_rate','force_back_routine');"/>%</td>
|
||||
<td class="bg_tr">交强退保手续费</td> |
||||
<td class="td_bg"><input type="Text" name="force_back_routine" id="force_back_routine" value="<?=$caiwu_info->force_back_routine?>" class="jq_tb_routine" readonly /></td>
|
||||
<td class="bg_tr">交强退保日期</td> |
||||
<td class="td_bg"><input type="Text" name="force_back_date" id="force_back_date" value="<?=$caiwu_info->force_back_date?>" class="Wdate" onClick="WdatePicker()" /></td>
|
||||
</tr> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</TABLE> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-on id=navcell onclick=open_up(5) name="navcell">▼财务信息</TD> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<TABLE id=tb5 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 class="bg_tr"><span style="color:#ff0000">*</span>领款人</td> |
||||
<td class="td_bg"><input name="money_man" id="money_man" type="text" value="<?=$caiwu_info->money_man?>" style="width:120px;"></td>
|
||||
<td class="bg_tr"><span style="color:#ff0000">*</span>银行账号</td> |
||||
<td class="td_bg"><input name="money_no" id="money_no" type="text" value="<?=$caiwu_info->money_no?>" style="width:120px;"></td>
|
||||
<td class="bg_tr"><span style="color:#ff0000">*</span>开户行</td> |
||||
<td class="td_bg"><input name="money_bank" id="money_bank" type="text" value="<?=$caiwu_info->money_bank?>" style="width:120px;"></td>
|
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">转账日期</td> |
||||
<td class="td_bg"><input class="Wdate" name="transfer_date" id="transfer_date" type="text" value="<?=$caiwu_info->transfer_date?>" style="width:120px;" onClick="WdatePicker()"></td>
|
||||
<td class="bg_tr">转账金额</td> |
||||
<td class="td_bg"><input name="transfer_money" id="transfer_money" type="text" value="<?=$caiwu_info->transfer_money>0?$caiwu_info->transfer_money:$order_info->total1_dis?>" style="width:120px;"></td>
|
||||
<td class="bg_tr">转账银行</td> |
||||
<td class="td_bg"> |
||||
<select name="transfer_bank_id"> |
||||
<?php |
||||
foreach($banks as $bank) { |
||||
echo '<option value="'.$bank->id.'"'; |
||||
if($bank->id == $caiwu_info->transfer_bank_id) |
||||
echo ' selected '; |
||||
echo '>'.$bank->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr">银行流水号</td> |
||||
<td colspan="3" class="td_bg"><input name="transfer_bank_no" id="transfer_bank_no" type="text" value="<?=$caiwu_info->transfer_bank_no?>" style="width:200px;"></td>
|
||||
<td class="bg_tr">转账状态</td> |
||||
<td class="td_bg"> |
||||
<select name="caiwu_status_id"> |
||||
<?php |
||||
echo '<option value="0">无操作</option>'; |
||||
foreach($caiwu_status as $item){ |
||||
echo '<option value="'.$item->id.'"'; |
||||
echo $caiwu_info->caiwu_status_id == $item->id ? ' selected' : ''; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td class="bg_tr" align="center">新保:<?=$car_info->op_user1?></td>
|
||||
<?php |
||||
if($car_info->op_user3 != '') { |
||||
?> |
||||
<td class="bg_tr" align="center">跟踪:<?=$car_info->op_user2?></td>
|
||||
<td class="bg_tr" align="center">续保:<?=$car_info->op_user3?></td>
|
||||
<?php |
||||
} |
||||
?> |
||||
<td class="bg_tr" align="center">送单费:<?=$order_info->sendLog?$order_info->sendLog->user->getShowName():''?></td>
|
||||
<?php |
||||
if($order_info->op1_id > 0) { |
||||
echo '<td class="bg_tr" align="center">核保:'.$order_info->op1->getShowName().'</td>'; |
||||
} |
||||
if($order_info->op2_id > 0) { |
||||
echo '<td class="bg_tr" align="center">正本:'.$order_info->op2->getShowName().'</td>'; |
||||
} |
||||
?> |
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr" align="center">新保比例</td> |
||||
<?php |
||||
if($car_info->op_user3 != '') { |
||||
?> |
||||
<td class="bg_tr" align="center">跟踪比例</td> |
||||
<td class="bg_tr" align="center">续保比例</td> |
||||
<?php |
||||
} |
||||
?> |
||||
<td class="bg_tr" align="center">送单比例</td> |
||||
<?php if($order_info->op1_id > 0) { ?> |
||||
<td class="bg_tr" align="center">核保比例</td> |
||||
<?php } ?> |
||||
<?php if($order_info->op2_id > 0) { ?> |
||||
<td class="bg_tr" align="center">正本比例</td> |
||||
<?php } ?> |
||||
</tr> |
||||
<tr> |
||||
<?php |
||||
if($car_info->op_user3 != '') { |
||||
?> |
||||
<td class="td_bg" align="center"><input name="rate1" id="rate1" type="text" value="<?=$caiwu_info->rate1?>" style="width:50px;" onblur="cal_money('rate1','<?=$order_info->total1_clear?>','money1','0')">%</td>
|
||||
<td class="td_bg" align="center"><input name="rate2" id="rate2" type="text" value="<?=$caiwu_info->rate2?>" style="width:50px;" onblur="cal_money('rate2','<?=$order_info->total1_clear?>','money2','0')">%</td>
|
||||
<td class="td_bg" align="center"><input name="rate3" id="rate3" type="text" value="<?=$caiwu_info->rate3?>" style="width:50px;" onblur="cal_money('rate3','<?=$order_info->total1_clear?>','money3','<?=$order_info->total1_dis?>')">%</td>
|
||||
<?php |
||||
} else { |
||||
?> |
||||
<td class="td_bg" align="center"><input name="rate1" id="rate1" type="text" value="<?=$caiwu_info->rate1?>" style="width:50px;" onblur="cal_money('rate1','<?=$order_info->total1_clear?>','money1','<?=$order_info->total1_dis?>')">%</td>
|
||||
<?php |
||||
} |
||||
?> |
||||
<td class="td_bg" align="center"><input name="send_rate" id="send_rate" type="text" value="<?=$caiwu_info->send_rate?>" style="width:100px;" readonly>%</td>
|
||||
<?php if($order_info->op1_id > 0) { ?> |
||||
<td class="td_bg" align="center"><input name="rate4" id="rate4" type="text" value="<?=$caiwu_info->rate4?>" style="width:100px;" onblur="cal_money('rate4','<?=$order_info->total1_clear?>','money4','0')">%</td>
|
||||
<?php } ?> |
||||
<?php if($order_info->op2_id > 0) { ?> |
||||
<td class="td_bg" align="center"><input name="rate5" id="rate5" type="text" value="<?=$caiwu_info->rate5?>" style="width:100px;" onblur="cal_money('rate5','<?=$order_info->total1_clear?>','money5','0')">%</td>
|
||||
<?php } ?> |
||||
</tr> |
||||
<tr> |
||||
<td class="bg_tr" align="center">新保提成</td> |
||||
<?php |
||||
if($car_info->op_user3 != '') { |
||||
?> |
||||
<td class="bg_tr" align="center">跟踪提成</td> |
||||
<td class="bg_tr" align="center">续保提成</td> |
||||
<?php |
||||
} |
||||
?> |
||||
<td class="bg_tr" align="center">送单提成</td> |
||||
<?php if($order_info->op1_id > 0) { ?> |
||||
<td class="bg_tr" align="center">核保提成</td> |
||||
<?php } ?> |
||||
<?php if($order_info->op2_id > 0) { ?> |
||||
<td class="bg_tr" align="center">正本提成</td> |
||||
<?php } ?> |
||||
</tr> |
||||
<tr> |
||||
<?php |
||||
if($car_info->op_user3 != '') { |
||||
?> |
||||
<td class="td_bg" align="center"><input name="money1" id="money1" type="text" value="<?=$caiwu_info->getPay($caiwu_info->rate1)?>" style="width:100px;" readonly>元</td>
|
||||
<td class="td_bg" align="center"><input name="money2" id="money2" type="text" value="<?=$caiwu_info->getPay($caiwu_info->rate2)?>" style="width:100px;" readonly>元</td>
|
||||
<td class="td_bg" align="center"><input name="money3" id="money3" type="text" value="<?=$caiwu_info->getPay($caiwu_info->rate3)?>" style="width:100px;" readonly>元</td>
|
||||
<?php |
||||
} else { |
||||
?> |
||||
<td class="td_bg" align="center"><input name="money1" id="money1" type="text" value="<?=$caiwu_info->getPay($caiwu_info->rate1)?>" style="width:100px;" readonly>元</td>
|
||||
<?php |
||||
} |
||||
?> |
||||
<td class="td_bg" align="center"><input name="send_money" id="send_money" type="text" value="<?=$caiwu_info->send_money?>" style="width:100px;" onblur="cal_rate('send_money','<?=$order_info->total1_clear?>','send_rate','0')">元</td>
|
||||
<?php if($order_info->op1_id > 0) { ?> |
||||
<td class="td_bg" align="center"><input name="money4" id="money4" type="text" value="<?=$caiwu_info->money4?>" style="width:100px;" onblur="cal_rate('money4','<?=$order_info->total1_clear?>','rate4','0')">元</td>
|
||||
<?php } ?> |
||||
<?php if($order_info->op2_id > 0) { ?> |
||||
<td class="td_bg" align="center"><input name="money5" id="money5" type="text" value="<?=$caiwu_info->money5?>" style="width:100px;" onblur="cal_rate('money5','<?=$order_info->total1_clear?>','rate5','0')">元</td>
|
||||
<?php } ?> |
||||
</tr> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td colspan="6" class="bg_tr">实物</td> |
||||
</tr> |
||||
<tr> |
||||
<?php |
||||
$index = 0; |
||||
foreach($sel_gifts as $order_gift) { |
||||
if($order_gift->gift->type == 1) continue; |
||||
if($index > 0 && $index%3 == 0) { |
||||
echo '</tr><tr>'; |
||||
} |
||||
?> |
||||
<td width="250" class="bg_tr"><?=$order_gift->gift->name?></td>
|
||||
<td class="td_bg"> |
||||
<input type="hidden" name="gift_ids[]" value="<?=$order_gift->id?>">
|
||||
<input type="hidden" name="gift_rates[]" value="0"> |
||||
<input name="gift_prices[]" type="text" value="<?=$order_gift->price?>" style="width:60px;">元
|
||||
</td> |
||||
<?php |
||||
$index++; |
||||
} |
||||
if($index>0) { |
||||
while($index%3!=0) { |
||||
echo '<td class="td_bg"></td>'; |
||||
echo '<td class="td_bg"></td>'; |
||||
$index++; |
||||
} |
||||
} |
||||
?> |
||||
</tr> |
||||
</table> |
||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> |
||||
<tr> |
||||
<td colspan="9" class="bg_tr">礼券</td> |
||||
</tr> |
||||
<tr> |
||||
<?php |
||||
$index = 0; |
||||
foreach($sel_gifts as $order_gift) { |
||||
if($order_gift->gift->type == 0) continue; |
||||
if($index > 0 && $index%3 == 0) { |
||||
echo '</tr><tr>'; |
||||
} |
||||
$index++; |
||||
?> |
||||
<td width="150" class="bg_tr"><?=$order_gift->gift->name?></td>
|
||||
<td class="td_bg"> |
||||
<input type="hidden" name="gift_ids[]" value="<?=$order_gift->id?>">
|
||||
<input name="gift_rates[]" id="gift_rates_<?=$order_gift->id?>" type="text" value="<?=$order_gift->rate?>" style="width:60px;" onblur="cal_money('gift_rates_<?=$order_gift->id?>','<?=$order_info->total1_clear?>','gift_prices_<?=$order_gift->id?>','0')">%
|
||||
</td> |
||||
<td class="td_bg"> |
||||
<input name="gift_prices[]" id="gift_prices_<?=$order_gift->id?>" type="text" value="<?=$order_gift->price?>" style="width:60px;" readonly>元
|
||||
</td> |
||||
<?php |
||||
} |
||||
if($index>0) { |
||||
while($index%3!=0) { |
||||
echo '<td class="td_bg"></td>'; |
||||
echo '<td class="td_bg"></td>'; |
||||
echo '<td class="td_bg"></td>'; |
||||
$index++; |
||||
} |
||||
} |
||||
?> |
||||
</tr> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</TABLE> |
||||
<!--操作记录--> |
||||
<table> |
||||
<tbody> |
||||
<tr> |
||||
<TD height="30" align="center" class=tab-off id=navcell onclick=open_up(6) name="navcell">▲操作记录</TD> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
<TABLE id=tb6 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> |
||||
</form> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td height="22" colspan="2" align="center" class="td_bg"> |
||||
<input id="cancel-btn" type=button class="ACT_btn" name=Submit4 value=" 放弃处理 "/> |
||||
|
||||
<input id="save-btn" type=button class="ACT_btn" name=Submit1 value=" 保存 "/> |
||||
|
||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit2 value=" 提交 "/> |
||||
|
||||
<input id="back-btn" type="button" class="ACT_btn" name="Submit3" value=" 返回 "> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
<?php $this->beginBlock('header_css'); ?> |
||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||
<?php $this->endBlock(); ?> |
||||
|
||||
<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 cal_money(obj1,val,obj2) { |
||||
var total = Number($('#' + obj1).val())/100 * Number(val); |
||||
$('#' + obj2).val(total.toFixed(2)); |
||||
} |
||||
//计算 |
||||
function cal_money2(obj1,obj2,obj3,dis) { |
||||
var total = Number($('#'+obj2).val())/100 * Number($('#' + obj1).val()); |
||||
$('#' + obj3).val(total.toFixed(2)); |
||||
} |
||||
function cal_rate(obj1,val,obj3,dis) { |
||||
if(Number(val) == 0) { |
||||
$('#' + obj3).val('0.00'); |
||||
return; |
||||
<div class="wrapper wrapper-content animated fadeInRight"> |
||||
<form class="form-horizontal" id="orderFrm"> |
||||
<input type="hidden" name="car_id" value="<?=$order_info->car_id?>">
|
||||
<input type="hidden" name="order_id" value="<?=$order_info->id?>">
|
||||
<input type="hidden" name="celuo_id" value="<?=$order_info->celuo_id?>">
|
||||
<input type="hidden" name="fanxian_id" value="<?=$order_info->fanxian_id?>">
|
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>保单信息</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th class="bg-warning">车牌号</th> |
||||
<td><?=$order_info->car_no?></td>
|
||||
<th class="bg-warning" nowrap>初登日期</th> |
||||
<td><?=$car_info->register_date?></td>
|
||||
<th class="bg-warning" nowrap>座位数</th> |
||||
<td><?=$order_info->seats?></td>
|
||||
<th class="bg-warning" nowrap>电子邮件</th> |
||||
<td><?=$order_info->email?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">车型</th> |
||||
<td><?=$order_info->factory_model?></td>
|
||||
<th class="bg-warning" nowrap>发动机号</th> |
||||
<td><?=$order_info->engine_no?></td>
|
||||
<th class="bg-warning" nowrap>车架号</th> |
||||
<td><?=$order_info->car_frame_no?></td>
|
||||
<th class="bg-warning" nowrap>新车购置价</th> |
||||
<td><?=$order_info->purchase_price?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">车主</th> |
||||
<td><?=$order_info->car_man?></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td><?=$order_info->car_man_type?></td>
|
||||
<th class="bg-warning">证件号码</th> |
||||
<td><?=$order_info->car_man_number?></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><?=$order_info->car_man_phone?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">被投保人</th> |
||||
<td><?=$order_info->id_man?></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td><?=$order_info->id_man_type?></td>
|
||||
<th class="bg-warning">证件号码</th> |
||||
<td><?=$order_info->id_man_number?></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><?=$order_info->id_man_phone?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">投保人</th> |
||||
<td><?=$order_info->link_man?></td>
|
||||
<th class="bg-warning">证件类型</th> |
||||
<td><?=$order_info->link_man_type?></td>
|
||||
<th class="bg-warning">证件号码</th> |
||||
<td><?=$order_info->link_man_number?></td>
|
||||
<th class="bg-warning">联系电话</th> |
||||
<td><?=$order_info->link_man_phone?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning" nowrap>商业起保日期</th> |
||||
<td><?=$order_info->insurer1_begin_date?></td>
|
||||
<th class="bg-warning" nowrap>交强起保日期</th> |
||||
<td><?=$order_info->insurer2_begin_date?></td>
|
||||
<th class="bg-warning">保险公司</th> |
||||
<td><?=$order_info->company->name?></td>
|
||||
<th class="bg-warning">车辆使用性质</th> |
||||
<td><?=$order_info->car->carUse->name?></td>
|
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning" nowrap>商业保单号</th> |
||||
<td><?=$order_info->insurer1_no?></td>
|
||||
<th class="bg-warning" nowrap>商业PDF文件</th> |
||||
<td> |
||||
<?php if($order_info->shangye_src != '') { ?> |
||||
<a href="<?=$order_info->shangye_src?>"><i class="fa fa-image">保单</i></a>
|
||||
<?php } ?> |
||||
<?php if($order_info->fapiao_src != '') { ?> |
||||
<a href="<?=$order_info->fapiao_src?>"><i class="fa fa-file-pdf-o">发票</i></a>
|
||||
<?php } ?> |
||||
</td> |
||||
<th class="bg-warning">交强保单号</th> |
||||
<td><?=$order_info->insurer2_no?></td>
|
||||
<th class="bg-warning">交强PDF文件</th> |
||||
<td> |
||||
<?php if($order_info->jiaoqiang_src != '') { ?> |
||||
<a href="<?=$order_info->jiaoqiang_src?>"><i class="fa fa-image">保单</i></a>
|
||||
<?php } ?> |
||||
<?php if($order_info->jq_fapiao_src != '') { ?> |
||||
<a href="<?=$order_info->jq_fapiao_src?>"><i class="fa fa-file-pdf-o">发票</i></a>
|
||||
<?php } ?> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>险种</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<?php |
||||
$len = count($insurer_type_items); |
||||
$index = 0; |
||||
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 || $tmp_row->val == '' || $tmp_row->val == '否') continue; |
||||
?> |
||||
<th class="bg-warning"> |
||||
<?=$item->name?>(<?=$item->code?>)
|
||||
</th> |
||||
<td><?=$tmp_row->val?></td>
|
||||
<td><?=($tmp_row->is_nopay == 1)?'不计免赔':''?></td>
|
||||
<?php |
||||
if(($index+1)%3==0) { |
||||
echo '</tr>'; |
||||
echo '<tr>'; |
||||
} |
||||
$index++; |
||||
} |
||||
?> |
||||
</tr> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>保费信息</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th class="bg-warning">商业总净保费</th> |
||||
<td><?=$order_info->total1_clear?></td>
|
||||
<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> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
<div class="ibox float-e-margins"> |
||||
<div class="ibox-title"> |
||||
<h5>返现信息</h5> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table class="table table-bordered"> |
||||
<tr> |
||||
<th class="bg-warning">应免金额</th> |
||||
<td><?=$order_info->total1_dis?></td>
|
||||
<th class="bg-warning">业务自付金额</th> |
||||
<td><?=$order_info->yuangong_money?></td>
|
||||
<th class="bg-warning">实返金额</th> |
||||
<td><?=number_format($order_info->total1_dis + $order_info->yuangong_money,2)?></td>
|
||||
<th class="bg-warning"></th> |
||||
<td></td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">领款人</th> |
||||
<td> |
||||
<input type="text" name="money_man" value="<?=$caiwu_info->money_man?>" class="form-control">
|
||||
</td> |
||||
<th class="bg-warning">开户行</th> |
||||
<td> |
||||
<input type="text" name="money_bank" value="<?=$caiwu_info->money_bank?>" class="form-control">
|
||||
</td> |
||||
<th class="bg-warning">银行账号</th> |
||||
<td> |
||||
<input type="text" name="money_no" value="<?=$caiwu_info->money_no?>" class="form-control">
|
||||
</td> |
||||
<th class="bg-warning">转账日期</th> |
||||
<td> |
||||
<input type="text" name="transfer_date" id="transfer_date" value="<?=$caiwu_info->transfer_date?>" class="form-control">
|
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<th class="bg-warning">转账金额</th> |
||||
<td> |
||||
<input type="text" name="transfer_money" value="<?=$caiwu_info->transfer_money>0?$caiwu_info->transfer_money:round($order_info->total1_dis+$order_info->yuangong_money,2)?>" class="form-control">
|
||||
</td> |
||||
<th class="bg-warning">转账银行</th> |
||||
<td> |
||||
<select name="transfer_bank_id" class="form-control"> |
||||
<?php |
||||
foreach($banks as $bank) { |
||||
echo '<option value="'.$bank->id.'"'; |
||||
if($bank->id == $caiwu_info->transfer_bank_id) |
||||
echo ' selected '; |
||||
echo '>'.$bank->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</td> |
||||
<th class="bg-warning">银行流水号</th> |
||||
<td> |
||||
<input type="text" name="transfer_bank_no" value="<?=$caiwu_info->transfer_bank_no?>" class="form-control">
|
||||
</td> |
||||
<th class="bg-warning">转账状态</th> |
||||
<td> |
||||
<select name="caiwu_status_id" class="form-control"> |
||||
<?php |
||||
echo '<option value="0">无操作</option>'; |
||||
foreach($caiwu_status as $item){ |
||||
echo '<option value="'.$item->id.'"'; |
||||
echo $caiwu_info->caiwu_status_id == $item->id ? ' selected' : ''; |
||||
echo '>'.$item->name.'</option>'; |
||||
} |
||||
?> |
||||
</select> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
<div> |
||||
<div class="row"> |
||||
<div class="col-sm-12 text-center"> |
||||
<button type="button" class="btn btn-primary btn-cancel" type="button"> |
||||
<strong>放弃处理</strong> |
||||
</button> |
||||
<button type="button" class="btn btn-primary btn-save" type="button"> |
||||
<strong>保 存</strong> |
||||
</button> |
||||
<button type="button" class="btn btn-primary btn-submit" type="button"> |
||||
<strong>提 交</strong> |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<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="$('#logTable').bootstrapTable('refresh');"> |
||||
<i class="fa fa-refresh"></i> 刷新 |
||||
</a> |
||||
</div> |
||||
</div> |
||||
<div class="ibox-content"> |
||||
<table id="logTable"> |
||||
<thead> |
||||
<tr> |
||||
<th data-field="op_man">操作者</th> |
||||
<th data-field="op_time">操作时间</th> |
||||
<th data-field="remark">操作内容</th> |
||||
</tr> |
||||
</thead> |
||||
</table> |
||||
</div> |
||||
</div> |
||||
|
||||
</form> |
||||
</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> |
||||
var o = {}; |
||||
//判断是否填写了选项 |
||||
function isNull(data){ |
||||
if(data == "" || data == undefined || data == null){ |
||||
return true; |
||||
}else{ |
||||
return false; |
||||
} |
||||
var rate = (Number($('#' + obj1).val()))/Number(val) * 100 ; |
||||
$('#' + obj3).val(rate.toFixed(2)); |
||||
} |
||||
//保单处理 |
||||
function SaveOrder(status_id) { |
||||
var param = $('#orderFrm').serialize(); |
||||
param = param + '&status_id=' + status_id; |
||||
$.post('/insurer/finance-mng-save',param,function(obj){ |
||||
if(obj.success) { |
||||
if(status_id == 13) |
||||
$('#back-btn').click(); |
||||
else |
||||
alert(obj.msg); |
||||
} else { |
||||
alert(obj.msg); |
||||
//保存订单 |
||||
function saveOrder(status_id) { |
||||
var params = $('#orderFrm').serialize(); |
||||
params = params + '&status_id=' + status_id; |
||||
$.post('/insurer/finance-mng-save',params,function(obj){ |
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success && status_id==10) { |
||||
parent.refreshList(); |
||||
layer_close(); |
||||
} |
||||
},'json'); |
||||
} |
||||
$(function(){ |
||||
//操作历史 |
||||
gotoPage('/car/ajax-history-index-xubao?car_id=<?=$car_info->id?>&page=1','car_history_list');
|
||||
//放弃处理 |
||||
$('#cancel-btn').click(function(){ |
||||
if(confirm('是否确认放弃处理?')) { |
||||
//操作记录 |
||||
function searchOps() { |
||||
$('#logTable').bootstrapTable('destroy'); |
||||
$('#logTable').bootstrapTable({ |
||||
url: "/car/history-json", |
||||
pagination: true, |
||||
sidePagination: 'server', |
||||
multipleSelectRow: true, |
||||
queryParams: function(params) { |
||||
o['car_id'] = '<?=$order_info->car_id?>';
|
||||
o['limit'] = params['limit']; |
||||
o['offset'] = params['offset']; |
||||
return o; |
||||
} |
||||
}); |
||||
} |
||||
|
||||
$(function() { |
||||
searchOps(); |
||||
$('#transfer_date').datepicker({ |
||||
todayBtn: "linked", |
||||
keyboardNavigation: false, |
||||
forceParse: false, |
||||
calendarWeeks: true, |
||||
autoclose: true |
||||
}); |
||||
$('.btn-cancel').click(function(){ |
||||
parent.layer.confirm('是否确认放弃处理?', { |
||||
btn: ['确认','取消'], //按钮 |
||||
shade: false //不显示遮罩 |
||||
}, function(){ |
||||
var params = $("#theFrm").serialize(); |
||||
$.post('/insurer/finance-cancel-save',{order_id:<?=$order_info->id?>},function(obj){
|
||||
parent.layer.msg(obj.msg); |
||||
if(obj.success) { |
||||
$('#back-btn').click(); |
||||
} else { |
||||
alert(obj.msg); |
||||
parent.refreshList(); |
||||
layer_close(); |
||||
} |
||||
},'json'); |
||||
} |
||||
}, function(){ |
||||
// |
||||
}); |
||||
}); |
||||
//保存 |
||||
$('#save-btn').click(function(){ |
||||
SaveOrder(12); |
||||
$('.btn-save').click(function(){ |
||||
saveOrder(12); |
||||
}); |
||||
//提交 |
||||
$('#submit-btn').click(function(){ |
||||
if(confirm('是否提交此保单?')) { |
||||
SaveOrder(13); |
||||
} |
||||
}); |
||||
|
||||
//返回 |
||||
$('#back-btn').click(function(){ |
||||
window.location.href = '/insurer/finance-mng?<?=$back_params?>';
|
||||
$('.btn-submit').click(function(){ |
||||
saveOrder(10); |
||||
}); |
||||
}); |
||||
</script> |
||||
<?php $this->endBlock(); ?> |
||||
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 4.2 KiB |
Loading…
Reference in new issue