## 生产任务单
~~~[api]
post:/vcrm/script/api/exec
*string:apikey=hb.searchData#请求接口KEY
*string:pushType=getPwInfo#推送类型
string:pushParams#推送参数,json,{"dataId ":"860","operateType":""},operateType值为 insert|update|delete 中一个,dataId 值为 生产工单id
int:pageIndex#分页索引,从 1 开始
int:pageSize#返回记录数,如果是 -1 表示所有数据,忽略 pageIndex 参数值
<<<
success
{
"status": "00000",
"sync": true,
"data": {
"count": 128,
"dataList": [
{
"pwId": 860,// 生产工单ID
"pwSn": "SCGD20221122299705",// 生产工单编码
"pWorkshopId": 48,// 车间ID
"pWorkshopName": "一车间",// 车间名称
"productProcessId": null,// 生产流程ID 外键:字典明细表(product_process)
"productProcessName": null,// 生产任务单类型
"materialStatus": "2",// 物料状态 1:不充足;2:充足;(是否齐套)
"isOutPurchase": "1",// 是否外采 0:否;1:是;
"productionStatus": "1",// 生产状态 1:未开始;2:生产中;6:暂停中;3:已完成;4:已取消;5:已终止;
"goodsId": 677,//物料ID
"goodsCode": "SL000391",// 物料编码
"goodsName": "中式红木实木靠背椅餐椅",// 物料名称
"goodsSpec": "10个装",// 物料规格
"goodsModelName": "紫色 S ",// 物料特征
"goodsModelId": 1048,// 物料规格ID
"unitId": 236,// 单位ID
"unitName": "个",// 单位名称
"bomCode": "B2211227019",// BOM编码
"bomNumKs": 2 // 子件开数
"processor": null,// 加工商
"programName": null,// 程序名
"barrelDiameter":null, // 桶径ID 外键:字典明细表(barrel_diameter)
"machineType":null, // 机器类型ID 外键:字典明细表(weaving_machine_category)
"tiktokColor":"红色/黑色", // 提字色
"sizeContent":"100", // 下机克重
"disembarkationTime":"", //下机时间
"requirementNum": 134,// 需求数量
"productionNum": 0,// 总产出数量
"productionProgress": 0,// 完成进度
"salesOrderId": "1",// 销售订单id
"salesOrderCode": "2022-124",// 销售订单号
"customerCode":"H001",// 客户编码
"poNo":"zlt01111", // PO号
"customerOrderCode":"1SPAW-RB-41008", // 客户订单号
"district":"123", // 区域编码
"isAssemble":"是否拼装 0:否;1:是;",
"orderNum":10.000,
"mpsId": "2",// MPSId
"mpsSn": "SCJH-123-1",// MPS编码
"estimatedDeliveryDate": "2022-11-30",// 交货日期
"estimatedStartTime": "2022-11-22",// 预计开始
"estimatedEndTime": "2022-11-24",// 预计结束
"startTime": null,// 实际开始时间
"endTime": null,// 实际结束时间
"reportedNum": 0,// 已报工数量/完成数量/合格数量
"unqualifiedReportedNum": 0,// 不合格数量
"batchNo": "22112201",// 批次号(暂不用)
"createUserId": "1675750736192897336",// create_user
"createTime": "2022-11-22 17:12:23",// 创建时间
"cancelUserId": null,// 取消人
"cancelTime": null,// 取消时间
"stopUserId": null,// 终止人
"stopTime": null,// 终止时间
"completeTime": null,// 完成时间
"mpsGoodsId": 677, // 主计划物料ID
"mpsGoodsCode": "SL000391", // 主计划物料编码
"mpsGoodsName": "中式红木实木靠背椅餐椅", // 主计划物料名称
"mpsGoodsSpec": "10个装", // 主计划物料规格
"mpsGoodsModelName": "紫色 S ", // 主计划物料特征
"mpsGoodsModelId": 1048, // 主计划物料规格ID
"mpsRequirementNum": 3, // 主计划需求数量
"twistDirection": null, // 捻向
"salesGoodsNum": 100, // 销售产品数量
"colorId": "105", // 颜色id
"colorName": "紫色", // 颜色
"sizeId": "103", // 尺码id
"sizeName": "S", // 尺码
"lineWarehouseId": 169, // 线边仓id
"lineWarehouseName": "成品线边仓", // 线边仓名
"mergeMpsId":1, //合并主计划id
"mergeMpsSn":1, //合并主计划编号
"sonMergePwSns":SCGD20230421556324|SCGD20230421499285|SCGD20230421094185, // 子合并编码集合(多个以''|''链接)
"mergeType": "1", // 合并类型 0:未合并/原始单;1:合并总单;2:合并子单;
"materialPartId":12, // 部件id,只有织造和委外任务单才有值
"materialPartName":"织造主部件", // 部件名称
"remarks": null // 备注
"poNo": "KS140350"//销售订单批次号(徽锦专用)
"throwNum":2.00 //抛量
"originRequireNum":2.00 //原需求量
"pwType":1 // 工单类型 0:正常;1:计划外工单;2:组装;3:拆卸;
"effectStatus":0 // 工时工价是否生效,0失效,1生效
"isOutsource":"0" // 是否转委外 0:否;1:是;
"outsourceNum":"0", // 委外数量
"fzIsOutsource":"0", // 缝制转委外 0:否;1:是;(仅用来推送给MES)
"packageContent": "", // 包装内容
"packageStyles":"", // 包装方式
"packageStyleCode":"" // 包装编码
"packageRequire"":"", // 包装要求
"goodsDataList": [ // 任务单需要物料清单
{
"pwDetailId": 2471, //物料清单明细id
"pwId": 1078, // 生产工单id
"goodsId": 1496, //物料id
"goodsCode": "bp0001", // 物料编码
"goodsName": "磨砂文胸白坯", // 物料名称
"goodsSpec": "123", // 规格
"goodsModelName": "默认特征", // 物料特征
"goodsModelId": 4615, // 特征物料id
"goodsTypeId": 63, // 物料类型id
"goodsTypeName": "半成品", // 物料类型名称
"unitId": 143, // 单位id
"unitName": "件", // 单位名称
"twistDirection": null, // 捻向
"colorId": null, // 颜色id
"colorName": null, // 颜色名称
"sizeId": null, // 尺码id
"sizeName": null, // 尺码名称
"requirementNum": 2, // 需要物料数量
"bomId": null, // bomid
"useStatus": "0" // 启用状态:0:启用 1停用
"throwNum":2.00 //抛量
"originRequireNum":2.00 //原需求量
}
],
"techniqueDataList": [ //工单工序列表
{
"pwTechniqueId": 4033, // 工单工序id
"pwId": 1078, // 生产工单id
"mpsSort": 1, // 工序执行顺序
"productionTaskNo": "SCRW20230320684858", // 生产任务编号
"techniqueLayer": "4", // 工序层级 1:第一层;2:中间层;3:最底层;4:第一层&最底层
"pTechniqueRouteTechniqueId": 4128, // 路线工艺ID
"pTechniqueId": 495, // 基础工序id
"pTechniqueCode": "0201", // 工序编号
"pTechniqueName": "染色委外", // 工序名称
"productSection": 932,//生成工段
"lineWarehouseId": 242, // 线边仓id
"lineWarehouseCode": "CK341616", // 线边仓编号
"lineWarehouseName": "委外线边仓", // 线边仓名称
"pWorkshopId": 10000174, // 车间id
"pWorkshopCode": "294340", // 车间编号
"pWorkshopName": "委外车间", // 车间名称
"requirementNum": 2, // 需求数量
"pTechniqueUnitPrice": 0, // 工序单价
"remarks": "", // 备注
"bulkTechniqueId": 295 // 大货工艺单工序id
"pTechniqueProductType": "493", // 工序生产类型id
"pTechniqueProductTypeName": "车缝" // 工序生产类型名称
"cardPartId": null, // 制卡部件id
"cardPartName": null, // 制卡部件名称
"workHours": null // 标准工时(S)
"bulkDelFlg": "0", // 大货工艺单删除FLG 0:否;1:是;
"techniqueRequire": null, // 工艺要求
"techniqueImages": null, // 工序图片
"techniqueVideo": null, // 工序视频
"productNum": 0, // 产量
"needleModel": null, // 用针型号
"stitch3cm": null, // 针迹3cm
"surface": null, // 面
"needle": null, // 针
"bottom": null, // 底
"seamAllowance": null, // 缝份CM
"shapeCategory": null, // 款式分类
"techniqueIsOutsource":"工序是否委外 0:否;1:是;"
}
],
"sonWorkOrderList": [
{
"count": 1,
"dataList": [
{
"pwId": 1795,
"pwSn": "SCGD20230421556324",
"pWorkshopId": 10000211,
"pWorkshopName": "织造车间",
"productProcessId": "483",
"productProcessName": "织造",
"materialStatus": "2",
"productionStatus": "1",
"goodsId": 2859,
"goodsCode": "KSA003-715-BP",
"goodsName": "款式A003-腰头-白胚",
"goodsSpec": "款式A003-腰头-白胚",
"goodsModelName": "XS ",
"goodsModelId": 7785,
"unitId": 236,
"unitName": "个",
"bomCode": "B2304215775",
"processor": null,
"programName": "程序名xunku",
"requirementNum": 2,
"productionNum": 0,
"productionProgress": 0,
"salesOrderId": 1686,
"salesOrderCode": "XS20230421931",
"mpsId": 2681,
"mpsSn": "JH20230421021-1",
"estimatedDeliveryDate": "2023-05-03",
"estimatedStartTime": "2023-04-01",
"estimatedEndTime": "2023-04-02",
"startTime": null,
"endTime": null,
"reportedNum": 0,
"unqualifiedReportedNum": 0,
"batchNo": null,
"createUserId": null,
"createTime": "2023-04-21 15:15:41",
"cancelUserId": null,
"cancelTime": null,
"stopUserId": null,
"stopTime": null,
"completeTime": null,
"mpsGoodsId": 2879,
"mpsGoodsCode": "KSA002",
"mpsGoodsName": "款式A002",
"mpsGoodsSpec": "50&60",
"mpsGoodsModelName": "蜜桃粉 XS ",
"mpsGoodsModelId": 7835,
"twistDirection": null,
"mpsRequirementNum": 20,
"salesGoodsNum": 800,
"colorId": "",
"colorName": "",
"sizeId": "633",
"sizeName": "XS",
"lineWarehouseId": 236,
"lineWarehouseName": "织造线边仓",
"mergeMpsId": 734,
"mergeMpsSn": "JH20230421021",
"createFirmID": null,
"useFirmID": "1",
"sonMergePwSns": "SCGD20230421556324|SCGD20230421499285|SCGD20230421094185",
"mergeType": "2",
"remarks": null,
"goodsDataList": [
{
"pwDetailId": 4809,
"pwId": 1795,
"goodsId": 1899,
"goodsCode": "20140001",
"goodsName": "2分双层涤纶加雪纱包腰花仔",
"goodsSpec": "无",
"goodsModelName": "默认特征",
"goodsModelId": 5469,
"goodsTypeId": 256,
"goodsTypeName": "辅助材料",
"unitId": 236,
"unitName": "个",
"twistDirection": "",
"colorId": null,
"colorName": null,
"sizeId": null,
"sizeName": null,
"requirementNum": 0.04,
"bomId": 17748,
"useStatus": "0",
"createFirmID": null,
"useFirmID": "1"
}
],
"techniqueDataList": [
{
"pwTechniqueId": 7581,
"pwId": 1795,
"mpsSort": 1,
"productionTaskNo": null,
"techniqueLayer": "1",
"pTechniqueRouteTechniqueId": 8207,
"pTechniqueId": 923,
"pTechniqueCode": "ZZ0001",
"pTechniqueName": "织造",
"lineWarehouseId": 236,
"lineWarehouseCode": "CK547620",
"lineWarehouseName": "织造线边仓",
"pWorkshopId": 10000211,
"pWorkshopCode": "784530",
"pWorkshopName": "织造车间",
"requirementNum": 2,
"pTechniqueUnitPrice": 5000,
"remarks": "",
"bulkTechniqueId": 3706,
"pTechniqueProductType": "489",
"pTechniqueProductTypeName": "织造",
"cardPartId": "",
"cardPartName": null,
"createFirmID": null,
"useFirmID": "1",
"workHours": 0,
"bulkDelFlg": "0",
"techniqueRequire": null,
"techniqueImages": null,
"techniqueVideo": null,
"productNum": 0,
"needleModel": null,
"stitch3cm": null,
"surface": null,
"needle": null,
"bottom": null,
"seamAllowance": null,
"shapeCategory": null
},
{
"pwTechniqueId": 7582,
"pwId": 1795,
"mpsSort": 2,
"productionTaskNo": null,
"techniqueLayer": "3",
"pTechniqueRouteTechniqueId": 8208,
"pTechniqueId": 924,
"pTechniqueCode": "TJ001",
"pTechniqueName": "台检",
"lineWarehouseId": 236,
"lineWarehouseCode": "CK547620",
"lineWarehouseName": "织造线边仓",
"pWorkshopId": 10000211,
"pWorkshopCode": "784530",
"pWorkshopName": "织造车间",
"requirementNum": 2,
"pTechniqueUnitPrice": 5000,
"remarks": "",
"bulkTechniqueId": 3707,
"pTechniqueProductType": "490",
"pTechniqueProductTypeName": "台检",
"cardPartId": "",
"cardPartName": null,
"createFirmID": null,
"useFirmID": "1",
"workHours": 0,
"bulkDelFlg": "0",
"techniqueRequire": null,
"techniqueImages": null,
"techniqueVideo": null,
"productNum": 0,
"needleModel": null,
"stitch3cm": null,
"surface": null,
"needle": null,
"bottom": null,
"seamAllowance": null,
"shapeCategory": null
}
]
}
]
}
]
}
]
}
}
<<<
error
{
"status": "10003",
"sync": true,
"data": {},
"info": "参数错误"
}
~~~
- 消息推送
- 查询接口
- 终端信息
- 字典管理
- 班组信息
- 车间信息
- 设备信息
- 工序工价(月度)
- 物料分类
- 工序信息
- 字典明细
- 物料信息
- 生产任务单
- 大货工艺单
- 物料领用清单(MRP运算)
- 物料领用清单(出库后)
- 质检方案
- 仓库信息
- 线边仓物料库存信息
- 委外类型
- 委外订单(新增/变更/返工完成/返工取消)
- 委外订单明细(暂不用)
- 委外报工统计
- 销售订单信息
- 包装订单单箱SKU信息
- 获取已扫描入库条码
- 普通仓物料库存信息
- 工时工价维护
- 委外报工统计V2
- 工时工价维护V2
- 获取发染色/回染数
- 物料领用清单(已出库汇总)
- 多版本款式需求查询
- 多版本款式工序查询
- 委托生产工单信息
- 委外收货质检结果
- 包装入库信息查询
- 委外收货发起入库分筐制码
- 织造下机参数录入
- 半检报工数据汇总
- 按照款式订单维度获取色纱信息
- 委外收货(筐)_瑞泽
- 领料出库单号推送
- 领料出库单明细
- 领料出库单条码