简要描述:

  • 上传发票图片接口,用来校验和绑定发票,校验成功后就会自动绑定发票,并返回发票图片列表

请求域名:

  • http://xx.com

请求URL:

POST/plugin.withdrawal-invoice.frontend.index.getTabList

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "list": [
            {
                "title": "门店消费卡",
                "api": "plugin.withdrawal-invoice.frontend.index.withdrawal-list",
                "type": "Yunshop\\StoreCard\\Common\\Models\\CardIncomeModel",
                "status_list": [
                    {
                        "title": "全部",
                        "value": 0
                    },
                    {
                        "title": "待确认",
                        "value": 1
                    },
                    {
                        "title": "待补充",
                        "value": 2
                    },
                    {
                        "title": "已确认",
                        "value": 3
                    },
                    {
                        "title": "已驳回",
                        "value": -1
                    }
                ]
            },
            {
                "title": "门店提现",
                "api": "plugin.withdrawal-invoice.frontend.index.withdrawal-list",
                "type": "Yunshop\\StoreCashier\\common\\models\\StoreOrder",
                "status_list": [
                    {
                        "title": "全部",
                        "value": 0
                    },
                    {
                        "title": "待确认",
                        "value": 1
                    },
                    {
                        "title": "待补充",
                        "value": 2
                    },
                    {
                        "title": "已确认",
                        "value": 3
                    },
                    {
                        "title": "已驳回",
                        "value": -1
                    }
                ]
            },
            {
                "title": "收银台提现",
                "api": "plugin.withdrawal-invoice.frontend.index.withdrawal-list",
                "type": "Yunshop\\StoreCashier\\common\\models\\CashierOrder",
                "status_list": [
                    {
                        "title": "全部",
                        "value": 0
                    },
                    {
                        "title": "待确认",
                        "value": 1
                    },
                    {
                        "title": "待补充",
                        "value": 2
                    },
                    {
                        "title": "已确认",
                        "value": 3
                    },
                    {
                        "title": "已驳回",
                        "value": -1
                    }
                ]
            },
            {
                "title": "连锁店提现",
                "api": "plugin.withdrawal-invoice.frontend.index.withdrawal-list",
                "type": "Yunshop\\StoreCashier\\common\\models\\BossOrder",
                "status_list": [
                    {
                        "title": "全部",
                        "value": 0
                    },
                    {
                        "title": "待确认",
                        "value": 1
                    },
                    {
                        "title": "待补充",
                        "value": 2
                    },
                    {
                        "title": "已确认",
                        "value": 3
                    },
                    {
                        "title": "已驳回",
                        "value": -1
                    }
                ]
            },
            {
                "title": "多门店核销",
                "api": "plugin.withdrawal-invoice.frontend.index.withdrawal-list",
                "type": "Yunshop\\StoreProjects\\common\\models\\ProjectsOrderService",
                "status_list": [
                    {
                        "title": "全部",
                        "value": 0
                    },
                    {
                        "title": "待确认",
                        "value": 1
                    },
                    {
                        "title": "待补充",
                        "value": 2
                    },
                    {
                        "title": "已确认",
                        "value": 3
                    },
                    {
                        "title": "已驳回",
                        "value": -1
                    }
                ]
            },
            {
                "title": "供应商提现",
                "api": "plugin.withdrawal-invoice.frontend.index.supplier-withdrawal-list",
                "type": "supplier",
                "status_list": [
                    {
                        "title": "全部",
                        "value": 0
                    },
                    {
                        "title": "待确认",
                        "value": 1
                    },
                    {
                        "title": "待补充",
                        "value": 2
                    },
                    {
                        "title": "已确认",
                        "value": 3
                    },
                    {
                        "title": "已驳回",
                        "value": -1
                    }
                ]
            }
        ]
    },
}
参数名 类型 说明
result int 接口返回状态码(1表示成功)
msg string 接口返回消息("ok"表示成功)
data object 核心数据对象
validate_page object 页面验证配置信息

data 对象

参数名 类型 说明
list array 提现类型配置数组

list[] 数组元素

参数名 类型 说明
title string 提现类型名称
api string 前端调用的API接口
type string 对应的模型类名/标识符
status_list array 状态筛选选项列表

status_list[] 状态选项

参数名 类型 说明
title string 状态显示名称
value int 状态值代码