Loading src/Service/Interfaces/StoreServiceInterface.php +46 −37 Original line number Diff line number Diff line Loading @@ -25,22 +25,22 @@ interface StoreServiceInterface * author: fuyunnan * @param array $data 需要入库的数组 格式 入库添加 * * data[master][warehousing_date]:2020-01-08 入库时间 data[master][creator_id]:12 创建人id data[master][warehouse_id]:2 仓库id data[master][type_id]:1 入库单类型 data[master][source_no]:no_121333 来源单号 (选填) data[master][stock_up_status]:1二次质检状态 (选填) data[master][remark]:备注 (选填) data[master][status]:2 状态 (选填 不填默认1) * data[master][warehousing_date]:2020-01-08 入库时间 * data[master][creator_id]:12 创建人id * data[master][warehouse_id]:2 仓库id * data[master][type_id]:1 入库单类型 * data[master][source_no]:no_121333 来源单号 (选填) * data[master][stock_up_status]:1二次质检状态 (选填) * data[master][remark]:备注 (选填) * data[master][status]:2 状态 (选填 不填默认1) * * 产品二维数组 data[goods][0][product_id]:16 产品id data[goods][0][should_cnt]:133 应入数量 data[goods][0][real_cnt]:10 实入数量 data[goods][1][product_id]:18 data[goods][1][should_cnt]:10 data[goods][1][real_cnt]:15 * data[goods][0][product_id]:16 产品id * data[goods][0][should_cnt]:133 应入数量 * data[goods][0][real_cnt]:10 实入数量 * data[goods][1][product_id]:18 * data[goods][1][should_cnt]:10 * data[goods][1][real_cnt]:15 * * 或者参考yapi http://api.huaperfect.com/project/38/interface/api/1617 * Loading @@ -51,30 +51,28 @@ interface StoreServiceInterface public function createWarehousing(array $data): array; /** * description:批量创建出库单 * author: fuyunnan * [ 'main' => [ 'creator_id' => 1, 'warehouse_id' => 1, 'type' => 5, ], 'products' => [ [ 'source_no' => 1, 'product_id' => 1, 'real_cnt' => 1 ], [ 'source_no' => 1, 'product_id' => 1, 'real_cnt' => 1 ] ] ] * 'main' => [ * 'creator_id' => 1, * 'warehouse_id' => 1, * 'type' => 5, * ], * 'products' => [ * [ * 'source_no' => 1, * 'product_id' => 1, * 'real_cnt' => 1 * ], * [ * 'source_no' => 1, * 'product_id' => 1, * 'real_cnt' => 1 * ] * ] * ] * * @param array $attributes 提交的数组 或参考yapi http://api.huaperfect.com/project/38/interface/api/6968 * @return array Loading Loading @@ -175,4 +173,15 @@ interface StoreServiceInterface */ public function checkStock($ids): array; /** * description:出库单 恢复库存 出库单定为已取消 * author: fuyunnan * @param string $sourceNo 来源单号 * @return int * @throws * Date: 2020/9/7 */ public function restoreStock($sourceNo): int; } No newline at end of file Loading
src/Service/Interfaces/StoreServiceInterface.php +46 −37 Original line number Diff line number Diff line Loading @@ -25,22 +25,22 @@ interface StoreServiceInterface * author: fuyunnan * @param array $data 需要入库的数组 格式 入库添加 * * data[master][warehousing_date]:2020-01-08 入库时间 data[master][creator_id]:12 创建人id data[master][warehouse_id]:2 仓库id data[master][type_id]:1 入库单类型 data[master][source_no]:no_121333 来源单号 (选填) data[master][stock_up_status]:1二次质检状态 (选填) data[master][remark]:备注 (选填) data[master][status]:2 状态 (选填 不填默认1) * data[master][warehousing_date]:2020-01-08 入库时间 * data[master][creator_id]:12 创建人id * data[master][warehouse_id]:2 仓库id * data[master][type_id]:1 入库单类型 * data[master][source_no]:no_121333 来源单号 (选填) * data[master][stock_up_status]:1二次质检状态 (选填) * data[master][remark]:备注 (选填) * data[master][status]:2 状态 (选填 不填默认1) * * 产品二维数组 data[goods][0][product_id]:16 产品id data[goods][0][should_cnt]:133 应入数量 data[goods][0][real_cnt]:10 实入数量 data[goods][1][product_id]:18 data[goods][1][should_cnt]:10 data[goods][1][real_cnt]:15 * data[goods][0][product_id]:16 产品id * data[goods][0][should_cnt]:133 应入数量 * data[goods][0][real_cnt]:10 实入数量 * data[goods][1][product_id]:18 * data[goods][1][should_cnt]:10 * data[goods][1][real_cnt]:15 * * 或者参考yapi http://api.huaperfect.com/project/38/interface/api/1617 * Loading @@ -51,30 +51,28 @@ interface StoreServiceInterface public function createWarehousing(array $data): array; /** * description:批量创建出库单 * author: fuyunnan * [ 'main' => [ 'creator_id' => 1, 'warehouse_id' => 1, 'type' => 5, ], 'products' => [ [ 'source_no' => 1, 'product_id' => 1, 'real_cnt' => 1 ], [ 'source_no' => 1, 'product_id' => 1, 'real_cnt' => 1 ] ] ] * 'main' => [ * 'creator_id' => 1, * 'warehouse_id' => 1, * 'type' => 5, * ], * 'products' => [ * [ * 'source_no' => 1, * 'product_id' => 1, * 'real_cnt' => 1 * ], * [ * 'source_no' => 1, * 'product_id' => 1, * 'real_cnt' => 1 * ] * ] * ] * * @param array $attributes 提交的数组 或参考yapi http://api.huaperfect.com/project/38/interface/api/6968 * @return array Loading Loading @@ -175,4 +173,15 @@ interface StoreServiceInterface */ public function checkStock($ids): array; /** * description:出库单 恢复库存 出库单定为已取消 * author: fuyunnan * @param string $sourceNo 来源单号 * @return int * @throws * Date: 2020/9/7 */ public function restoreStock($sourceNo): int; } No newline at end of file