Merge branch 'feature/inv' into develop
This commit is contained in:
@@ -113,7 +113,6 @@ class InvItemService
|
|||||||
$data['category_id'] = 0;
|
$data['category_id'] = 0;
|
||||||
$data['spec_model'] = '';
|
$data['spec_model'] = '';
|
||||||
$data['unit'] = '件';
|
$data['unit'] = '件';
|
||||||
$data['is_consumable'] = 0;
|
|
||||||
$data['stock_qty'] = $data['stock_qty']??1;
|
$data['stock_qty'] = $data['stock_qty']??1;
|
||||||
$data['location'] = '';
|
$data['location'] = '';
|
||||||
|
|
||||||
|
|||||||
@@ -8,27 +8,18 @@ class InvItemValidate extends Validate
|
|||||||
{
|
{
|
||||||
// 规则
|
// 规则
|
||||||
protected $rule = [
|
protected $rule = [
|
||||||
'id' => 'require|integer',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// 提示
|
// 提示
|
||||||
protected $message = [
|
protected $message = [
|
||||||
'id.require' => '物品ID不能为空',
|
|
||||||
'id.integer' => '物品ID必须为整数',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// 场景
|
// 场景
|
||||||
protected $scene = [
|
protected $scene = [
|
||||||
'store' => [
|
|
||||||
'id',
|
|
||||||
],
|
|
||||||
|
|
||||||
'update' => [
|
'update' => [
|
||||||
'id',
|
|
||||||
],
|
],
|
||||||
|
|
||||||
'qrCode' => [
|
'qrCode' => [
|
||||||
'id',
|
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user