reportData.js 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331
  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 tireReportDetailList = (params) => {
  1227. const url = `/report/tireRptDealerProductDay/queryDetailPage/${params.pageNo}/${params.pageSize}`
  1228. delete params.pageNo
  1229. delete params.pageSize
  1230. return axios({
  1231. url: url,
  1232. data: params,
  1233. method: 'post',
  1234. headers: {
  1235. 'module': encodeURIComponent('列表查询')
  1236. }
  1237. })
  1238. }
  1239. // 轮胎统计报表 统计
  1240. export const queryTireCount = (params) => {
  1241. return axios({
  1242. url: '/report/tireRptDealerProductDay/queryCount',
  1243. data: params,
  1244. method: 'post'
  1245. })
  1246. }
  1247. // 轮胎统计报表 出入库明细列表
  1248. export const outDetailList = (params) => {
  1249. const url = `/report/tireRptDealerDayOutStock/queryPage/${params.pageNo}/${params.pageSize}`
  1250. delete params.pageNo
  1251. delete params.pageSize
  1252. return axios({
  1253. url: url,
  1254. data: params,
  1255. method: 'post',
  1256. headers: {
  1257. 'module': encodeURIComponent('列表查询')
  1258. }
  1259. })
  1260. }
  1261. // 轮胎统计报表 导出
  1262. export const excelTireOnlineExport = (params) => {
  1263. return axios({
  1264. url: '/report/tire/excelTireOnlineList',
  1265. data: params,
  1266. method: 'post',
  1267. responseType: 'blob',
  1268. headers: {
  1269. 'module': encodeURIComponent('导出')
  1270. }
  1271. })
  1272. }
  1273. // 促销销售单报表(统计)
  1274. export const brandTypeReportList = (params) => {
  1275. const url = `/report/brandTypeReport/queryPage/${params.pageNo}/${params.pageSize}`
  1276. delete params.pageNo
  1277. delete params.pageSize
  1278. return axios({
  1279. url: url,
  1280. data: params,
  1281. method: 'post',
  1282. headers: {
  1283. 'module': encodeURIComponent('列表查询')
  1284. }
  1285. })
  1286. }
  1287. // 促销销售单报表(统计) 统计
  1288. export const brandTypeReportCount = (params) => {
  1289. return axios({
  1290. url: '/report/brandTypeReport/reportCount',
  1291. data: params,
  1292. method: 'post'
  1293. })
  1294. }
  1295. // 促销销售单报表(统计) 导出
  1296. export const brandTypeReportExport = (params) => {
  1297. return axios({
  1298. url: '/report/brandTypeReport/excelTireOnlineList',
  1299. data: params,
  1300. method: 'post',
  1301. responseType: 'blob',
  1302. headers: {
  1303. 'module': encodeURIComponent('导出')
  1304. }
  1305. })
  1306. }