API中心

  1. 库存管理
  2. 拆卸单
返回

拆卸单新增

接口所在U8C版本:U8 cloud3.6以及更高版本
详细描述:用于拆卸单新增
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/ic/special4m/insert

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
trantype翻译类型,按编码为code,不需要翻译为pkcode
system系统参数
uniquekey幂等唯一key

请求参数(body):

参数名类型是否数组必填描述默认值
specialbillvo拆卸单聚合vo
childrenvo
castunitidstring辅计量单位
cinventoryidstring存货
crownostring行号
cspecialbidstring表体主键(修改、审核必传)
cvendoridstring供应商
cwarehouseidstring仓库
dshldtransnumdouble数量
dvalidatestring失效日期
fbillrowflagstring类型(0:成套件,1:配件)
hsldouble换算率
locator货位(审批,3.6及以上版本支持)
cspaceidstring货位(货位仓的必传)
noutgrossnumdouble出库毛重数量
noutspaceassistnumdouble出库辅数量
noutspacenumdouble出库数量(货位仓的必传)
npricedouble单价
nshldtransastnumdouble辅数量
nshldtransgrsnumdouble毛重
pk_defdoc1string自定义项主键1
pk_defdoc10string自定义项主键10
pk_defdoc11string自定义项主键11
pk_defdoc12string自定义项主键12
pk_defdoc13string自定义项主键13
pk_defdoc14string自定义项主键14
pk_defdoc15string自定义项主键15
pk_defdoc16string自定义项主键16
pk_defdoc17string自定义项主键17
pk_defdoc18string自定义项主键18
pk_defdoc19string自定义项主键19
pk_defdoc2string自定义项主键2
pk_defdoc20string自定义项主键20
pk_defdoc3string自定义项主键3
pk_defdoc4string自定义项主键4
pk_defdoc5string自定义项主键5
pk_defdoc6string自定义项主键6
pk_defdoc7string自定义项主键7
pk_defdoc8string自定义项主键8
pk_defdoc9string自定义项主键9
pk_measdocstring主计量单位
serial序列号(审批,3.6及以上版本支持)
vserialcodestring序列号(序列号管理的必填)
vbatchcodestring批次号
vfree1string自由项1
vfree10string自由项10
vfree2string自由项2
vfree3string自由项3
vfree4string自由项4
vfree5string自由项5
vfree6string自由项6
vfree7string自由项7
vfree8string自由项8
vfree9string自由项9
vnotestring备注
vuserdef1string自定义项1
vuserdef10string自定义项10
vuserdef11string自定义项11
vuserdef12string自定义项12
vuserdef13string自定义项13
vuserdef14string自定义项14
vuserdef15string自定义项15
vuserdef16string自定义项16
vuserdef17string自定义项17
vuserdef18string自定义项18
vuserdef19string自定义项19
vuserdef2string自定义项2
vuserdef20string自定义项20
vuserdef3string自定义项3
vuserdef4string自定义项4
vuserdef5string自定义项5
vuserdef6string自定义项6
vuserdef7string自定义项7
vuserdef8string自定义项8
vuserdef9string自定义项9
parentvo
cauditoridstring审核人
cbilltypecodestring单据类型4L
cinbsridstring经手人
cindispatcheridstring收发类别-收(审批,3.6及上版本支持)
cinwarehouseidstring入库仓库(审批,3.6及上版本支持)
coperatoridstring制单人
coutbsorstring业务员
coutdeptidstring部门
coutdispatcheridstring收发类别-发(审批,3.6及上版本支持)
coutwarehouseidstring出库仓库(审批,3.6及上版本支持)
cspecialhidstring表头主键(修改、审批必传)
cwhsmanageridstring库管员(审批)
dbilldatestring单据日期
nfixdisassemblymnydouble组装费
pk_corpstring公司
pk_defdoc1string自定义项主键1
pk_defdoc10string自定义项主键10
pk_defdoc11string自定义项主键11
pk_defdoc12string自定义项主键12
pk_defdoc13string自定义项主键13
pk_defdoc14string自定义项主键14
pk_defdoc15string自定义项主键15
pk_defdoc16string自定义项主键16
pk_defdoc17string自定义项主键17
pk_defdoc18string自定义项主键18
pk_defdoc19string自定义项主键19
pk_defdoc2string自定义项主键2
pk_defdoc20string自定义项主键20
pk_defdoc3string自定义项主键3
pk_defdoc4string自定义项主键4
pk_defdoc5string自定义项主键5
pk_defdoc6string自定义项主键6
pk_defdoc7string自定义项主键7
pk_defdoc8string自定义项主键8
pk_defdoc9string自定义项主键9
vbillcodestring单据号
vnotestring备注
vuserdef1string自定义项1
vuserdef10string自定义项10
vuserdef11string自定义项11
vuserdef12string自定义项12
vuserdef13string自定义项13
vuserdef14string自定义项14
vuserdef15string自定义项15
vuserdef16string自定义项16
vuserdef17string自定义项17
vuserdef18string自定义项18
vuserdef19string自定义项19
vuserdef2string自定义项2
vuserdef20string自定义项20
vuserdef3string自定义项3
vuserdef4string自定义项4
vuserdef5string自定义项5
vuserdef6string自定义项6
vuserdef7string自定义项7
vuserdef8string自定义项8
vuserdef9string自定义项9

返回类型参数:

参数名类型是否数组必填描述默认值
specialbillvo拆卸单实体_返回
childrenvo形态转换单表体VO_返回
castunitidstring辅计量单位
castunitnamestring辅计量单位
cfirstbillbidstring源头单据子表主键
cfirstbillhidstring源头单据主表主键
cfirsttypestring源头单据类型
cinventorycodestring存货编码
cinventoryidstring存货id
cscodestring货位编码
csnamestring货位名称
csourcebillbidstring来源单据子表主键
csourcebillhidstring来源单据主表主键
csourcetypestring来源单据类型
cspaceidstring货位
cspecialbidstring表体ID
cspecialhidstring表头ID
cvendoridstring供应商
cwarehouseidstring仓库
dshldtransnumstring数量
dvalidatestring失效日期
fbillrowflagstring类型
hslstringhsl
invcodestring存货编码编码
invnamestring存货编码名称
measnamestring辅计量单位名称
naccountastnumstring账面辅数量
naccountnumstring账面数量
nadjustastnumstring调整辅数量
nadjustnumstring调整数量
ncheckastnumstring盘点辅数量
nchecknumstring盘点数量
npricestring单价
nshldtransastnumstring辅数量
pk_defdoc1stringB-UDCPK1
pk_defdoc10stringB-UDCPK10
pk_defdoc11stringB-UDCPK11
pk_defdoc12stringB-UDCPK12
pk_defdoc13stringB-UDCPK13
pk_defdoc14stringB-UDCPK14
pk_defdoc15stringB-UDCPK15
pk_defdoc16stringB-UDCPK16
pk_defdoc17stringB-UDCPK17
pk_defdoc18stringB-UDCPK18
pk_defdoc19stringB-UDCPK19
pk_defdoc2stringB-UDCPK2
pk_defdoc20stringB-UDCPK20
pk_defdoc3stringB-UDCPK3
pk_defdoc4stringB-UDCPK4
pk_defdoc5stringB-UDCPK5
pk_defdoc6stringB-UDCPK6
pk_defdoc7stringB-UDCPK7
pk_defdoc8stringB-UDCPK8
pk_defdoc9stringB-UDCPK9
shortnamestring辅计量单位编码
vbatchcodestring批次号
vendor_codestring供应商编码
vendor_namestring供应商名称
vfree1string自由项1
vfree10string自由项10
vfree2string自由项2
vfree3string自由项3
vfree4string自由项4
vfree5string自由项5
vfree6string自由项6
vfree7string自由项7
vfree8string自由项8
vfree9string自由项9
vsourcebillcodestring来源单据号
warehousecodestring仓库编码
warehousenamestring仓库名称
parentvo形态转换单表头VO_返回
bccountflagstring是否条码盘点
cauditoridstring审核人
cbilltypecodestring形态转换单据类型
cdispatcheridstring收发类别
cinbsridstring经手人
cindeptidstring入库部门
cinwarehouseidstring入库仓库
clastmodiidstring最后修改人
coperatoridstring制单人
coutbsorstring业务员
coutdeptidstring部门
coutwarehouseidstring仓库
cshlddiliverdatestring应发货日期
cspecialhidstring表头ID
cwhsmanageridstring库管员
dbilldatestring单据日期
deptcodestring入库部门编码
deptnamestring入库部门名称
dispatcher_codestring收发类别编码
dispatcher_namestring收发类别名称
fassistantflagstring是否计算期间业务量
fbillflagstring单据状态
icheckmodestring盘点方式
iprintcountstring打印次数
pk_corpstring公司
pk_defdoc1stringH-UDCPK1
pk_defdoc10stringH-UDCPK10
pk_defdoc11stringH-UDCPK11
pk_defdoc12stringH-UDCPK12
pk_defdoc13stringH-UDCPK13
pk_defdoc14stringH-UDCPK14
pk_defdoc15stringH-UDCPK15
pk_defdoc16stringH-UDCPK16
pk_defdoc17stringH-UDCPK17
pk_defdoc18stringH-UDCPK18
pk_defdoc19stringH-UDCPK19
pk_defdoc2stringH-UDCPK2
pk_defdoc20stringH-UDCPK20
pk_defdoc3stringH-UDCPK3
pk_defdoc4stringH-UDCPK4
pk_defdoc5stringH-UDCPK5
pk_defdoc6stringH-UDCPK6
pk_defdoc7stringH-UDCPK7
pk_defdoc8stringH-UDCPK8
pk_defdoc9stringH-UDCPK9
psncodestring经手人编码
psnnamestring经手人名称
storcodestring入库仓库编码
stornamestring入库仓库名称
tlastmoditimestring最后修改时间
tmaketimestring制单时间
tsstring时间戳
unitcodestring公司编码
unitnamestring公司名称
user_codestring审核人编码
user_namestring审核人名称
vadjusterstring调整人
vbillcodestring单据号
vnotestring备注
vshldarrivedatestring应到货日期
whsmanager_codestring库管员编码
whsmanager_namestring库管员名称

请求参数示例:

复制代码

{
    "specialbillvo":[
        {
            "parentvo":{
                
                
                "pk_corp":"WQM01",
                "coperatorid":"15268635139"
            },
            "childrenvo":[
                {
                    "cinventoryid":"IN010232",
                    "dshldtransnum":"1",
                    "cwarehouseid":"11",
                    "fbillrowflag":"0"
                },
                {
                    "cinventoryid":"IN0002",
                    "dshldtransnum":"1",
                    "cwarehouseid":"11",
                    "fbillrowflag":"1"
                },
                {
                    "cinventoryid":"IN0009",
                    "dshldtransnum":"1",
                    "cwarehouseid":"11",
                    "fbillrowflag":"1"
                },
                {
                    "cinventoryid":"IN010295",
                    "dshldtransnum":"10",
                    "cwarehouseid":"11",
                    "fbillrowflag":"1"
                }
            ]
        }
    ]
}

正确返回示例:

复制代码

{
    "status": "success",
    "data": "[{\"parentvo\":{\"cspecialhid\":\"1002ZZ10000000005EH2\",\"dbilldate\":\"2022-02-18\",\"bccountflag\":false,\"cbilltypecode\":\"4M\",\"iprintcount\":\"0\",\"fassistantflag\":false,\"fbillflag\":\"2\",\"icheckmode\":\"4\",\"pk_corp\":\"1002\",\"unitcode\":\"WQM01\",\"unitname\":\"小安商贸公司\",\"ts\":\"2022-02-18 16:53:09\",\"vbillcode\":\"CX2202180022\",\"clastmodiid\":\"0001A1100000000001K9\",\"clastmodi_code\":\"15268635139\",\"clastmodi_name\":\"baixix\",\"coperatorid\":\"0001A1100000000001K9\",\"coperator_code\":\"15268635139\",\"coperator_name\":\"baixix\",\"tlastmoditime\":\"2022-02-18 16:53:09\",\"tmaketime\":\"2022-02-18 16:53:09\"},\"childrenvo\":[{\"cspecialbid\":\"1002ZZ10000000005EH3\",\"cspecialhid\":\"1002ZZ10000000005EH2\",\"cinventoryid\":\"1002A110000000004WWC\",\"cinventorycode\":\"IN010232\",\"cinventoryname\":\"成套件1\",\"crowno\":\"10\",\"ts\":\"2022-02-18 16:53:09\",\"pk_measdoc\":\"0001A1100000000003F0\",\"measdoccode\":\"01\",\"measdocname\":\"袋\",\"dshldtransnum\":1,\"fbillrowflag\":\"0\",\"cwarehouseid\":\"1002A110000000002HJL\",\"warehousecode\":\"11\",\"warehousename\":\"11\"},{\"cspecialbid\":\"1002ZZ10000000005EH4\",\"cspecialhid\":\"1002ZZ10000000005EH2\",\"cinventoryid\":\"0001A1100000000007P3\",\"cinventorycode\":\"IN0002\",\"cinventoryname\":\"外婆家\",\"crowno\":\"20\",\"ts\":\"2022-02-18 16:53:09\",\"pk_measdoc\":\"0001A1100000000003F0\",\"measdoccode\":\"01\",\"measdocname\":\"袋\",\"dshldtransnum\":1,\"fbillrowflag\":\"1\",\"cwarehouseid\":\"1002A110000000002HJL\",\"warehousecode\":\"11\",\"warehousename\":\"11\"},{\"cspecialbid\":\"1002ZZ10000000005EH5\",\"cspecialhid\":\"1002ZZ10000000005EH2\",\"cinventoryid\":\"1002A1100000000003V6\",\"cinventorycode\":\"IN0009\",\"cinventoryname\":\"巧乐兹\",\"crowno\":\"30\",\"ts\":\"2022-02-18 16:53:09\",\"pk_measdoc\":\"0001A1100000000003F0\",\"measdoccode\":\"01\",\"measdocname\":\"袋\",\"dshldtransnum\":1,\"fbillrowflag\":\"1\",\"cwarehouseid\":\"1002A110000000002HJL\",\"warehousecode\":\"11\",\"warehousename\":\"11\"},{\"cspecialbid\":\"1002ZZ10000000005EH6\",\"cspecialhid\":\"1002ZZ10000000005EH2\",\"cinventoryid\":\"1002A1100000000057JO\",\"cinventorycode\":\"IN010295\",\"cinventoryname\":\"外婆家-序列号\",\"crowno\":\"40\",\"ts\":\"2022-02-18 16:53:09\",\"pk_measdoc\":\"0001A1100000000003F0\",\"measdoccode\":\"01\",\"measdocname\":\"袋\",\"dshldtransnum\":10,\"fbillrowflag\":\"1\",\"cwarehouseid\":\"1002A110000000002HJL\",\"warehousecode\":\"11\",\"warehousename\":\"11\"}]}]",
    "taskNumber": "202202180055"
}

错误返回示例:

复制代码

暂无数据