血透系统PC前端

stock.js 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. import request from '@/utils/request'
  2. export function createDealer(params){
  3. return request({
  4. url:'/api/stock/dealer/create',
  5. method:'post',
  6. params:params
  7. })
  8. }
  9. export function modifyDealer(params){
  10. return request({
  11. url:'/api/stock/dealer/modify',
  12. method:'post',
  13. params:params
  14. })
  15. }
  16. export function getDealersList(params){
  17. return request({
  18. url:'/api/stock/dealer/list',
  19. method:'get',
  20. params:params
  21. })
  22. }
  23. export function deleteDealer(params){
  24. return request({
  25. url:'/api/stock/dealer/delete',
  26. method:'post',
  27. params:params
  28. })
  29. }
  30. export function GetDealer(params){
  31. return request({
  32. url:'/api/stock/dealer/get',
  33. method:'get',
  34. params:params
  35. })
  36. }
  37. export function createManufacturer(params){
  38. return request({
  39. url:'/api/stock/manufacturer/create',
  40. method:'post',
  41. params:params
  42. })
  43. }
  44. export function modifyManufacturer(params){
  45. return request({
  46. url:'/api/stock/manufacturer/modify',
  47. method:'post',
  48. params:params
  49. })
  50. }
  51. export function getManufacturerList(params){
  52. return request({
  53. url:'/api/stock/manufacturer/list',
  54. method:'get',
  55. params:params
  56. })
  57. }
  58. export function deleteManufacturer(params){
  59. return request({
  60. url:'/api/stock/manufacturer/delete',
  61. method:'post',
  62. params:params
  63. })
  64. }
  65. export function GetManufacturer(params){
  66. return request({
  67. url:'/api/stock/manufacturer/get',
  68. method:'get',
  69. params:params
  70. })
  71. }
  72. export function createGoodType(params){
  73. return request({
  74. url:'/api/stock/good/type/create',
  75. method:'post',
  76. params:params
  77. })
  78. }
  79. export function modifyGoodType(params){
  80. return request({
  81. url:'/api/stock/good/type/modify',
  82. method:'post',
  83. params:params
  84. })
  85. }
  86. export function getGoodTypeList(params){
  87. return request({
  88. url:'/api/stock/good/type/list',
  89. method:'get',
  90. params:params
  91. })
  92. }
  93. export function deleteGoodType(params){
  94. return request({
  95. url:'/api/type/delete',
  96. method:'post',
  97. params:params
  98. })
  99. }
  100. export function GetGoodType(params){
  101. return request({
  102. url:'/api/stock/good/type/get',
  103. method:'get',
  104. params:params
  105. })
  106. }
  107. export function createGoodInfo(params){
  108. return request({
  109. url:'/api/stock/good/info/create',
  110. method:'post',
  111. params:params
  112. })
  113. }
  114. export function modifyGoodInfo(params){
  115. return request({
  116. url:'/api/stock/good/info/modify',
  117. method:'post',
  118. params:params
  119. })
  120. }
  121. export function getGoodInfoList(params){
  122. return request({
  123. url:'/api/stock/good/info/list',
  124. method:'get',
  125. params:params
  126. })
  127. }
  128. export function deleteGoodInfo(params){
  129. return request({
  130. url:'/api/info/delete',
  131. method:'post',
  132. params:params
  133. })
  134. }
  135. export function GetGoodInfoByGoodId(params){
  136. return request({
  137. url:'/api/stock/good/info/get',
  138. method:'get',
  139. params:params
  140. })
  141. }
  142. export function GetGoodInfo(params){
  143. return request({
  144. url:'/api/stock/good/info',
  145. method:'get',
  146. params:params
  147. })
  148. }
  149. export function GetAllDeals(params){
  150. return request({
  151. url:'/api/stock/dealer/all',
  152. method:'get',
  153. params:params
  154. })
  155. }
  156. export function GetAllManufacturer(params){
  157. return request({
  158. url:'/api/stock/manufacturer/all',
  159. method:'get',
  160. params:params
  161. })
  162. }
  163. export function GetAllGoodType(params){
  164. return request({
  165. url:'/api/stock/good/type/all',
  166. method:'get',
  167. params:params
  168. })
  169. }
  170. export function GetAllGoodInfo(params){
  171. return request({
  172. url:'/api/stock/good/info/all',
  173. method:'get',
  174. params:params
  175. })
  176. }
  177. export function postWarehouse(params,warehousing_time,warehousing_order){
  178. return request({
  179. url:'/api/stock/warehouse/create?warehousing_time='+warehousing_time+"&warehousing_order="+warehousing_order,
  180. method:'post',
  181. data:params
  182. })
  183. }
  184. export function getWarehouseList(params){
  185. return request({
  186. url:'/api/stock/warehouse/list',
  187. method:'get',
  188. params:params
  189. })
  190. }
  191. export function getWarehouseInfoList(params){
  192. return request({
  193. url:'/api/stock/warehouseinfo/list',
  194. method:'get',
  195. params:params
  196. })
  197. }
  198. export function postSalesReturn(params,salesReturnTime,salesReturnTotal,ids,orderNumber){
  199. return request({
  200. url:'/api/warehouse/return?time='+salesReturnTime+"&total="+salesReturnTotal+"&ids="+ids+"&order_number="+orderNumber,
  201. method:'post',
  202. data:params
  203. })
  204. }
  205. export function getWarehouseInfo(params){
  206. return request({
  207. url:'/api/info/get',
  208. method:'get',
  209. params:params
  210. })
  211. }
  212. export function getSalesReturnList(params){
  213. return request({
  214. url:'/api/return/list',
  215. method:'get',
  216. params:params
  217. })
  218. }
  219. export function getSalesReturnInfoList(params){
  220. return request({
  221. url:'/api/return/info',
  222. method:'get',
  223. params:params
  224. })
  225. }
  226. export function getAllWarehouseInfo(params){
  227. return request({
  228. url:'/api/warehouseinfo',
  229. method:'get',
  230. params:params
  231. })
  232. }
  233. export function getWarehouseOutList(params){
  234. return request({
  235. url:'/api/stock/out/list',
  236. method:'get',
  237. params:params
  238. })
  239. }
  240. export function getWarehouseOutInfoList(params){
  241. return request({
  242. url:'/api/stock/out/info',
  243. method:'get',
  244. params:params
  245. })
  246. }
  247. export function postWarehouseOut(params,warehousing_time,warehousing_out_order){
  248. return request({
  249. url:'/api/stock/out/create?warehousing_out_time='+warehousing_time+"&warehousing_out_order="+warehousing_out_order,
  250. method:'post',
  251. data:params
  252. })
  253. }
  254. export function getWarehouseInfoCountByGoodId(params){
  255. return request({
  256. url:'/api/info/count',
  257. method:'get',
  258. params:params
  259. })
  260. }
  261. export function getWarehouseInfoByGoodTypeId(params){
  262. return request({
  263. url:'/api/warehouse/type',
  264. method:'get',
  265. params:params
  266. })
  267. }
  268. export function getWarehouseOutInfo(params){
  269. return request({
  270. url:'/api/out/info',
  271. method:'get',
  272. params:params
  273. })
  274. }
  275. export function postCancelStock(params,cancelStockTime,cancelStockTotal,ids,orderNumber){
  276. return request({
  277. url:'/api/stock/cancel?time='+cancelStockTime+"&total="+cancelStockTotal+"&ids="+ids+"&order_number="+orderNumber,
  278. method:'post',
  279. data:params
  280. })
  281. }
  282. export function getCancelStockList(params){
  283. return request({
  284. url:'/api/cancel/list',
  285. method:'get',
  286. params:params
  287. })
  288. }
  289. export function getCancelStockInfoList(params){
  290. return request({
  291. url:'/api/cancel/info',
  292. method:'get',
  293. params:params
  294. })
  295. }
  296. export function getAllStockOutList(params){
  297. return request({
  298. url:'/api/out/list',
  299. method:'get',
  300. params:params
  301. })
  302. }
  303. export function getAllStockQueryList(params){
  304. return request({
  305. url:'/api/stock/query',
  306. method:'get',
  307. params:params
  308. })
  309. }
  310. export function getWarehouseInfoByOrdeNumber(params){
  311. return request({
  312. url:'/api/stock/warehouse/get',
  313. method:'get',
  314. params:params
  315. })
  316. }
  317. export function modifyWarehouseInfo(params){
  318. return request({
  319. url:'/api/stock/warehouse/edit',
  320. method:'post',
  321. params:params
  322. })
  323. }
  324. export function deleteWarehouseInfo(params){
  325. return request({
  326. url:'/api/stock/warehouse/delete',
  327. method:'post',
  328. params:params
  329. })
  330. }
  331. export function getWarehouseOutInfoByOrdeNumber(params){
  332. return request({
  333. url:'/api/stock/out/get',
  334. method:'get',
  335. params:params
  336. })
  337. }
  338. export function modifyWarehouseOutInfo(params){
  339. return request({
  340. url:'/api/stock/out/edit',
  341. method:'post',
  342. params:params
  343. })
  344. }
  345. export function deleteWarehouseOutInfo(params){
  346. return request({
  347. url:'/api/stock/out/delete',
  348. method:'post',
  349. params:params
  350. })
  351. }
  352. export function deleteStockInRecord(params){
  353. return request({
  354. url:'/api/warehouse/delete',
  355. method:'post',
  356. params:params
  357. })
  358. }