aadiffupdatetest.http 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. @host = 192.168.110.131:8888
  2. ###
  3. # 查询本地queenter库材质球组信息
  4. # 不存在时则创建
  5. POST http://{{host}}/boxcost/diffUpdatePlanTest HTTP/1.1
  6. Content-Type: application/json
  7. Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw
  8. {
  9. "_id": "64aa52935cca777202101884",
  10. "name": "2023年-稻香锦绣内贴纸fdsds换xxx",
  11. "pack": {
  12. "_id": "646c37becfd68ee5e94335ef",
  13. "name": "2023年-稻香rrrererer锦绣",
  14. "thumbnail": "",
  15. "compCounts": 6,
  16. "designer": "1",
  17. "components": [
  18. {
  19. "id": "1685594042228",
  20. "name": "内贴纸(1*4)",
  21. "thumbnail": "",
  22. "count": 1,
  23. "uv": "",
  24. "uvSize": "0",
  25. "stages": [
  26. {
  27. "id": "1686109343729640b1add481f42e1f1219741",
  28. "typeId": "640b1add481f42e1f1219741",
  29. "orderPrice": 0.601,
  30. "orderCount": 4700,
  31. "isFix": null,
  32. "confirmCount": 4700,
  33. "deliveryTime": "2023-07-11T06:23:49.091Z",
  34. "supplierInfo": {
  35. "_id": "635f4afa769300c4a84bfd1b",
  36. "name": "016-成都凯纸业sxferexfdfd",
  37. "address": "崇州经开区霞光路fdfer51号",
  38. "phone": "15982811956",
  39. "categorys": [
  40. "纸张erererr",
  41. "cfdfdff"
  42. ],
  43. "category": "纸张类",
  44. "createTime": "2022-10-31T04:11:38.249Z",
  45. "updateTime": "2023-04-26T03:52:33.544Z"
  46. },
  47. "batchCount": 4,
  48. "batchSizeWidth": 730,
  49. "batchSizeHeight": 889,
  50. "remark": "特规分切",
  51. "size": "0",
  52. "name": "铜版纸",
  53. "category": "纸张",
  54. "price": 5900,
  55. "unit": "吨",
  56. "norm": "157g",
  57. "createTime": "2023-03-10T11:56:13.495Z",
  58. "updateTime": "2023-06-07T03:33:00.164Z",
  59. "type": 1,
  60. "group": "",
  61. "billId": "64aa52b45cca777202101885",
  62. "billType": 1
  63. },
  64. {
  65. "id": "1685594164090642bd76a26be7fdfb05898efab",
  66. "typeId": "642bd76a26be7db05898efab",
  67. "orderPrice": 0.12,
  68. "orderCount": 4600,
  69. "isFix": null,
  70. "confirmCount": 0,
  71. "deliveryTime": "2023-07-12T06:23:53.291Z",
  72. "supplierInfo": {
  73. "_id": "63846b744d585ba68be6cba1",
  74. "name": "008-成都宏川印务",
  75. "address": "成都崇州经济开发区泗维路dhfjkdhf号",
  76. "phone": "13689052627",
  77. "categorys": [
  78. "外协加工"
  79. ],
  80. "category": "普通印刷",
  81. "createTime": "2022-11-28T08:04:04.791Z",
  82. "updateTime": "2023-04-26T03:52:56.541Z"
  83. },
  84. "batchCount": 4,
  85. "batchSizeWidth": 730,
  86. "batchSizeHeight": 830,
  87. "remark": "专红PT200C",
  88. "size": "0",
  89. "name": "普通印刷",
  90. "category": "外协加工",
  91. "price": 0.072,
  92. "unit": "张",
  93. "norm": "满版专色",
  94. "createTime": "0001-01-01T00:00:00Z",
  95. "updateTime": "0001-01-01T00:00:00Z",
  96. "type": 2,
  97. "group": "",
  98. "billId": "64aa52bb5cca777202101886",
  99. "billType": 2
  100. },
  101. {
  102. "id": "168559418417563ef066d1031634bc6eeb844",
  103. "typeId": "63ef066d1031634bc6eeb844",
  104. "orderPrice": 0.297,
  105. "orderCount": 4550,
  106. "isFix": null,
  107. "confirmCount": 0,
  108. "deliveryTime": "2023-07-13T06:23:58.424Z",
  109. "supplierInfo": {
  110. "_id": "6388441551ba5b3307f8ab61",
  111. "name": "018-覆膜 熊明军",
  112. "address": "金鸡路556号 覆膜熊明军",
  113. "phone": "13980871668",
  114. "categorys": [
  115. "外协加工"
  116. ],
  117. "category": "覆膜",
  118. "createTime": "2022-12-01T06:05:09.079Z",
  119. "updateTime": "2023-04-19T09:35:50.467Z"
  120. },
  121. "batchCount": 4,
  122. "batchSizeWidth": 730,
  123. "batchSizeHeight": 830,
  124. "remark": " ",
  125. "size": "0",
  126. "name": "覆膜",
  127. "category": "外协加工",
  128. "price": 0.49,
  129. "unit": "平方米",
  130. "norm": "哑膜",
  131. "createTime": "0001-01-01T00:00:00Z",
  132. "updateTime": "0001-01-01T00:00:00Z",
  133. "type": 2,
  134. "group": "",
  135. "billId": "64aa52be5cca777202101887",
  136. "billType": 2
  137. },
  138. {
  139. "id": "168559419589263ef10f91031634bc6eeb849",
  140. "typeId": "63ef10f91031634bc6eeb849",
  141. "orderPrice": 0.08,
  142. "orderCount": 4500,
  143. "isFix": null,
  144. "confirmCount": 0,
  145. "deliveryTime": "2023-07-14T06:24:03.474Z",
  146. "supplierInfo": {
  147. "_id": "63edbe951bd7c47e69698533",
  148. "name": "019-压纹 吴宗祥",
  149. "address": "",
  150. "phone": "18280165844",
  151. "categorys": [
  152. "外协加工"
  153. ],
  154. "category": "压纹",
  155. "createTime": "2023-02-16T05:26:45.004Z",
  156. "updateTime": "2023-04-19T09:36:07.663Z"
  157. },
  158. "batchCount": 884,
  159. "batchSizeWidth": 0,
  160. "batchSizeHeight": 0,
  161. "remark": " ",
  162. "size": "0",
  163. "name": "压纹",
  164. "category": "外协加工",
  165. "price": 0.08,
  166. "unit": "张",
  167. "norm": "按文件要求",
  168. "createTime": "0001-01-01T00:00:00Z",
  169. "updateTime": "0001-01-01T00:00:00Z",
  170. "type": 2,
  171. "group": "",
  172. "billId": "64aa52c65cca777202101888",
  173. "billType": 2
  174. },
  175. {
  176. "id": "168792259076963ef10b51031634bc6eeb848",
  177. "typeId": "63ef10b51031634bc6eeb848",
  178. "orderPrice": 0.12,
  179. "orderCount": 8900,
  180. "isFix": null,
  181. "confirmCount": 0,
  182. "deliveryTime": "2023-07-15T06:24:08.758Z",
  183. "supplierInfo": {
  184. "_id": "638eecd4f9039e0980fe5650",
  185. "name": "020-烫金 温学刚",
  186. "address": "崇州金鸡路556号 罗哦哦哦烫金 温学刚",
  187. "phone": "13028138020",
  188. "categorys": [
  189. "外协加工"
  190. ],
  191. "category": "烫金",
  192. "createTime": "2022-12-06T07:18:44.322Z",
  193. "updateTime": "2023-04-19T09:36:26.912Z"
  194. },
  195. "batchCount": 2,
  196. "batchSizeWidth": 0,
  197. "batchSizeHeight": 0,
  198. "remark": " ",
  199. "size": "0",
  200. "name": "普通烫金eeeeeeeeeeeeee",
  201. "category": "外协加工",
  202. "price": 0.12,
  203. "unit": "张",
  204. "norm": "按文件要求",
  205. "createTime": "0001-01-01T00:00:00Z",
  206. "updateTime": "0001-01-01T00:00:00Z",
  207. "type": 2,
  208. "group": "",
  209. "billId": "64aa52d65cca777202101889",
  210. "billType": 2
  211. }
  212. ],
  213. "remark": "",
  214. "totalPrice": 6156.05
  215. }
  216. ],
  217. "createTime": "2023-05-23T03:49:18.506Z",
  218. "updateTime": "2023-05-23T13:36:11.432Z"
  219. },
  220. "thumbnail": "",
  221. "createUser": "费用易展红图承担",
  222. "total": 20000,
  223. "status": "process",
  224. "totalPrice": 6156.05,
  225. "updateTime": "2024-07-23T04:33:44.858Z",
  226. "createTime": "2023-07-09T06:24:19.305Z"
  227. }
  228. ###
  229. # 工艺单日志记录测试
  230. # 测试数据表(collection): bill-produce_copy1
  231. POST http://{{host}}/boxcost/diffUpdateProduceTest HTTP/1.1
  232. Content-Type: application/json
  233. Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjI4MjU4OTIsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMjIyMTA5MiwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.Cz7qI3-Vah0io5ZLIFDyVOf8qsqdmbT8WHdprrjbdXw
  234. {
  235. "_id": "66a74ff9e6e5177313cc4de9",
  236. "packId": "647ae9ba097738f60ad6d794",
  237. "planId": "6679876623830800fd77569c",
  238. "supplierId": "63e9b2cb201413726b012296",
  239. "userId": "63e208dc7452ab74932b9e37",
  240. "userName": "郑茜",
  241. "type": "外协加工",
  242. "status": "created",
  243. "reviewed": -1,
  244. "signUsers": null,
  245. "createTime": "2024-07-29T08:16:57.116Z",
  246. "updateTime": "2024-07-29T08:16:57.116Z",
  247. "completeTime": "0001-01-01T00:00:00Z",
  248. "supplier": "014-成都佳顺印务",
  249. "sendTo": "双流区彭镇罗汉路185号瑞达天盛,杨开英,电话:13890030861",
  250. "productName": "2024年月饼手工盒-福运礼(10000套)--面纸补数11",
  251. "produces": [
  252. {
  253. "id": "648040f27306b5a7cef71ccdUIgirTRS43gZu_0Nz7WLM",
  254. "name": "冷烫(普通)",
  255. "norm": "照样",
  256. "price": 0,
  257. "price2": 6,
  258. "orderCount": 2000,
  259. "orderPrice": 2.125,
  260. "confirmCount": 0,
  261. "isFix": false,
  262. "paperCount": 2000,
  263. "remark": "",
  264. "paper": "红色触感豹150g",
  265. "paperSize": "787*920",
  266. "printSize": "787*450",
  267. "deliveryTime": "2024-07-30T08:15:40.08Z",
  268. "unit": "元/张",
  269. "unit2": "元/平方米"
  270. }
  271. ],
  272. "serialNumber": "WXJG-004034",
  273. "remark": "",
  274. "isPrint": false,
  275. "isLam": false,
  276. "isPaper": false,
  277. "billType": "",
  278. "isSend": false,
  279. "sendTime": "0001-01-01T00:00:00Z",
  280. "isAck": false,
  281. "ackTime": "0001-01-01T00:00:00Z",
  282. "compProduceName": "冷烫(普通)",
  283. "supplierRemark": "",
  284. "isRecord": null
  285. }
  286. // CollectionMaterial = "material"
  287. // CollectionCraft = "craft"
  288. // CollectionProduct = "product"
  289. // CollectionSupplier = "supplier"
  290. // CollectionSupplierPrice = "supplier-price"
  291. // CollectionPack = "pack"
  292. // CollectionProductPlan = "product-plan" // 计划
  293. // CollectionBillPurchase = "bill-purchase" // 材料采购单
  294. // CollectionBillProduce = "bill-produce" // 工艺采购单
  295. // CollectionBillProduct = "bill-product" // 成品采购单
  296. // CollectionSupplierMatprice = "supplier-mats"
  297. // CollectionSupplierCraftprice = "supplier-crafts"
  298. // CollectionSupplierProductprice = "supplier-product" // 成品采购
  299. // CollectionIncrement = "increment"
  300. // CollectionSignature = "signature"
  301. // CollectionUsers = "users"
  302. // // 更改日志记录
  303. // CollectionLogs = "logs"
  304. // CollectionRequestLogs = "request-logs"
  305. // CollectionPlanTrack = "plan-track"
  306. ###
  307. # 打印更改差异
  308. GET http://{{host}}/boxcost/printDiff?query={"targetId":"64aa52935cca777202101884","collection":"product-plan_copy1"} HTTP/1.1
  309. Content-Type: application/json
  310. ###
  311. # 打印更改差异
  312. # POST http://{{host}}/boxcost/units/update HTTP/1.1
  313. # Content-Type: application/json
  314. # Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjE4NzE1MDgsImlkIjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0Iiwia2V5IjoiYm94Y29zdCIsIm5hbWUiOiLlrZnog5wiLCJvcmlnX2lhdCI6MTcyMTI2NjcwOCwicGFyZW50IjoiNjQyYTUyNGY1ZjUwYmM5MDNmOTg2Mzk0IiwicGhvbmUiOiIxMzQwODU0NzgyMyIsInJvbGUiOiIiLCJzdGF0ZSI6MSwidXNlclR5cGUiOjJ9.oBKvW_adQUfzc5yuH_0dfHdsU559SmtfEq9UWQGJkfQ
  315. # {
  316. # "_id": "646cb8e1cfd68ee5e9433614",
  317. # "name": "平方厘米1"
  318. # }
  319. ###
  320. # 下载计划追踪表
  321. POST http://{{host}}/boxcost/download/plan/track HTTP/1.1
  322. Content-Type: application/json
  323. {
  324. "ids": [
  325. "6648181a23830800fd7751fd"
  326. ]
  327. }
  328. # {
  329. # "ids": [
  330. # "6648181a23830800fd7751fd",
  331. # "664968ac23830800fd775203",
  332. # "66498b5423830800fd775205",
  333. # "6649535e23830800fd7751ff",
  334. # "664989d823830800fd775204",
  335. # "6649a02b23830800fd775216",
  336. # "6649980723830800fd77520f",
  337. # "66499a3423830800fd775211",
  338. # "66499e2b23830800fd775215",
  339. # "665dbdd623830800fd775416",
  340. # "66499ae023830800fd775212",
  341. # "6649990123830800fd775210",
  342. # "66499c1d23830800fd775213",
  343. # "66499cfd23830800fd775214"
  344. # ]
  345. # }