index.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. import request from '../utils/request';
  2. // 登录
  3. export function solicLogin(data, config) {
  4. return request({
  5. url: '/tianzong/appSysUser/solic_login',
  6. method: 'post',
  7. data: data,
  8. ...config
  9. })
  10. }
  11. // 首页-扫码
  12. export function appFindYourShipment(data, config) {
  13. return request({
  14. url: '/tianzong/express/appFindYourShipment',
  15. method: 'post',
  16. data: data,
  17. ...config
  18. })
  19. }
  20. // 快递出库-扫码
  21. export function appDeliveryPersonDeliveries(data, config) {
  22. return request({
  23. url: '/tianzong/express/appDeliveryPersonDeliveries',
  24. method: 'post',
  25. data: data,
  26. ...config
  27. })
  28. }
  29. //快件入库-通过手机号后四位获取信息
  30. export function appGetEmployeeInfoByPhone(data, config) {
  31. return request({
  32. url: '/tianzong/express/appGetEmployeeInfoByPhone',
  33. method: 'post',
  34. data: data,
  35. ...config
  36. })
  37. }
  38. //快件入库-快递物流配置列表
  39. export function appGeLogisticsList(data, config) {
  40. return request({
  41. url: '/tianzong/express/appGeLogisticsList',
  42. method: 'post',
  43. data: data,
  44. ...config
  45. })
  46. }
  47. //快件入库-入库
  48. export function appSaveExpressRecord(data, config) {
  49. return request({
  50. url: '/tianzong/express/appSaveExpressRecord',
  51. method: 'post',
  52. data: data,
  53. ...config
  54. })
  55. }
  56. //快件签收-快递单号查询
  57. export function appFindYourShipmentList(data, config) {
  58. return request({
  59. url: '/tianzong/express/appFindYourShipmentList ',
  60. method: 'post',
  61. data: data,
  62. ...config
  63. })
  64. }
  65. //快件签收-图片上传
  66. export function appUploadTheSignature(data) {
  67. return request({
  68. url: '/tianzong/express/appUploadTheSignature',
  69. method: 'post',
  70. data: data,
  71. // ...config
  72. })
  73. }
  74. //快件签收-提件
  75. export function appDelivery(data) {
  76. return request({
  77. url: '/tianzong/express/appDelivery',
  78. method: 'post',
  79. data: data,
  80. emulateJSON: true
  81. })
  82. }
  83. //派件查询-设为滞留
  84. export function appSetStrands(data) {
  85. return request({
  86. url: '/tianzong/express/appSetStrands',
  87. method: 'post',
  88. data: data,
  89. emulateJSON: true
  90. })
  91. }
  92. //派件查询-待派件
  93. export function appOutboundInquiry(data, config) {
  94. return request({
  95. url: '/tianzong/express/appOutboundInquiry',
  96. method: 'post',
  97. data: data,
  98. ...config
  99. })
  100. }
  101. //派件查询-详情
  102. export function appGetTheDetails(data, config) {
  103. return request({
  104. url: '/tianzong/express/appGetTheDetails',
  105. method: 'post',
  106. data: data,
  107. emulateJSON: true
  108. })
  109. }
  110. //数据图表
  111. export function appStatistics(data) {
  112. return request({
  113. url: '/tianzong/express/appStatistics',
  114. method: 'post',
  115. data: data,
  116. emulateJSON: true
  117. })
  118. }
  119. //修改密码
  120. export function LJYforgetPassword(data) {
  121. return request({
  122. url: '/tianzong/appSysUser/LJYforgetPassword',
  123. method: 'post',
  124. data: data,
  125. emulateJSON: true
  126. })
  127. }
  128. //获取信息
  129. export function getSysUserInfoByUserIdAPI(data) {
  130. return request({
  131. url: '/tianzong/personal/getSysUserInfoByUserId.do',
  132. method: 'post',
  133. data: data,
  134. emulateJSON: true
  135. })
  136. }
  137. //获取微信
  138. export function getWxConfig(data) {
  139. return request({
  140. url: '/tianzong/weixin/getWxConfig',
  141. method: 'post',
  142. data: data,
  143. emulateJSON: true
  144. })
  145. }
  146. //快件出库-调用扫码后的校验 - 如果返回为空-不在派送范围
  147. export function appPermissionChecks(data) {
  148. return request({
  149. url: '/tianzong/express/appPermissionChecks',
  150. method: 'post',
  151. data: data,
  152. emulateJSON: true
  153. })
  154. }
  155. // 首先获取打印机 判断打印机的数量,如果没有提示, 如果只有一个直接进入打印,如果有多个打印机弹框让用户选择然后在进入打印,
  156. //获取打印机
  157. export function getListOfPrinters(data) {
  158. return request({
  159. url: '/tianzong/printer/getListOfPrinters',
  160. method: 'post',
  161. data: data,
  162. emulateJSON: true
  163. })
  164. }
  165. // 入库打印标签
  166. export function storagePrintSmallTab(data) {
  167. return request({
  168. url: '/tianzong/printer/storagePrintSmallTab',
  169. method: 'post',
  170. data: data,
  171. emulateJSON: true
  172. })
  173. }
  174. export function appFindInsideInfoByExpressNo(data){
  175. return request({
  176. url: '/tianzong/express/appFindInsideInfoByExpressNo',
  177. method: 'post',
  178. data: data,
  179. emulateJSON: true
  180. })
  181. }