index.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. import {
  2. Http
  3. } from '../utils/newHttp.js';
  4. export class Index extends Http {
  5. constructor() {
  6. super();
  7. }
  8. // 微信账号密码登录
  9. login(data) {
  10. return this.request({
  11. url: '/customer/account/customerWechartLog',
  12. method: 'POST',
  13. data: data
  14. });
  15. }
  16. // 获取当前用户信息
  17. getSelfMsg(data) {
  18. return this.request({
  19. url: '/customer/account/getSelfMsg',
  20. method: 'GET',
  21. data: data
  22. });
  23. }
  24. // 获取登陆验证码图片
  25. getLoginVerifyCodeImg(data) {
  26. return this.request({
  27. url: '/customer/account/getLoginVerifyCodeImg',
  28. method: 'GET',
  29. data: data,
  30. responseType: 'arraybuffer',
  31. });
  32. }
  33. // 删除oss文件
  34. ossDeleteSingle(data) {
  35. return this.request({
  36. url: '/im/oss/deleteSingle',
  37. method: 'GET',
  38. data: data
  39. });
  40. }
  41. // 设备列表
  42. equipmentPage(data) {
  43. return this.request({
  44. url: '/basic/equipment/page',
  45. method: 'POST',
  46. data: data
  47. });
  48. }
  49. // 获取任务的数据字典信息
  50. getTaskDic(data) {
  51. return this.request({
  52. url: '/task/dic',
  53. method: 'GET',
  54. data: data
  55. });
  56. }
  57. // 根据客户code查询客户联系人和客户地址
  58. selectAddressAndContact(data) {
  59. return this.request({
  60. url: '/customer/master/selectAddressAndContact',
  61. method: 'GET',
  62. data: data
  63. });
  64. }
  65. // 查询客户需求
  66. getRequestList(data) {
  67. return this.request({
  68. url: '/task/requirement/page',
  69. method: 'POST',
  70. data: data
  71. });
  72. }
  73. // 根据id查询客户需求详情
  74. getRequirementById(data) {
  75. return this.request({
  76. url: '/task/requirement/selectById',
  77. method: 'GET',
  78. data: data
  79. });
  80. }
  81. // 根据客户id获得设备列表
  82. getEquipmentList(data) {
  83. return this.request({
  84. url: '/customer/master/getEquipmentList',
  85. method: 'POST',
  86. data: data
  87. });
  88. }
  89. // 新增客户需求
  90. addRequirement(data) {
  91. return this.request({
  92. url: '/task/requirement/add',
  93. method: 'POST',
  94. data: data
  95. });
  96. }
  97. // 修改客户需求
  98. updateForWechat(data) {
  99. return this.request({
  100. url: '/task/requirement/updateForWechat',
  101. method: 'POST',
  102. data: data
  103. });
  104. }
  105. // 修改状态
  106. updateRequirementStatus(data) {
  107. return this.request({
  108. url: '/task/requirement/update/status',
  109. method: 'POST',
  110. data: data
  111. });
  112. }
  113. // 查询服务销售订单列表
  114. saleOrderPage(data) {
  115. return this.request({
  116. url: '/task/service/sale/order/page',
  117. method: 'POST',
  118. data: data
  119. });
  120. }
  121. // 查询服务销售订单详情
  122. selectOneDetail(data) {
  123. return this.request({
  124. url: '/task/service/sale/order/selectOneDetail',
  125. method: 'GET',
  126. data: data
  127. });
  128. }
  129. // 获取设备列表
  130. equipmentPage(data) {
  131. return this.request({
  132. url: '/basic/equipment/page',
  133. method: 'POST',
  134. data: data
  135. });
  136. }
  137. // 根据id查询东富龙设备
  138. equipmentSelectById(data) {
  139. return this.request({
  140. url: '/basic/equipment/selectById',
  141. method: 'GET',
  142. data: data
  143. });
  144. }
  145. // 查询联系人
  146. selectContactsList(data) {
  147. return this.request({
  148. url: '/customer/contacts/selectContactsList',
  149. method: 'POST',
  150. data: data
  151. });
  152. }
  153. // 查询地址
  154. getAddressList(data) {
  155. return this.request({
  156. url: '/customer/master/getAddressList',
  157. method: 'POST',
  158. data: data
  159. });
  160. }
  161. // 获取区域列表(区分国内国外)
  162. selectByInternational(data) {
  163. return this.request({
  164. url: '/basic/area/selectByInternational',
  165. method: 'GET',
  166. data: data
  167. });
  168. }
  169. // 增加客户账号申请
  170. accountAddApply(data) {
  171. return this.request({
  172. url: '/customer/account/apply/addApply',
  173. method: 'POST',
  174. data: data
  175. });
  176. }
  177. // 获取指定手机号的账号申请验证码
  178. getApplyVerifCode(data) {
  179. return this.request({
  180. url: '/customer/account/apply/getApplyVerifCode',
  181. method: 'GET',
  182. data: data
  183. });
  184. }
  185. // 通过旧密码修改账号密码
  186. changePwdByCommon(data) {
  187. return this.request({
  188. url: '/customer/account/changePwdByCommon',
  189. method: 'POST',
  190. data: data
  191. });
  192. }
  193. // 获取指定账号的修改密码验证码
  194. getPwdVerifCode(data,loadingTips) {
  195. return this.request({
  196. url: '/customer/account/getPwdVerifCode',
  197. method: 'GET',
  198. data: data,
  199. loadingTips,
  200. });
  201. }
  202. // 通过验证码修改账号的密码
  203. changePwdByVerifCode(data) {
  204. return this.request({
  205. url: '/customer/account/changePwdByVerifCode',
  206. method: 'POST',
  207. data: data
  208. });
  209. }
  210. // 根据客户号获取区域经理
  211. selectRegionalManagerByCustomerCode(data) {
  212. return this.request({
  213. url: '/basic/regional/manager/selectRegionalManagerByCustomerCode',
  214. method: 'GET',
  215. data: data
  216. });
  217. }
  218. // 外部区域经理配置
  219. regionalManager(data) {
  220. return this.request({
  221. url: '/basic/regionalExternal/manager/oneDetail',
  222. method: 'GET',
  223. data: data
  224. });
  225. }
  226. // 满意度评分管理分页
  227. taskEvaluationPage(data) {
  228. return this.request({
  229. url: '/task/satisfaction/evaluation/page',
  230. method: 'POST',
  231. data: data
  232. });
  233. }
  234. // 满意度评分管理页面初始化
  235. taskEvaluationDic(data) {
  236. return this.request({
  237. url: '/task/satisfaction/evaluation/dic',
  238. method: 'POST',
  239. data: data
  240. });
  241. }
  242. // 满意度评分详情
  243. taskEvaluationDetail(data) {
  244. return this.request({
  245. url: '/task/satisfaction/evaluation/detail',
  246. method: 'GET',
  247. data: data
  248. });
  249. }
  250. // 满意度评分
  251. taskEvaluationUpdate(data) {
  252. return this.request({
  253. url: '/task/satisfaction/evaluation/update',
  254. method: 'POST',
  255. data: data
  256. });
  257. }
  258. // 修改客户账号
  259. updateAccount(data) {
  260. return this.request({
  261. url: '/customer/account/updateAccount',
  262. method: 'POST',
  263. data: data
  264. });
  265. }
  266. // 客户需求页面初始化
  267. requirementDic(data) {
  268. return this.request({
  269. url: '/task/requirement/dic',
  270. method: 'GET',
  271. data: data
  272. });
  273. }
  274. // 服务工程师列表
  275. serviceEngineerList(data) {
  276. return this.request({
  277. url: '/task/requirement/selectById',
  278. method: 'GET',
  279. data: data
  280. });
  281. }
  282. // 获取客户设备列表
  283. customerDevicePage(data) {
  284. return this.request({
  285. url: '/basic/equipment/customer/page',
  286. method: 'POST',
  287. data: data
  288. });
  289. }
  290. // 根据id查询客户设备
  291. customerEquipmentSelectById(data) {
  292. return this.request({
  293. url: '/basic/equipment/customer/selectById',
  294. method: 'GET',
  295. data: data
  296. });
  297. }
  298. // 新增客户设备信息
  299. addCustomerEquipment(data) {
  300. return this.request({
  301. url: '/basic/equipment/customer/add',
  302. method: 'POST',
  303. data: data
  304. });
  305. }
  306. // 编辑客户设备信息
  307. editCustomerEquipment(data) {
  308. return this.request({
  309. url: '/basic/equipment/customer/updateById',
  310. method: 'POST',
  311. data: data
  312. });
  313. }
  314. }