{
"delivery_change_order": {
"ref_id": "MES", //第三方系统标识,必填
"oth_task_id": "{{$guid}}", //第三方任务单号,唯一值,必填
"owner_code": "OWNER", //货主编码
"change_date": "2024-11-27", //变更单日期,必填
"change_type": "H", //变更类型,必填,H代表变更表头资料,B代表变更表身资料
"department": "00000000", //部门,必填
"order_type": "01", //业务类型,提供类型:01=销货出库,02=进货退回出库,03=暂估退回出库,04=托工退回出库,05=生产领料出库,06=生产补料出库,07=托工领料出库,08=托工补料出库,09=原料调拨出库,10=库存调拨出库,11=非生产领料出库,12=报废出库,13=其他出库
"operator_code": "ADMIN", //制单人,必填
"operate_time": "2024-11-27 10:22:51", //制单时间,必填
"executor": "ADMIN", //执行人,必填
"execution_time": "2024-11-27 10:22:51", //执行时间,必填
"remark": "rem-11" //备注
},
"order_lines": [
{
"change_method": "A", //变更方式:A结案,必填
"change_reason": "结案单据", //变更原因说明,必填
"delivery_order_code": "UP241127000001" //通知单号,必填
}
]
}
{
"delivery_change_order": {
"ref_id": "MES", //第三方系统标识,必填
"oth_task_id": "{{$guid}}", //第三方任务单号,唯一值,必填
"owner_code": "OWNER", //货主编码
"change_date": "2024-11-27", //变更单日期,必填
"change_type": "B", //变更类型,必填,H代表变更表头资料,B代表变更表身资料
"department": "00000000", //部门,必填
"order_type": "01", //业务类型,提供类型:01=销货出库,02=进货退回出库,03=暂估退回出库,04=托工退回出库,05=生产领料出库,06=生产补料出库,07=托工领料出库,08=托工补料出库,09=原料调拨出库,10=库存调拨出库,11=非生产领料出库,12=报废出库,13=其他出库
"operator_code": "ADMIN", //制单人,必填
"operate_time": "2024-11-27 10:22:51", //制单时间,必填
"executor": "ADMIN", //执行人,必填
"execution_time": "2024-11-27 10:22:51", //执行时间,必填
"remark": "rem-22" //备注
},
"order_lines": [
{
"change_method": "C", //变更方式:C变更、D删除,必填
"change_reason": "变更数量", //变更原因说明,必填
"delivery_order_code": "UP241127000001", //通知单号,必填
"delivery_order_itm": "1", //通知单唯一项次,必填
"warehouse_code_old": "", //原仓库代号
"warehouse_code_new": "", //新仓库代号
"item_code_old": "", //原货品代号
"item_code_new": "", //新货品代号
"item_name_old": "", //原货品名称
"item_name_new": "", //新货品名称
"sku_property_old": "", //原特征
"sku_property_new": "", //新特征
"qty_old": "100", //原数量
"qty_new": "90", //新数量
"qty1_old": "", //原数量(副)
"qty1_new": "", //新数量(副)
"batch_code_old": "", //原批号
"batch_code_new": "", //新批号
"clear_batch_code": "", //无批号
"remark_old": "", //原摘要
"remark_new": "" //新摘要
},
{
"change_method": "C", //变更方式:C变更、D删除,必填
"change_reason": "清空批号", //变更原因说明,必填
"delivery_order_code": "UP241127000001", //通知单号,必填
"delivery_order_itm": "2", //通知单唯一项次,必填
"warehouse_code_old": "", //原仓库代号
"warehouse_code_new": "", //新仓库代号
"item_code_old": "", //原货品代号
"item_code_new": "", //新货品代号
"item_name_old": "", //原货品名称
"item_name_new": "", //新货品名称
"sku_property_old": "", //原特征
"sku_property_new": "", //新特征
"qty_old": "", //原数量
"qty_new": "", //新数量
"qty1_old": "", //原数量(副)
"qty1_new": "", //新数量(副)
"batch_code_old": "", //原批号
"batch_code_new": "", //新批号
"clear_batch_code": "T", //无批号
"remark_old": "", //原摘要
"remark_new": "" //新摘要
},
{
"change_method": "D", //变更方式:C变更、D删除,必填
"change_reason": "删除此笔记录", //变更原因说明,必填
"delivery_order_code": "UP241127000001", //通知单号,必填
"delivery_order_itm": "3", //通知单唯一项次,必填
"warehouse_code_old": "", //原仓库代号
"warehouse_code_new": "", //新仓库代号
"item_code_old": "", //原货品代号
"item_code_new": "", //新货品代号
"item_name_old": "", //原货品名称
"item_name_new": "", //新货品名称
"sku_property_old": "", //原特征
"sku_property_new": "", //新特征
"qty_old": "", //原数量
"qty_new": "", //新数量
"qty1_old": "", //原数量(副)
"qty1_new": "", //新数量(副)
"batch_code_old": "", //原批号
"batch_code_new": "", //新批号
"clear_batch_code": "", //无批号
"remark_old": "", //原摘要
"remark_new": "" //新摘要
}
]
}