StoreMaterialServiceInterface.php 3.65 KB
Newer Older
fuyunnan's avatar
fuyunnan committed
1 2 3 4 5 6 7 8
<?php
/**
 * Created by PhpStorm. 仓库原料rpc
 * User: fuyunnan
 * Date: 2020/3/16
 * Time: 15:07
 */

9
namespace Meibuyu\Rpc\Service\Interfaces\Store;
fuyunnan's avatar
fuyunnan committed
10 11 12 13 14

interface StoreMaterialServiceInterface
{
    /**
     * description:创建原料入库单
fuyunnan's avatar
fuyunnan committed
15
     *
fuyunnan's avatar
fuyunnan committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
     * 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][remark]:备注 (选填)
     * data[master][status]:2 状态 (选填 不填默认1)
     *
     * 产品二维数组
     * data[goods][0][material_id]:16 产品id
     * data[goods][0][should_cnt]:133 应入数量
     * data[goods][0][real_cnt]:10 实入数量
     * data[goods][1][material_id]:18
     * data[goods][1][should_cnt]:10
     * data[goods][1][real_cnt]:15
fuyunnan's avatar
fuyunnan committed
31
     *
fuyunnan's avatar
fuyunnan committed
32 33 34 35 36 37 38
     * author: fuyunnan
     * @param array $attributes 需要入库的数组 格式请参考yapi 入库添加
     * @return array
     * @throws
     * Date: 2020/7/6
     */
    public function createMaterialWarehousing(array $attributes): array;
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


    /**
     * description:批量创建入库单
     * author: fuyunnan
     * @param
     * @return array
     * @throws
     * Date: 2020/10/31
     */
    public function createBatchMaterialWarehousing($attributes): array;

    /**
     * description:批量创建出库单
     * author: fuyunnan
     * @param
     * @return array
     * @throws
     * Date: 2020/10/31
     */
    public function createBatchExMaterialWarehouse($attributes): array;

    /**
     * description:批量修改入库单
     * author: fuyunnan
     * @param
     * @return array
     * @throws
     * Date: 2020/10/31
     */
    public function updateBatchMaterialWarehousing($attributes): array;

    /**
     * description:批量修改出库单
     * author: fuyunnan
     * @param
     * @return array
     * @throws
     * Date: 2020/10/31
     */
    public function updateBatchExMaterialWarehouse($attributes): array;

    /**
     * description:通过原料id数组获取库存列表 给订单系统查询的接口 返回当前原料分组后的库存
     * author: fuyunnan
     * @param array $ids 原料ids 数组
85
     * @param array $wareIds 仓库数组id
86 87 88 89
     * @return array
     * @throws
     * Date: 2020/7/27
     */
90
    public function getGroupMaterialStock($ids, $wareIds = []): array;
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113

    /**
     * description:批量查看入库单信息
     * author: fuyunnan
     * @param array $ids 入库单ids数组
     * @param array $relations 关联关系 ['material_warehousing_order_materials']
     * @return array
     * @throws
     * Date: 2020/10/31
     */
    public function showBatchWarehousing($ids, $relations = []): array;

    /**
     * description:批量查看出库单信息
     * author: fuyunnan
     * @param array $ids 出库单ids数组
     * @param array $relations 关联关系 ['material_ex_warehouse_order_materials']
     * @return array
     * @throws
     * Date: 2020/10/31
     */
    public function showBatchExeWarehouse($ids, $relations = []): array;

fuyunnan's avatar
fuyunnan committed
114 115 116 117 118 119 120 121 122 123

    /**
     * description:批量调拨库存方法
     * author: fuyunnan
     * @param array $data 表单
     * @return array
     * @throws
     * Date: 2020/11/3
     */
    public function transferToStock($data): array;
fuyunnan's avatar
fuyunnan committed
124 125 126 127 128 129 130 131 132 133 134

    /**
     * description:整合 先出库 然后 再入库数量 失败回滚
     * author: fuyunnan
     * @param array $outData 出库数组
     * @param array $inData 出库数组
     * @return array
     * @throws
     * Date: 2020/11/5
     */
    public function transferUpdateOutAfterIn($outData, $inData): array;
fuyunnan's avatar
fuyunnan committed
135
}