Car.php
5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
namespace app\serviceapi\validate;
use app\common\validate\BaseValidate;
/**
* 功能描述 华安车险通用验证规则
* Class Gas
* @package app\commapi\validate
* Date: 2020/7/20
* Time: 12:13
* @author nyq
*/
class Car extends BaseValidate
{
protected $rule = [
"vehicleNo" => "require",
"frameNo" => "require",
"vehicleName" => "require",
'cityCode' => 'require',
'modelName'=>'require',
'email'=>'require',
//车辆信息
'licenseNo'=>'require',
'engNo'=>'require',
'brndCode'=>'require',
'registerDate'=>'require',
'chgownerFlag'=>'require',
'transferDate'=>'require',
'vhlVal'=>'require',
//车主信息
'drvOwner'=>'require',
'certiType'=>'require',
'certiCode'=>'require',
'certiTel'=>'require',
//投保人
'appName'=>'require',
'appCertType'=>'require',
'appCertNo'=>'require',
'appTel'=>'require',
//被保人
'insuredName'=>'require',
'insuredCertType'=>'require',
'insuredCertNo'=>'require',
'insuredTel'=>'require',
//base
// 'cityCode'=>'require',
'salesCode'=>'require',
'joinFlag'=>'require',
'xz'=>'require',//保险险种
//核保数据校验
'calAppNo'=>'require',
// 'appName'=>'require',
// 'appCertType'=>'require',
// 'appCertNo'=>'require',
// 'appTel'=>'require',
'appAddr'=>'require',
'appEmail'=>'require',
'insrntName'=>'require',
'insrntCertType'=>'require',
'insrntCertNo'=>'require',
'insrntTel'=>'require',
'insrntAddr'=>'require',
// 'email'=>'require',
//支付数据校验
'syAppNo'=>'require',
'syAmount'=>'require',
'syAppName'=>'require',
'jqAppNo'=>'require',
'jqAmount'=>'require',
'jqAppName'=>'require',
];
protected $message = [
"vehicleNo.require" => "车牌必须,新车未上牌时传 *-*",
"frameNo.require" => "车架号必传",
"vehicleName.require" => "车型名称必传",
'cityCode.require' => '行政区域代码必传',
'modelName.require' => '车型名称必传',
'email.require' => '邮箱必传',
//车辆信息
"licenseNo.require" => "车牌必须,新车未上牌时传 *-*",
"engNo.require" => "发动机号必传",
"brndCode.require" => "厂牌车型代码必传",
"registerDate.require" => "初次登记日期必传",
"chgownerFlag.require" => "过户车标志必传",
"transferDate.require" => "转移登记日期必传",
"vhlVal.require" => "新车购置价必传",
//车主信息
"drvOwner.require" => "行驶证车主必传",
"certiType.require" => "车主证件类型必传",
"certiCode.require" => "车主证件号码必传",
"certiTel.require" => "车主电话号码必传",
//投保人
"appName.require" => "投保人姓名必传",
"appCertType.require" => "投保人证件类型必传",
"appCertNo.require" => "投保人证件号码必传",
"appTel.require" => "投保人联系人电话必传",
//被保人
"insuredName.require" => "被保险人姓名必传",
"insuredCertType.require" => "被保人证件类型必传",
"insuredCertNo.require" => "被保人证件号码必传",
"insuredTel.require" => "被保险人电话必传",
//base
"salesCode.require" => "出单员必传",
"joinFlag.require" => "商交同保标识必传",
//险种信息
"xz.require" => "险种信息必传",
//核保信息检验
"calAppNo.require" => "报价单号必传",
"appAddr.require" => "投保人地址必传",
"appEmail.require" => "投保人邮箱必传",
"insrntName.require" => "被保险人姓名必传",
"insrntCertType.require" => "被保人证件类型必传",
"insrntCertNo.require" => "被保人证件号码必传",
"insrntTel.require" => "被保险人电话必传",
"insrntAddr.require" => "被保险人地址必传",
//支付信息检验
"syAppNo.require" => "商业险投报保(批)单号必传",
"syAmount.require" => "商业险保单金额必传",
"syAppName.require" => "商业险投保人名称必传",
"jqAppNo.require" => "交强险投报保(批)单号必传",
"jqAmount.require" => "交强险保单金额必传",
"jqAppName.require" => "交强险投保人名称必传",
];
protected $scene = [
//查车型
"get_carmodel"=>["vehicleNo","frameNo","vehicleName","cityCode"],
//保费计算
"get_premium"=>["licenseNo","frameNo","engNo","brndCode","registerDate","vhlVal","drvOwner","certiType","certiCode","certiTel","appName","appCertType","appCertNo","appTel","insuredName","insuredCertType","insuredCertNo","insuredTel","joinFlag","xz"],
//核保
"get_underwrite"=>["calAppNo","appName","appCertType","appCertNo","appTel","appAddr","appEmail","insrntName","insrntCertType","insrntCertNo","insrntTel","insrntAddr","email"],
//支付
"get_pay"=>["syAppNo","syAmount","syAppName","jqAppNo","jqAmount","jqAppName"]
];
}