You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.4 KiB
63 lines
1.4 KiB
<?php
|
|
|
|
namespace addons\qingdong\validate;
|
|
|
|
use think\Validate;
|
|
|
|
//回款计划
|
|
class ReceivablesPlan extends Validate {
|
|
/**
|
|
* 验证规则
|
|
*/
|
|
protected $rule = [
|
|
'create_staff_id' => 'require|number',
|
|
'owner_staff_id' => 'require|number',
|
|
'customer_id' => 'require|number',
|
|
'contract_id' => 'require|number',
|
|
'num' => 'require|max:64',
|
|
'money' => 'require|number',
|
|
'return_date' => 'date',
|
|
'return_type' => 'max:32',
|
|
'remind' => 'max:32',
|
|
'remind_date' => 'date',
|
|
'remarks' => 'max:250',
|
|
'file' => 'max:250',
|
|
];
|
|
/**
|
|
* 提示消息
|
|
*/
|
|
protected $message = [];
|
|
/**
|
|
* 字段描述
|
|
*/
|
|
protected $field = [
|
|
'create_staff_id' => '员工',
|
|
'owner_staff_id' => '员工',
|
|
'customer_id' => '所属客户',
|
|
'contract_id' => '所属合同',
|
|
'num' => '期数',
|
|
'money' => '计划回款金额',
|
|
'return_date' => '计划回款日期',
|
|
'return_type' => '计划回款方式',
|
|
'remind' => '提前几天提醒',
|
|
'remind_date' => '提醒日期',
|
|
'remarks' => '备注信息',
|
|
];
|
|
/**
|
|
* 验证场景
|
|
*/
|
|
protected $scene = [
|
|
'create' => [
|
|
'customer_id',
|
|
'contract_id',
|
|
'num',
|
|
'money',
|
|
'return_date',
|
|
'return_type',
|
|
'remind',
|
|
'remind_date',
|
|
'remarks'
|
|
],
|
|
'edit' => [],
|
|
];
|
|
}
|
|
|