建订单
cockpit_create_orderCreate a new garment order in the cockpit with required customer and quantity; duplicate order numbers are deduplicated, and dryRun:true validates without saving.
Instructions
把一张新订单录进驾驶舱。客户名称和数量必填。同一单号重复提交不会建重复单(返回 existed:true),所以可以放心重试。想先演练不落库,传 dryRun:true。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer": "<customer>",
"qty": "<qty>"
},
"name": "cockpit_create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mx | No | 颜色尺码矩阵,可空 | |
| no | No | 订单号,不填自动生成 DD-年月-序号 | |
| od | No | 下单日期 YYYY-MM-DD,不填默认今天 | |
| ws | No | 生产车间,如 一车间 | |
| due | No | 交期 YYYY-MM-DD | |
| qty | Yes | 下单件数(必填) | |
| cost | No | 单件成本(元) | |
| kind | No | 业务类型:内销品牌 / 外贸代工 / 来料加工 | |
| price | No | 加工单价(元/件) | |
| style | No | 款式名,如 连帽卫衣 | |
| dryRun | No | true 时只校验不落库 | |
| remark | No | 备注(来源、特殊要求) | |
| urgent | No | 1=加急 | |
| styleId | No | 款号,如 ST-2401 | |
| customer | Yes | 客户/品牌(必填) |