index.js 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. import request from "@/utils/request";
  2. // 成本模板列表
  3. export function costList(query) {
  4. return request({
  5. url: "/financial/tp/list",
  6. method: "get",
  7. params: query,
  8. });
  9. }
  10. // 查询生成表数据
  11. export function eduList(query) {
  12. return request({
  13. url: "/course/educationType/allList",
  14. method: "get",
  15. params: query,
  16. });
  17. }
  18. // 新增模板
  19. export function addCost(data) {
  20. return request({
  21. url: "/financial/tp",
  22. method: "post",
  23. data,
  24. });
  25. }
  26. // 修改状态
  27. export function editDefaultStatus(data) {
  28. return request({
  29. url: "/financial/tp/editDefaultStatus",
  30. method: "post",
  31. data,
  32. });
  33. }
  34. // 批量删除
  35. export function batchCost(data) {
  36. return request({
  37. url: "/financial/tp/deleteBatch",
  38. method: "post",
  39. data,
  40. });
  41. }
  42. // 修改模板
  43. export function editCost(data) {
  44. return request({
  45. url: "/financial/tp/edit",
  46. method: "post",
  47. data,
  48. });
  49. }
  50. // 查询模板
  51. export function costDetail(id) {
  52. return request({
  53. url: "/financial/tp/" + id,
  54. method: "get",
  55. });
  56. }
  57. // 应收应付列表
  58. export function orderList(query) {
  59. return request({
  60. url: "/receive/order/list",
  61. method: "get",
  62. params: query,
  63. isProce: true,
  64. });
  65. }
  66. // 应收应付导出
  67. export function orderExport(query) {
  68. return request({
  69. url: "/receive/order/listExport",
  70. method: "get",
  71. params: query,
  72. isProce: true,
  73. });
  74. }
  75. // 机构分成列表导出
  76. export function tenantExport(query) {
  77. return request({
  78. url: "/system/top/order/tenantListExport",
  79. method: "get",
  80. params: query,
  81. });
  82. }
  83. // 奖金结算导出
  84. export function commissionExport(query) {
  85. return request({
  86. url: "/system/top/order/commissionListExport",
  87. method: "get",
  88. params: query,
  89. });
  90. }
  91. // 订单应收应付统计
  92. export function sellerExport(query) {
  93. return request({
  94. url: "/system/top/order/sellerListExport",
  95. method: "get",
  96. params: query,
  97. });
  98. }
  99. // 新增催款提醒
  100. export function orderNote(data) {
  101. return request({
  102. url: "/receive/order/note",
  103. method: "post",
  104. data,
  105. });
  106. }
  107. // 修改催款提醒
  108. export function orderNoteEdit(data) {
  109. return request({
  110. url: "/receive/order/note/edit",
  111. method: "post",
  112. data,
  113. });
  114. }
  115. // 业务员提成列表
  116. export function sellerPercentageList(data) {
  117. return request({
  118. url: "/divide/log/sellerList",
  119. method: "post",
  120. data,
  121. isProce: true,
  122. });
  123. }
  124. // 业务员提成订单列表
  125. export function sellerList(query) {
  126. return request({
  127. url: "/system/top/order/divSellerList",
  128. method: "get",
  129. params: query,
  130. });
  131. }
  132. // 查询机构分成记录列表
  133. export function companyList(data) {
  134. return request({
  135. url: "/divide/log/companyList",
  136. method: "post",
  137. data,
  138. isProce: true,
  139. });
  140. }
  141. // 查询奖金结算列表
  142. export function commissionList(data) {
  143. return request({
  144. url: "/divide/log/commissionList",
  145. method: "post",
  146. data,
  147. isProce: true,
  148. });
  149. }
  150. // 机构分成列表
  151. export function tenantList(query) {
  152. return request({
  153. url: "/system/top/order/queryTenantList",
  154. method: "get",
  155. params: query,
  156. });
  157. }
  158. // 修改备注
  159. export function updateRemark(data) {
  160. return request({
  161. url: "/system/top/order/updateRemark",
  162. method: "post",
  163. data,
  164. });
  165. }
  166. // 修改月份备注
  167. export function updateMonthRemark(data) {
  168. return request({
  169. url: "/divide/log/updateRemark",
  170. method: "post",
  171. data,
  172. });
  173. }
  174. // 查询月份订单列表
  175. export function monthOrderList(query) {
  176. return request({
  177. url: "/divide/log/monthOrderList",
  178. method: "get",
  179. params: query,
  180. isProce: true,
  181. });
  182. }
  183. // 订单应收应付统计
  184. export function countOrderNum(data) {
  185. return request({
  186. url: "/system/top/order/countOrderNum",
  187. method: "post",
  188. data,
  189. isProce: true,
  190. });
  191. }
  192. // 坏账设置
  193. export function setBadBill(data) {
  194. return request({
  195. url: "/divide/log/updateBadBill",
  196. method: "post",
  197. data,
  198. });
  199. }
  200. // 坏账详情
  201. export function badBillDetail(query) {
  202. return request({
  203. url: "/divide/log/configKey/badBill",
  204. method: "get",
  205. params: query,
  206. });
  207. }
  208. // 供应商模板列表
  209. export function supplierList(query) {
  210. return request({
  211. url: "/top/cost/inst/tp/list",
  212. method: "get",
  213. params: query,
  214. });
  215. }
  216. // 供应商列表
  217. export function institutionList(query) {
  218. return request({
  219. url: "/top/institution/list",
  220. method: "get",
  221. params: query,
  222. });
  223. }
  224. // 供应商模板批量删除
  225. export function supplierBatchCost(data) {
  226. return request({
  227. url: "/top/cost/inst/tp/deleteBatch",
  228. method: "post",
  229. data,
  230. });
  231. }
  232. // 供应商成本分类
  233. export function instCategoryList(query) {
  234. return request({
  235. url: "/top/inst/category/list",
  236. method: "get",
  237. params: query,
  238. });
  239. }
  240. // 机构成本分类
  241. export function categoryList(query) {
  242. return request({
  243. url: "/top/category/list",
  244. method: "get",
  245. params: query,
  246. });
  247. }
  248. // // 成本类别
  249. // export function categoryList(query) {
  250. // return request({
  251. // url: "/top/category/list",
  252. // method: "get",
  253. // params: query,
  254. // });
  255. // }
  256. // 供应商状态
  257. export function instDefaultStatus(data) {
  258. return request({
  259. url: "/top/cost/inst/tp/editDefaultStatus",
  260. method: "post",
  261. data,
  262. });
  263. }
  264. // 新增供应商模板
  265. export function addInstCost(data) {
  266. return request({
  267. url: "/top/cost/inst/tp",
  268. method: "post",
  269. data,
  270. });
  271. }
  272. // 修改供应商模板
  273. export function editInstCost(data) {
  274. return request({
  275. url: "/top/cost/inst/tp/edit",
  276. method: "post",
  277. data,
  278. });
  279. }
  280. // 查询供应商模板
  281. export function costInstDetail(id) {
  282. return request({
  283. url: "/top/cost/inst/tp/" + id,
  284. method: "get",
  285. });
  286. }
  287. // 月份订单统计信息
  288. export function monthOrderCount(query) {
  289. return request({
  290. url: "/divide/log/monthOrderCount",
  291. method: "get",
  292. params: query,
  293. });
  294. }
  295. // 单据打印详情
  296. export function withPrint(id) {
  297. return request({
  298. url: "/divide/log/withPrint/" + id,
  299. method: "get",
  300. });
  301. }
  302. // 查询打印月份订单列表
  303. export function monthOrderListWithPrint(query) {
  304. return request({
  305. url: "/divide/log/monthOrderListWithPrint",
  306. method: "get",
  307. params: query,
  308. });
  309. }
  310. // 查询奖金打印
  311. export function commissionPrint(data) {
  312. return request({
  313. url: "/divide/log/commissionPrint",
  314. method: "post",
  315. data,
  316. });
  317. }
  318. // 查询奖金结算列表统计
  319. export function commissionOrderCount(query) {
  320. return request({
  321. url: "/divide/log/commissionOrderCount",
  322. method: "get",
  323. params: query,
  324. isProce: true,
  325. });
  326. }
  327. // 批量修改订单收款提醒
  328. export function editBatchReminder(data) {
  329. return request({
  330. url: "/receive/order/note/editBatch",
  331. method: "post",
  332. data,
  333. });
  334. }
  335. // 批量修改月份分成审核记录
  336. export function divideByMonthEditBo(data) {
  337. return request({
  338. url: "/check/order/log/updateBatchDivideByMonthEditBo",
  339. method: "post",
  340. data,
  341. });
  342. }
  343. // 批量修改订单分成审核记录
  344. export function divideByEditBo(data) {
  345. return request({
  346. url: "/check/order/log/updateBatchDivideByEditBo",
  347. method: "post",
  348. data,
  349. });
  350. }