From fb8f87dd5fca770402bb9024668f656921b516d0 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Tue, 24 Feb 2026 16:46:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E5=93=81=E5=88=9B=E5=BB=BA=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/InvItemService.php | 1 - app/common/validate/InvItemValidate.php | 9 --------- 2 files changed, 10 deletions(-) diff --git a/app/common/service/InvItemService.php b/app/common/service/InvItemService.php index ac675be..6d188f5 100644 --- a/app/common/service/InvItemService.php +++ b/app/common/service/InvItemService.php @@ -113,7 +113,6 @@ class InvItemService $data['category_id'] = 0; $data['spec_model'] = ''; $data['unit'] = '件'; - $data['is_consumable'] = 0; $data['stock_qty'] = $data['stock_qty']??1; $data['location'] = ''; diff --git a/app/common/validate/InvItemValidate.php b/app/common/validate/InvItemValidate.php index da3cf2b..55fe66b 100644 --- a/app/common/validate/InvItemValidate.php +++ b/app/common/validate/InvItemValidate.php @@ -8,27 +8,18 @@ class InvItemValidate extends Validate { // 规则 protected $rule = [ - 'id' => 'require|integer', ]; // 提示 protected $message = [ - 'id.require' => '物品ID不能为空', - 'id.integer' => '物品ID必须为整数', ]; // 场景 protected $scene = [ - 'store' => [ - 'id', - ], - 'update' => [ - 'id', ], 'qrCode' => [ - 'id', ], ]; }