device-features.js 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853
  1. // 判断设备是否需要参数设置
  2. function getDeviceFeatures(devType) {
  3. // 默认参数设置(脉冲信息设置);默认没有端口管理
  4. var paramDefault = 'device-param.html';
  5. // portConfig: stop:远程停止设备, toggle: 禁用或启用设备
  6. var reObj = {param: paramDefault, port: false, portConfig: {stop: false, toggle: false}};
  7. //单机版或设备没有在线特性,不需要参数设置;某些蓝牙也需要参数设置就要特殊配置。
  8. if (!devType.online) {
  9. reObj.param = false;
  10. }
  11. var code = devType.code;
  12. var mcuVersion = devType.mcuVersion;
  13. var list = [
  14. {"code": "100310", "param": 'device-function-100310.html',},
  15. //足疗机,
  16. {"code": "100901", "param": false,},
  17. // 纸巾机,
  18. {"code": "110300", "param": 'device-function-rsd-110300.html',},
  19. //通用的串口洗衣机,
  20. {"code": "100308", "param": 'device-function.html',},
  21. //汇腾
  22. {"code": "100309", "param": 'device-function-huiteng-100309.html',},
  23. //红派
  24. {
  25. "code": "100902", "param": 'device-function-100902.html',
  26. paramOfflineSet: true,//该设备离线也能配置参数
  27. paramShow: function (callback) {
  28. getFeatureList("dealer", {list: ['free_24_hours']}, function (payload) {
  29. if (callback) {
  30. callback(payload.free_24_hours)
  31. }
  32. });
  33. }
  34. },
  35. // 喝水充电
  36. {"code": "110903", "param": 'device-function-110903.html', port: false,},
  37. {"code": "110904", "param": 'device-function-110903.html', port: false,},
  38. {"code": "110905", "param": 'device-function-110903.html', port: false,},
  39. //艾亚欣 吹风机
  40. {"code": "110102", "param": 'device-function-110102.html',},
  41. // 自己的洗衣机一体板
  42. {"code": "100127", "param": 'device-function-100127.html',},
  43. // 微付乐吹风机一体板
  44. {"code": "110100", "param": 'device-function-110100.html',},
  45. // 加水机
  46. {"code": "110700", "param": 'device-function-110700.html', port: true, portConfig: {stop: true, toggle: true}},
  47. // 文智嘉盛加水机
  48. {"code": "110901", "param": 'device-function-110901.html', port: true, portConfig: {stop: true, toggle: true}},
  49. //凯源新能充电桩,//问题单号1654892# 凯源新能:把设备管理中的参数配置去掉
  50. {"code": "100200", "param": false, port: true, portConfig: {stop: true, toggle: true}},
  51. //"郑州劲能电子",
  52. {
  53. "code": "100202",
  54. "param": 'device-function-100202.html',
  55. serverParam: 'serverParam-100206.html',
  56. port: true,
  57. portConfig: {stop: true, toggle: true}
  58. },
  59. //多利源100203:脉冲版本
  60. {"code": "100203", "param": paramDefault, port: true, portConfig: {stop: true}},
  61. // "助行电子" 没有该设备 不再开发
  62. {"code": "100204", "param": 'device-function-zixia.html'},
  63. //"子夏科技",
  64. {
  65. "code": "100205",
  66. "param": 'device-function-100205.html',
  67. serverParam: 'serverParam-100205.html',
  68. port: true,
  69. portConfig: {stop: true, toggle: true}
  70. },
  71. //墨小智 久恒
  72. {
  73. "code": "100206",
  74. "param": 'device-function-100206.html',
  75. serverParam: 'serverParam-100206.html',
  76. serviceFeePackage: 'service-fee.html',
  77. port: true,
  78. portConfig: {stop: true, toggle: true}
  79. },
  80. // 功率计费
  81. {
  82. "code": "101206",
  83. "param": 'device-function-101206.html',
  84. port: true,
  85. portConfig: {stop: true, toggle: true}
  86. },
  87. // 支持和动新的刷卡协议 刷卡流程 0x10 -- 0x2D
  88. {
  89. "code": "1002061",
  90. "param": 'device-function-100202.html',
  91. serverParam: 'serverParam-100206.html',
  92. serviceFeePackage: 'service-fee.html',
  93. port: true,
  94. portConfig: {stop: true, toggle: true}
  95. },
  96. // 久恒投币设置保险丝版本(投币可以设置3种投币时间)
  97. {
  98. "code": "1002062",
  99. "param": 'device-function-1002062.html',
  100. serverParam: 'serverParam-100206.html',
  101. serviceFeePackage: 'service-fee.html',
  102. port: true,
  103. portConfig: {stop: true, toggle: true}
  104. },
  105. // 和现网兼容. 已经有客户使用该类型. 所有配置和100206一致. 后续可以在100206基础上建立服务费计费类型
  106. {
  107. "code": "1002063",
  108. "param": 'device-function-100206.html',
  109. serverParam: 'serverParam-100206.html',
  110. serviceFeePackage: 'service-fee.html',
  111. port: true,
  112. portConfig: {stop: true, toggle: true}
  113. },
  114. //墨小智v2
  115. {"code": "100207", "param": 'device-function-100207.html', port: true, portConfig: {stop: true, toggle: true}},
  116. //中创
  117. {"code": "100209", "param": 'device-function-zc.html', port: true},
  118. //"电川科技新版本",
  119. {
  120. "code": "100210",
  121. "multiple": [
  122. {
  123. version: "default",
  124. "param": 'device-function-100205.html',
  125. serverParam: 'serverParam-100205.html',
  126. port: true,
  127. portConfig: {stop: true,}
  128. },
  129. {
  130. version: "0x0005",
  131. "param": 'device-function-dcv2.html',
  132. port: true,
  133. portConfig: {stop: true,}
  134. },
  135. ]
  136. },
  137. {
  138. "code": "1002101",
  139. "param": 'device-function-1002101.html',
  140. serverParam: 'serverParam-100205.html',
  141. port: true,
  142. portConfig: {stop: true, toggle: true}
  143. },
  144. {
  145. "code": "102210",
  146. "param": 'device-function-100205.html',
  147. serverParam: 'serverParam-100205.html',
  148. serviceFeePackage: 'service-fee.html',
  149. port: true,
  150. portConfig: {stop: true,}
  151. },
  152. {
  153. "code": "103210",
  154. "multiple": [
  155. {
  156. version: "default",
  157. "param": 'device-function-100205.html',
  158. serverParam: 'serverParam-100205.html',
  159. port: true,
  160. portConfig: {stop: true,}
  161. },
  162. {
  163. version: "0x0005",
  164. "param": 'device-function-dcv2.html',
  165. port: true,
  166. portConfig: {stop: true,}
  167. },
  168. ]
  169. },
  170. // 墨小智v3
  171. {"code": "100211", "param": 'device-function-mo-v3.html', port: true, portConfig: {stop: true, toggle: true}},
  172. //海鸟100212
  173. {"code": "100212", "param": 'device-function-hainiao.html', port: true, portConfig: {stop: true}},
  174. {"code": "1002121", "param": 'device-function-1002121.html', port: true, portConfig: {stop: true}},
  175. {"code": "1012121", "param": 'device-function-1012121.html', port: true, portConfig: {stop: true}},
  176. {"code": "1002122", "param": 'device-function-1002122.html', port: true, portConfig: {stop: true}},
  177. // 海鸟新主板对接参数设置
  178. {"code": "1002123", "param": 'device-function-1002123.html', port: true, portConfig: {stop: true}},
  179. //四江100213
  180. {
  181. "code": "100213",
  182. "param": 'device-function-huisijiang.html',
  183. port: true,
  184. portConfig: {stop: true, toggle: true}
  185. },
  186. //芜湖100214
  187. {"code": "100214", "param": false, port: true, portConfig: {toggle: true}},
  188. //鸿卓100215
  189. {
  190. "code": "100215",
  191. "param": 'device-function-hongzhuo.html',
  192. port: true,
  193. portConfig: {stop: true, toggle: true}
  194. },
  195. //朗鑫100216
  196. {
  197. "code": "100216",
  198. "param": 'device-function-huisijiang.html',
  199. port: true,
  200. portConfig: {stop: true, toggle: true}
  201. },
  202. {
  203. code: '1002161',
  204. param: 'device-function-1002161.html',
  205. port: true,
  206. portConfig: { stop: true, toggle: true },
  207. },
  208. //长兴聚展 100217
  209. {"code": "100217", "param": "device-function-100217.html", port: true, portConfig: {stop: true}},
  210. // 长兴聚展 烟感版本
  211. {"code": "1002171", "param": "device-function-1002171.html", port: true, portConfig: {stop: true}},
  212. // 长兴聚展 烟感版本
  213. {"code": "101217", "param": "device-function-101217.html", port: true, portConfig: {stop: true}},
  214. //德力西
  215. {"code": "100218", "param": "device-function-100218.html", port: true, portConfig: {stop: true}},
  216. //雪影
  217. {"code": "100219", "param": "device-function-xy.html", port: true},
  218. // 宇泽
  219. {"code": "100220", "param": 'device-function-zixia.html', port: true, portConfig: {stop: true, toggle: true}},
  220. // 艾亚欣5档
  221. {"code": "100221", "param": 'device-function-100221.html', port: true, portConfig: {stop: true, toggle: true}},
  222. // 苏州高博锐五档
  223. {"code": "100272", "param": 'device-function-100272.html', port: true, portConfig: {stop: true, toggle: true}},
  224. //安心智能
  225. {"code": "100222", "param": 'device-function-100222.html', port: true, portConfig: {stop: true, toggle: true}},
  226. // 金泽 只有从机管理,没有参数设置
  227. {"code": "100223", "param": false},
  228. // 久恒保险丝版本的特性
  229. {"code": "100224", "param": "device-function-100224.html", port: true, portConfig: {stop: true, toggle: true}},
  230. // 宇泽5档参数设置页面
  231. {"code": "100225", "param": 'device-function-100225.html', port: true, portConfig: {stop: true, toggle: true}},
  232. // 宇泽5档参数设置页面
  233. {"code": "100278", "param": 'device-function-100278.html', port: true, portConfig: {stop: true, toggle: true}},
  234. // 宇泽5档参数设置页面
  235. {"code": "100279", "param": 'device-function-100279.html', port: true, portConfig: {stop: true, toggle: true}},
  236. // 和100210功能一样2019.7.10
  237. {
  238. "code": "100226", "param": 'device-function-zixia.html',
  239. port: true,
  240. portConfig: {stop: true}
  241. },
  242. // 航鑫
  243. {"code": "100227", "param": "device-function-100227.html"},
  244. {"code": "1002271", "param": "device-function-1002271.html"},
  245. // 海鸟3路
  246. // {"code": "100229 需要修改", "param": 'device-function-hainiao3.html', port: true, portConfig: {stop: true}},
  247. // 旭洲电子
  248. {"code": "100229", "param": 'device-function-100229.html', port: true, portConfig: {stop: true}},
  249. // 安骑换电柜
  250. {"code": "100230", "param": 'device-function-100230.html', port: true, portConfig: {toggle: true}},
  251. {"code": "1002301", "param": 'device-function-100230.html', port: true, portConfig: {toggle: true, charge: true}},
  252. {
  253. "code": "100231",
  254. "param": 'device-function-huisijiang.html',
  255. port: true,
  256. portConfig: {stop: true, toggle: true}
  257. },
  258. // 电川应用版
  259. {"code": "100232", "param": 'device-function-100232.html', port: true, portConfig: {stop: true, toggle: true}},
  260. // 光法充电桩
  261. {
  262. "code": "100233",
  263. "param": 'device-function-100206.html',
  264. serverParam: 'serverParam-100206.html',
  265. port: true,
  266. portConfig: {stop: true, toggle: true}
  267. },
  268. //【朗鑫答标】支持充电桩的温感控制----支持门限配置
  269. {"code": "100234", "param": 'device-function-100234.html',},
  270. // 得康
  271. {"code": "100235", "param": 'device-function-100235.html', port: true, portConfig: {stop: true}},
  272. // 宝来的设备
  273. {"code": "100236", "param": 'device-function-100236.html', port: true, portConfig: {stop: true, toggle: true}},
  274. // 微付乐
  275. {"code": "100239", "param": 'device-function-100239.html', port: true, portConfig: {stop: true, toggle: true}},
  276. {
  277. "code": "100249",
  278. "param": 'device-function-100249.html',
  279. serviceFeePackage: 'service-fee-100249.html',
  280. port: true,
  281. portConfig:
  282. {
  283. stop: true,
  284. toggle: true
  285. }
  286. },
  287. //
  288. {"code": "100240", "param": 'device-function-100240.html', port: true, portConfig: {toggle: true}},
  289. {"code": "100241", "param": 'device-function-100241.html'},
  290. {"code": "100242", "param": 'device-function-100242.html', port: true, portConfig: {stop: true}},
  291. // 海鸟V2
  292. {"code": "100243", "param": 'device-function-hainiao.html', port: true, portConfig: {stop: true}},
  293. // 强隆
  294. {"code": "100246", "param": 'device-100246.html', port: true, portConfig: {stop: true}},
  295. {"code": "100247", "param": 'device-100247.html', port: true, portConfig: {stop: true}},
  296. // 云充充电桩
  297. {"code": "100248", "param": 'device-function-100248.html', port: true, portConfig: {stop: true, toggle: true}},
  298. // 2106179# 新增设备参数设置 100250,表单展开到一级的模式
  299. {"code": "100250", "param": 'device-function-100250.html', port: true, portConfig: {stop: true}},
  300. // 一体板 精简版
  301. {"code": "100251", "param": 'device-function-100251.html', port: true, portConfig: {stop: true, toggle: true}},
  302. {
  303. "code": "100252",
  304. "param": 'device-function-100252.html',
  305. serverParam: 'serverParam-100205.html',
  306. port: true,
  307. portConfig: {stop: true}
  308. },
  309. // 1002104,1002524 丰图 高博锐充电桩
  310. {
  311. "code": "1002104",
  312. "param": 'device-function-100205.html',
  313. serverParam: 'serverParam-1002104.html',
  314. port: true,
  315. portConfig: {stop: true}
  316. },
  317. {
  318. "code": "1002524",
  319. "param": 'device-function-100205.html',
  320. serverParam: 'serverParam-1002104.html',
  321. port: true,
  322. portConfig: {stop: true}
  323. },
  324. {"code": "100255", "param": 'device-function-100255.html', port: true, portConfig: {stop: true, toggle: true}},
  325. {
  326. "code": "101255",
  327. "param": 'device-function-101255.html',
  328. serviceFeePackage: 'service-fee-101255.html',
  329. port: true,
  330. portConfig: {stop: true, toggle: true}
  331. },
  332. // 小科豆
  333. {
  334. "code": "100256", "param": 'device-function-100256.html', port: true,
  335. serviceFeePackage: 'service-fee-100256.html',
  336. serverParam: 'serverParam-100256.html',
  337. portConfig: {stop: true, toggle: true}
  338. },
  339. // 小科豆
  340. {
  341. "code": "102256", "param": 'device-function-100256.html', port: true, portConfig: {stop: true, toggle: true}
  342. },
  343. // 微付乐汽车充电桩
  344. {"code": "100257", "param": 'device-function-100257.html', port: true, portConfig: {stop: true}},
  345. // 微付乐汽车充电桩双枪
  346. {"code": "100608", "param": 'device-function-100608.html', port: true, portConfig: {stop: true, toggle: true}},
  347. // 久恒双串口
  348. {
  349. "code": "100258",
  350. "param": 'device-function-100258.html',
  351. serverParam: 'serverParam-100206.html',
  352. port: true,
  353. portConfig: {stop: true, toggle: true}
  354. },
  355. // 和动V3
  356. {
  357. "code": "100259",
  358. "param": 'device-function-100259-all.html',
  359. serverParam: 'serverParam-100259.html',
  360. port: true,
  361. portConfig: {stop: true, toggle: true}
  362. },
  363. // 超辰
  364. {"code": "100260", "param": "device-function-100260.html", port: true, portConfig: {stop: true}},
  365. // 支持德力西 对接柏来的充电插座
  366. {
  367. "code": "100261",
  368. "param": false,// 暂时没有参数
  369. "nodeManager": true,//主节点只有节点管理
  370. port: false,// 暂时没有端口,后续可能有主节点的批量设置子节点的端口
  371. },
  372. {
  373. "code": "100262", "param": "device-function-100262.html",
  374. port: true,
  375. portConfig: {stop: true, toggle: false}
  376. },
  377. // 电川插座 组网
  378. {
  379. "code": "100263",
  380. "nodeManager": true,
  381. "param": false,//网关没有参数配置
  382. port: false,//网关没有端口管理
  383. },
  384. {
  385. "code": "100264", "param": "device-function-100264.html",
  386. port: true,
  387. portConfig: {stop: true, toggle: false}
  388. },
  389. // 100267 昌源10路,表单展开到一级的模式
  390. {
  391. "code": "100267", "param": "device-function-100267.html",
  392. port: true,
  393. portConfig: {stop: true}
  394. },
  395. // 1002671 昌原6代十路机
  396. {
  397. "code": "1002671", "param": "device-function-1002671.html",
  398. port: true,
  399. portConfig: {stop: true}
  400. },
  401. // 102267 昌原5代十路机,支持在线卡
  402. {
  403. "code": "102267", "param": "device-function-102267.html",
  404. port: true,
  405. portConfig: { stop: true }
  406. },
  407. // 基于100202 劲能 复制
  408. {
  409. "code": "100268",
  410. "param": "device-function-100268.html",
  411. serverParam: 'serverParam-100268.html',
  412. port: true,
  413. portConfig: {stop: true, toggle: true}
  414. },
  415. // 微付乐插座100269; 单表单全保存、跳转单独设置部分参数、vue渲染的模式
  416. {
  417. "code": "100269", "param": "device-function-100269.html",
  418. // serverParam: 'serverParam-100269.html',
  419. port: true,
  420. portConfig: {stop: true, toggle: true}
  421. },
  422. {
  423. "code": "100273", "param": "device-function-100273.html",
  424. // serverParam: 'serverParam-100273.html',
  425. port: true,
  426. portConfig: {stop: true, toggle: true}
  427. },
  428. {
  429. "code": "100280", "param": "device-function-100280.html",
  430. port: true,
  431. portConfig: {stop: true, toggle: true}
  432. },
  433. // 微付乐mini板100270; 单表单全保存、跳转单独设置部分参数、vue渲染的模式
  434. {
  435. "code": "100270", "param": "device-function-100270.html",
  436. port: true,
  437. portConfig: {stop: true, toggle: true}
  438. },
  439. {
  440. "code": "101270", "param": "device-function-101270.html",
  441. port: true,
  442. portConfig: {stop: true, toggle: true}
  443. },
  444. {
  445. "code": "100271", "param": "device-function-100271.html",
  446. // serverParam: 'serverParam-100271.html',
  447. port: true,
  448. },
  449. // 奥强 插座网关
  450. {
  451. "code": "100274", "param": "device-function-100275.html",
  452. port: true,
  453. portConfig: {stop: true, toggle: true}
  454. },
  455. // 奥强 插座子节点
  456. {
  457. "code": "100275", "param": "device-function-100275.html",
  458. port: true,
  459. portConfig: {stop: true, toggle: true}
  460. },
  461. // 高博锐自己主板
  462. {
  463. "code": "100276",
  464. "param": 'device-function-100276.html',
  465. // serverParam: 'serverParam-100259.html',
  466. port: true,
  467. portConfig: {stop: true, toggle: true}
  468. },
  469. // 柏来主节点新版本:本身自带两个插座
  470. {
  471. "code": "100277",
  472. "param": 'device-function-100262.html',
  473. port: true,
  474. portConfig: {stop: true, toggle: true}
  475. },
  476. // 郑州科航的设备 仿造DC
  477. {
  478. "code": "100281",
  479. "param": 'device-function-100281.html',
  480. port: true,
  481. portConfig: {stop: true}
  482. },
  483. {
  484. "code": "101281",
  485. "param": 'device-function-101281.html',
  486. port: true,
  487. portConfig: {stop: true}
  488. },
  489. {
  490. "code": "101280", "param": "device-function-101280.html",
  491. port: true,
  492. portConfig: {stop: true, toggle: true}
  493. },
  494. {
  495. "code": "102280", "param": "device-function-101280.html",
  496. port: true,
  497. portConfig: {stop: true, toggle: true}
  498. },
  499. {
  500. "code": "101249", "param": "device-function-101249.html",
  501. port: true,
  502. portConfig: {stop: true, toggle: true}
  503. },
  504. {
  505. "code": "100284", "param": "device-function-100284.html",
  506. port: true,
  507. portConfig: {stop: true, toggle: true}
  508. },
  509. // 苏州贝斯云新设备配置页面
  510. {
  511. "code": "100286", "param": "device-function-100286.html",
  512. port: true,
  513. portConfig: {stop: true, toggle: true}
  514. },
  515. // 苏州贝斯云新设备配置页面
  516. {
  517. "code": "100288", "param": "device-function-100288.html",
  518. port: true,
  519. portConfig: {stop: true, toggle: true}
  520. },
  521. // 宇泽5档新版本
  522. {
  523. "code": "100289",
  524. "param": 'device-function-100289.html',
  525. serverParam: 'serverParam-100205.html',
  526. port: true,
  527. portConfig: {stop: true, toggle: true},
  528. },
  529. // 宇泽5档新版本服务费版本
  530. {
  531. "code": "101289",
  532. "param": 'device-function-100289.html',
  533. serverParam: 'serverParam-100205.html',
  534. serviceFeePackage: 'service-fee.html',
  535. port: true,
  536. portConfig: {stop: true, toggle: true},
  537. },
  538. //杭州电川科技协议5.6版本
  539. {
  540. "code": "100290",
  541. "param": 'device-function-100290.html',
  542. port: true,
  543. portConfig: {stop: true, toggle: true},
  544. },
  545. {
  546. "code": "100291", "param": "device-function-100291.html",
  547. port: true,
  548. serverParam: 'serverParam-100291.html',
  549. portConfig: {stop: true, toggle: false}
  550. },
  551. {
  552. // 有特殊的1-12端口的vue配置
  553. "code": "100292", "param": "device-function-100292.html",
  554. port: true,
  555. portConfig: {stop: true, toggle: false}
  556. },
  557. //"创维洗衣机",
  558. {"code": "100300", "param": false,},
  559. //投石洗衣机
  560. {"code": "100303", "param": 'device-function-100303.html',},
  561. //彩忆洗衣机的
  562. {"code": "100305", "param": 'device-function-100305.html',},
  563. {"code": "100306", "param": false,},
  564. {"code": "1003051", "param": 'device-function-1003051.html',},
  565. {"code": "101305", "param": 'device-function-1003051.html',},
  566. {"code": "1003053", "param": 'device-function-1003053.html',},
  567. //宇川一卡通
  568. {"code": "1003052", "param": 'device-function-1003052.html',},
  569. // 沥森洗车机
  570. {"code": "100500", "param": 'device-function-lisen.html',},
  571. // 蓝光科技
  572. {"code": "100501", "param": 'device-function-100501.html'},
  573. // 昌源的
  574. {"code": "100600", "param": 'device-function-100600.html', port: true, portConfig: {stop: true}},
  575. {"code": "100605", "param": 'device-function-100600.html', port: true, portConfig: {stop: true}},
  576. // 郑州和喜 完全模拟昌原协议做的 有分离的趋势
  577. {"code": "1006001", "param": 'device-function-100600.html', port: true, portConfig: {stop: true}},
  578. // 坤元的
  579. {"code": "100607", "param": 'device-function-100607.html', port: true, portConfig: {stop: true}},
  580. // 100601用芯科技 没有端口
  581. {"code": "100601", "param": 'device-function-100601.html', port: true},
  582. {"code": "100602", "param": false},
  583. {"code": "100604", "param": 'device-function-100604.html', port: true, portConfig: {stop: true, toggle: true}},
  584. // 全部保存模式
  585. {"code": "100606", "param": 'device-function-100606.html', port: true, portConfig: {stop: true, toggle: true}},
  586. // 电川汽车桩添加电费配置页面
  587. {
  588. "code": "100610",
  589. "param": '/dealer/index.html#/device/params/100610',
  590. port: true,
  591. portConfig: {stop: true, toggle: true}
  592. },
  593. {
  594. "code": "100611", "param": "device-function-100611.html",
  595. port: true,
  596. portConfig: {stop: true, toggle: true}
  597. },
  598. {"code": "100612", "param": 'device-function-100608.html', port: true, portConfig: {stop: true, toggle: true}},
  599. // 微服乐home
  600. {
  601. "code": "100614",
  602. "param": '/dealer/index.html#/device/params/100614',
  603. port: true,
  604. portConfig: {stop: true, toggle: true}
  605. },
  606. // 微服乐home 双枪
  607. {
  608. "code": "100615",
  609. "param": '/dealer/index.html#/device/params/100614',
  610. port: true,
  611. portConfig: {stop: true, toggle: true}
  612. },
  613. // 水控设备
  614. {"code": "110400", "param": 'device-function-shuikong.html',},
  615. // 售货柜
  616. {"code": "110000", "param": false, stockPath: '/stock/stockDetailForMultiple'},
  617. {"code": "111000", "param": false, stockPath: '/stock/stockDetailForMultiple'},
  618. {
  619. "code": "100237",
  620. "param": 'device-function-100237.html',
  621. port: true,
  622. portConfig: {stop: true, toggle: true}
  623. },
  624. {
  625. "code": "100803",
  626. "param": 'device-function-100803.html',
  627. port: true,
  628. portConfig: {stop: true, toggle: true}
  629. },
  630. {
  631. "code": "1008031",
  632. "param": 'device-function-1008031.html',
  633. port: true,
  634. portConfig: {stop: true, toggle: true}
  635. },
  636. // 储物柜 ;'/dealer/index.html#/locker'
  637. {"code": "110005", "param": 'device-function-110005.html', port: true, portConfig: {unlock: true}},
  638. // 门禁系统
  639. {"code": "101000", "param": 'device-function-101000.html',},
  640. // 设备管理需要精简很多菜单
  641. {
  642. "code": "110602", "param": 'device-function-110602.html',
  643. paramOfflineSet: true,
  644. accountParam: 'accountParam-110602.html'
  645. },
  646. // 真谷多饮料机
  647. {"code": "101100", "param": 'device-function-101100.html',},
  648. // 娃娃机
  649. {"code": "110200", stockPath: '/stock/stockDetailForGoods'},
  650. {"code": "110201", "param": 'device-function-110201.html', stockPath: '/stock/stockDetailForGoods'},
  651. {"code": "110202", "param": 'device-function-110202.html', stockPath: '/stock/stockDetailForGoods'},
  652. {"code": "110203", "param": 'device-function-110203.html', stockPath: '/stock/stockDetailForGoods'},
  653. // 兑币机
  654. {"code": "110204", "param": 'device-function-110204.html',},
  655. // ywt 粤万通换电柜
  656. {"code": "130001", "param": 'device-function-130001.html', port: true, portConfig: {toggle: true, charge: true}},
  657. //以下为蓝牙设备
  658. {"code": "200001", "param": paramDefault},
  659. {"code": "200002", "param": paramDefault},
  660. {"code": "200003", "param": paramDefault},
  661. {"code": "200005", "param": paramDefault},
  662. {"code": "200006", "param": paramDefault},
  663. // 云快充 分时电价
  664. {
  665. "code": "300001",
  666. "param": false,
  667. port: true,
  668. portConfig: {stop: true, toggle: true}
  669. },
  670. ];
  671. for (var index in list) {
  672. var item = list[index];
  673. if (item.code == code) {
  674. if (item.multiple) {
  675. // 有的设备有不同的版本,需要特殊适配
  676. var mList = item.multiple
  677. reObj = mList[0];//默认取第0个
  678. for (var index2 in mList) {
  679. var mItem = mList[index2];
  680. if (mcuVersion === mItem.version) {
  681. reObj = mItem;
  682. break
  683. }
  684. }
  685. } else {
  686. reObj = item;
  687. }
  688. break;
  689. }
  690. }
  691. if (reObj.param) {
  692. if (reObj.param.indexOf('/dealer/') === 0) {
  693. // nothing
  694. } else {
  695. reObj.param = '/app/device-param/' + reObj.param
  696. }
  697. }
  698. if (reObj.serverParam) {
  699. if (reObj.serverParam.indexOf('/dealer/') === 0) {
  700. // nothing
  701. } else {
  702. reObj.serverParam = '/app/device-param/' + reObj.serverParam
  703. }
  704. }
  705. if (reObj.accountParam) {
  706. if (reObj.accountParam.indexOf('/dealer/') === 0) {
  707. // nothing
  708. } else {
  709. reObj.accountParam = '/app/device-param/' + reObj.accountParam
  710. }
  711. }
  712. if (reObj.serviceFeePackage) {
  713. if (reObj.serviceFeePackage.indexOf('/dealer/') === 0) {
  714. // nothing
  715. } else {
  716. reObj.serviceFeePackage = '/app/device-service-fee/' + reObj.serviceFeePackage
  717. }
  718. }
  719. if (reObj.portConfig && reObj.portConfig.param) {
  720. reObj.portConfig.param = '/app/device-port/' + reObj.portConfig.param
  721. }
  722. return reObj;
  723. }