edit-licheb-contracts

This commit is contained in:
lccsw
2021-08-16 17:31:32 +08:00
parent 01bd81913f
commit b8568c6195
6 changed files with 37 additions and 12 deletions
+2 -3
View File
@@ -17,7 +17,7 @@
<div class="am-form-group am-u-lg-4">
<label class="am-para-label label-width"><span class="span-bold">保险到期时间:</span></label>
<div class="am-para-input">
<input name="e_time" id="bx_time" readonly v-model="info.agent.ins_time">
<input name="e_time" id="bx_time" readonly value="<?=$info['agent']['ins_time']?>">
</div>
<!--
<label class="am-para-label label-width">交通强制责任险:</label>
@@ -50,8 +50,7 @@
<div class="am-para-input">
<div class="am-form-group am-form-file">
<button type="button" class="am-btn am-btn-default am-btn-sm"
data-file="5" data-type="jpg,png,gif,png,jpeg"
data-field="img_rheight" data-params-source="vue_obj.bx_imgs">
data-file="5" data-type="jpg,png,gif,png,jpeg" data-params-source="vue_obj.bx_imgs">
<i class="am-icon-cloud-upload"></i> 选择要上传的文件
</button>
<div class="photo-upload mt10">
+10
View File
@@ -23,13 +23,23 @@ class Series extends Wxapp{
//获取车型列表
protected function get_cars(){
$biz_id = $this->session['biz_id'];
$this->load->model('auto/auto_brand_model');
$this->load->model('auto/auto_series_model');
$this->load->model("biz/biz_model");
$id = $this->input_param('id'); //车系id
$where = [
'status' => 1
];
$biz = $this->biz_model->get(['id'=>$biz_id],'jsondata');
$jsondata = json_decode($biz['jsondata'],true);
$auto_brands = $jsondata['auto_brands'] ? $jsondata['auto_brands'] : [0];
$str_brands = implode(',',$auto_brands);
$where["id in ($str_brands)"] = null;
$rows = $this->auto_series_model-> select($where,'',1,20,'id,brand_id,name');
$list = [];
if($rows){
+13 -5
View File
@@ -23,6 +23,7 @@ class Contract extends Wxapp{
$this->load->model('receiver/order/receiver_order_ckcars_model','ckcars_model');
$this->load->model('receiver/order/receiver_order_bills_model','bills_model');
$this->load->model('receiver/order/receiver_order_deliverys_model','deliverys_model');
$this->load->model('receiver/receiver_service_package_model','package_model');
$this->load->model("biz/biz_model");
$this->load->model("sys/sys_company_model");
@@ -95,7 +96,7 @@ class Contract extends Wxapp{
$img = $this->input_param('img');
$row = $this->contracts_model->get(['type'=>$type,'o_id'=>$id]);
$order = $this->orders_model->get(['id'=>$id],'biz_id');
$order = $this->orders_model->get(['id'=>$id],'biz_id,ifentrust,pack_id');
if(!$row['file'] || !$img){
throw new Exception('参数错误', API_CODE_INVILD_PARAM);
@@ -128,7 +129,8 @@ class Contract extends Wxapp{
switch($type){
case 0: //整车
$sign_img = array_pop($imgs);
$res = $sign_entity->merge($sign_img,$img,1070,500,230);
$height = $order['ifentrust'] ? 480 : 380;
$res = $sign_entity->merge($sign_img,$img,1070,$height,230);
if(!$res){
throw new Exception('签名失败', API_CODE_INVILD_PARAM);
}
@@ -148,7 +150,11 @@ class Contract extends Wxapp{
break;
case 1: //协议
$sign_img = array_pop($imgs);
$res = $sign_entity->merge($sign_img,$img,1050,1650,300);
$package = $this->package_model->get(['id'=>$order['pack_id']],'srv_ids');
$srv_count = $package ? count(explode(',',$package['srv_ids'])) : 0;
$height = $order['ifentrust'] ? 1400 : 1280;
$height += $srv_count*52;
$res = $sign_entity->merge($sign_img,$img,1050,$height,300);
if(!$res){
throw new Exception('签名失败', API_CODE_INVILD_PARAM);
}
@@ -170,7 +176,8 @@ class Contract extends Wxapp{
break;
case 2: //确认信息
$sign_img = array_pop($imgs);
$res = $sign_entity->merge($sign_img,$img,1050,430,450);
$height = $order['ifentrust'] ? 600 : 480;
$res = $sign_entity->merge($sign_img,$img,1050,$height,300);
if(!$res){
throw new Exception('签名失败', API_CODE_INVILD_PARAM);
}
@@ -194,7 +201,8 @@ class Contract extends Wxapp{
break;
case 3: //车辆交接
$sign_img = array_pop($imgs);
$res = $sign_entity->merge($sign_img,$img,1050,1500,350);
$height = $order['ifentrust'] ? 1470 : 1350;
$res = $sign_entity->merge($sign_img,$img,1050,$height,350);
if(!$res){
throw new Exception('签名失败', API_CODE_INVILD_PARAM);
}
+1 -1
View File
@@ -214,7 +214,7 @@ class Customers extends Wxapp{
'v_id' => $v_id,
'admin_id' => $this->session['uid'],
'level' => $level,
'cf_title' => '自行到店',
'cf_title' => '自有资源',
'car_json' => json_encode($car_json,JSON_UNESCAPED_UNICODE),
'cont_time' => date('Y-m-d H:i:s'),
'c_time' => time()
+10 -2
View File
@@ -19,18 +19,26 @@ class Loan extends Wxapp{
$this->check_headimg =array();//授权微信信息
$this->load->model('receiver/order/receiver_order_loans_model','order_loans_model');
$this->load->model('receiver/order/receiver_orders_model','orders_model');
$this->load->model('auto/auto_cars_model');
}
protected function get(){
$oid = $this->input_param('oid');
$row = $this->orders_model->get(['id'=>$id]);
$attrs = "{$row['cor_id']}_{$row['v_id']}_{$row['incor_id']}";
$car = $this->auto_cars_model->get(['attrs'=>$attrs,'s_id'=>$row['s_id']],'first_pay');
$money = $car['first_pay'] ? $car['first_pay'] * 36 : 0;
$banks = [
'易鑫金融 36期'
'易鑫金融'
];
$years = [
36
];
$data = [
'banks' => $banks,
'years' => $years
'years' => $years,
'first_price' => $money
];
return $data;
}
+1 -1
View File
@@ -66,7 +66,7 @@
<div><b>四、车辆交付信息</b></div>
<div>甲方已向乙方做了详细的车辆介绍,介绍的内容包含但不限于车辆外部、行李箱、发动机舱、座椅、驾驶位置及各类仪表及显示屏介绍。</div>
<div>乙方经过验收,确认上述所有事项,所购车辆符合购车合同约定并已于交付日期收到该车辆。</div>
<div style="position:absolute;left:0;right:0;bottom:0;padding-bottom:30px;">
<div style="margin-top:50px;">
<table style="width:100%;">
<tr>
<td style="width:60%;">