库存管理类

    materialoutlist/batch_get


    目录

    1.接口说明

    1.1接口描述

         获取材料出库单列表

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    生产管理

    3.接口调用说明

    3.1请求说明

    url https://api.yonyouup.com/api/materialoutlist/batch_get
    格式 JSON
    https请求方式 GET


    3.2url参数说明

    参数 是否必填 类型 描述
    from_account sting 调用方id
    to_account string 提供方id
    app_key string 应用编码
    token string 全局访问唯一识别码
    ds_sequence number 数据源序号(默认取应用的第一个数据源)
    warehousecode string 仓库编码
    warehousename string 仓库名称关键字
    date_begin date 起始单据日期
    date_end date 结束单据日期
    auditdate_begin date 起始审核日期,格式:yyyy-MM-dd
    auditdate_end date 结束审核日期,格式:yyyy-MM-dd
    code_begin string 起始出库单号
    code_end string 结束出库单号
    departmentcode string 部门编码
    departmentname string 部门名称关键字
    memory string 备注关键字
    maker string 制单人关键字
    businesstype string 业务类型
    source string 单据来源
    cmpocode string 生产订单号
    serial string 生产批号
    businesscode string 对应业务单号
    receivecode string 收发类别编码
    receivename string 收发类别名称关键字
    personcode string 业务员编码
    personname string 业务员名称关键字
    vendorcode string 供应商编码
    vendorabbname string 供应商简称关键字
    handler string 审核人关键字
    define1 string 自定义项1
    define2 string 自定义项2
    define3 string 自定义项3
    define4_begin date 起始自定义项4
    define4_end date 结束自定义项4
    define5 number 自定义项5
    define6_begin date 起始自定义项6
    define6_end date 结束自定义项6
    define7 number 自定义项7
    define8 string 自定义项8
    define9 string 自定义项9
    define10 string 自定义项10
    define11 string 自定义项11
    define12 string 自定义项12
    define13 string 自定义项13
    define14 string 自定义项14
    define15 number 自定义项15
    define16 number 自定义项16

    3.3请求示例

    GET https://api.yonyouup.com/api/materialoutlist/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&warehousecode=xxxxx&warehousename=xxxxx&date_begin=xxxxx&date_end=xxxxx&auditdate_begin=xxxxx&auditdate_end=xxxxx&code_begin=xxxxx&code_end=xxxxx&departmentcode=xxxxx&departmentname=xxxxx&memory=xxxxx&maker=xxxxx&businesstype=xxxxx&source=xxxxx&cmpocode=xxxxx&serial=xxxxx&businesscode=xxxxx&receivecode=xxxxx&receivename=xxxxx&personcode=xxxxx&personname=xxxxx&vendorcode=xxxxx&vendorabbname=xxxxx&handler=xxxxx&define1=xxxxx&define2=xxxxx&define3=xxxxx&define4_begin=xxxxx&define4_end=xxxxx&define5=xxxxx&define6_begin=xxxxx&define6_end=xxxxx&define7=xxxxx&define8=xxxxx&define9=xxxxx&define10=xxxxx&define11=xxxxx&define12=xxxxx&define13=xxxxx&define14=xxxxx&define15=xxxxx&define16=xxxxx


    3.4返回参数说明

    参数说明 类型 参数路径 描述
    errcode string   错误码,0 为正常。
    errmsg string   错误信息。
    id number 收发记录主表标识
    receiveflag number 收发标志
    vouchtype string 单据类型编码
    businesstype string 业务类型
    source string 单据来源
    cmpocode string 生产订单号
    serial string 生产批号
    businesscode string 对应业务单号
    warehousecode string 仓库编码
    warehousename string 仓库名称
    date string 单据日期
    code string 出库单号
    receivecode string 收发类别编码
    receivename string 收发类别名称
    departmentcode string 部门编码
    departmentname string 部门名称
    personcode string 业务员编码
    personname string 业务员名称
    vendorcode string 供应商编码
    vendorabbname string 供应商简称
    quantity number 产量
    arrivedate string 到货日期
    checkcode string 检验单号
    checkdate string 检验日期
    checkperson string 检验员
    templatenumber number 单据模版号
    handler string 审核人
    memory string 备注
    maker string 制单人
    define1 string 自定义项1
    define2 string 自定义项2
    define3 string 自定义项3
    define4 date 自定义项4
    define5 number 自定义项5
    define6 date 自定义项6
    define7 number 自定义项7
    define8 string 自定义项8
    define9 string 自定义项9
    define10 string 自定义项10
    define11 string 自定义项11
    define12 string 自定义项12
    define13 string 自定义项13
    define14 string 自定义项14
    define15 number 自定义项15
    define16 number 自定义项16
    auditdate string 审核日期

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"page_index":"1",
    	"rows_per_page":"20",
    	"materialoutlist":[
    		{
    			"define1":"",
    			"templatenumber":"65",
    			"define2":"",
    			"define3":"",
    			"define4":"",
    			"define5":"",
    			"define6":"",
    			"date":"2014-11-30",
    			"define7":"",
    			"define16":"",
    			"define8":"",
    			"define9":"",
    			"id":"1000000159",
    			"checkperson":"",
    			"receiveflag":"0",
    			"checkcode":"",
    			"checkdate":"",
    			"cmpocode":"",
    			"businesscode":"",
    			"quantity":"",
    			"departmentcode":"0401",
    			"arrivedate":"",
    			"warehousename":"PC机材料仓库",
    			"vendorabbname":"辰环手机配件",
    			"vouchtype":"11",
    			"businesstype":"委外发料",
    			"maker":"demo3",
    			"departmentname":"采购部",
    			"code":"0000000002",
    			"receivename":"委托加工出库",
    			"receivecode":"23",
    			"memory":"",
    			"vendorcode":"01002",
    			"define15":"",
    			"auditdate":"",
    			"warehousecode":"02",
    			"define14":"",
    			"define13":"",
    			"define12":"",
    			"source":"委外",
    			"define11":"",
    			"personcode":"00043",
    			"define10":"",
    			"personname":"顾潇",
    			"serial":"",
    			"handler":""
    		},
    		{
    			"define1":"查玫",
    			"templatenumber":"65",
    			"define2":"",
    			"define3":"",
    			"define4":"",
    			"define5":"",
    			"define6":"",
    			"date":"2014-12-03",
    			"define7":"",
    			"define16":"",
    			"define8":"",
    			"define9":"",
    			"id":"1000000176",
    			"checkperson":"",
    			"receiveflag":"0",
    			"checkcode":"",
    			"checkdate":"",
    			"cmpocode":"0000000002",
    			"businesscode":"",
    			"quantity":"13000.0",
    			"departmentcode":"0401",
    			"arrivedate":"",
    			"warehousename":"PC原材料仓",
    			"vendorabbname":"北京模具八厂",
    			"vouchtype":"11",
    			"businesstype":"委外发料",
    			"maker":"demo3",
    			"departmentname":"采购部",
    			"code":"0000000005",
    			"receivename":"委托加工出库",
    			"receivecode":"23",
    			"memory":"",
    			"vendorcode":"06001",
    			"define15":"",
    			"auditdate":"2014-12-03",
    			"warehousecode":"30",
    			"define14":"",
    			"define13":"",
    			"define12":"",
    			"source":"委外订单",
    			"define11":"",
    			"personcode":"00045",
    			"define10":"",
    			"personname":"查玫",
    			"serial":"",
    			"handler":"demo3"
    		}
    	],
    	"row_count":"225",
    	"errmsg":"",
    	"page_count":"12",
    	"errcode":"0"
    }
    

    3.6错误返回示例

    application/json;charset=UTF-8
    {
    	"errcode":"30021",
    	"errmsg":"此应用未上线"
    } 

    4.API测试

    API测试 SDK下载