PurchaseDemandServiceInterface.php 1.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php


namespace Meibuyu\Rpc\Service\Interfaces\PurchaseNew;


interface PurchaseDemandServiceInterface
{


    /**
     * 同步请款状态
     * 审核通过
     * {
         "purchase_id":"采购单id",
     *   "reject_reason":"驳回缘由", 审核驳回需要填充
     *   "flag":true|false  //true审核通过 false审核驳回
     * }
     * @return mixed
     */
    public function createPurchaseDemand(array $data);

    /**
     * 扫描物流号或批次号查询
     * @param array $demandIds
     * @return bool
     */
    public function deleteDemandByIds(array $demandIds): bool;
Liu lu's avatar
Liu lu committed
29 30 31 32 33 34 35 36 37 38


    /**
     * 批量取消采购
     * @param array $subOrderNos 子单号数组
     * @param array $user Auth::user()
     * @author Liu lu
     * date 2023-01-10
     */
    public function batchCancelPurchase(array $subOrderNos,$user);
39 40 41 42 43 44 45


    /**
     * 订单系统发送to采购消息
     * @param $params
     */
    public function sendMessageByOrder($params);
46 47 48 49 50 51 52 53


    /**
     * 获取采购、订单消息
     * @param $params
     * @return mixed
     */
    public function getMessagePurchase($params);
54
}