123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- @host = 192.168.110.131:8888
- ###
- # 查询本地queenter库材质球组信息
- # 不存在时则创建
- POST http://{{host}}/boxcost/diffUpdatePlanTest HTTP/1.1
- Content-Type: application/json
- Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw
- {
- "_id": "64aa52935cca777202101884",
- "name": "2023年-稻香锦绣内贴纸fdsds换xxx",
- "pack": {
- "_id": "646c37becfd68ee5e94335ef",
- "name": "2023年-稻香rrrererer锦绣",
- "thumbnail": "",
- "compCounts": 6,
- "designer": "1",
- "components": [
- {
- "id": "1685594042228",
- "name": "内贴纸(1*4)",
- "thumbnail": "",
- "count": 1,
- "uv": "",
- "uvSize": "0",
- "stages": [
- {
- "id": "1686109343729640b1add481f42e1f1219741",
- "typeId": "640b1add481f42e1f1219741",
- "orderPrice": 0.601,
- "orderCount": 4700,
- "isFix": null,
- "confirmCount": 4700,
- "deliveryTime": "2023-07-11T06:23:49.091Z",
- "supplierInfo": {
- "_id": "635f4afa769300c4a84bfd1b",
- "name": "016-成都凯纸业sxferexfdfd",
- "address": "崇州经开区霞光路fdfer51号",
- "phone": "15982811956",
- "categorys": [
- "纸张erererr",
- "cfdfdff"
- ],
- "category": "纸张类",
- "createTime": "2022-10-31T04:11:38.249Z",
- "updateTime": "2023-04-26T03:52:33.544Z"
- },
- "batchCount": 4,
- "batchSizeWidth": 730,
- "batchSizeHeight": 889,
- "remark": "特规分切",
- "size": "0",
- "name": "铜版纸",
- "category": "纸张",
- "price": 5900,
- "unit": "吨",
- "norm": "157g",
- "createTime": "2023-03-10T11:56:13.495Z",
- "updateTime": "2023-06-07T03:33:00.164Z",
- "type": 1,
- "group": "",
- "billId": "64aa52b45cca777202101885",
- "billType": 1
- },
- {
- "id": "1685594164090642bd76a26be7fdfb05898efab",
- "typeId": "642bd76a26be7db05898efab",
- "orderPrice": 0.12,
- "orderCount": 4600,
- "isFix": null,
- "confirmCount": 0,
- "deliveryTime": "2023-07-12T06:23:53.291Z",
- "supplierInfo": {
- "_id": "63846b744d585ba68be6cba1",
- "name": "008-成都宏川印务",
- "address": "成都崇州经济开发区泗维路dhfjkdhf号",
- "phone": "13689052627",
- "categorys": [
- "外协加工"
- ],
- "category": "普通印刷",
- "createTime": "2022-11-28T08:04:04.791Z",
- "updateTime": "2023-04-26T03:52:56.541Z"
- },
- "batchCount": 4,
- "batchSizeWidth": 730,
- "batchSizeHeight": 830,
- "remark": "专红PT200C",
- "size": "0",
- "name": "普通印刷",
- "category": "外协加工",
- "price": 0.072,
- "unit": "张",
- "norm": "满版专色",
- "createTime": "0001-01-01T00:00:00Z",
- "updateTime": "0001-01-01T00:00:00Z",
- "type": 2,
- "group": "",
- "billId": "64aa52bb5cca777202101886",
- "billType": 2
- },
- {
- "id": "168559418417563ef066d1031634bc6eeb844",
- "typeId": "63ef066d1031634bc6eeb844",
- "orderPrice": 0.297,
- "orderCount": 4550,
- "isFix": null,
- "confirmCount": 0,
- "deliveryTime": "2023-07-13T06:23:58.424Z",
- "supplierInfo": {
- "_id": "6388441551ba5b3307f8ab61",
- "name": "018-覆膜 熊明军",
- "address": "金鸡路556号 覆膜熊明军",
- "phone": "13980871668",
- "categorys": [
- "外协加工"
- ],
- "category": "覆膜",
- "createTime": "2022-12-01T06:05:09.079Z",
- "updateTime": "2023-04-19T09:35:50.467Z"
- },
- "batchCount": 4,
- "batchSizeWidth": 730,
- "batchSizeHeight": 830,
- "remark": " ",
- "size": "0",
- "name": "覆膜",
- "category": "外协加工",
- "price": 0.49,
- "unit": "平方米",
- "norm": "哑膜",
- "createTime": "0001-01-01T00:00:00Z",
- "updateTime": "0001-01-01T00:00:00Z",
- "type": 2,
- "group": "",
- "billId": "64aa52be5cca777202101887",
- "billType": 2
- },
- {
- "id": "168559419589263ef10f91031634bc6eeb849",
- "typeId": "63ef10f91031634bc6eeb849",
- "orderPrice": 0.08,
- "orderCount": 4500,
- "isFix": null,
- "confirmCount": 0,
- "deliveryTime": "2023-07-14T06:24:03.474Z",
- "supplierInfo": {
- "_id": "63edbe951bd7c47e69698533",
- "name": "019-压纹 吴宗祥",
- "address": "",
- "phone": "18280165844",
- "categorys": [
- "外协加工"
- ],
- "category": "压纹",
- "createTime": "2023-02-16T05:26:45.004Z",
- "updateTime": "2023-04-19T09:36:07.663Z"
- },
- "batchCount": 884,
- "batchSizeWidth": 0,
- "batchSizeHeight": 0,
- "remark": " ",
- "size": "0",
- "name": "压纹",
- "category": "外协加工",
- "price": 0.08,
- "unit": "张",
- "norm": "按文件要求",
- "createTime": "0001-01-01T00:00:00Z",
- "updateTime": "0001-01-01T00:00:00Z",
- "type": 2,
- "group": "",
- "billId": "64aa52c65cca777202101888",
- "billType": 2
- },
- {
- "id": "168792259076963ef10b51031634bc6eeb848",
- "typeId": "63ef10b51031634bc6eeb848",
- "orderPrice": 0.12,
- "orderCount": 8900,
- "isFix": null,
- "confirmCount": 0,
- "deliveryTime": "2023-07-15T06:24:08.758Z",
- "supplierInfo": {
- "_id": "638eecd4f9039e0980fe5650",
- "name": "020-烫金 温学刚",
- "address": "崇州金鸡路556号 罗哦哦哦烫金 温学刚",
- "phone": "13028138020",
- "categorys": [
- "外协加工"
- ],
- "category": "烫金",
- "createTime": "2022-12-06T07:18:44.322Z",
- "updateTime": "2023-04-19T09:36:26.912Z"
- },
- "batchCount": 2,
- "batchSizeWidth": 0,
- "batchSizeHeight": 0,
- "remark": " ",
- "size": "0",
- "name": "普通烫金eeeeeeeeeeeeee",
- "category": "外协加工",
- "price": 0.12,
- "unit": "张",
- "norm": "按文件要求",
- "createTime": "0001-01-01T00:00:00Z",
- "updateTime": "0001-01-01T00:00:00Z",
- "type": 2,
- "group": "",
- "billId": "64aa52d65cca777202101889",
- "billType": 2
- }
- ],
- "remark": "",
- "totalPrice": 6156.05
- }
- ],
- "createTime": "2023-05-23T03:49:18.506Z",
- "updateTime": "2023-05-23T13:36:11.432Z"
- },
- "thumbnail": "",
- "createUser": "费用易展红图承担",
- "total": 20000,
- "status": "process",
- "totalPrice": 6156.05,
- "updateTime": "2024-07-23T04:33:44.858Z",
- "createTime": "2023-07-09T06:24:19.305Z"
- }
- ###
- # 工艺单日志记录测试
- # 测试数据表(collection): bill-produce_copy1
- POST http://{{host}}/boxcost/diffUpdateProduceTest HTTP/1.1
- Content-Type: application/json
- Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw
- {
- "_id": "66a74ff9e6e5177313cc4de9",
- "packId": "647ae9ba097738f60ad6d794",
- "planId": "6679876623830800fd77569c",
- "supplierId": "63e9b2cb201413726b012296",
- "userId": "63e208dc7452ab74932b9e37",
- "userName": "郑茜",
- "type": "外协加工",
- "status": "created",
- "reviewed": -1,
- "signUsers": null,
- "createTime": "2024-07-29T08:16:57.116Z",
- "updateTime": "2024-07-29T08:16:57.116Z",
- "completeTime": "0001-01-01T00:00:00Z",
- "supplier": "014-成都佳顺印务",
- "sendTo": "双流区彭镇罗汉路185号瑞达天盛,杨开英,电话:13890030861",
- "productName": "2024年月饼手工盒-福运礼(10000套)--面纸补数11",
- "produces": [
- {
- "id": "648040f27306b5a7cef71ccdUIgirTRS43gZu_0Nz7WLM",
- "name": "冷烫(普通)",
- "norm": "照样",
- "price": 0,
- "price2": 6,
- "orderCount": 2000,
- "orderPrice": 2.125,
- "confirmCount": 0,
- "isFix": false,
- "paperCount": 2000,
- "remark": "",
- "paper": "红色触感豹150g",
- "paperSize": "787*920",
- "printSize": "787*450",
- "deliveryTime": "2024-07-30T08:15:40.08Z",
- "unit": "元/张",
- "unit2": "元/平方米"
- }
- ],
- "serialNumber": "WXJG-004034",
- "remark": "",
- "isPrint": false,
- "isLam": false,
- "isPaper": false,
- "billType": "",
- "isSend": false,
- "sendTime": "0001-01-01T00:00:00Z",
- "isAck": false,
- "ackTime": "0001-01-01T00:00:00Z",
- "compProduceName": "冷烫(普通)",
- "supplierRemark": "",
- "isRecord": null
- }
- // CollectionMaterial = "material"
- // CollectionCraft = "craft"
- // CollectionProduct = "product"
- // CollectionSupplier = "supplier"
- // CollectionSupplierPrice = "supplier-price"
- // CollectionPack = "pack"
- // CollectionProductPlan = "product-plan" // 计划
- // CollectionBillPurchase = "bill-purchase" // 材料采购单
- // CollectionBillProduce = "bill-produce" // 工艺采购单
- // CollectionBillProduct = "bill-product" // 成品采购单
- // CollectionSupplierMatprice = "supplier-mats"
- // CollectionSupplierCraftprice = "supplier-crafts"
- // CollectionSupplierProductprice = "supplier-product" // 成品采购
- // CollectionIncrement = "increment"
- // CollectionSignature = "signature"
- // CollectionUsers = "users"
- // // 更改日志记录
- // CollectionLogs = "logs"
- // CollectionRequestLogs = "request-logs"
- // CollectionPlanTrack = "plan-track"
- ###
- # 打印更改差异
- GET http://{{host}}/boxcost/printDiff?query={"targetId":"64aa52935cca777202101884","collection":"product-plan_copy1"} HTTP/1.1
- Content-Type: application/json
- ###
- # 打印更改差异
- # POST http://{{host}}/boxcost/units/update HTTP/1.1
- # Content-Type: application/json
- # Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjE4NzE1MDgsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMTI2NjcwOCwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.oBKvW_adQUfzc5yuH_0dfHdsU559SmtfEq9UWQGJkfQ
- # {
- # "_id": "646cb8e1cfd68ee5e9433614",
- # "name": "平方厘米1"
- # }
- ###
- # 下载计划追踪表
- POST http://{{host}}/boxcost/download/plan/track HTTP/1.1
- Content-Type: application/json
- {
- "ids": [
- "6648181a23830800fd7751fd"
- ]
- }
- # {
- # "ids": [
- # "6648181a23830800fd7751fd",
- # "664968ac23830800fd775203",
- # "66498b5423830800fd775205",
- # "6649535e23830800fd7751ff",
- # "664989d823830800fd775204",
- # "6649a02b23830800fd775216",
- # "6649980723830800fd77520f",
- # "66499a3423830800fd775211",
- # "66499e2b23830800fd775215",
- # "665dbdd623830800fd775416",
- # "66499ae023830800fd775212",
- # "6649990123830800fd775210",
- # "66499c1d23830800fd775213",
- # "66499cfd23830800fd775214"
- # ]
- # }
|