reportData.js 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392
  1. import { axios } from '@/utils/request'
  2. // 获取开单退货单表头
  3. export const salesReportReturnTitle = (params) => {
  4. return axios({
  5. url: '/report/salesReturnBillReport/reportTitle',
  6. data: params,
  7. method: 'get'
  8. })
  9. }
  10. // 开单退货单报表
  11. export const salesReportReturnBillList = (params) => {
  12. const url = `/report/salesReturnBillReport/reportPage/${params.pageNo}/${params.pageSize}`
  13. delete params.pageNo
  14. delete params.pageSize
  15. return axios({
  16. url: url,
  17. data: params,
  18. method: 'post',
  19. headers: {
  20. 'module': encodeURIComponent('列表查询')
  21. }
  22. })
  23. }
  24. // 开单退货单报表 合计
  25. export const salesReportReturnBillCount = (params) => {
  26. return axios({
  27. url: '/report/salesReturnBillReport/reportCount',
  28. data: params,
  29. method: 'post'
  30. })
  31. }
  32. // 获取开单退货表头
  33. export const salesReturnReportTitle = (params) => {
  34. return axios({
  35. url: '/report/salesReturnReport/reportTitle',
  36. data: params,
  37. method: 'get'
  38. })
  39. }
  40. // 开单退货报表 列表
  41. export const salesReportReturnList = (params) => {
  42. const url = `/report/salesReturnReport/reportPage/${params.pageNo}/${params.pageSize}`
  43. delete params.pageNo
  44. delete params.pageSize
  45. return axios({
  46. url: url,
  47. data: params,
  48. method: 'post',
  49. headers: {
  50. 'module': encodeURIComponent('列表查询')
  51. }
  52. })
  53. }
  54. // 开单退货报表 合计
  55. export const salesReportReturnCount = (params) => {
  56. return axios({
  57. url: '/report/salesReturnReport/reportCount',
  58. data: params,
  59. method: 'post'
  60. })
  61. }
  62. // 实售退货报表 biao题
  63. export const salesReportReturnRebateTitle = (params) => {
  64. return axios({
  65. url: '/report/returnSsthReport/reportTitle',
  66. data: params,
  67. method: 'get'
  68. })
  69. }
  70. // 实售退货报表
  71. export const salesReportReturnRebateList = (params) => {
  72. const url = `/report/returnSsthReport/reportPage/${params.pageNo}/${params.pageSize}`
  73. delete params.pageNo
  74. delete params.pageSize
  75. return axios({
  76. url: url,
  77. data: params,
  78. method: 'post',
  79. headers: {
  80. 'module': encodeURIComponent('列表查询')
  81. }
  82. })
  83. }
  84. // 实售退货报表 合计
  85. export const salesReportReturnRebateCount = (params) => {
  86. return axios({
  87. url: '/report/returnSsthReport/reportCount',
  88. data: params,
  89. method: 'post'
  90. })
  91. }
  92. // 销售退货单报表
  93. export const reportSalesReturnList = (params) => {
  94. const url = `/report/reportSalesReturn/queryPage/${params.pageNo}/${params.pageSize}`
  95. delete params.pageNo
  96. delete params.pageSize
  97. return axios({
  98. url: url,
  99. data: params,
  100. method: 'post',
  101. headers: {
  102. 'module': encodeURIComponent('列表查询')
  103. }
  104. })
  105. }
  106. // 销售退货单报表 合计
  107. export const reportSalesReturnCount = (params) => {
  108. return axios({
  109. url: '/report/reportSalesReturn/queryCount',
  110. data: params,
  111. method: 'post'
  112. })
  113. }
  114. // 销售退货明细报表
  115. export const reportSalesReturnDetailList = (params) => {
  116. const url = `/report/reportSalesReturn/detail/queryPage/${params.pageNo}/${params.pageSize}`
  117. delete params.pageNo
  118. delete params.pageSize
  119. return axios({
  120. url: url,
  121. data: params,
  122. method: 'post',
  123. headers: {
  124. 'module': encodeURIComponent('列表查询')
  125. }
  126. })
  127. }
  128. // 销售退货明细报表 合计
  129. export const reportSalesReturnDetailCount = (params) => {
  130. return axios({
  131. url: '/report/reportSalesReturn/detail/queryCount',
  132. data: params,
  133. method: 'post'
  134. })
  135. }
  136. // 销售退货明细报表 导出
  137. export const reportSalesReturnDetailExport = (params) => {
  138. return axios({
  139. url: '/report/reportSalesReturn/detail/exportExcel',
  140. data: params,
  141. method: 'post',
  142. responseType: 'blob',
  143. headers: {
  144. 'module': encodeURIComponent('导出')
  145. }
  146. })
  147. }
  148. // 总部差价明细报表
  149. export const headRebateDetailReportList = (params) => {
  150. const url = `/report/headRebateDetailReport/queryPage/${params.pageNo}/${params.pageSize}`
  151. delete params.pageNo
  152. delete params.pageSize
  153. return axios({
  154. url: url,
  155. data: params,
  156. method: 'post',
  157. headers: {
  158. 'module': encodeURIComponent('列表查询')
  159. }
  160. })
  161. }
  162. // 总部差价明细报表 合计
  163. export const headRebateDetailReportCount = (params) => {
  164. return axios({
  165. url: '/report/headRebateDetailReport/querySum',
  166. data: params,
  167. method: 'post'
  168. })
  169. }
  170. // 总部差价明细报表导出
  171. export const headRebateDetailReportExport = (params) => {
  172. return axios({
  173. url: '/report/headRebateDetailReport/export',
  174. data: params,
  175. method: 'post',
  176. responseType: 'blob',
  177. headers: {
  178. 'module': encodeURIComponent('导出')
  179. }
  180. })
  181. }
  182. // 差价明细报表
  183. export const reportRebateReportList = (params) => {
  184. const url = `/report/reportRebate/queryPage/${params.pageNo}/${params.pageSize}`
  185. delete params.pageNo
  186. delete params.pageSize
  187. return axios({
  188. url: url,
  189. data: params,
  190. method: 'post',
  191. headers: {
  192. 'module': encodeURIComponent('列表查询')
  193. }
  194. })
  195. }
  196. // 差价明细报表 合计
  197. export const reportRebateCount = (params) => {
  198. return axios({
  199. url: '/report/reportRebate/queryCount',
  200. data: params,
  201. method: 'post'
  202. })
  203. }
  204. // 差价明细报表 导出
  205. export const reportRebateExport = (params) => {
  206. return axios({
  207. url: '/report/reportRebate/export',
  208. data: params,
  209. method: 'post',
  210. responseType: 'blob',
  211. headers: {
  212. 'module': encodeURIComponent('导出')
  213. }
  214. })
  215. }
  216. // 销售退货单 导出
  217. export const salesReturnsExport = (params) => {
  218. return axios({
  219. url: '/report/reportSalesReturn/exportExcel',
  220. data: params,
  221. method: 'post',
  222. responseType: 'blob',
  223. headers: {
  224. 'module': encodeURIComponent('导出')
  225. }
  226. })
  227. }
  228. // 销售退货明细 导出
  229. export const salesReturnDetailExport = (params) => {
  230. return axios({
  231. url: '/report/reportRebate/export',
  232. data: params,
  233. method: 'post',
  234. responseType: 'blob',
  235. headers: {
  236. 'module': encodeURIComponent('导出')
  237. }
  238. })
  239. }
  240. // 开单销售单 导出
  241. export const salesSlipExport = (params) => {
  242. return axios({
  243. url: '/report/salesKdxxd/reportExport',
  244. data: params,
  245. method: 'post',
  246. responseType: 'blob',
  247. headers: {
  248. 'module': encodeURIComponent('导出')
  249. }
  250. })
  251. }
  252. // 开单退货单 导出
  253. export const returnSlipExport = (params) => {
  254. return axios({
  255. url: 'report/salesReturnBillReport/reportExport',
  256. data: params,
  257. method: 'post',
  258. responseType: 'blob',
  259. headers: {
  260. 'module': encodeURIComponent('导出')
  261. }
  262. })
  263. }
  264. // 开单销售 导出
  265. export const salesAmountExport = (params) => {
  266. return axios({
  267. url: '/report/salesKdxx/reportExport',
  268. data: params,
  269. method: 'post',
  270. responseType: 'blob',
  271. headers: {
  272. 'module': encodeURIComponent('导出')
  273. }
  274. })
  275. }
  276. // 实售销售 导出
  277. export const actualSalesExport = (params) => {
  278. return axios({
  279. url: '/report/salesSsxs/reportExport',
  280. data: params,
  281. method: 'post',
  282. responseType: 'blob',
  283. headers: {
  284. 'module': encodeURIComponent('导出')
  285. }
  286. })
  287. }
  288. // 开单退货 导出
  289. export const billingReturnExport = (params) => {
  290. return axios({
  291. url: '/report/salesReturnReport/reportExport',
  292. data: params,
  293. method: 'post',
  294. responseType: 'blob',
  295. headers: {
  296. 'module': encodeURIComponent('导出')
  297. }
  298. })
  299. }
  300. // 实售退货 导出
  301. export const salesReturnExport = (params) => {
  302. return axios({
  303. url: '/report/returnSsthReport/reportExport',
  304. data: params,
  305. method: 'post',
  306. responseType: 'blob',
  307. headers: {
  308. 'module': encodeURIComponent('导出')
  309. }
  310. })
  311. }
  312. // 销售明细(下推统计)报表
  313. export const reportSalesBillDetailList = (params) => {
  314. const url = `/report/reportDispatchBillDetail/reportPage/${params.pageNo}/${params.pageSize}`
  315. delete params.pageNo
  316. delete params.pageSize
  317. return axios({
  318. url: url,
  319. data: params,
  320. method: 'post',
  321. headers: {
  322. 'module': encodeURIComponent('列表查询')
  323. }
  324. })
  325. }
  326. // 销售明细(下推统计)报表 合计
  327. export const reportSalesBillDetailCount = (params) => {
  328. return axios({
  329. url: '/report/reportDispatchBillDetail/reportCount',
  330. data: params,
  331. method: 'post'
  332. })
  333. }
  334. // 销售明细(下推统计)报表 导出
  335. export const reportSalesBillDetailExport = (params) => {
  336. return axios({
  337. url: '/report/reportDispatchBillDetail/reportExport',
  338. data: params,
  339. method: 'post',
  340. responseType: 'blob',
  341. headers: {
  342. 'module': encodeURIComponent('导出')
  343. }
  344. })
  345. }
  346. // 销售(开单统计)报表
  347. export const reportSalesBillList = (params) => {
  348. const url = `/report/reportDispatchBill/reportPage/${params.pageNo}/${params.pageSize}`
  349. delete params.pageNo
  350. delete params.pageSize
  351. return axios({
  352. url: url,
  353. data: params,
  354. method: 'post',
  355. headers: {
  356. 'module': encodeURIComponent('列表查询')
  357. }
  358. })
  359. }
  360. // 销售(开单统计)报表 合计
  361. export const reportSalesBillCount = (params) => {
  362. return axios({
  363. url: '/report/reportDispatchBill/reportCount',
  364. data: params,
  365. method: 'post'
  366. })
  367. }
  368. // 销售(开单统计)报表 导出
  369. export const reportSalesBillExport = (params) => {
  370. return axios({
  371. url: '/report/reportDispatchBill/reportExport',
  372. data: params,
  373. method: 'post',
  374. responseType: 'blob',
  375. headers: {
  376. 'module': encodeURIComponent('导出')
  377. }
  378. })
  379. }
  380. // 入库单报表
  381. export const reportStockPutList = (params) => {
  382. const url = `/report/reportStockPut/queryPage/${params.pageNo}/${params.pageSize}`
  383. delete params.pageNo
  384. delete params.pageSize
  385. return axios({
  386. url: url,
  387. data: params,
  388. method: 'post',
  389. headers: {
  390. 'module': encodeURIComponent('列表查询')
  391. }
  392. })
  393. }
  394. // 入库单报表 合计
  395. export const reportStockPutCount = (params) => {
  396. return axios({
  397. url: '/report/reportStockPut/queryCount',
  398. data: params,
  399. method: 'post'
  400. })
  401. }
  402. // 入库单报表 导出
  403. export const reportStockPutExport = (params) => {
  404. return axios({
  405. url: '/report/reportStockPut/exportExcel',
  406. data: params,
  407. method: 'post',
  408. responseType: 'blob',
  409. headers: {
  410. 'module': encodeURIComponent('导出')
  411. }
  412. })
  413. }
  414. // 入库单明细报表
  415. export const reportStockPutDetailList = (params) => {
  416. const url = `/report/reportStockPut/detail/queryPage/${params.pageNo}/${params.pageSize}`
  417. delete params.pageNo
  418. delete params.pageSize
  419. return axios({
  420. url: url,
  421. data: params,
  422. method: 'post',
  423. headers: {
  424. 'module': encodeURIComponent('列表查询')
  425. }
  426. })
  427. }
  428. // 入库单明细报表 合计
  429. export const reportStockPutDetailCount = (params) => {
  430. return axios({
  431. url: '/report/reportStockPut/detail/queryCount',
  432. data: params,
  433. method: 'post'
  434. })
  435. }
  436. // 入库单明细报表 导出
  437. export const reportStockPutDetailExport = (params) => {
  438. return axios({
  439. url: '/report/reportStockPut/detail/exportExcel',
  440. data: params,
  441. method: 'post',
  442. responseType: 'blob',
  443. headers: {
  444. 'module': encodeURIComponent('导出')
  445. }
  446. })
  447. }
  448. // 获取销售交单报表 表头
  449. export const salesXsjdReportTitle = (params) => {
  450. return axios({
  451. url: '/report/salesXsjd/reportTitle',
  452. data: params,
  453. method: 'get'
  454. })
  455. }
  456. // 销售交单报表
  457. export const reportDispatchReportList = (params) => {
  458. const url = `/report/salesXsjd/reportPage/${params.pageNo}/${params.pageSize}`
  459. delete params.pageNo
  460. delete params.pageSize
  461. return axios({
  462. url: url,
  463. data: params,
  464. method: 'post',
  465. headers: {
  466. 'module': encodeURIComponent('列表查询')
  467. }
  468. })
  469. }
  470. // 销售交单报表 合计
  471. export const reportDispatchReportCount = (params) => {
  472. return axios({
  473. url: '/report/salesXsjd/reportCount',
  474. data: params,
  475. method: 'post'
  476. })
  477. }
  478. // 销售交单报表 导出
  479. export const reportDispatchReportExport = (params) => {
  480. return axios({
  481. url: '/report/salesXsjd/reportExport',
  482. data: params,
  483. method: 'post',
  484. responseType: 'blob',
  485. headers: {
  486. 'module': encodeURIComponent('导出')
  487. }
  488. })
  489. }
  490. // 调拨交单报表
  491. export const reportAllocateDbjdReportList = (params) => {
  492. const url = `/report/allocateReport/dbjd/queryPage/${params.pageNo}/${params.pageSize}`
  493. delete params.pageNo
  494. delete params.pageSize
  495. return axios({
  496. url: url,
  497. data: params,
  498. method: 'post',
  499. headers: {
  500. 'module': encodeURIComponent('列表查询')
  501. }
  502. })
  503. }
  504. // 调拨交单报表 合计
  505. export const reportAllocateDbjdReportCount = (params) => {
  506. return axios({
  507. url: '/report/allocateReport/dbjd/queryCount',
  508. data: params,
  509. method: 'post'
  510. })
  511. }
  512. // 调拨交单报表 导出
  513. export const reportAllocateDbjdReportExport = (params) => {
  514. return axios({
  515. url: '/report/allocateReport/dbjd/export',
  516. data: params,
  517. method: 'post',
  518. responseType: 'blob',
  519. headers: {
  520. 'module': encodeURIComponent('导出')
  521. }
  522. })
  523. }
  524. // 获取退货交单报表 表头
  525. export const returnDocReportTitle = (params) => {
  526. return axios({
  527. url: '/report/returnDocReport/reportTitle',
  528. data: params,
  529. method: 'get'
  530. })
  531. }
  532. // 退货交单报表 列表
  533. export const reportSalesReturnThjdReportList = (params) => {
  534. const url = `/report/returnDocReport/reportPage/${params.pageNo}/${params.pageSize}`
  535. delete params.pageNo
  536. delete params.pageSize
  537. return axios({
  538. url: url,
  539. data: params,
  540. method: 'post',
  541. headers: {
  542. 'module': encodeURIComponent('列表查询')
  543. }
  544. })
  545. }
  546. // 退货交单报表 合计
  547. export const reportSalesReturnThjdReportCount = (params) => {
  548. return axios({
  549. url: '/report/returnDocReport/reportCount',
  550. data: params,
  551. method: 'post'
  552. })
  553. }
  554. // 退货交单报表 导出
  555. export const reportSalesReturnThjdReportExport = (params) => {
  556. return axios({
  557. url: '/report/returnDocReport/reportExport',
  558. data: params,
  559. method: 'post',
  560. responseType: 'blob',
  561. headers: {
  562. 'module': encodeURIComponent('导出')
  563. }
  564. })
  565. }
  566. // 全国各省类销售明细报表
  567. export const realReportSalesByProvince = (params) => {
  568. return axios({
  569. url: '/report/realReportSales/subareaArea/reportList',
  570. data: params,
  571. method: 'post',
  572. headers: {
  573. 'module': encodeURIComponent('列表查询')
  574. }
  575. })
  576. }
  577. // 标题
  578. export const subareaAreaReportTitle = (params) => {
  579. const url = `/report/realReportSales/subareaArea/reportTitle `
  580. return axios({
  581. url: url,
  582. data: params,
  583. method: 'get'
  584. })
  585. }
  586. // 导出
  587. export const realReportSalesByProvinceExport = (params) => {
  588. return axios({
  589. url: '/report/realReportSales/subareaArea/reportExport',
  590. data: params,
  591. method: 'post',
  592. responseType: 'blob',
  593. headers: {
  594. 'module': encodeURIComponent('导出')
  595. }
  596. })
  597. }
  598. // 全国各区类销售明细报表
  599. export const realReportSalesBySubArea = (params) => {
  600. return axios({
  601. url: '/report/realReportSales/subarea/reportList',
  602. data: params,
  603. method: 'post',
  604. headers: {
  605. 'module': encodeURIComponent('列表查询')
  606. }
  607. })
  608. }
  609. // 标题
  610. export const subareaReportTitle = (params) => {
  611. const url = `/report/realReportSales/subarea/reportTitle`
  612. return axios({
  613. url: url,
  614. data: params,
  615. method: 'get',
  616. headers: {
  617. 'module': encodeURIComponent('导出')
  618. }
  619. })
  620. }
  621. // 导出
  622. export const realReportSalesBySubAreaExport = (params) => {
  623. return axios({
  624. url: '/report/realReportSales/subarea/reportExport',
  625. data: params,
  626. method: 'post',
  627. responseType: 'blob',
  628. headers: {
  629. 'module': encodeURIComponent('导出')
  630. }
  631. })
  632. }
  633. // 调拨退货单报表
  634. export const allocateReturnReportQueryPage = (params) => {
  635. const url = `/report/allocateReturnReport/queryPage/${params.pageNo}/${params.pageSize}`
  636. delete params.pageNo
  637. delete params.pageSize
  638. return axios({
  639. url: url,
  640. data: params,
  641. method: 'post',
  642. headers: {
  643. 'module': encodeURIComponent('列表查询')
  644. }
  645. })
  646. }
  647. // 查询调拨退货统计信息
  648. export const allocateReturnReportQueryCount = (params) => {
  649. const url = `/report/allocateReturnReport/queryCount`
  650. return axios({
  651. url: url,
  652. data: params,
  653. method: 'post'
  654. })
  655. }
  656. // 导出
  657. export const allocateReturnReportExport = (params) => {
  658. return axios({
  659. url: '/report/allocateReturnReport/exportExcel',
  660. data: params,
  661. method: 'post',
  662. responseType: 'blob',
  663. headers: {
  664. 'module': encodeURIComponent('导出')
  665. }
  666. })
  667. }
  668. // 分页查询调拨退货明细报表
  669. export const allocateReturnReportDetailQueryPage = (params) => {
  670. const url = `/report/allocateReturnReport/detail/queryPage/${params.pageNo}/${params.pageSize}`
  671. delete params.pageNo
  672. delete params.pageSize
  673. return axios({
  674. url: url,
  675. data: params,
  676. method: 'post',
  677. headers: {
  678. 'module': encodeURIComponent('列表查询')
  679. }
  680. })
  681. }
  682. // 查询调拨退货明细统计信息
  683. export const allocateReturnReportDetailQueryCount = (params) => {
  684. const url = `/report/allocateReturnReport/detail/queryCount`
  685. return axios({
  686. url: url,
  687. data: params,
  688. method: 'post'
  689. })
  690. }
  691. // 导出
  692. export const allocateReturnReportDetailExport = (params) => {
  693. return axios({
  694. url: '/report/allocateReturnReport/detail/exportExcel',
  695. data: params,
  696. method: 'post',
  697. responseType: 'blob',
  698. headers: {
  699. 'module': encodeURIComponent('导出')
  700. }
  701. })
  702. }
  703. // 费用统计按承担方分页
  704. export const expenseCollectReportQueryPageByTarget = (params) => {
  705. const url = `/report/expenseCollectReport/queryPageByTarget/${params.pageNo}/${params.pageSize}`
  706. delete params.pageNo
  707. delete params.pageSize
  708. return axios({
  709. url: url,
  710. data: params,
  711. method: 'post',
  712. headers: {
  713. 'module': encodeURIComponent('列表查询')
  714. }
  715. })
  716. }
  717. // 费用统计按承担方汇总合计
  718. export const expenseCollectReportQueryCountByTarget = (params) => {
  719. const url = `/report/expenseCollectReport/queryCountByTarget`
  720. return axios({
  721. url: url,
  722. data: params,
  723. method: 'post'
  724. })
  725. }
  726. // 导出费用统计按承担方
  727. export const expenseCollectReportExportByTarget = (params) => {
  728. return axios({
  729. url: '/report/expenseCollectReport/exportByTarget',
  730. data: params,
  731. method: 'post',
  732. responseType: 'blob',
  733. headers: {
  734. 'module': encodeURIComponent('导出')
  735. }
  736. })
  737. }
  738. // 费用统计按品类分页
  739. export const expenseCollectReportQueryPageByProductType = (params) => {
  740. const url = `/report/expenseCollectReport/queryPageByProductType/${params.pageNo}/${params.pageSize}`
  741. delete params.pageNo
  742. delete params.pageSize
  743. return axios({
  744. url: url,
  745. data: params,
  746. method: 'post',
  747. headers: {
  748. 'module': encodeURIComponent('列表查询')
  749. }
  750. })
  751. }
  752. // 费用统计按品类汇总合计
  753. export const expenseCollectReportQueryCountByProductType = (params) => {
  754. const url = `/report/expenseCollectReport/queryCountByProductType`
  755. return axios({
  756. url: url,
  757. data: params,
  758. method: 'post'
  759. })
  760. }
  761. // 导出费用统计按品类
  762. export const expenseCollectReportExportByProductType = (params) => {
  763. return axios({
  764. url: '/report/expenseCollectReport/exportByProductType',
  765. data: params,
  766. method: 'post',
  767. responseType: 'blob',
  768. headers: {
  769. 'module': encodeURIComponent('导出')
  770. }
  771. })
  772. }
  773. /*
  774. * 采购退货报表列表
  775. */
  776. export const sparePartsReturnReportList = (params) => {
  777. const url = `/report/sparePartsReturn/queryPage/${params.pageNo}/${params.pageSize}`
  778. delete params.pageNo
  779. delete params.pageSize
  780. return axios({
  781. url: url,
  782. data: params,
  783. method: 'post',
  784. headers: {
  785. 'module': encodeURIComponent('列表查询')
  786. }
  787. })
  788. }
  789. // 采购退货报表合计
  790. export const sparePartsReturnReportStat = (params) => {
  791. const url = `/report/sparePartsReturn/queryPageCount`
  792. return axios({
  793. url: url,
  794. data: params,
  795. method: 'post'
  796. })
  797. }
  798. // 采购退货报表导出
  799. export const sparePartsReturnReportExport = (params) => {
  800. return axios({
  801. url: '/report/sparePartsReturn/export',
  802. data: params,
  803. method: 'post',
  804. responseType: 'blob',
  805. headers: {
  806. 'module': encodeURIComponent('导出')
  807. }
  808. })
  809. }
  810. /*
  811. * 采购退货明细报表列表
  812. */
  813. export const sparePartsReturnDetailReportList = (params) => {
  814. const url = `/report/sparePartsReturn/detail/queryPage/${params.pageNo}/${params.pageSize}`
  815. delete params.pageNo
  816. delete params.pageSize
  817. return axios({
  818. url: url,
  819. data: params,
  820. method: 'post',
  821. headers: {
  822. 'module': encodeURIComponent('列表查询')
  823. }
  824. })
  825. }
  826. // 采购退货明细报表合计
  827. export const sparePartsReturnDetailReportStat = (params) => {
  828. const url = `/report/sparePartsReturn/detail/queryPageCount`
  829. return axios({
  830. url: url,
  831. data: params,
  832. method: 'post'
  833. })
  834. }
  835. // 导出明细
  836. export const sparePartsReturnReportExportDetail = (params) => {
  837. return axios({
  838. url: '/report/sparePartsReturn/detail/export',
  839. data: params,
  840. method: 'post',
  841. responseType: 'blob',
  842. headers: {
  843. 'module': encodeURIComponent('导出')
  844. }
  845. })
  846. }
  847. // 订单差价表
  848. export const rebateQueryList = (params) => {
  849. const url = `/report/productRebate/queryPage/${params.pageNo}/${params.pageSize}`
  850. delete params.pageNo
  851. delete params.pageSize
  852. return axios({
  853. url: url,
  854. data: params,
  855. method: 'post',
  856. headers: {
  857. 'module': encodeURIComponent('列表查询')
  858. }
  859. })
  860. }
  861. // 合计
  862. export const rebateQueryCount = (params) => {
  863. const url = `/report/productRebate/queryCount`
  864. return axios({
  865. url: url,
  866. data: params,
  867. method: 'post'
  868. })
  869. }
  870. // 订单经销商差价表
  871. export const productRebateParentList = (params) => {
  872. const url = `/report/productRebateParent/queryPage/${params.pageNo}/${params.pageSize}`
  873. delete params.pageNo
  874. delete params.pageSize
  875. return axios({
  876. url: url,
  877. data: params,
  878. method: 'post',
  879. headers: {
  880. 'module': encodeURIComponent('列表查询')
  881. }
  882. })
  883. }
  884. // 订单经销商差价表 统计
  885. export const productRebateParentCount = (params) => {
  886. const url = `/report/productRebateParent/queryCount`
  887. return axios({
  888. url: url,
  889. data: params,
  890. method: 'post'
  891. })
  892. }
  893. // 产品差价表
  894. export const rebateDetailQueryList = (params) => {
  895. const url = `/report/productRebateDetail/queryPage/${params.pageNo}/${params.pageSize}`
  896. delete params.pageNo
  897. delete params.pageSize
  898. return axios({
  899. url: url,
  900. data: params,
  901. method: 'post',
  902. headers: {
  903. 'module': encodeURIComponent('列表查询')
  904. }
  905. })
  906. }
  907. // 返利明细报表统计
  908. export const rebateDetailQueryCount = (params) => {
  909. const url = `/report/productRebateDetail/queryCount`
  910. return axios({
  911. url: url,
  912. data: params,
  913. method: 'post'
  914. })
  915. }
  916. /*
  917. ** 开单采退报表
  918. */
  919. // 开单采退报表 列表
  920. export const querySupplierPage = (params) => {
  921. const url = `/report/sparePartsReturn/querySupplierPage/${params.pageNo}/${params.pageSize}`
  922. delete params.pageNo
  923. delete params.pageSize
  924. return axios({
  925. url: url,
  926. data: params,
  927. method: 'post',
  928. headers: {
  929. 'module': encodeURIComponent('列表查询')
  930. }
  931. })
  932. }
  933. // 开单采退报表 合计
  934. export const querySupplierCount = (params) => {
  935. const url = `/report/sparePartsReturn/querySupplierCount`
  936. return axios({
  937. url: url,
  938. data: params,
  939. method: 'post'
  940. })
  941. }
  942. // 开单采退报表 标题
  943. export const querySupplierTitle = (params) => {
  944. const url = `/report/sparePartsReturn/querySupplierTitle`
  945. return axios({
  946. url: url,
  947. data: params,
  948. method: 'get'
  949. })
  950. }
  951. // 开单采退报表 导出
  952. export const supplierExport = (params) => {
  953. return axios({
  954. url: '/report/sparePartsReturn/supplierExport',
  955. data: params,
  956. method: 'post',
  957. responseType: 'blob'
  958. })
  959. }
  960. // 开单采退dan报表 列表
  961. export const queryBillNoPage = (params) => {
  962. const url = `/report/sparePartsReturn/queryBillNoPage/${params.pageNo}/${params.pageSize}`
  963. delete params.pageNo
  964. delete params.pageSize
  965. return axios({
  966. url: url,
  967. data: params,
  968. method: 'post',
  969. headers: {
  970. 'module': encodeURIComponent('列表查询')
  971. }
  972. })
  973. }
  974. // 开单采退dan报表 合计
  975. export const queryBillNoCount = (params) => {
  976. const url = `/report/sparePartsReturn/queryBillNoCount`
  977. return axios({
  978. url: url,
  979. data: params,
  980. method: 'post'
  981. })
  982. }
  983. // 开单采退dan报表 标题
  984. export const queryBillNoTitle = (params) => {
  985. const url = `/report/sparePartsReturn/queryBillNoTitle`
  986. return axios({
  987. url: url,
  988. data: params,
  989. method: 'get'
  990. })
  991. }
  992. // 开单采退dan报表 导出
  993. export const billNoExport = (params) => {
  994. return axios({
  995. url: '/report/sparePartsReturn/BillNoExport',
  996. data: params,
  997. method: 'post',
  998. responseType: 'blob',
  999. headers: {
  1000. 'module': encodeURIComponent('导出')
  1001. }
  1002. })
  1003. }
  1004. /*
  1005. ** 收发存报表
  1006. */
  1007. // 收发存报表 明细列表
  1008. export const queryDetailReportPage = (params) => {
  1009. const url = `/report/reportStockPsi/queryDetailReportPage/${params.pageNo}/${params.pageSize}`
  1010. delete params.pageNo
  1011. delete params.pageSize
  1012. return axios({
  1013. url: url,
  1014. data: params,
  1015. method: 'post',
  1016. headers: {
  1017. 'module': encodeURIComponent('列表查询')
  1018. }
  1019. })
  1020. }
  1021. // 收发存报表 导出
  1022. export const exportDetailReport = (params) => {
  1023. return axios({
  1024. url: '/report/reportStockPsi/exportReport',
  1025. data: params,
  1026. method: 'post',
  1027. responseType: 'blob',
  1028. headers: {
  1029. 'module': encodeURIComponent('导出')
  1030. }
  1031. })
  1032. }
  1033. // 收发存报表 汇总列表
  1034. export const queryGroupByprodTypeReportPage = (params) => {
  1035. const url = `/report/reportStockPsi/queryGroupByProdTypeReport`
  1036. return axios({
  1037. url: url,
  1038. data: params,
  1039. method: 'post',
  1040. headers: {
  1041. 'module': encodeURIComponent('列表查询')
  1042. }
  1043. })
  1044. }
  1045. // 收发存报表 进销存合计统计
  1046. export const queryReportCount = (params) => {
  1047. const url = `/report/reportStockPsi/queryReportCount`
  1048. return axios({
  1049. url: url,
  1050. data: params,
  1051. method: 'post'
  1052. })
  1053. }
  1054. // // 收发存报表 汇总导出
  1055. // export const exportGroupByProductTypeReport = (params) => {
  1056. // return axios({
  1057. // url: '/report/reportStockPsi/exportGroupByProductTypeReport',
  1058. // data: params,
  1059. // method: 'post',
  1060. // responseType: 'blob'
  1061. // })
  1062. // }
  1063. /*
  1064. ** 促销销售
  1065. */
  1066. // 促销销售单报表 列表
  1067. export const salesPromoReportList = (params) => {
  1068. const url = `/report/salesPromoReport/queryPage/${params.pageNo}/${params.pageSize}`
  1069. delete params.pageNo
  1070. delete params.pageSize
  1071. return axios({
  1072. url: url,
  1073. data: params,
  1074. method: 'post',
  1075. headers: {
  1076. 'module': encodeURIComponent('列表查询')
  1077. }
  1078. })
  1079. }
  1080. // 促销销售单报表 统计
  1081. export const salesPromoReportQueryCount = (params) => {
  1082. const url = `/report/salesPromoReport/queryCount`
  1083. return axios({
  1084. url: url,
  1085. data: params,
  1086. method: 'post'
  1087. })
  1088. }
  1089. // 促销销售单报表 导出
  1090. export const exportSalesPromoReport = (params) => {
  1091. return axios({
  1092. url: '/report/salesPromoReport/reportExport',
  1093. data: params,
  1094. method: 'post',
  1095. responseType: 'blob',
  1096. headers: {
  1097. 'module': encodeURIComponent('导出')
  1098. }
  1099. })
  1100. }
  1101. // 促销销售单实时报表 列表
  1102. export const salesPromoRealReportList = (params) => {
  1103. const url = `/report/salesPromoRealReport/queryPage/${params.pageNo}/${params.pageSize}`
  1104. delete params.pageNo
  1105. delete params.pageSize
  1106. return axios({
  1107. url: url,
  1108. data: params,
  1109. method: 'post',
  1110. headers: {
  1111. 'module': encodeURIComponent('列表查询')
  1112. }
  1113. })
  1114. }
  1115. // 促销销售单实时报表 统计
  1116. export const salesPromoRealReportCount = (params) => {
  1117. const url = `/report/salesPromoRealReport/queryCount`
  1118. return axios({
  1119. url: url,
  1120. data: params,
  1121. method: 'post'
  1122. })
  1123. }
  1124. // 促销销售单实时报表 导出
  1125. export const exportSalesPromoRealReport = (params) => {
  1126. return axios({
  1127. url: '/report/salesPromoRealReport/reportExport',
  1128. data: params,
  1129. method: 'post',
  1130. responseType: 'blob',
  1131. headers: {
  1132. 'module': encodeURIComponent('导出')
  1133. }
  1134. })
  1135. }
  1136. /*
  1137. * 产品追溯列表
  1138. */
  1139. // 导出错误项
  1140. export const codeExportImportError = (params) => {
  1141. return axios({
  1142. url: '/report/tracecode/exportImportError',
  1143. data: params,
  1144. method: 'post',
  1145. responseType: 'blob',
  1146. headers: {
  1147. 'module': encodeURIComponent('导出错误项')
  1148. }
  1149. })
  1150. }
  1151. // 确定导入轮胎唯一码
  1152. export const traceCodeInsertBatch = (params) => {
  1153. const url = `/report/tracecode/insertBatch`
  1154. return axios({
  1155. url: url,
  1156. data: params,
  1157. method: 'post',
  1158. headers: {
  1159. 'module': encodeURIComponent('确定导入')
  1160. }
  1161. })
  1162. }
  1163. // 获取 产品追溯列表
  1164. export const traceCodeList = (params) => {
  1165. const url = `/report/tracecode/queryPage/${params.pageNo}/${params.pageSize}`
  1166. delete params.pageNo
  1167. delete params.pageSize
  1168. return axios({
  1169. url: url,
  1170. data: params,
  1171. method: 'post',
  1172. headers: {
  1173. 'module': encodeURIComponent('列表查询')
  1174. }
  1175. })
  1176. }
  1177. // 产品追溯列表 统计
  1178. export const traceCodeQueryCount = (params) => {
  1179. const url = '/report/tracecode/queryCount'
  1180. return axios({
  1181. url: url,
  1182. data: params,
  1183. method: 'post'
  1184. })
  1185. }
  1186. // 产品追溯列表 导出
  1187. export const excelOnlineList = (params) => {
  1188. return axios({
  1189. url: '/report/tracecode/excelOnlineList',
  1190. data: params,
  1191. method: 'post',
  1192. responseType: 'blob',
  1193. headers: {
  1194. 'module': encodeURIComponent('导出')
  1195. }
  1196. })
  1197. }
  1198. // 质保信息
  1199. export const getWarrantyInfo = (params) => {
  1200. return axios({
  1201. url: `/report/warranty/queryById/${params.id}`,
  1202. method: 'post',
  1203. headers: {
  1204. 'module': encodeURIComponent('质保信息')
  1205. }
  1206. })
  1207. }
  1208. /*
  1209. * 轮胎统计报表
  1210. */
  1211. // 轮胎统计报表 列表
  1212. export const tireReportList = (params) => {
  1213. const url = `/report/tireRptDealerProductDay/queryPage/${params.pageNo}/${params.pageSize}`
  1214. delete params.pageNo
  1215. delete params.pageSize
  1216. return axios({
  1217. url: url,
  1218. data: params,
  1219. method: 'post',
  1220. headers: {
  1221. 'module': encodeURIComponent('列表查询')
  1222. }
  1223. })
  1224. }
  1225. // 轮胎统计报表 统计
  1226. export const queryTireCount = (params) => {
  1227. return axios({
  1228. url: '/report/tireRptDealerProductDay/queryCount',
  1229. data: params,
  1230. method: 'post'
  1231. })
  1232. }
  1233. // 轮胎明细报表 列表
  1234. export const tireReportDetailList = (params) => {
  1235. const url = `/report/tireRptDealerProductDay/queryDetailPage/${params.pageNo}/${params.pageSize}`
  1236. delete params.pageNo
  1237. delete params.pageSize
  1238. return axios({
  1239. url: url,
  1240. data: params,
  1241. method: 'post',
  1242. headers: {
  1243. 'module': encodeURIComponent('列表查询')
  1244. }
  1245. })
  1246. }
  1247. // 轮胎明细报表 统计
  1248. export const queryTireDetailCount = (params) => {
  1249. return axios({
  1250. url: '/report/tireRptDealerProductDay/queryDetailCount',
  1251. data: params,
  1252. method: 'post'
  1253. })
  1254. }
  1255. // 轮胎明细报表 出入库明细列表
  1256. export const outDetailList = (params) => {
  1257. const url = `/report/tireRptDealerDayOutStock/queryPage/${params.pageNo}/${params.pageSize}`
  1258. delete params.pageNo
  1259. delete params.pageSize
  1260. return axios({
  1261. url: url,
  1262. data: params,
  1263. method: 'post',
  1264. headers: {
  1265. 'module': encodeURIComponent('列表查询')
  1266. }
  1267. })
  1268. }
  1269. // 轮胎报表 导出
  1270. export const tireListExport = (params) => {
  1271. return axios({
  1272. url: '/report/tireRptDealerProductDay/importExcel',
  1273. data: params,
  1274. method: 'post',
  1275. responseType: 'blob',
  1276. headers: {
  1277. 'module': encodeURIComponent('导出')
  1278. }
  1279. })
  1280. }
  1281. // 轮胎明细报表 出入库明细导出
  1282. export const tireOutDetailListExport = (params) => {
  1283. return axios({
  1284. url: '/report/tireRptDealerDayOutStock/importExcel',
  1285. data: params,
  1286. method: 'post',
  1287. responseType: 'blob',
  1288. headers: {
  1289. 'module': encodeURIComponent('导出')
  1290. }
  1291. })
  1292. }
  1293. /*
  1294. * 轮胎费用报表
  1295. */
  1296. // 轮胎费用报表 列表
  1297. export const tireFeeReportList = (params) => {
  1298. const url = `/report/tireFee/queryPage/${params.pageNo}/${params.pageSize}`
  1299. delete params.pageNo
  1300. delete params.pageSize
  1301. return axios({
  1302. url: url,
  1303. data: params,
  1304. method: 'post',
  1305. headers: {
  1306. 'module': encodeURIComponent('列表查询')
  1307. }
  1308. })
  1309. }
  1310. // 轮胎费用报表 统计
  1311. export const tireFeeReportCount = (params) => {
  1312. return axios({
  1313. url: '/report/tireFee/reportCount',
  1314. data: params,
  1315. method: 'post'
  1316. })
  1317. }
  1318. // 轮胎费用报表 导出
  1319. export const tireFeeListExport = (params) => {
  1320. return axios({
  1321. url: '/report/tireFee/importExcel',
  1322. data: params,
  1323. method: 'post',
  1324. responseType: 'blob',
  1325. headers: {
  1326. 'module': encodeURIComponent('导出')
  1327. }
  1328. })
  1329. }
  1330. // 促销销售单报表(统计)
  1331. export const brandTypeReportList = (params) => {
  1332. const url = `/report/brandTypeReport/queryPage/${params.pageNo}/${params.pageSize}`
  1333. delete params.pageNo
  1334. delete params.pageSize
  1335. return axios({
  1336. url: url,
  1337. data: params,
  1338. method: 'post',
  1339. headers: {
  1340. 'module': encodeURIComponent('列表查询')
  1341. }
  1342. })
  1343. }
  1344. // 促销销售单报表(统计) 统计
  1345. export const brandTypeReportCount = (params) => {
  1346. return axios({
  1347. url: '/report/brandTypeReport/reportCount',
  1348. data: params,
  1349. method: 'post'
  1350. })
  1351. }
  1352. // 促销销售单报表(统计) 导出
  1353. export const brandTypeReportExport = (params) => {
  1354. return axios({
  1355. url: '/report/brandTypeReport/excelTireOnlineList',
  1356. data: params,
  1357. method: 'post',
  1358. responseType: 'blob',
  1359. headers: {
  1360. 'module': encodeURIComponent('导出')
  1361. }
  1362. })
  1363. }