CwFinanceInvoiceService.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. import request from "@/utils/httpRequest";
  2. import { FINANCE_PATH as prefix } from "../../AppPath";
  3. export default {
  4. list: function (params) {
  5. return request({
  6. url: prefix + "/cw_finance/invoice/list",
  7. method: "get",
  8. params: params,
  9. });
  10. },
  11. redList: function (params) {
  12. return request({
  13. url: prefix + "/cw_finance/invoice/redList",
  14. method: "get",
  15. params: params,
  16. });
  17. },
  18. queryById: function (id) {
  19. return request({
  20. url: prefix + "/cw_finance/invoice/queryById",
  21. method: "get",
  22. params: { id: id },
  23. });
  24. },
  25. queryByNumber: function (number, id) {
  26. return request({
  27. url: prefix + "/cw_finance/invoice/queryByNumber",
  28. method: "get",
  29. params: { number: number, id: id },
  30. });
  31. },
  32. save: function (inputForm) {
  33. return request({
  34. url: prefix + `/cw_finance/invoice/save`,
  35. method: "post",
  36. data: inputForm,
  37. });
  38. },
  39. delete: function (ids) {
  40. return request({
  41. url: prefix + "/cw_finance/invoice/delete",
  42. method: "delete",
  43. params: { ids: ids },
  44. });
  45. },
  46. updateStatusById: function (data) {
  47. return request({
  48. url: prefix + "/cw_finance/invoice/updateStatusById",
  49. method: "post",
  50. data: data,
  51. });
  52. },
  53. isReceivables: function (data) {
  54. return request({
  55. url: prefix + "/cw_finance/invoice/isReceivables",
  56. method: "post",
  57. data: data,
  58. });
  59. },
  60. saveForm: function (inputForm) {
  61. return request({
  62. url: prefix + `/cw_finance/invoice/saveForm`,
  63. method: "post",
  64. data: inputForm,
  65. });
  66. },
  67. saveFormInvalid: function (inputForm) {
  68. return request({
  69. url: prefix + `/cw_finance/invoice/saveFormInvalid`,
  70. method: "post",
  71. data: inputForm,
  72. });
  73. },
  74. queryIdByInvalidId: function (id) {
  75. return request({
  76. url: prefix + "/cw_finance/invoice/queryIdByInvalidId",
  77. method: "get",
  78. params: { id: id },
  79. });
  80. },
  81. importDetail: function (data) {
  82. return request({
  83. url: prefix + "/cw_finance/invoice/importDetail",
  84. method: "post",
  85. data: data,
  86. });
  87. },
  88. exportTemplate: function () {
  89. return request({
  90. url: prefix + "/cw_finance/invoice/importDetail/template",
  91. method: "get",
  92. responseType: "blob",
  93. });
  94. },
  95. exportFinanceTemplate: function () {
  96. return request({
  97. url: prefix + "/cw_finance/invoice/importFinance/template",
  98. method: "get",
  99. responseType: "blob",
  100. });
  101. },
  102. importFinance: function (data) {
  103. return request({
  104. url: prefix + "/cw_finance/invoice/importFinance",
  105. method: "post",
  106. data: data,
  107. });
  108. },
  109. getByIds: function (projectId, invoiceForm) {
  110. return request({
  111. url: prefix + "/cw_finance/invoice/getByIds",
  112. method: "get",
  113. params: { projectId: projectId, ...invoiceForm },
  114. });
  115. },
  116. getByIds2: function (projectId, invoiceForm) {
  117. return request({
  118. url: prefix + "/cw_finance/invoice/getByIds2",
  119. method: "get",
  120. params: { projectId: projectId, ...invoiceForm },
  121. });
  122. },
  123. getByContractId: function (contractId, invoiceForm) {
  124. return request({
  125. url: prefix + "/cw_finance/invoice/getByContractId",
  126. method: "get",
  127. params: { contractId: contractId, ...invoiceForm },
  128. });
  129. },
  130. getIdByClientId: function (clientId, invoiceForm) {
  131. return request({
  132. url: prefix + "/cw_finance/invoice/getIdByClientId",
  133. method: "get",
  134. params: { clientId: clientId, ...invoiceForm },
  135. });
  136. },
  137. exportFile: function (params) {
  138. return request({
  139. url: prefix + "/cw_finance/invoice/export",
  140. method: "get",
  141. params: params,
  142. responseType: "blob",
  143. });
  144. },
  145. getLabelById: function (param) {
  146. return request({
  147. url: prefix + "/cwProjectRecords/getLabelById",
  148. method: "get",
  149. params: { id: param },
  150. });
  151. },
  152. listByProgramId: function (params) {
  153. return request({
  154. url: prefix + "/cw_finance/invoice/listByProgramId",
  155. method: "get",
  156. params: params,
  157. });
  158. },
  159. getByNo(no) {
  160. return request({
  161. url: prefix + "/cw_finance/invoice/getByNo",
  162. method: "get",
  163. params: { no: no },
  164. });
  165. },
  166. batchInvoicePush(data) {
  167. return request({
  168. url: prefix + "/cw_finance/invoice/batchInvoicePush",
  169. method: "post",
  170. data: data,
  171. });
  172. },
  173. downLoadOMSInvoiceAttachzip(params) {
  174. return request({
  175. url: prefix + "/cw_finance/invoice/downLoadOMSInvoiceAttachzip",
  176. method: "get",
  177. params: params,
  178. responseType: "blob",
  179. });
  180. },
  181. invoiceOMSView(invoiceId) {
  182. return request({
  183. url: prefix + "/cw_finance/invoice/invoiceOMSView",
  184. method: "get",
  185. params: { invoiceId: invoiceId },
  186. });
  187. },
  188. invoiceAllScenarioRedOMSView(params) {
  189. return request({
  190. url: prefix + "/cw_finance/invoice/invoiceAllScenarioRedOMSView",
  191. method: "get",
  192. params: params,
  193. });
  194. },
  195. updateDictValue(data) {
  196. return request({
  197. url: prefix + "/cw_finance/invoice/updateDictValue",
  198. method: "post",
  199. data: data,
  200. });
  201. },
  202. getDingNoticeDictValue(data) {
  203. return request({
  204. url: prefix + "/cw_finance/invoice/getDingNoticeDictValue",
  205. method: "post",
  206. data: data,
  207. });
  208. },
  209. };