完成签约之后直接添加人员,录入下发凭证
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2761 lines
130 KiB

  1. webpackJsonp([15],{
  2. /***/ "+8yl":
  3. /***/ (function(module, exports) {
  4. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAgAElEQVR4Xu1dB3hcxbX+5967fVe72qZmYYNcwQaMgVBNTUhieih+vBDaA0JISMhLKB81PAdTEhI6IZRASIAYeDxjOrGx6WAcmg3Y4IJtaYvaavveMu87syvFlotW0jaHjL/9VrLmTjn/nDOnzVyGf4HS3t4+VlGUsZzzcYyxZs75ZM65nzFmA+DknDsAOBhjbpou5zwGIMkYSwJIMMZSnPNOxthnnPMOXdfXGIaxZsyYMRt2dPKwHW0CoVDIIcsyAXgA5/w7jLFxnPNmAAK8EpZuACEA6wC8pSjK25zzFX6/f2MJ+yh7UzsEwOFwuI1zPosxNgPA/gAmlJ0yeU4HY5uRqJcx9iLn/FVFURb4fL6a5/CaBTgajU40m83fTafTxwH4RkHcVgLXYvtIcs4XAZgvy/KCQCDQUeyDlaxXcwBHo9GjOefncc6PMAzDLklSJekx0r6iAF7SNO3ulpaWN0baSDmeqwmAV61aZXG73edyzk8HsG85JlqJNkmkK4ryiiRJD3q93r9Wos+h+qgqwJxz1tnZ+V+GYfwUwG5DDXZH+LthGGKYsiwvYYzdHAgEFlRz3FUDuK+v7/hkMjlHkqR/CWC3A+Irdrt9jsvlWlwNoCsOcEdHx66SJM0BcEI1JlzpPklsU2GMPSHL8lV+v/+zSo6hYgBzzpWenp5fZLPZqyRJsldykjXUF5lZ/x0MBh+o1JgqAnA0Gt1L1/V7OeczdhCtuKz0Z4w9brFYfuR2u8mZUtZSdoDb29t/LsvyDQBMZZ3Jjtf4Bl3Xf9rc3PxUOYdeNoB7e3vrNU37o6Zp3xvkDSrnfHaotknjtlqtt3k8nl8wxtRyDL4sAG/cuHGSoijPcM4n/Bvc7c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X5ofKVbfPPZY4ZuuVGoQ+cAtFssNXq/38m0CHAqFpgGggMKQDpBSrXzqyu5w4J6bb8KSF18UQYYdpRCVdJ0jl1NhsZggSUyYveTR+s6J38MPLrxQBCIqkftF+7Asy+1+v39i4fYgQcbNgAyHw9cBuKqSBCaAKYXmrrlz8cbfX9mhAE4kslBkhuYWH2J9acGtEmPo7uzE8aedhtPO/6FILarQHtyfR3Z0U1PTs/0YDgZ4OYBdqwHwndf/Gm8uXFjTABPHGgZHJqOiL55BQ7AOZ599MFw2G35724tCWzaZZBFoOP2HF+CkM89CX6y37Fr0ILz+2NDQcN4WAIdCIbrJZsTZeyNdFP0cfPucOXjr1YVwe+pH2lRZnzM4R7wvA003MKa5HgfstwuOPHxXjNltDD5c8hnm3PisCDCYTTIiHR244NLLcOzs2RWxgwdNPKrr+rjm5ubUZiI6Fov9TzKZvLLSNmit7sFkj2ezKrIZDRwcVosJ43cJYsZe47DP3uMwttWHXE4TIbYVn3fg5t+/iGxOg0lm+bDh1VfjkG8dJcR1JUtB2Zrl9Xqf2wzgaDT6mq7rB1VQv8orAQUt+uG77sQLTz1VFS06n3GZz7zUNAPZjCpEsT/gQmuLB1MmNWPari2YOLERDo8d2XgG6UIdu92Mje09uPGW59HVnYQiiVxm/OzaazFljz1F6m0lC+33DofjDrfb/ZMBgOmuR0mSVjLGzJUczADALhfm/elBPP3IIyKDo1yLjDTcvOZrCO7LZjUBqNVmgs1qgs1mRjDgwridfBjb6sVOO/mwU6sPDrtZeNjSaVVw9abjoz2XwP71jQuwdl0XJKahobkZl14/VyTnkQu2CuXjYDC4F2NME0pWJBI5hXP+eBUGIrokR8fzT87Dn+++Gw5n6QBWVR3iQ44GDkgyA/2z2UwIBFwI+Fziu6GhDk0NbvFxuaxwOiww2cxQMypSKcp/3nb2JoFttSp
  5. /***/ }),
  6. /***/ "LHqX":
  7. /***/ (function(module, exports) {
  8. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAA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Ua3vwPoA/ANEb1nWdaHbW1tuTeQRP4Da/5Ec8J9cncAAAAASUVORK5CYII="
  9. /***/ }),
  10. /***/ "dkzI":
  11. /***/ (function(module, exports) {
  12. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAADUCAYAAAAsniWLAAAb6ElEQVR4Xu1dB3gUZd7/zWbTe4AkCClIFRSVJgKHJ3IHAhKBgB4oqJ/t7jzOhved6Gc4QA8iCQHBLiCWAxHlAEHlQD9AEUFpIYVACoS0Deltk8x7z39mZ3Z2dnazqeyGzPOkbWZ25/29/96GQzsfi5el9eJ0DbfzrPEGAIMYYwPA+HAGPhAM/gw8GGMVYKyMgeWD8emMIZXpWApfz/2YuHxMbnveItceb/7yaynDwWEuGKbwYIPAhEUCYOJP+hv0k76b/if8bvqf8lzwqQzsKw78J6uWTjje1vfbZgC8sCLV35PTPwGefxhgg80L1FhUcwCwOJedZTzb4NHo+fbKleMq2gKMVgMQl5gZxDfgr2D8QoAPEXdY2k0bu9pyAMT3ZuwKGFsDL33S6rg7S1sDRIsBYIxxSxKyFjCeiwf47iKJq8m53QAwfRZv4MAWrf7n5E0ARzfQ7KNFAMQlXOwHxm8EY2MteLvDARDlCnh2mGdswdr4Keebi0CzAViy6tJsgH+PMRYgCzVJuNkAwE3HQa93h16vh5ubG9zcdOA4+hI/njEePM+joaEeDQ1G1BvrYDTWoL7eqBKYJvZSUpv82ayc5/lH34if9llzQHAYACL5fyTmxoOx56wXbpLuCgB0bjp4eXrCw8MDOp1O3CnpoHUo/xZhsPg//d3Q2IDamkpUVZWh3lhr1hzaAEiaZtXalVMXOcoSDgEQF5fsoQsI2sDA5pIQsgcA7bK3lxf0ejfVRjQfACVTG+tqUF5ejNoaMhkU8sZMAbKq5Rj7JMS35uG4uDnGpqihSQCExQcF7wDPJkuqTQsAN50OPj6ecNPrTZuplkmtA0CiEAKi5Eo+jMZqS9tCAYRpk/Z2862NaQoEuwAQ2S9bXbCZgZ+nVG1qALy9PeHp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TYSI1LG2wEWIJJvq9QYkf3kO/1RUtqILf9W8LzKnJHYrMUA2EmNiZmhZgJA/NKJkqMtA4CQc/n0uCIx4rAQlCNFjMHVCySUmaEWASDaBi5bItM8Z0irQkRCkIqkqDzO8pCES0fUCcoGicjPjEeR/SIpzcyQQ4aQkgWUlaJU8EwgSAXPUlTXbCepXFOlQe1grbAjWoDK5Gjx5PNLBZM2iqTajgIEJcIYXKFQUuJ1dXa4xTJAq1j6apTKVlZcQUkTpbJWRVKt1QJKFlDX54rF0l5woypxTX/B0tRVe/uOFkg4Wiwt3WuHUIDEEtQy4wzl8h0mA8wLd6qGCVuVom0vBO0BoCRBq5YZnQ4cfQklpww8T6nqRqFDpLHBCGO9Eca66ua2zHS8FnAUgFY1Tlr2DUptc+YONY2OEadgAUsh1IrO0S4AlG22drvGuligwy3BLhlgJYA6unWWjCtJBZt/dglB65aZtvcG1abw1Wme7qKALhbokgFdQrBLC9jsHe7QgEiXFrgqM0S61GCXGuxUajC0h6cwNCW/0NTkZDV1ykXc4bvGBaOmthGHj5aY4nDWAREfHx2qqhosRmmteGWUkOnZ9OlZnEkt0Ri75QIAzJoaiqGDxb7ANe9eQGFxnTgKRzF8ZXB/Xzwwpy/q6hoR/8ZpVFTVC6GuTgEALfS5J6MRGOCOsvJ6xK/PsAIgZlI4bhsRirJyI15LOmXa6U4EwA39fPCHmb0EKjiVXIqt/861oIC/Pt4fYT28ceRYIb7ck9P5ACByjp0WhqFDxHa4L3ZfwrGTYvWnj7cOi58ZIrxeUFiD2roGuTYuKkJknYLCKtTUml9XZqEPHMzGqWTqG7CeHuN0IbHn/3i9wAo5l6rw9oeZAgDTf0/k30OVWnf8z5170rH/4EXXAIBYoVdPL3z7faHMAv/33GBQBWpaRiku59MMAbF
  13. /***/ }),
  14. /***/ "gL2q":
  15. /***/ (function(module, exports) {
  16. // removed by extract-text-webpack-plugin
  17. /***/ }),
  18. /***/ "rdqC":
  19. /***/ (function(module, exports) {
  20. // removed by extract-text-webpack-plugin
  21. /***/ }),
  22. /***/ "sSoz":
  23. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24. "use strict";
  25. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  26. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  27. var stringify = __webpack_require__("mvHQ");
  28. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  29. // EXTERNAL MODULE: ./src/components/zTree1.vue + 2 modules
  30. var zTree1 = __webpack_require__("6Ljo");
  31. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/cardReader/index.vue
  32. //
  33. //
  34. //
  35. //
  36. //
  37. //
  38. //
  39. //
  40. //
  41. //
  42. //
  43. //
  44. //
  45. //
  46. //
  47. //
  48. //
  49. //
  50. //
  51. //
  52. //
  53. //
  54. //
  55. //
  56. //
  57. //
  58. //
  59. var strls = "";
  60. var errorno = "";
  61. //控制字定义,控制字指定,控制字的含义请查看本公司网站提供的动态库说明
  62. //javascript无法自定义常量, 你可以使用变量代替
  63. var BLOCK0_EN = 0x01; //读第一块的(16个字节)
  64. var BLOCK1_EN = 0x02; //读第二块的(16个字节)
  65. var BLOCK2_EN = 0x04; //读第三块的(16个字节)
  66. var NEEDSERIAL = 0x08; //仅读指定序列号的卡
  67. var EXTERNKEY = 0x10; //用明码认证密码,产品开发完成后,建议把密码放到设备的只写区,然后用该区的密码后台认证,这样谁都不知道密码是多少,需要这方面支持请联系
  68. var NEEDHALT = 0x20; //读/写完卡后立即休眠该卡,相当于这张卡不在感应区。要相重新操作该卡必要拿开卡再放上去
  69. var myctrlword = 0;
  70. var myareano = 0;
  71. var authmode = 0;
  72. var mypiccserial = "";
  73. var mypicckey = "";
  74. var piccdata0_2 = "";
  75. var mypicckey_old = ""; //旧密码
  76. var mypicckey_new = ""; //新密码
  77. var IcCardReader = document.getElementById("IcCardReader");
  78. /* harmony default export */ var cardReader = ({
  79. name: "cardReader",
  80. data: function data() {
  81. return {};
  82. },
  83. methods: {
  84. readcard: function readcard() {
  85. //指定控制字
  86. myctrlword = BLOCK0_EN + BLOCK1_EN + BLOCK2_EN + EXTERNKEY;
  87. //指定区号
  88. myareano = 8; //指定为第8区
  89. //批定密码模式
  90. authmode = 1; //大于0表示用A密码认证,推荐用A密码认证
  91. //指定序列号,未知卡序列号时可指定为8个0
  92. mypiccserial = "00000000";
  93. //指定密码,以下密码为厂家出厂密码
  94. mypicckey = "ffffffffffff";
  95. strls = IcCardReader.piccreadex(myctrlword, mypiccserial, myareano, authmode, mypicckey);
  96. errorno = strls.substr(0, 4);
  97. if (errorno == "ER00") {
  98. this.beep();
  99. }
  100. switch (errorno) {
  101. case "ER08":
  102. alert("寻不到卡");
  103. break;
  104. case "ER09":
  105. alert("寻不到卡");
  106. break;
  107. case "ER10":
  108. alert("寻不到卡");
  109. break;
  110. case "ER11":
  111. CardIDShower.value = "密码认证错误\r\n";
  112. CardIDShower.value = CardIDShower.value + strls + "\r\n";
  113. CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
  114. CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
  115. alert("密码认证错误");
  116. break;
  117. case "ER12":
  118. CardIDShower.value = "密码认证错误" + "\r\n";
  119. CardIDShower.value = CardIDShower.value + strls + "\r\n";
  120. CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
  121. CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
  122. alert("密码认证错误");
  123. break;
  124. case "ER13":
  125. CardIDShower.value = "读卡错误" + "\r\n";
  126. CardIDShower.value = CardIDShower.value + strls + "\r\n";
  127. CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
  128. CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
  129. alert("读卡错误");
  130. break;
  131. case "ER14":
  132. CardIDShower.value = "写卡错误" + "\r\n";
  133. CardIDShower.value = CardIDShower.value + strls + "\r\n";
  134. CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
  135. CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
  136. alert("写卡错误");
  137. break;
  138. case "ER21":
  139. alert("没找到动态库");
  140. break;
  141. case "ER22":
  142. alert("动态库或驱动程序异常");
  143. break;
  144. case "ER23":
  145. alert("读卡器未插上或动态库或驱动程序异常");
  146. break;
  147. case "ER24":
  148. alert("操作超时,一般是动态库没有反应");
  149. break;
  150. case "ER25":
  151. alert("发送字数不够");
  152. break;
  153. case "ER26":
  154. alert("发送的CRC错");
  155. break;
  156. case "ER27":
  157. alert("接收的字数不够");
  158. break;
  159. case "ER28":
  160. alert("接收的CRC错");
  161. break;
  162. case "ER29":
  163. alert("函数输入参数格式错误,请仔细查看");
  164. break;
  165. default:
  166. //读卡成功,其中ER00表示完全成功,ER01表示完全没读到卡数据,ER02表示仅读该卡的第一块成功,,ER02表示仅读该卡的第一二块成功,这是刷卡太快原因
  167. CardIDShower.value = "读卡成功" + "\r\n";
  168. // CardIDShower.value = CardIDShower.value + strls + "\r\n";
  169. // CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
  170. CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
  171. // CardIDShower.value = CardIDShower.value + "该区第一块十六进制数据为:" + strls.substr(14,32) + "\r\n";
  172. // CardIDShower.value = CardIDShower.value + "该区第二块十六进制数据为:" + strls.substr(46,32) + "\r\n";
  173. // CardIDShower.value = CardIDShower.value + "该区第三块十六进制数据为:" + strls.substr(78,32) + "\r\n";
  174. break;
  175. }
  176. },
  177. beep: function beep() {
  178. IcCardReader.pcdbeep(100); //100表示响100毫秒
  179. },
  180. clears1: function clears1() {
  181. //alert("abc");
  182. CardIDShower.value = "";
  183. }
  184. }
  185. });
  186. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-9e400f00","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/cardReader/index.vue
  187. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('dir',{attrs:{"id":"top"}}),_vm._v(" "),_c('table',{staticStyle:{"border-collapse":"collapse"},attrs:{"border":"0","width":"200","height":"100"}},[_vm._m(0),_vm._v(" "),_c('tr',[_c('td',{attrs:{"width":"160"}},[_c('input',{attrs:{"type":"button","value":" 读 卡 "},on:{"click":function($event){return _vm.readcard()}}})])])])],1)}
  188. var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{attrs:{"width":"160"}},[_c('textarea',{attrs:{"rows":"2","cols":"40","id":"CardIDShower","name":"S1"}})])])}]
  189. var esExports = { render: render, staticRenderFns: staticRenderFns }
  190. /* harmony default export */ var components_cardReader = (esExports);
  191. // CONCATENATED MODULE: ./src/components/cardReader/index.vue
  192. function injectStyle (ssrContext) {
  193. __webpack_require__("rdqC")
  194. }
  195. var normalizeComponent = __webpack_require__("VU/8")
  196. /* script */
  197. /* template */
  198. /* template functional */
  199. var __vue_template_functional__ = false
  200. /* styles */
  201. var __vue_styles__ = injectStyle
  202. /* scopeId */
  203. var __vue_scopeId__ = null
  204. /* moduleIdentifier (server only) */
  205. var __vue_module_identifier__ = null
  206. var Component = normalizeComponent(
  207. cardReader,
  208. components_cardReader,
  209. __vue_template_functional__,
  210. __vue_styles__,
  211. __vue_scopeId__,
  212. __vue_module_identifier__
  213. )
  214. /* harmony default export */ var src_components_cardReader = (Component.exports);
  215. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  216. var api = __webpack_require__("gyMJ");
  217. // EXTERNAL MODULE: ./src/components/checkInRoom.vue + 2 modules
  218. var checkInRoom = __webpack_require__("R41B");
  219. // EXTERNAL MODULE: ./src/utils/index.js
  220. var utils = __webpack_require__("0xDb");
  221. // EXTERNAL MODULE: ./src/utils/equipment.js
  222. var equipment = __webpack_require__("ObZk");
  223. // EXTERNAL MODULE: ./src/views/zw.vue + 1 modules
  224. var zw = __webpack_require__("RMlb");
  225. // EXTERNAL MODULE: ./node_modules/moment/moment.js
  226. var moment = __webpack_require__("PJh5");
  227. var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
  228. // EXTERNAL MODULE: ./src/utils/util.js
  229. var util = __webpack_require__("oFuF");
  230. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/CheckIn.vue
  231. //
  232. //
  233. //
  234. //
  235. //
  236. //
  237. //
  238. //
  239. //
  240. //
  241. //
  242. //
  243. //
  244. //
  245. //
  246. //
  247. //
  248. //
  249. //
  250. //
  251. //
  252. //
  253. //
  254. //
  255. //
  256. //
  257. //
  258. //
  259. //
  260. //
  261. //
  262. //
  263. //
  264. //
  265. //
  266. //
  267. //
  268. //
  269. //
  270. //
  271. //
  272. //
  273. //
  274. //
  275. //
  276. //
  277. //
  278. //
  279. //
  280. //
  281. //
  282. //
  283. //
  284. //
  285. //
  286. //
  287. //
  288. //
  289. //
  290. //
  291. //
  292. //
  293. //
  294. //
  295. //
  296. //
  297. //
  298. //
  299. //
  300. //
  301. //
  302. //
  303. //
  304. //
  305. //
  306. //
  307. //
  308. //
  309. //
  310. //
  311. //
  312. //
  313. //
  314. //
  315. //
  316. //
  317. //
  318. //
  319. //
  320. //
  321. //
  322. //
  323. //
  324. //
  325. //
  326. //
  327. //
  328. //
  329. //
  330. //
  331. //
  332. //
  333. //
  334. //
  335. //
  336. //
  337. //
  338. //
  339. //
  340. //
  341. //
  342. //
  343. //
  344. //
  345. //
  346. //
  347. //
  348. //
  349. //
  350. //
  351. //
  352. //
  353. //
  354. //
  355. //
  356. //
  357. //
  358. //
  359. //
  360. //
  361. //
  362. //
  363. //
  364. //
  365. //
  366. //
  367. //
  368. //
  369. //
  370. //
  371. //
  372. //
  373. //
  374. //
  375. //
  376. //
  377. //
  378. //
  379. //
  380. //
  381. //
  382. //
  383. //
  384. //
  385. //
  386. //
  387. //
  388. //
  389. //
  390. //
  391. //
  392. //
  393. //
  394. //
  395. //
  396. //
  397. //
  398. //
  399. //
  400. //
  401. //
  402. //
  403. //
  404. //
  405. //
  406. //
  407. //
  408. //
  409. //
  410. //
  411. //
  412. //
  413. //
  414. //
  415. //
  416. //
  417. //
  418. //
  419. //
  420. //
  421. //
  422. //
  423. //
  424. //
  425. //
  426. //
  427. //
  428. //
  429. //
  430. //
  431. //
  432. //
  433. //
  434. //
  435. //
  436. //
  437. //
  438. //
  439. //
  440. //
  441. //
  442. //
  443. //
  444. //
  445. //
  446. //
  447. //
  448. //
  449. //
  450. //
  451. //
  452. //
  453. //
  454. //
  455. //
  456. //
  457. //
  458. //
  459. //
  460. //
  461. //
  462. //
  463. //
  464. //
  465. //
  466. //
  467. //
  468. //
  469. //
  470. //
  471. //
  472. //
  473. //
  474. //
  475. //
  476. //
  477. //
  478. //
  479. //
  480. //
  481. //
  482. //
  483. //
  484. //
  485. //
  486. //
  487. //
  488. //
  489. //
  490. //
  491. //
  492. //
  493. //
  494. //
  495. //
  496. //
  497. //
  498. //
  499. //
  500. //
  501. //
  502. //
  503. //
  504. //
  505. //
  506. //
  507. //
  508. //
  509. //
  510. //
  511. //
  512. //
  513. //
  514. //
  515. //
  516. //
  517. //
  518. //
  519. //
  520. //
  521. //
  522. //
  523. //
  524. //
  525. //
  526. //
  527. //
  528. //
  529. //
  530. //
  531. //
  532. //
  533. //
  534. //
  535. //
  536. //
  537. //
  538. //
  539. //
  540. //
  541. //
  542. //
  543. //
  544. //
  545. //
  546. //
  547. //
  548. //
  549. //
  550. //
  551. //
  552. //
  553. //
  554. //
  555. //
  556. //
  557. //
  558. //
  559. //
  560. //
  561. //
  562. //
  563. //
  564. //
  565. //
  566. //
  567. //
  568. //
  569. //
  570. //
  571. //
  572. //
  573. //
  574. //
  575. //
  576. //
  577. //
  578. //
  579. //
  580. //
  581. //
  582. //
  583. //
  584. //
  585. //
  586. //
  587. //
  588. //
  589. //
  590. //
  591. //
  592. //
  593. //
  594. //
  595. //
  596. //
  597. //
  598. //
  599. //
  600. //
  601. //
  602. //
  603. //
  604. //
  605. //
  606. //
  607. //
  608. //
  609. //
  610. //
  611. //
  612. //
  613. //
  614. //
  615. //
  616. //
  617. //
  618. //
  619. //
  620. //
  621. //
  622. //
  623. //
  624. //
  625. //
  626. //
  627. //
  628. //
  629. //
  630. //
  631. //
  632. //
  633. //
  634. //
  635. //
  636. //
  637. //
  638. //
  639. //
  640. //
  641. //
  642. //
  643. //
  644. //
  645. //
  646. //
  647. //
  648. //
  649. //
  650. //
  651. //
  652. //
  653. //
  654. //
  655. //
  656. //
  657. //
  658. //
  659. //
  660. //
  661. //
  662. //
  663. //
  664. //
  665. //
  666. //
  667. //
  668. //
  669. //
  670. //
  671. //
  672. //
  673. //
  674. //
  675. //
  676. //
  677. //
  678. //
  679. //
  680. //
  681. //
  682. //
  683. //
  684. //
  685. //
  686. //
  687. //
  688. //
  689. //
  690. //
  691. //
  692. //
  693. //
  694. //
  695. //
  696. //
  697. //
  698. //
  699. //
  700. //
  701. //
  702. //
  703. //
  704. //
  705. //
  706. //
  707. //
  708. //
  709. //
  710. //
  711. //
  712. //
  713. //
  714. //
  715. //
  716. //
  717. //
  718. //
  719. //
  720. //
  721. //
  722. //
  723. //
  724. //
  725. //
  726. //
  727. //
  728. //
  729. //
  730. //
  731. //
  732. //
  733. //
  734. //
  735. //
  736. //
  737. //
  738. //
  739. //
  740. //
  741. //
  742. //
  743. //
  744. //
  745. //
  746. //
  747. //
  748. //
  749. var nowDate = new Date();
  750. var currentTime = nowDate;
  751. var endcurrentTime = Object(utils["g" /* getcurrentTime1 */])(6);
  752. /* harmony default export */ var CheckIn = ({
  753. inject: ['reload'],
  754. name: "campus",
  755. data: function data() {
  756. return {
  757. regularCard: false,
  758. props: {
  759. multiple: true,
  760. emitPath: false
  761. },
  762. enterpriseListOption: [],
  763. alreadyTime: [currentTime, endcurrentTime],
  764. boxHeight: '',
  765. boxHeightstyle: '',
  766. selectoption: [],
  767. selectoptionValue: '',
  768. value2: [currentTime, endcurrentTime],
  769. roomlist: [],
  770. SelectedList: [],
  771. defaultProps: {
  772. children: "children",
  773. label: "name"
  774. },
  775. zwid: '',
  776. fingerprintId: 0,
  777. url: "../equipment/cardReader/ic01java.html",
  778. steplist: [{
  779. src: "../assets/img/1.png",
  780. title: "房源选择"
  781. }, {
  782. src: "../assets/img/2.png",
  783. title: "人员登记"
  784. }, {
  785. src: "../assets/img/3.png",
  786. title: "录入凭证"
  787. }],
  788. checkList: [0],
  789. dialogImageUrl: '',
  790. dialogVisible: false,
  791. disabled: false,
  792. stepindex: 0,
  793. stepindex1: 0,
  794. query: {
  795. address: "",
  796. name: "",
  797. pageIndex: 1,
  798. pageSize: 10,
  799. activeName: "first"
  800. },
  801. activeName: "first",
  802. tableData: [],
  803. tableData1: [],
  804. tableData2: [],
  805. multipleSelection: [],
  806. delList: [],
  807. editVisible: false,
  808. pageTotal: 0,
  809. personInfo: {
  810. cardId: "",
  811. name: "",
  812. phone: "",
  813. number: "",
  814. sex: 1,
  815. type: 0,
  816. education: "",
  817. email: "",
  818. leaseTerm: "",
  819. rent: "",
  820. birth: "",
  821. nation: "",
  822. address: "",
  823. remarks: "",
  824. enterpriseId: ""
  825. },
  826. rules: {
  827. name: [{
  828. required: true,
  829. message: "请输入姓名",
  830. trigger: "blur"
  831. }, {
  832. min: 1,
  833. max: 8,
  834. message: "长度在 1 到 8 个字符",
  835. trigger: "blur"
  836. }],
  837. cardId: [{
  838. required: true,
  839. message: "请输入物理卡号",
  840. trigger: "blur"
  841. }],
  842. type: [{
  843. required: true,
  844. message: "请选择身份",
  845. trigger: "blur"
  846. }],
  847. number: [{
  848. required: true,
  849. message: "请输入学号",
  850. trigger: "blur"
  851. }],
  852. phone: [{
  853. required: true,
  854. message: "请输入手机号",
  855. trigger: "blur"
  856. }],
  857. enterpriseId: [{
  858. required: true,
  859. message: "请选择所属部门",
  860. trigger: "blur"
  861. }]
  862. },
  863. form: {},
  864. idx: -1,
  865. id: -1,
  866. showIndex: 0,
  867. ztreeObj: null,
  868. uselist: [],
  869. uselist1: [],
  870. uselist2: [],
  871. zNodes: [],
  872. setting: {
  873. edit: {
  874. enable: false,
  875. drag: {
  876. isMove: false
  877. },
  878. showRemoveBtn: false,
  879. showRenameBtn: false
  880. },
  881. check: {
  882. enable: false
  883. },
  884. data: {
  885. simpleData: {
  886. enable: true,
  887. pIdKey: "pid"
  888. }
  889. },
  890. view: {
  891. showIcon: true,
  892. addHoverDom: this.addHoverDom,
  893. removeHoverDom: this.removeHoverDom
  894. }
  895. },
  896. currentRow: [],
  897. options: [],
  898. state: "",
  899. loading: false,
  900. timeout: null,
  901. documentType: "",
  902. selectpztype: -1,
  903. VoucherBox: false,
  904. startdate: "",
  905. enddate: "",
  906. voucherfrom: {
  907. password: "",
  908. password1: "",
  909. startdate: "",
  910. enddate: "",
  911. fingerprint: "",
  912. IDcard: "",
  913. name: "",
  914. NFC: "",
  915. fingerprintAlias: '',
  916. pzname: ''
  917. },
  918. deviceList: [],
  919. personselect: true,
  920. devperson: [],
  921. userInfo: {
  922. type: ''
  923. },
  924. dataShow: true,
  925. enterpriselist: [],
  926. ZNodesTree: [],
  927. userType: [],
  928. addressName: "",
  929. checkEnterpriseNode: []
  930. };
  931. },
  932. components: {
  933. zTree: zTree1["a" /* default */],
  934. cardReader: src_components_cardReader,
  935. checkInRoom: checkInRoom["a" /* default */],
  936. zw: zw["a" /* default */]
  937. },
  938. watch: {
  939. alreadyTime: function alreadyTime(newValue, oldValue) {
  940. var _this2 = this;
  941. this.dataShow = false;
  942. this.$nextTick(function () {
  943. _this2.alreadyTime = newValue;
  944. _this2.dataShow = true;
  945. });
  946. }
  947. },
  948. beforeCreate: function beforeCreate() {
  949. // var tenantId = JSON.parse(localStorage.getItem('tenantId'))
  950. // if (tenantId == 400) {
  951. // this.$store.commit('defaultsettenantid')
  952. // }
  953. },
  954. created: function created() {
  955. this.userType = this.$MANUFACTURER.userType;
  956. this.userInfo = JSON.parse(localStorage.getItem('info'));
  957. this.selectoption = JSON.parse(localStorage.getItem('selectoption'));
  958. this.selectoptionValue = localStorage.getItem('tenantId');
  959. this.getalllist();
  960. this.getEnterprise();
  961. },
  962. mounted: function mounted() {
  963. var _this3 = this;
  964. this.imgLoad();
  965. // 监听窗口变动大小计算banner高度
  966. window.addEventListener("resize", function () {
  967. _this3.imgLoad();
  968. });
  969. },
  970. methods: {
  971. checkEnterpriseList: function checkEnterpriseList(e) {
  972. var _this4 = this;
  973. this.$nextTick(function () {
  974. var list = _this4.$refs['cascader'].getCheckedNodes();
  975. _this4.checkEnterpriseNode = list;
  976. console.log(_this4.checkEnterpriseNode);
  977. });
  978. },
  979. phoneChange: function phoneChange(e) {
  980. this.personInfo.id = "";
  981. },
  982. // 凭证避免重复
  983. avoidRepetition: function avoidRepetition(e, type) {
  984. var _this5 = this;
  985. var person = this.uselist[this.selectpztype];
  986. if (type == 12) {
  987. this.uselist2.map(function (li) {
  988. var content = JSON.parse(li.content);
  989. if (li.cardId == person.cardId && content.password == e && li.type == 12) {
  990. _this5.$message.error("该身份证已存在");
  991. _this5.voucherfrom.IDcard = '';
  992. }
  993. });
  994. } else if (type == 13) {
  995. this.uselist2.map(function (li) {
  996. var content = JSON.parse(li.content);
  997. if (li.cardId == person.cardId && content.password == e && li.type == 13) {
  998. _this5.$message.error("该NFC已存在");
  999. _this5.voucherfrom.NFC = '';
  1000. }
  1001. });
  1002. } else if (type == 14) {
  1003. this.uselist2.map(function (li) {
  1004. var content = JSON.parse(li.content);
  1005. if (li.cardId == person.cardId && content.password == e && li.type == 14) {
  1006. _this5.$message.error("该密码已存在");
  1007. _this5.voucherfrom.password = '';
  1008. }
  1009. });
  1010. }
  1011. },
  1012. // 指纹别名
  1013. fingerprintAliasMethod: function fingerprintAliasMethod(e) {
  1014. var _this6 = this;
  1015. var person = this.uselist[this.selectpztype];
  1016. this.uselist2.map(function (li) {
  1017. var content = JSON.parse(li.content);
  1018. if (li.cardId == person.card && content.fingerprintAlias == e && li.type == 11) {
  1019. _this6.$message.error("该指纹已存在");
  1020. _this6.voucherfrom.fingerprintAlias = '';
  1021. }
  1022. });
  1023. },
  1024. getEnterprise: function getEnterprise() {
  1025. var _this7 = this;
  1026. Object(api["d" /* httpGet */])("", this.$api.getEnterprise).then(function (res) {
  1027. res.data.list.map(function (li) {
  1028. li['pid'] = li.parentId;
  1029. li['label'] = li.name;
  1030. li['value'] = li.id;
  1031. });
  1032. var array = util["a" /* default */].uniqueArray(res.data.list, "id");
  1033. var roomlistZNodes = Object(utils["q" /* ztreeToElementTree2 */])(array, []);
  1034. _this7.enterpriseListOption = roomlistZNodes;
  1035. _this7.enterpriselist = res.data.list;
  1036. });
  1037. },
  1038. changeDate: function changeDate(val) {
  1039. console.log(val);
  1040. this.$forceUpdate();
  1041. this.alreadyTime = val;
  1042. },
  1043. imgLoad: function imgLoad() {
  1044. this.$nextTick(function () {
  1045. this.boxHeight = document.documentElement.clientHeight - 100 + 'px;';
  1046. });
  1047. },
  1048. selectTenantId: function selectTenantId(e) {
  1049. localStorage.setItem('tenantId', e);
  1050. this.reload();
  1051. },
  1052. // 读卡
  1053. // readCardFun() {
  1054. // var _this = this
  1055. // this.$refs.mychild.cardFun(0x8010, function(data) {
  1056. // if (data.status == 0) {
  1057. // _this.voucherfrom.NFC = data.cardNo.toUpperCase()
  1058. // _this.$message.success("读取成功")
  1059. // } else {
  1060. // _this.$message.error("读取失败")
  1061. // }
  1062. // })
  1063. // },
  1064. // // 读卡
  1065. // readCardFun1() {
  1066. // var _this = this
  1067. // this.$refs.mychild.cardFun(0x8010, function(data) {
  1068. // if (data.status == 0) {
  1069. // _this.voucherfrom.idcard = data.cardNo.toUpperCase()
  1070. // _this.$message.success("读取成功")
  1071. // } else {
  1072. // _this.$message.error("读取失败")
  1073. // }
  1074. // })
  1075. // },
  1076. // 采集指纹
  1077. addfir: function addfir() {
  1078. var _this = this;
  1079. this.$refs.mychild.addFingerprintFun(0x8014, function (data) {
  1080. localStorage.setItem('fingerprint', data);
  1081. _this.localFingerprint = data;
  1082. });
  1083. },
  1084. setVoucherNfc: function setVoucherNfc(data) {
  1085. if (data.cardType == 50) {
  1086. var nfc = "";
  1087. var str = data.cardNo.substr(0, 8);
  1088. var arr4 = Object(utils["h" /* group */])(str, 2).reverse();
  1089. arr4.map(function (li) {
  1090. nfc += li;
  1091. });
  1092. this.voucherfrom.NFC = nfc.toUpperCase();
  1093. } else if (data.cardType == 36) {
  1094. this.voucherfrom.IDcard = data.cardNo.toUpperCase();
  1095. }
  1096. },
  1097. addNfc: function addNfc() {
  1098. var _this = this;
  1099. this.$refs.mychild.cardFun(0x8010, function (data) {
  1100. if (data.status == 0) {
  1101. _this.setVoucherNfc(data);
  1102. } else {
  1103. _this.$message.error("读卡错误,请检查读卡器是否正常!");
  1104. }
  1105. });
  1106. },
  1107. //添加房源
  1108. addRoom: function addRoom() {
  1109. var _this8 = this;
  1110. var data = {};
  1111. Object(api["d" /* httpGet */])(data, this.$api.getSiteList).then(function (res) {
  1112. res.data.list.list.map(function (li) {
  1113. var name = util["a" /* default */].findIndexArray(_this8.ZNodesTree, li.id, []);
  1114. var path = '';
  1115. if (name) {
  1116. path = name.join('/');
  1117. }
  1118. li['path'] = path;
  1119. });
  1120. var array = Object(utils["n" /* uniqueArray */])(res.data.list.list, 'id');
  1121. _this8.roomlist = Object(utils["p" /* ztreeToElementTree */])(array, {});
  1122. });
  1123. },
  1124. selectCheck: function selectCheck(e) {
  1125. if (e == '左手大拇指') {
  1126. this.fingerprintId = 0;
  1127. this.voucherfrom.nam = '左手大拇指';
  1128. } else if (e == '左手食指') {
  1129. this.fingerprintId = 1;
  1130. this.voucherfrom.nam = '左手食指';
  1131. } else if (e == '右手大拇指') {
  1132. this.fingerprintId = 2;
  1133. this.voucherfrom.nam = '右手大拇指';
  1134. } else if (e == '右手食指') {
  1135. this.fingerprintId = 3;
  1136. this.voucherfrom.nam = '右手食指';
  1137. }
  1138. },
  1139. // 人脸图片上传功能
  1140. handleRemove: function handleRemove(file) {
  1141. console.log(file);
  1142. },
  1143. handlePictureCardPreview: function handlePictureCardPreview(file) {
  1144. this.dialogImageUrl = file.url;
  1145. this.dialogVisible = true;
  1146. },
  1147. handleDownload: function handleDownload(file) {
  1148. console.log(file);
  1149. },
  1150. checkfun: function checkfun(index, status) {
  1151. this.tableData.map(function (li) {
  1152. li.check = false;
  1153. });
  1154. this.tableData[index].check = status;
  1155. this.currentRow = this.tableData[index];
  1156. },
  1157. checkfun1: function checkfun1(index, status) {
  1158. this.tableData1.map(function (li) {
  1159. li.check = false;
  1160. });
  1161. this.tableData1[index].check = status;
  1162. this.currentRow = this.tableData1[index];
  1163. },
  1164. checkfun2: function checkfun2(index, status) {
  1165. this.tableData2.map(function (li) {
  1166. li.check = false;
  1167. });
  1168. this.tableData2[index].check = status;
  1169. this.currentRow = this.tableData2[index];
  1170. },
  1171. // 选中凭证
  1172. checkBoxfun: function checkBoxfun() {
  1173. console.log(this.checkList);
  1174. },
  1175. // 添加凭证
  1176. complete: function complete() {
  1177. var _this9 = this;
  1178. if (this.checkList.length == 0) {
  1179. this.$message.error("请选择下发凭证");
  1180. } else {
  1181. this.uselist1.map(function (li, index) {
  1182. setTimeout(function () {
  1183. _this9.addpzcomp(index);
  1184. }, 1000);
  1185. });
  1186. this.stepindex = 0;
  1187. setTimeout(function () {
  1188. _this9.uselist1 = [];
  1189. }, 2000);
  1190. }
  1191. },
  1192. addpzcomp: function addpzcomp(i) {
  1193. var _this10 = this;
  1194. var str = {};
  1195. var endTime = new Date(this.uselist1[i].endTime).getTime();
  1196. var startTime = new Date(this.uselist1[i].startTime).getTime();
  1197. endTime = parseInt(endTime / 1000);
  1198. startTime = parseInt(startTime / 1000);
  1199. var passwordStartTime = moment_default()(startTime * 1000).format("YYYYMMDDHHmmss");
  1200. var passwordEndTime = moment_default()(endTime * 1000).format("YYYYMMDDHHmmss");
  1201. var pzname = '',
  1202. cardName = this.uselist1[i].name;
  1203. if (this.deviceList[0].manufactureId == 201 || this.deviceList[0].manufactureId == 221) {
  1204. var data3 = {};
  1205. var userPassword = this.uselist1[i].userPassword;
  1206. var userTelephone = this.uselist1[i].userTelephone;
  1207. if (this.uselist1[i].pztype == 1) {
  1208. cardName = cardName + '-' + this.uselist1[i].pzname;
  1209. pzname = this.uselist1[i].pzname;
  1210. var fingerprint = this.uselist1[i].fingerprint;
  1211. equipment["a" /* default */].addFingerPrints(this.deviceList[0].deviceNum, this.deviceList[0].imei, userPassword, 0, this.uselist1[i].fingerprint, startTime, endTime, cardName, this.deviceList[0].roomName, function (callback) {
  1212. if (callback.success) {
  1213. str = {
  1214. pzname: pzname,
  1215. imei: _this10.deviceList[0].imei,
  1216. deviceNum: _this10.deviceList[0].deviceNum,
  1217. userTelephone: userTelephone,
  1218. userPassword: userPassword,
  1219. fingerprintAlias: _this10.uselist1[i].fingerprintAlias,
  1220. password: '',
  1221. length: fingerprint.length / 2,
  1222. fpTimeId: '',
  1223. operateMode: 16,
  1224. order: 6216,
  1225. fingerprint: fingerprint,
  1226. passwordStartTime: startTime,
  1227. passwordEndTime: endTime,
  1228. cardName: cardName,
  1229. roomName: _this10.deviceList[0].roomName
  1230. };
  1231. var data = {
  1232. cardId: _this10.uselist1[i].cardId,
  1233. content: stringify_default()(str),
  1234. deviceNum: _this10.deviceList[0].deviceNum,
  1235. type: _this10.uselist1[i].pztype,
  1236. imei: _this10.deviceList[0].imei,
  1237. serial: callback.data.serialNumber,
  1238. startTime: startTime,
  1239. endTime: endTime
  1240. };
  1241. Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {
  1242. if (res.success) {
  1243. _this10.$message.success("添加成功");
  1244. } else {
  1245. _this10.$message.error("添加失败");
  1246. }
  1247. });
  1248. } else {
  1249. _this10.$message.error("下发失败");
  1250. }
  1251. });
  1252. this.$refs.cardShow.setActiveItem(0);
  1253. return;
  1254. } else if (this.uselist1[i].pztype == 2) {
  1255. var idcard = '';
  1256. if (this.uselist1[i].IDcard.length == 16) {
  1257. idcard = this.uselist1[i].IDcard;
  1258. } else {
  1259. idcard = Object(utils["d" /* dec2hex */])(this.uselist1[i].IDcard);
  1260. }
  1261. if (this.uselist1[i].pzname) {
  1262. cardName = cardName + '-' + this.uselist1[i].pzname;
  1263. pzname = this.uselist1[i].pzname;
  1264. } else {
  1265. cardName = cardName + '-身份证' + this.uselist1[i].pzid || 1;
  1266. pzname = '身份证' + this.uselist1[i].pzid || 1;
  1267. }
  1268. // var arr4 = group(idcard, 2).reverse();
  1269. // var nfc = "";
  1270. // arr4.map((li) => {
  1271. // nfc += li;
  1272. // });
  1273. if (idcard.length != 16) {
  1274. this.$message.error("卡格式错误,请重新录入");
  1275. return;
  1276. }
  1277. str = {
  1278. pzname: pzname,
  1279. imei: this.deviceList[0].imei,
  1280. deviceNum: this.deviceList[0].deviceNum,
  1281. userTelephone: userTelephone,
  1282. userPassword: userPassword,
  1283. operateMode: 13,
  1284. order: 6213,
  1285. password: idcard.toUpperCase(),
  1286. passwordStartTime: startTime,
  1287. passwordEndTime: endTime,
  1288. is: false,
  1289. cardName: cardName,
  1290. roomName: this.deviceList[0].roomName
  1291. };
  1292. equipment["a" /* default */].RfCardRegister(this.deviceList[0].deviceNum, this.deviceList[0].imei, userPassword, 1, 1, idcard.toUpperCase(), 36, startTime, endTime, 6213, cardName, this.deviceList[0].roomName, function (callback) {
  1293. if (callback.success) {
  1294. var data = {
  1295. cardId: _this10.uselist1[i].cardId,
  1296. content: stringify_default()(str),
  1297. deviceNum: _this10.deviceList[0].deviceNum,
  1298. type: _this10.uselist1[i].pztype,
  1299. imei: _this10.deviceList[0].imei,
  1300. serial: callback.data.serialNumber,
  1301. startTime: startTime,
  1302. endTime: endTime
  1303. };
  1304. Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {
  1305. if (res.success) {
  1306. _this10.$message.success("添加成功");
  1307. } else {
  1308. _this10.$message.error("添加失败");
  1309. }
  1310. });
  1311. } else {
  1312. _this10.$message.error("下发失败");
  1313. }
  1314. });
  1315. this.$refs.cardShow.setActiveItem(0);
  1316. return;
  1317. } else if (this.uselist1[i].pztype == 3) {
  1318. var nfc = "";
  1319. if (this.uselist1[i].NFC.length == 8) {
  1320. // nfc = this.uselist1[i].NFC
  1321. nfc = util["a" /* default */].cardFormatConversion(this.uselist1[i].NFC);
  1322. nfc = nfc + '00000000';
  1323. } else {
  1324. var arr2 = Object(utils["d" /* dec2hex */])(this.uselist1[i].NFC);
  1325. var arr4 = Object(utils["h" /* group */])(arr2, 2);
  1326. arr4.map(function (li) {
  1327. nfc += li;
  1328. });
  1329. nfc = nfc + '00000000';
  1330. }
  1331. if (this.uselist1[i].pzname) {
  1332. cardName = cardName + '-' + this.uselist1[i].pzname;
  1333. pzname = this.uselist1[i].pzname;
  1334. } else {
  1335. cardName = cardName + '-NFC' + this.uselist1[i].pzid || 1;
  1336. pzname = 'NFC' + this.uselist1[i].pzid || 1;
  1337. }
  1338. if (nfc.length != 16) {
  1339. this.$message.error("卡格式错误,请重新录入");
  1340. return;
  1341. }
  1342. str = {
  1343. pzname: pzname,
  1344. imei: this.deviceList[0].imei,
  1345. deviceNum: this.deviceList[0].deviceNum,
  1346. userTelephone: userTelephone,
  1347. userPassword: userPassword,
  1348. operateMode: 10,
  1349. order: 6210,
  1350. password: nfc.toUpperCase(),
  1351. passwordStartTime: startTime,
  1352. passwordEndTime: endTime,
  1353. is: false,
  1354. cardName: cardName,
  1355. roomName: this.deviceList[0].roomName
  1356. };
  1357. equipment["a" /* default */].RfCardRegister(this.deviceList[0].deviceNum, this.deviceList[0].imei, userPassword, 1, 1, nfc.toUpperCase(), 50, startTime, endTime, 6210, cardName, this.deviceList[0].roomName, function (callback) {
  1358. if (callback.success) {
  1359. var data = {
  1360. cardId: _this10.uselist1[i].cardId,
  1361. content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
  1362. deviceNum: _this10.deviceList[0].deviceNum,
  1363. type: _this10.uselist1[i].pztype,
  1364. imei: _this10.deviceList[0].imei,
  1365. serial: callback.data.serialNumber,
  1366. startTime: startTime,
  1367. endTime: endTime
  1368. };
  1369. Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {
  1370. if (res.success) {
  1371. _this10.$message.success("添加成功");
  1372. } else {
  1373. _this10.$message.error("添加失败");
  1374. }
  1375. });
  1376. } else {
  1377. _this10.$message.error("下发失败");
  1378. }
  1379. });
  1380. this.$refs.cardShow.setActiveItem(0);
  1381. return;
  1382. } else if (this.uselist1[i].pztype == 4) {
  1383. if (this.uselist1[i].pzname) {
  1384. cardName = cardName + '-' + this.uselist1[i].pzname;
  1385. pzname = this.uselist1[i].pzname;
  1386. } else {
  1387. cardName = cardName + '-密码' + this.uselist1[i].pzid || 1;
  1388. pzname = '密码' + this.uselist1[i].pzid || 1;
  1389. }
  1390. str = {
  1391. pzname: pzname,
  1392. imei: this.deviceList[0].imei,
  1393. deviceNum: this.deviceList[0].deviceNum,
  1394. userTelephone: userTelephone,
  1395. userPassword: userPassword,
  1396. operateMode: 7,
  1397. order: 6207,
  1398. password: this.uselist1[i].password,
  1399. passwordStartTime: startTime,
  1400. passwordEndTime: endTime,
  1401. is: false,
  1402. cardName: cardName,
  1403. roomName: this.deviceList[0].roomName
  1404. };
  1405. equipment["a" /* default */].addForeverPassword(this.deviceList[0].deviceNum, this.deviceList[0].imei, userPassword, 1, this.uselist1[i].password, 255, startTime, endTime, 6207, cardName, this.deviceList[0].roomName, function (callback) {
  1406. if (callback.success) {
  1407. var data = {
  1408. cardId: _this10.uselist1[i].cardId,
  1409. content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
  1410. deviceNum: _this10.deviceList[0].deviceNum,
  1411. type: _this10.uselist1[i].pztype,
  1412. imei: _this10.deviceList[0].imei,
  1413. serial: callback.data.serialNumber,
  1414. startTime: startTime,
  1415. endTime: endTime
  1416. };
  1417. Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {
  1418. if (res.success) {
  1419. _this10.$message.success("添加成功");
  1420. } else {
  1421. _this10.$message.error("添加失败");
  1422. }
  1423. });
  1424. } else {
  1425. _this10.$message.error("下发失败");
  1426. }
  1427. });
  1428. this.$refs.cardShow.setActiveItem(0);
  1429. return;
  1430. }
  1431. } else if (this.deviceList[0].manufactureId == 101) {
  1432. if (this.uselist1[i].pztype == 1) {
  1433. cardName = cardName + '-' + this.uselist1[i].pzname;
  1434. pzname = this.uselist1[i].pzname;
  1435. var fpId = new Date();
  1436. str = {
  1437. username: this.uselist1[i].username,
  1438. pzname: pzname,
  1439. imei: this.deviceList[0].imei,
  1440. deviceNum: this.deviceList[0].deviceNum,
  1441. userTelephone: this.uselist1[i].userTelephone,
  1442. userPassword: this.uselist1[i].userPassword,
  1443. fingerprintAlias: this.uselist1[i].fingerprintAlias,
  1444. password: 'F1',
  1445. length: this.uselist1[i].fingerprint.length / 2,
  1446. fpTimeId: fpId.getTime(),
  1447. order: 6216,
  1448. operateMode: 16,
  1449. fingerprint: this.uselist1[i].fingerprint,
  1450. fingerprintStartTime: passwordStartTime,
  1451. fingerprintEndTime: passwordEndTime,
  1452. cardName: cardName,
  1453. roomName: this.deviceList[0].roomName
  1454. };
  1455. Object(api["g" /* httpPost */])(str, this.$api.fingerprintTransfer).then(function (res1) {
  1456. if (res1.success) {
  1457. var data = {
  1458. cardId: _this10.uselist1[i].cardId,
  1459. content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
  1460. deviceNum: _this10.deviceList[0].deviceNum,
  1461. type: _this10.uselist1[i].pztype,
  1462. imei: _this10.deviceList[0].imei,
  1463. serial: res1.data.serialNumber,
  1464. startTime: startTime,
  1465. endTime: endTime
  1466. };
  1467. Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {});
  1468. _this10.$refs.cardShow.setActiveItem(0);
  1469. } else {
  1470. _this10.$message.error("下发失败");
  1471. }
  1472. });
  1473. return false;
  1474. } else if (this.uselist1[i].pztype == 2) {
  1475. var idcard = '';
  1476. if (this.uselist1[i].IDcard.length == 16) {
  1477. var idcard = this.uselist1[i].IDcard;
  1478. } else {
  1479. idcard = Object(utils["d" /* dec2hex */])(this.uselist1[i].IDcard);
  1480. }
  1481. if (this.uselist1[i].pzname) {
  1482. cardName = cardName + '-' + this.uselist1[i].pzname;
  1483. pzname = this.uselist1[i].pzname;
  1484. } else {
  1485. cardName = cardName + '-身份证' + this.uselist1[i].pzid || 1;
  1486. pzname = '身份证' + this.uselist1[i].pzid || 1;
  1487. }
  1488. str = {
  1489. username: this.uselist1[i].username,
  1490. pzname: pzname,
  1491. cardId: this.uselist1[i].cardId,
  1492. imei: this.deviceList[0].imei,
  1493. deviceNum: this.deviceList[0].deviceNum,
  1494. userTelephone: this.uselist1[i].userTelephone,
  1495. operateMode: 13,
  1496. order: 6213,
  1497. userPassword: this.uselist1[i].userPassword,
  1498. password: idcard.toUpperCase(),
  1499. passwordStartTime: passwordStartTime,
  1500. passwordEndTime: passwordEndTime,
  1501. is: false,
  1502. cardName: cardName,
  1503. roomName: this.deviceList[0].roomName
  1504. };
  1505. } else if (this.uselist1[i].pztype == 3) {
  1506. var nfc = "";
  1507. if (this.uselist1[i].NFC.length == 8) {
  1508. nfc = this.uselist1[i].NFC;
  1509. } else {
  1510. var arr2 = Object(utils["d" /* dec2hex */])(this.uselist1[i].NFC);
  1511. var arr4 = Object(utils["h" /* group */])(arr2, 2);
  1512. arr4.map(function (li) {
  1513. nfc += li;
  1514. });
  1515. }
  1516. if (this.uselist1[i].pzname) {
  1517. cardName = cardName + '-' + this.uselist1[i].pzname;
  1518. pzname = this.uselist1[i].pzname;
  1519. } else {
  1520. cardName = cardName + '-NFC' + this.uselist1[i].pzid || 1;
  1521. pzname = 'NFC' + this.uselist1[i].pzid || 1;
  1522. }
  1523. str = {
  1524. username: this.uselist1[i].username,
  1525. pzname: pzname,
  1526. cardId: this.uselist1[i].cardId,
  1527. imei: this.deviceList[0].imei,
  1528. deviceNum: this.deviceList[0].deviceNum,
  1529. userTelephone: this.uselist1[i].userTelephone,
  1530. operateMode: 10,
  1531. order: 6210,
  1532. userPassword: this.uselist1[i].userPassword,
  1533. password: nfc.toUpperCase(),
  1534. passwordStartTime: passwordStartTime,
  1535. passwordEndTime: passwordEndTime,
  1536. is: false,
  1537. cardName: cardName,
  1538. roomName: this.deviceList[0].roomName
  1539. };
  1540. } else if (this.uselist1[i].pztype == 4) {
  1541. if (this.uselist1[i].pzname) {
  1542. cardName = cardName + '-' + this.uselist1[i].pzname;
  1543. pzname = this.uselist1[i].pzname;
  1544. } else {
  1545. cardName = cardName + '-NFC' + this.uselist1[i].pzid || 1;
  1546. pzname = 'NFC' + this.uselist1[i].pzid || 1;
  1547. }
  1548. str = {
  1549. username: this.uselist1[i].username,
  1550. pzname: pzname,
  1551. cardId: this.uselist1[i].cardId,
  1552. imei: this.deviceList[0].imei,
  1553. deviceNum: this.deviceList[0].deviceNum,
  1554. password: this.uselist1[i].password,
  1555. userTelephone: this.uselist1[i].userTelephone,
  1556. operateMode: 7,
  1557. order: 6207,
  1558. passwordStartTime: passwordStartTime,
  1559. passwordEndTime: passwordEndTime,
  1560. userPassword: this.uselist1[i].userPassword,
  1561. is: false,
  1562. cardName: cardName,
  1563. roomName: this.deviceList[0].roomName
  1564. };
  1565. }
  1566. Object(api["g" /* httpPost */])(str, this.$api.getDeviceOperateUserInfo).then(function (res1) {
  1567. if (res1.success) {
  1568. var data = {
  1569. cardId: _this10.uselist1[i].cardId,
  1570. content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
  1571. deviceNum: _this10.deviceList[0].deviceNum,
  1572. type: _this10.uselist1[i].pztype,
  1573. imei: _this10.deviceList[0].imei,
  1574. serial: res1.data.serialNumber,
  1575. startTime: startTime,
  1576. endTime: endTime
  1577. };
  1578. Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {});
  1579. _this10.$message.success("下发成功");
  1580. // this.deviceList = [];
  1581. } else {
  1582. _this10.$message.error("下发失败");
  1583. }
  1584. });
  1585. this.$refs.cardShow.setActiveItem(0);
  1586. }
  1587. },
  1588. Bytes2Str: function Bytes2Str(arrBytes) {
  1589. var str = "";
  1590. for (var i = 0; i < arrBytes.length; i++) {
  1591. var tmp;
  1592. var num = parseInt(arrBytes[i]);
  1593. if (num < 0) {
  1594. //此处填坑,当byte因为符合位导致数值为负时候,需要对数据进行处理
  1595. tmp = (255 + num + 1).toString(16);
  1596. } else {
  1597. tmp = num.toString(16);
  1598. }
  1599. if (tmp.length == 1) {
  1600. tmp = "0" + tmp;
  1601. }
  1602. if (i > 0) {
  1603. str += "" + tmp;
  1604. } else {
  1605. str += tmp;
  1606. }
  1607. }
  1608. return str;
  1609. },
  1610. stringToHex: function stringToHex(str) {
  1611. var val = "";
  1612. for (var i = 0; i < str.length; i++) {
  1613. val += parseInt(str[i]).toString(16);
  1614. }
  1615. return val;
  1616. },
  1617. getTypeSort: function getTypeSort(data, type, cardId) {
  1618. var num = 1;
  1619. data.map(function (li) {
  1620. if (li.type == type && li.cardId == cardId) {
  1621. num++;
  1622. }
  1623. });
  1624. return num;
  1625. },
  1626. // 提交凭证录入弹框内容
  1627. saveVoucherfrom: function saveVoucherfrom() {
  1628. var _this = this;
  1629. if (this.value2[0] == '' || this.value2[1] == '') {
  1630. this.$message.error("请选择开始和结束时间");
  1631. return false;
  1632. }
  1633. // if (this.voucherfrom.pzname == '') {
  1634. // this.$message.error("请填写凭证名称");
  1635. // return
  1636. // }
  1637. var sort = this.getTypeSort(this.uselist2, this.documentType, this.uselist[_this.selectpztype].cardId);
  1638. var pzname = this.voucherfrom.pzname;
  1639. if (this.documentType == 12) {
  1640. if (this.voucherfrom.IDcard == "") {
  1641. this.$message.error("身份证号不能为空");
  1642. return;
  1643. }
  1644. } else if (this.documentType == 13) {
  1645. if (this.voucherfrom.NFC == "") {
  1646. this.$message.error("NFC不能为空");
  1647. return;
  1648. }
  1649. if (this.voucherfrom.NFC.length != 8) {
  1650. this.$message.error("NFC格式错误,请重新录入");
  1651. return;
  1652. }
  1653. } else if (this.documentType == 14) {
  1654. if (this.voucherfrom.password == "") {
  1655. this.$message.error("密码不能为空");
  1656. return;
  1657. }
  1658. }
  1659. if (pzname == '') {
  1660. if (this.documentType == 11) {
  1661. pzname = '指纹' + sort;
  1662. } else if (this.documentType == 12) {
  1663. pzname = '身份证' + sort;
  1664. } else if (this.documentType == 13) {
  1665. pzname = 'NFC' + sort;
  1666. } else if (this.documentType == 14) {
  1667. pzname = '密码' + sort;
  1668. }
  1669. }
  1670. if (this.documentType == 11) {
  1671. var fingerprint = localStorage.getItem("fingerprint");
  1672. if (this.deviceList[0].manufactureId == 101) {
  1673. var array = fingerprint.split(",");
  1674. var num = this.Bytes2Str(array);
  1675. this.voucherfrom.fingerprint = num;
  1676. if (fingerprint == "") {
  1677. this.$message.error("请录入指纹");
  1678. return;
  1679. }
  1680. } else {
  1681. this.voucherfrom.fingerprint = fingerprint;
  1682. }
  1683. if (this.voucherfrom.fingerprintAlias == '') {
  1684. this.$message.error("请选择指纹别名");
  1685. return;
  1686. }
  1687. }
  1688. if (this.voucherfrom.password != this.voucherfrom.password1) {
  1689. this.$message.error("两次输入的密码不一致,请重新输入!");
  1690. return;
  1691. } else if (parseInt(this.voucherfrom.password.length) % 2 != 0 && this.voucherfrom.password.length != 0) {
  1692. this.$message.error("输入的密码长度需要为6位!");
  1693. return;
  1694. } else {
  1695. var NFCData = this.voucherfrom.NFC;
  1696. if (this.regularCard) {
  1697. NFCData = NFCData + 'AA55';
  1698. }
  1699. var row = {
  1700. username: _this.uselist[_this.selectpztype].name,
  1701. pzname: pzname,
  1702. cardId: _this.uselist[_this.selectpztype].cardId,
  1703. siteId: _this.uselist[_this.selectpztype].siteId,
  1704. userPassword: JSON.parse(this.uselist[_this.selectpztype].info).userPassword,
  1705. userTelephone: JSON.parse(_this.uselist[_this.selectpztype].info).userTelephone,
  1706. password: _this.voucherfrom.password,
  1707. phone: _this.uselist[_this.selectpztype].phone,
  1708. fingerprint: _this.voucherfrom.fingerprint,
  1709. fingerprintId: _this.fingerprintId,
  1710. fingerprintAlias: _this.voucherfrom.fingerprintAlias,
  1711. pztype: _this.documentType,
  1712. IDcard: _this.voucherfrom.IDcard,
  1713. NFC: NFCData,
  1714. name: _this.uselist[_this.selectpztype].name,
  1715. id: _this.uselist[_this.selectpztype].id,
  1716. startdate: this.time(+new Date(_this.startdate)),
  1717. enddate: _this.time(+new Date(_this.enddate)),
  1718. startTime: _this.value2[0],
  1719. endTime: _this.value2[1]
  1720. };
  1721. _this.addpzMethods(row);
  1722. _this.creatVoucher(row);
  1723. _this.VoucherBox = false;
  1724. _this.$message.success("提交成功");
  1725. }
  1726. },
  1727. addpzMethods: function addpzMethods(row) {
  1728. var myDate = new Date();
  1729. var fingerprintId = myDate.getTime();
  1730. var voucherType = "";
  1731. if (row.pztype == 10) {
  1732. voucherType = 0;
  1733. } else if (row.pztype == 11) {
  1734. voucherType = 1;
  1735. } else if (row.pztype == 12) {
  1736. voucherType = 2;
  1737. } else if (row.pztype == 13) {
  1738. voucherType = 3;
  1739. } else if (row.pztype == 14) {
  1740. voucherType = 4;
  1741. }
  1742. var rowdata = {
  1743. username: row.username,
  1744. pzname: row.pzname,
  1745. cardId: row.cardId,
  1746. siteId: row.siteId,
  1747. userPassword: row.userPassword,
  1748. userTelephone: row.userTelephone,
  1749. password: row.password,
  1750. phone: row.userTelephone,
  1751. fingerprint: row.fingerprint,
  1752. fingerprintAlias: row.fingerprintAlias,
  1753. fingerprintId: fingerprintId,
  1754. pztype: voucherType,
  1755. IDcard: row.IDcard,
  1756. NFC: row.NFC,
  1757. name: row.name,
  1758. id: row.id,
  1759. startdate: row.startdate,
  1760. enddate: row.enddate,
  1761. startTime: row.startTime,
  1762. endTime: row.endTime
  1763. };
  1764. this.uselist1.push(rowdata);
  1765. // this.uselist2.splice(index, 1);
  1766. },
  1767. creatVoucher: function creatVoucher(row) {
  1768. var _this11 = this;
  1769. var cardName = "",
  1770. pzname = "";
  1771. if (row.pztype == 11) {
  1772. var fingerprint = row.fingerprint;
  1773. if (row.pzname) {
  1774. pzname = row.pzname;
  1775. } else {
  1776. pzname = '指纹' + row.pzid || 1;
  1777. }
  1778. var str = {
  1779. username: row.username,
  1780. pzname: pzname,
  1781. userTelephone: row.userTelephone,
  1782. userPassword: row.userPassword,
  1783. fingerprintAlias: row.fingerprintAlias,
  1784. password: "",
  1785. passwordStartTime: parseInt(row.startTime.getTime() / 1000),
  1786. passwordEndTime: parseInt(row.endTime.getTime() / 1000),
  1787. operateMode: 16,
  1788. order: 6216,
  1789. fingerprint: fingerprint
  1790. };
  1791. var data = {
  1792. cardId: row.cardId,
  1793. content: stringify_default()(str),
  1794. type: row.pztype,
  1795. startTime: parseInt(row.startTime.getTime() / 1000),
  1796. endTime: parseInt(row.endTime.getTime() / 1000)
  1797. };
  1798. Object(api["g" /* httpPost */])(data, this.$api.addCertificates).then(function (res) {});
  1799. this.uselist2 = [];
  1800. this.getOnePersonCerTificate(row);
  1801. return false;
  1802. } else if (row.pztype == 12) {
  1803. var arr2 = '';
  1804. if (row.IDcard.length == 16) {
  1805. arr2 = row.IDcard;
  1806. } else if (row.IDcard.length == 0) {
  1807. this.$message.error("请输入身份证");
  1808. return false;
  1809. } else {
  1810. arr2 = Object(utils["d" /* dec2hex */])(row.IDcard);
  1811. }
  1812. cardName = row.username;
  1813. if (row.pzname) {
  1814. cardName += '-' + row.pzname;
  1815. pzname = row.pzname;
  1816. } else {
  1817. cardName += '-身份证' + row.cardId || 1;
  1818. pzname = '身份证' + row.cardId || 1;
  1819. }
  1820. str = {
  1821. username: row.username,
  1822. pzname: row.pzname,
  1823. userTelephone: row.userTelephone,
  1824. userPassword: row.userPassword,
  1825. operateMode: 13,
  1826. order: 6213,
  1827. password: arr2.toUpperCase(), //this.voucher.idcard,
  1828. passwordStartTime: moment_default()(row.startTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
  1829. passwordEndTime: moment_default()(row.endTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
  1830. is: false,
  1831. cardName: cardName
  1832. };
  1833. } else if (row.pztype == 13) {
  1834. var nfc = "";
  1835. if (row.NFC.length == 8) {
  1836. nfc = row.NFC;
  1837. } else if (row.NFC.length == 0) {
  1838. this.$message.error("请输入NFC");
  1839. return false;
  1840. } else {
  1841. var array3 = Object(utils["d" /* dec2hex */])(row.NFC);
  1842. var arr4 = Object(utils["h" /* group */])(array3, 2);
  1843. arr4.map(function (li) {
  1844. nfc += li;
  1845. });
  1846. }
  1847. cardName = row.username;
  1848. if (row.pzname) {
  1849. cardName += '-' + row.pzname;
  1850. pzname = row.pzname;
  1851. } else {
  1852. cardName += '-NFC' + row.cardId || 1;
  1853. pzname = 'NFC' + row.cardId || 1;
  1854. }
  1855. str = {
  1856. username: row.username,
  1857. pzname: row.pzname,
  1858. operateMode: 10,
  1859. order: 6210,
  1860. userTelephone: row.userTelephone,
  1861. userPassword: row.userPassword,
  1862. password: nfc.toUpperCase(), //this.voucher.nfc,
  1863. passwordStartTime: moment_default()(row.startTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
  1864. passwordEndTime: moment_default()(row.endTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
  1865. is: false,
  1866. cardName: cardName
  1867. };
  1868. } else if (row.pztype == 14) {
  1869. if (row.password.length != 6) {
  1870. this.$message.error("密码长度为6位");
  1871. return false;
  1872. } else if (row.password.length == 0) {
  1873. this.$message.error("请输入密码");
  1874. return false;
  1875. }
  1876. cardName = row.username;
  1877. if (row.pzname) {
  1878. cardName += '-' + row.pzname;
  1879. pzname = row.pzname;
  1880. } else {
  1881. cardName += '-密码' + row.cardId || 1;
  1882. pzname = '密码' + row.cardId || 1;
  1883. }
  1884. str = {
  1885. username: row.username,
  1886. pzname: row.pzname,
  1887. password: row.password,
  1888. userTelephone: row.userTelephone,
  1889. userPassword: row.userPassword,
  1890. operateMode: 7,
  1891. order: 6207,
  1892. passwordStartTime: moment_default()(row.startTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
  1893. passwordEndTime: moment_default()(row.endTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
  1894. is: false,
  1895. cardName: cardName
  1896. };
  1897. }
  1898. var data = {
  1899. cardId: row.cardId,
  1900. content: stringify_default()(str),
  1901. type: row.pztype,
  1902. startTime: parseInt(row.startTime.getTime() / 1000),
  1903. endTime: parseInt(row.endTime.getTime() / 1000)
  1904. };
  1905. Object(api["g" /* httpPost */])(data, this.$api.addCertificates).then(function (res) {
  1906. _this11.uselist2 = [];
  1907. _this11.getOnePersonCerTificate(row);
  1908. });
  1909. },
  1910. getcertififun: function getcertififun(id, callback) {
  1911. var data = {
  1912. pageNum: 1,
  1913. pageSize: 1,
  1914. orderBy: "create_at desc",
  1915. // orderType: "desc",
  1916. // orderBy: "createAt",
  1917. q: {
  1918. cardId: id
  1919. }
  1920. };
  1921. Object(api["d" /* httpGet */])(data, this.$api.getCertificates).then(function (res) {
  1922. callback(res);
  1923. });
  1924. },
  1925. // 点击显示录入凭证弹框
  1926. showVoucherBoxfun: function showVoucherBoxfun() {
  1927. console.log(this.documentType);
  1928. this.VoucherBox = true;
  1929. this.startdate = this.uselist[this.selectpztype].startTime;
  1930. this.enddate = this.uselist[this.selectpztype].endTime;
  1931. console.log(this.uselist[this.selectpztype]);
  1932. var NFC = '';
  1933. var array3 = Object(utils["d" /* dec2hex */])(this.uselist[this.selectpztype].cardId);
  1934. var arr4 = Object(utils["h" /* group */])(array3, 2).reverse();
  1935. arr4.map(function (li) {
  1936. NFC += li;
  1937. });
  1938. if (NFC.length != 8) {
  1939. this.voucherfrom.NFC = "";
  1940. } else {
  1941. this.voucherfrom.NFC = NFC.toUpperCase();
  1942. }
  1943. },
  1944. // 点击显示选择录入凭证类型
  1945. showelectfun: function showelectfun(i) {
  1946. if (this.selectpztype == i) {
  1947. this.selectpztype = -1;
  1948. } else {
  1949. this.selectpztype = i;
  1950. }
  1951. },
  1952. time: function time() {
  1953. var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : +new Date();
  1954. var date = new Date(time + 8 * 3600 * 1000); // 增加8小时
  1955. return date.toJSON().substr(0, 19).replace("T", " ");
  1956. },
  1957. // 已录入凭证添加
  1958. addpz: function addpz(index, row) {
  1959. var myDate = new Date();
  1960. var fingerprintId = myDate.getTime();
  1961. var voucherType = "";
  1962. if (row.type == 10) {
  1963. voucherType = 0;
  1964. } else if (row.type == 11) {
  1965. voucherType = 1;
  1966. } else if (row.type == 12) {
  1967. voucherType = 2;
  1968. } else if (row.type == 13) {
  1969. voucherType = 3;
  1970. } else if (row.type == 14) {
  1971. voucherType = 4;
  1972. }
  1973. console.log(row);
  1974. var rowdata = {
  1975. username: row.name,
  1976. pzname: row.contentJSON.pzname,
  1977. pzid: row.contentJSON.userTelephone.substr(row.contentJSON.userTelephone.length - 1, row.contentJSON.userTelephone.length - 5),
  1978. cardId: row.cardId,
  1979. siteId: this.deviceList[0].roomId,
  1980. userPassword: row.contentJSON.userPassword,
  1981. userTelephone: row.contentJSON.userTelephone,
  1982. password: row.contentJSON.password,
  1983. phone: row.contentJSON.userTelephone,
  1984. fingerprint: row.contentJSON.fingerprint,
  1985. fingerprintAlias: row.contentJSON.fingerprintAlias,
  1986. fingerprintId: fingerprintId,
  1987. pztype: voucherType,
  1988. IDcard: row.contentJSON.password,
  1989. NFC: row.contentJSON.password,
  1990. name: row.name,
  1991. id: row.id,
  1992. startdate: this.time(+new Date(this.alreadyTime[0])),
  1993. enddate: this.time(+new Date(this.alreadyTime[1])),
  1994. startTime: this.alreadyTime[0],
  1995. endTime: this.alreadyTime[1]
  1996. };
  1997. this.uselist1.push(rowdata);
  1998. // this.uselist2.splice(index, 1);
  1999. },
  2000. // 移除已添加人员凭证
  2001. deletepz: function deletepz(index, row) {
  2002. this.uselist1.splice(index, 1);
  2003. },
  2004. // 移除人员
  2005. deletefun: function deletefun(row) {
  2006. var _this12 = this;
  2007. if (this.deviceList[0].manufactureId == 201 || this.deviceList[0].manufactureId == 221) {
  2008. var data = {
  2009. lockerId: this.deviceList[0].deviceNum,
  2010. imei: this.deviceList[0].imei,
  2011. lockerUserId: JSON.parse(row.info).userPassword,
  2012. keyId: JSON.parse(row.info).userPassword,
  2013. role: 0,
  2014. action: 2, //1--添加、2--删除、3--修改
  2015. order: 6203,
  2016. cardName: row.name,
  2017. roomName: this.deviceList[0].roomName
  2018. };
  2019. Object(api["g" /* httpPost */])(data, this.$api.ZGduserOperation).then(function (res) {
  2020. _this12.$message.success("下发成功");
  2021. var data = [];
  2022. var str = {
  2023. siteId: row.siteId,
  2024. cardId: row.cardId
  2025. };
  2026. data.push(str);
  2027. Object(api["g" /* httpPost */])(data, _this12.$api.unbindCard).then(function (res) {
  2028. _this12.$message.success("删除成功");
  2029. _this12.getroomperson();
  2030. });
  2031. });
  2032. } else if (this.deviceList[0].manufactureId == 101) {
  2033. var str1 = {
  2034. imei: this.deviceList[0].imei,
  2035. deviceNum: this.deviceList[0].deviceNum,
  2036. userTelephone: JSON.parse(row.info).userTelephone,
  2037. // cardId:this.personInfo.cardId,
  2038. userPassword: JSON.parse(row.info).userPassword,
  2039. password: "20210816",
  2040. passwordStartTime: "20210813010101",
  2041. passwordEndTime: "20680813010101",
  2042. operateMode: 3,
  2043. order: 6203,
  2044. is: false,
  2045. cardName: row.name,
  2046. roomName: this.deviceList[0].roomName
  2047. };
  2048. if (JSON.parse(row.info).pass) {
  2049. str1['pass'] = true;
  2050. }
  2051. Object(api["g" /* httpPost */])(str1, this.$api.getDeviceOperateUserInfo).then(function (res2) {
  2052. if (res2.success) {
  2053. _this12.$message.success("下发成功");
  2054. var data = [];
  2055. var str = {
  2056. siteId: row.siteId,
  2057. cardId: row.cardId
  2058. };
  2059. data.push(str);
  2060. Object(api["g" /* httpPost */])(data, _this12.$api.unbindCard).then(function (res) {
  2061. _this12.$message.success("删除成功");
  2062. _this12.getroomperson();
  2063. });
  2064. }
  2065. });
  2066. }
  2067. },
  2068. // 获取人员
  2069. querySearchAsync: function querySearchAsync(queryString, cb) {
  2070. var _this13 = this;
  2071. var q = {
  2072. name: queryString
  2073. };
  2074. var data = {
  2075. pageSize: 30,
  2076. pageNum: 1,
  2077. q: stringify_default()(q)
  2078. };
  2079. var personInfo = [];
  2080. this.loading = true;
  2081. Object(api["g" /* httpPost */])(data, this.$api.getlistNum).then(function (res) {
  2082. personInfo = res.data.list;
  2083. _this13.personselect = false;
  2084. personInfo.map(function (li) {
  2085. if (li.name == queryString) {
  2086. _this13.personselect = true;
  2087. }
  2088. });
  2089. var restaurants = res.data.list;
  2090. var results = queryString ? restaurants.filter(_this13.createFilter(queryString)) : restaurants;
  2091. cb(results);
  2092. });
  2093. },
  2094. createFilter: function createFilter(queryString) {
  2095. return function (restaurant) {
  2096. return restaurant.name.indexOf(queryString) === 0;
  2097. };
  2098. },
  2099. handleSelect: function handleSelect(item) {
  2100. this.personInfo = item;
  2101. this.personselect = true;
  2102. },
  2103. // 返回
  2104. selectstep: function selectstep(i) {
  2105. if (i < this.stepindex) {
  2106. this.stepindex = i;
  2107. this.$refs.cardShow.setActiveItem(i);
  2108. }
  2109. },
  2110. // 下一步
  2111. stepnext: function stepnext() {
  2112. if (this.stepindex == 0) {
  2113. this.getroomperson();
  2114. this.getItems();
  2115. }
  2116. if (this.currentRow.id) {
  2117. var name = util["a" /* default */].findIndexArray(this.roomlist, this.currentRow.id, []);
  2118. this.addressName = name.join('/');
  2119. this.$refs.cardShow.next();
  2120. this.stepindex += 1;
  2121. this.stepindex1 = this.stepindex;
  2122. } else {
  2123. this.$message.error("请选择房间");
  2124. }
  2125. },
  2126. // 下发凭证下一步
  2127. stepnext1: function stepnext1() {
  2128. if (this.uselist1.length == 0) {
  2129. this.$message.error("请选择凭证");
  2130. } else {
  2131. this.$refs.cardShow.next();
  2132. this.stepindex += 1;
  2133. this.stepindex1 = this.stepindex;
  2134. }
  2135. },
  2136. // 获取对应房间门锁
  2137. getItems: function getItems() {
  2138. var _this14 = this;
  2139. var t = {
  2140. roomIds: [this.currentRow.id],
  2141. lockType: 1
  2142. };
  2143. var data = {
  2144. q: stringify_default()(t)
  2145. };
  2146. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  2147. _this14.deviceList = res.data.list;
  2148. if (res.data.list.length == 0) {
  2149. _this14.$message.error("请先绑定门锁");
  2150. }
  2151. });
  2152. },
  2153. // 查询选择的人员凭证
  2154. getOnePersonCerTificate: function getOnePersonCerTificate(row) {
  2155. var _this15 = this;
  2156. var data1 = {
  2157. pageNum: 0,
  2158. pageSize: 0,
  2159. q: stringify_default()({
  2160. cardId: row.cardId,
  2161. types: "10,11,12,13,14"
  2162. }),
  2163. orderBy: "create_at desc"
  2164. };
  2165. Object(api["d" /* httpGet */])(data1, this.$api.getCertificates).then(function (res) {
  2166. if (res.success) {
  2167. var dataOne = util["a" /* default */].zlib_unzip(res.data);
  2168. var list = [];
  2169. dataOne.map(function (li) {
  2170. li['contentJSON'] = JSON.parse(li.content);
  2171. li['pzname'] = JSON.parse(li.content).pzname;
  2172. if (li.type == 11) {
  2173. var fdStart = li.pzname.indexOf("蓝牙");
  2174. if (fdStart != 0) {
  2175. list.push(li);
  2176. }
  2177. } else {
  2178. list.push(li);
  2179. }
  2180. });
  2181. list.sort(function (a, b) {
  2182. return a.createAt - b.createAt;
  2183. });
  2184. _this15.uselist2 = list.reverse();
  2185. } else {
  2186. _this15.$message.error("获取该门锁凭证失败");
  2187. }
  2188. });
  2189. },
  2190. getroomperson: function getroomperson() {
  2191. var _this16 = this;
  2192. var q = {
  2193. id: this.currentRow.id
  2194. };
  2195. var data = {
  2196. q: stringify_default()(q)
  2197. };
  2198. this.uselist2 = [];
  2199. Object(api["d" /* httpGet */])(data, this.$api.getSiteTenant).then(function (res) {
  2200. res.data.list.map(function (li) {
  2201. li['startTimeText'] = moment_default()(li.startTime).format("YYYY-MM-DD HH:mm:ss");
  2202. li['endTimeText'] = moment_default()(li.endTime).format("YYYY-MM-DD HH:mm:ss");
  2203. });
  2204. _this16.uselist = res.data.list;
  2205. });
  2206. },
  2207. getalllist: function getalllist() {
  2208. var _this17 = this;
  2209. var data = {};
  2210. Object(api["d" /* httpGet */])(data, this.$api.getTree).then(function (res) {
  2211. var temp = {},
  2212. arr = [];
  2213. res.data.map(function (item, index) {
  2214. if (!temp[item.id]) {
  2215. arr.push(item);
  2216. temp[item.id] = true;
  2217. }
  2218. });
  2219. var array = Object(utils["n" /* uniqueArray */])(res.data, 'id');
  2220. _this17.ZNodesTree = Object(utils["p" /* ztreeToElementTree */])(array, {});
  2221. _this17.zNodes = arr;
  2222. _this17.addRoom();
  2223. });
  2224. },
  2225. onClick: function onClick(treeNode) {
  2226. // 点击事件
  2227. if (treeNode.children) {
  2228. var str = treeNode.children[0].acreage || "";
  2229. if (str == "" || str == null) {
  2230. this.fatherMethod(treeNode.pid);
  2231. } else {
  2232. this.fatherMethod(treeNode.id);
  2233. }
  2234. } else {
  2235. this.fatherMethod(treeNode.id);
  2236. }
  2237. },
  2238. fatherMethod: function fatherMethod(id) {
  2239. var _this18 = this;
  2240. var q = {
  2241. ancestor: id,
  2242. isRoom: 1
  2243. };
  2244. var data = {
  2245. q: stringify_default()(q)
  2246. };
  2247. Object(api["d" /* httpGet */])(data, this.$api.getSiteList).then(function (res) {
  2248. var tableData = [],
  2249. tableData1 = [],
  2250. tableData2 = [];
  2251. res.data.list.list.map(function (li, index) {
  2252. li.check = false;
  2253. tableData.push(li);
  2254. var name = util["a" /* default */].findIndexArray(_this18.ZNodesTree, li.id, []);
  2255. var path = '';
  2256. if (name) {
  2257. path = name.join('/');
  2258. }
  2259. li['path'] = path;
  2260. if (li.id == id) {
  2261. _this18.tableData.splice(index, 1);
  2262. } else if (li.count == 0) {
  2263. tableData2.push(li);
  2264. } else if (li.count > 0) {
  2265. tableData1.push(li);
  2266. }
  2267. });
  2268. _this18.tableData = tableData;
  2269. _this18.pageTotal = tableData.length;
  2270. _this18.tableData1 = tableData1;
  2271. _this18.tableData2 = tableData2;
  2272. });
  2273. },
  2274. handleClick: function handleClick(tab, event) {
  2275. if (tab.name == "second") {
  2276. this.pageTotal = this.tableData1.length;
  2277. } else if (tab.name == "third") {
  2278. this.pageTotal = this.tableData2.length;
  2279. }
  2280. },
  2281. handleChange: function handleChange(value) {
  2282. console.log(value);
  2283. },
  2284. // 触发搜索按钮
  2285. handleSearch: function handleSearch() {
  2286. this.$set(this.query, "pageIndex", 1);
  2287. this.getData();
  2288. },
  2289. // 删除操作
  2290. handleDelete: function handleDelete(index) {
  2291. var _this19 = this;
  2292. // 二次确认删除
  2293. this.$confirm("确定要删除吗?", "提示", {
  2294. type: "warning"
  2295. }).then(function () {
  2296. _this19.$message.success("删除成功");
  2297. _this19.tableData.splice(index, 1);
  2298. }).catch(function () {});
  2299. },
  2300. // 多选操作
  2301. handleCurrentChange: function handleCurrentChange(val) {
  2302. this.currentRow = val;
  2303. },
  2304. handleCurrentChange1: function handleCurrentChange1(val) {
  2305. // this.currentRow = val;
  2306. },
  2307. delAllSelection: function delAllSelection() {
  2308. var length = this.multipleSelection.length;
  2309. var str = "";
  2310. this.delList = this.delList.concat(this.multipleSelection);
  2311. for (var i = 0; i < length; i++) {
  2312. str += this.multipleSelection[i].name + " ";
  2313. }
  2314. this.$message.error("\u5220\u9664\u4E86" + str);
  2315. this.multipleSelection = [];
  2316. },
  2317. // 编辑操作
  2318. handleEdit: function handleEdit(index, row) {
  2319. this.idx = index;
  2320. this.form = row;
  2321. this.editVisible = true;
  2322. },
  2323. getRandomNumber: function getRandomNumber(n) {
  2324. var arr = new Array(n); //用于存放随机数
  2325. var randomNumber = ""; //存放随机数
  2326. for (var i = 0; i < arr.length; i++) {
  2327. arr[i] = parseInt(Math.random() * 10);
  2328. }var flag = 0;
  2329. for (var i = 0; i < arr.length - 1; i++) {
  2330. for (var j = i + 1; j < arr.length; j++) {
  2331. if (arr[i] == arr[j]) {
  2332. flag = 1;
  2333. break;
  2334. }
  2335. }
  2336. if (flag) break;
  2337. }
  2338. for (var i = 0; i < arr.length; i++) {
  2339. randomNumber += arr[i];
  2340. }
  2341. return randomNumber;
  2342. },
  2343. // 添加人员绑定
  2344. handleEditperson: function handleEditperson() {
  2345. var _this20 = this;
  2346. if (this.value2[0] == '' || this.value2[1] == '') {
  2347. this.$message.error("请选择入住和退租时间");
  2348. return false;
  2349. }
  2350. var phone = this.personInfo.phone;
  2351. if (this.deviceList.length == 0) {
  2352. this.$message.error("请先绑定设备");
  2353. return false;
  2354. } else {
  2355. var result = this.uselist.some(function (item) {
  2356. return item.cardId == _this20.personInfo.id;
  2357. });
  2358. if (!result) {
  2359. if (this.personInfo.name == "" || this.personInfo.type === "" || this.personInfo.number == "" || this.personInfo.phone == "" || this.personInfo.enterpriseId == "") {
  2360. this.$message.error("请填写完整信息");
  2361. } else {
  2362. if (this.personselect) {
  2363. var data = [{
  2364. cardId: this.personInfo.id,
  2365. remark: this.personInfo.remarks,
  2366. siteId: this.currentRow.id,
  2367. startTime: this.value2[0],
  2368. endTime: this.value2[1]
  2369. }];
  2370. var str = {
  2371. imei: this.deviceList[0].imei,
  2372. deviceNum: this.deviceList[0].deviceNum,
  2373. userTelephone: JSON.parse(this.personInfo.info).userTelephone,
  2374. // cardId:this.personInfo.cardId,
  2375. userPassword: JSON.parse(this.personInfo.info).userPassword,
  2376. password: JSON.parse(this.personInfo.info).userPassword,
  2377. operateMode: 26,
  2378. order: 6226,
  2379. passwordStartTime: "20210813010101",
  2380. passwordEndTime: "20680813010101",
  2381. is: false,
  2382. cardName: this.personInfo.name,
  2383. roomName: this.deviceList[0].roomName
  2384. };
  2385. this.devperson.push(str);
  2386. if (this.deviceList[0].manufactureId == 201 || this.deviceList[0].manufactureId == 221) {
  2387. var data1 = {
  2388. lockerId: this.deviceList[0].deviceNum,
  2389. imei: this.deviceList[0].imei,
  2390. lockerUserId: JSON.parse(this.personInfo.info).userPassword,
  2391. keyId: JSON.parse(this.personInfo.info).userPassword,
  2392. role: 0,
  2393. action: 1,
  2394. order: 6226,
  2395. cardName: this.personInfo.name,
  2396. roomName: this.deviceList[0].roomName
  2397. };
  2398. Object(api["g" /* httpPost */])(data1, this.$api.ZGduserOperation).then(function (res) {
  2399. if (res.success) {
  2400. var locakUserdata = {
  2401. deviceNum: _this20.deviceList[0].deviceNum,
  2402. imei: _this20.deviceList[0].imei,
  2403. cardId: _this20.personInfo.id,
  2404. content: stringify_default()(data1), //operateMode:NFC-10、把人员添加到凭证-1
  2405. type: 26,
  2406. serial: res.data.serialNumber,
  2407. startTime: _this20.value2[0].getTime() / 1000,
  2408. endTime: _this20.value2[1].getTime() / 1000
  2409. };
  2410. util["a" /* default */].sendLockUser(locakUserdata, function (callbackLOCK) {});
  2411. _this20.$message.success("添加成功");
  2412. Object(api["g" /* httpPost */])(data, _this20.$api.bindCard).then(function (res2) {
  2413. _this20.getroomperson();
  2414. });
  2415. } else {
  2416. _this20.$message.error(res.msg);
  2417. }
  2418. });
  2419. } else if (this.deviceList[0].manufactureId == 101) {
  2420. Object(api["g" /* httpPost */])(str, this.$api.getDeviceOperateUserInfo).then(function (res2) {
  2421. if (res2.success) {
  2422. var locakUserdata = {
  2423. deviceNum: _this20.deviceList[0].deviceNum,
  2424. imei: _this20.deviceList[0].imei,
  2425. cardId: _this20.personInfo.id,
  2426. content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
  2427. type: 26,
  2428. serial: res2.data.serialNumber,
  2429. startTime: _this20.value2[0].getTime() / 1000,
  2430. endTime: _this20.value2[1].getTime() / 1000
  2431. };
  2432. util["a" /* default */].sendLockUser(locakUserdata, function (callbackLOCK) {});
  2433. _this20.$message.success("添加成功");
  2434. Object(api["g" /* httpPost */])(data, _this20.$api.bindCard).then(function (res) {
  2435. _this20.getroomperson();
  2436. });
  2437. } else {
  2438. _this20.$message.error("添加失败");
  2439. }
  2440. });
  2441. }
  2442. } else {
  2443. var infostr = {
  2444. userTelephone: phone,
  2445. userPassword: phone.substring(phone.length - 6, phone.length),
  2446. userId: phone.substring(phone.length - 6, phone.length),
  2447. keyId: phone.substring(phone.length - 6, phone.length)
  2448. };
  2449. var data2 = {
  2450. card: this.personInfo.card,
  2451. cardState: 1,
  2452. name: this.personInfo.name,
  2453. number: this.personInfo.number,
  2454. info: stringify_default()(infostr),
  2455. phone: this.personInfo.phone,
  2456. // enterpriseId: this.personInfo.enterpriseId,
  2457. sex: parseInt(this.personInfo.sex),
  2458. type: this.personInfo.type
  2459. };
  2460. var str1 = {
  2461. imei: this.deviceList[0].imei,
  2462. deviceNum: this.deviceList[0].deviceNum,
  2463. userTelephone: phone,
  2464. userPassword: phone.substring(phone.length - 6, phone.length),
  2465. password: phone.substring(phone.length - 6, phone.length),
  2466. operateMode: 26,
  2467. order: 6226,
  2468. passwordStartTime: "20210813010101",
  2469. passwordEndTime: "20680813010101",
  2470. is: false,
  2471. cardName: this.personInfo.name,
  2472. roomName: this.deviceList[0].roomName
  2473. };
  2474. if (this.deviceList[0].manufactureId == 201 || this.deviceList[0].manufactureId == 221) {
  2475. var data1 = {
  2476. lockerId: this.deviceList[0].deviceNum,
  2477. imei: this.deviceList[0].imei,
  2478. lockerUserId: phone.substring(phone.length - 6, phone.length),
  2479. keyId: phone.substring(phone.length - 6, phone.length),
  2480. role: 0,
  2481. action: 1,
  2482. order: 6226,
  2483. cardName: this.personInfo.name,
  2484. roomName: this.deviceList[0].roomName
  2485. };
  2486. Object(api["g" /* httpPost */])(data1, this.$api.ZGduserOperation).then(function (res) {
  2487. if (res.success) {
  2488. _this20.$message.success("添加成功");
  2489. Object(api["g" /* httpPost */])(data2, _this20.$api.addCard).then(function (res3) {
  2490. _this20.editVisiblelist = false;
  2491. var locakUserdata = {
  2492. deviceNum: _this20.deviceList[0].deviceNum,
  2493. imei: _this20.deviceList[0].imei,
  2494. cardId: res3.data,
  2495. content: stringify_default()(data1), //operateMode:NFC-10、把人员添加到凭证-1
  2496. type: 26,
  2497. serial: res.data.serialNumber,
  2498. startTime: _this20.value2[0].getTime() / 1000,
  2499. endTime: _this20.value2[1].getTime() / 1000
  2500. };
  2501. var dataprise = [];
  2502. _this20.checkEnterpriseNode.map(function (li) {
  2503. var obj = {
  2504. itemId: res3.data,
  2505. orderId: li.value
  2506. };
  2507. dataprise.push(obj);
  2508. });
  2509. console.log(dataprise);
  2510. if (dataprise.length > 0) {
  2511. Object(api["g" /* httpPost */])(dataprise, _this20.$api.personBindEnterprise).then(function (res) {});
  2512. }
  2513. util["a" /* default */].sendLockUser(locakUserdata, function (callbackLOCK) {});
  2514. _this20.getlist(res3.data);
  2515. });
  2516. } else {
  2517. _this20.$message.error("添加失败");
  2518. }
  2519. });
  2520. } else {
  2521. Object(api["g" /* httpPost */])(str1, this.$api.getDeviceOperateUserInfo).then(function (res2) {
  2522. if (res2.success) {
  2523. _this20.$message.success("下发成功");
  2524. Object(api["g" /* httpPost */])(data2, _this20.$api.addCard).then(function (res) {
  2525. var locakUserdata = {
  2526. deviceNum: _this20.deviceList[0].deviceNum,
  2527. imei: _this20.deviceList[0].imei,
  2528. cardId: res.data,
  2529. content: stringify_default()(str1), //operateMode:NFC-10、把人员添加到凭证-1
  2530. type: 26,
  2531. serial: res2.data.serialNumber,
  2532. startTime: _this20.value2[0].getTime() / 1000,
  2533. endTime: _this20.value2[1].getTime() / 1000
  2534. };
  2535. var dataprise = [];
  2536. _this20.checkEnterpriseNode.map(function (li) {
  2537. var obj = {
  2538. itemId: res.data,
  2539. orderId: li.value
  2540. };
  2541. dataprise.push(obj);
  2542. });
  2543. if (dataprise.length > 0) {
  2544. Object(api["g" /* httpPost */])(dataprise, _this20.$api.personBindEnterprise).then(function (res) {});
  2545. }
  2546. util["a" /* default */].sendLockUser(locakUserdata, function (callbackLOCK) {});
  2547. _this20.editVisiblelist = false;
  2548. _this20.getlist(res.data);
  2549. });
  2550. } else {
  2551. _this20.$message.error("添加失败");
  2552. }
  2553. });
  2554. }
  2555. }
  2556. }
  2557. } else {
  2558. this.$message.error("此人员已存在");
  2559. }
  2560. }
  2561. },
  2562. getlist: function getlist(cardId) {
  2563. var _this21 = this;
  2564. var q = {
  2565. id: cardId
  2566. };
  2567. var data = {
  2568. pageNum: 1,
  2569. pageSize: 10,
  2570. q: stringify_default()(q)
  2571. };
  2572. Object(api["g" /* httpPost */])(data, this.$api.getlistNum).then(function (res) {
  2573. var data = [{
  2574. cardId: res.data.list[0].id,
  2575. remark: _this21.personInfo.remarks,
  2576. siteId: _this21.currentRow.id,
  2577. startTime: _this21.value2[0],
  2578. endTime: _this21.value2[1]
  2579. }];
  2580. Object(api["g" /* httpPost */])(data, _this21.$api.bindCard).then(function (res) {
  2581. _this21.getroomperson();
  2582. });
  2583. });
  2584. },
  2585. // 删除人员
  2586. handleDeleteperson: function handleDeleteperson(index) {
  2587. var _this22 = this;
  2588. // 二次确认删除
  2589. this.$confirm("确定要删除吗?", "提示", {
  2590. type: "warning"
  2591. }).then(function () {
  2592. _this22.$message.success("删除成功");
  2593. _this22.uselist.splice(index, 1);
  2594. }).catch(function () {});
  2595. },
  2596. // 保存编辑
  2597. saveEdit: function saveEdit() {
  2598. this.editVisible = false;
  2599. this.$message.success("\u4FEE\u6539\u7B2C " + (this.idx + 1) + " \u884C\u6210\u529F");
  2600. this.$set(this.tableData, this.idx, this.form);
  2601. },
  2602. // 分页导航
  2603. handlePageChange: function handlePageChange(val) {
  2604. this.$set(this.query, "pageIndex", val);
  2605. }
  2606. }
  2607. });
  2608. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-460ff523","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/CheckIn.vue
  2609. var CheckIn_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{staticClass:"cardbg"},[_c('div',{staticClass:"steps"},[_vm._l((_vm.steplist),function(item,index){return _c('div',{key:index,staticClass:"step",class:_vm.stepindex > index ? 'stepcolor' : '',on:{"click":function($event){return _vm.selectstep(index)}}},[(_vm.stepindex > index)?_c('img',{staticClass:"l1",attrs:{"src":__webpack_require__("Nv0Y"),"alt":""}}):(index == 0)?_c('img',{staticClass:"l1",attrs:{"src":__webpack_require__("LOA1"),"alt":""}}):(index == 1)?_c('img',{staticClass:"l1",attrs:{"src":__webpack_require__("NKGv"),"alt":""}}):(index == 2)?_c('img',{staticClass:"l1",attrs:{"src":__webpack_require__("LHqX"),"alt":""}}):_vm._e(),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.title))]),_vm._v(" "),(index != _vm.steplist.length - 1)?_c('img',{staticClass:"r2",attrs:{"src":__webpack_require__("o8UN"),"alt":""}}):_vm._e()])}),_vm._v(" "),(_vm.userInfo.type==0)?_c('div',{staticClass:"selectoptionClass"},[_c('selectoption')],1):_vm._e()],2),_vm._v(" "),_c('el-carousel',{ref:"cardShow",attrs:{"trigger":"click","height":"700px","autoplay":false,"indicator-position":"none","arrow":"never","initial-index":0}},[_c('el-carousel-item',[_c('el-row',{staticStyle:{"box-sizing":"border-box","margin":"0 0 0 10px"},attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":6}},[_c('el-card',{staticClass:"h700 cardbg",attrs:{"shadow":"nerver"}},[_c('el-tree',{ref:"tree",attrs:{"data":_vm.roomlist,"node-key":"id","props":_vm.defaultProps},on:{"node-click":_vm.onClick}})],1)],1),_vm._v(" "),_c('el-col',{attrs:{"span":18}},[_c('div',{staticClass:"container"},[_c('div',{staticClass:"handle-box"},[_c('el-tabs',{on:{"tab-click":_vm.handleClick},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:"activeName"}},[_c('el-tab-pane',{attrs:{"label":"所属房间","name":"first"}})],1),_vm._v(" "),_c('div',{staticClass:"nextstep",on:{"click":_vm.stepnext}},[_vm._v("下一步")])],1),_vm._v(" "),(_vm.activeName == 'first')?_c('div',{staticClass:"room-list"},[_vm._l((_vm.tableData),function(item,index){return _c('div',{key:index,staticClass:"room-li",on:{"click":function($event){item.check?_vm.checkfun(index, false):_vm.checkfun(index, true)}}},[_c('checkInRoom',{attrs:{"data":item,"index":index}}),_vm._v(" "),(item.check)?_c('img',{staticClass:"check-img",attrs:{"src":__webpack_require__("lPmh"),"alt":""}}):_c('img',{staticClass:"check-img",attrs:{"src":__webpack_require__("9DgW"),"alt":""}})],1)}),_vm._v(" "),_c('div',{staticClass:"totalPosition"},[_c('el-pagination',{attrs:{"layout":"total","total":_vm.tableData.length}})],1)],2):_vm._e(),_vm._v(" "),(_vm.activeName == 'second')?_c('div',{staticClass:"room-list"},_vm._l((_vm.tableData1),function(item,index){return _c('div',{key:index,staticClass:"room-li",on:{"click":function($event){item.check?_vm.checkfun1(index, false):_vm.checkfun1(index, true)}}},[_c('checkInRoom',{attrs:{"data":item,"index":index}}),_vm._v(" "),(item.check)?_c('img',{staticClass:"check-img",attrs:{"src":__webpack_require__("lPmh"),"alt":""}}):_c('img',{staticClass:"check-img",attrs:{"src":__webpack_require__("9DgW"),"alt":""}})],1)}),0):_vm._e(),_vm._v(" "),(_vm.activeName == 'third')?_c('div',{staticClass:"room-list"},_vm._l((_vm.tableData2),function(item,index){return _c('div',{key:index,staticClass:"room-li",on:{"click":function($event){item.check?_vm.checkfun2(index, false):_vm.checkfun2(index, true)}}},[_c('checkInRoom',{attrs:{"data":item,"index":index}}),_vm._v(" "),(item.check)?_c('img',{staticClass:"check-img",attrs:{"src":__webpack_require__("lPmh"),"alt":""}}):_c('img',{staticClass:"check-img",attrs:{"src":__webpack_require__("9DgW"),"alt":""}})],1)}),0):_vm._e()])])],1)],1),_vm._v(" "),_c('el-carousel-item',[_c('el-card',{attrs:{"shadow":"nerver"}},[_c('div',{staticClass:"pagehead"},[_c('div',{staticClass:"fjry"},[_vm._v("房间添加人员信息 "),_c('span',{staticStyle:{"font-size":"12px","margin-left":"20px"}},[_c('i',{staticClass:"el-icon-location-information
  2610. var item = ref.item;
  2611. return [_c('div',{staticClass:"name"},[_vm._v(_vm._s(item.name)+"->"+_vm._s(item.number))])]}}]),model:{value:(_vm.personInfo.name),callback:function ($$v) {_vm.$set(_vm.personInfo, "name", $$v)},expression:"personInfo.name"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"系统编号","prop":"phone"}},[_c('el-input',{staticClass:"widthThree",attrs:{"size":"small","placeholder":"为11位唯一识别,如:20220810104","clearable":true,"type":"number","maxlength":11},on:{"change":_vm.phoneChange},model:{value:(_vm.personInfo.phone),callback:function ($$v) {_vm.$set(_vm.personInfo, "phone", $$v)},expression:"personInfo.phone"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"校园卡号","prop":"number"}},[_c('el-input',{staticClass:"widthThree",attrs:{"size":"small","clearable":true,"maxlength":18},model:{value:(_vm.personInfo.number),callback:function ($$v) {_vm.$set(_vm.personInfo, "number", $$v)},expression:"personInfo.number"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"物理卡号","prop":"cardId"}},[_c('el-input',{staticClass:"widthThree",attrs:{"size":"small","clearable":true,"maxlength":18},model:{value:(_vm.personInfo.card),callback:function ($$v) {_vm.$set(_vm.personInfo, "card", $$v)},expression:"personInfo.card"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"身份","prop":"type"}},[_c('el-select',{staticClass:"widthThree",attrs:{"size":"small","placeholder":"请选择身份","clearable":""},model:{value:(_vm.personInfo.type),callback:function ($$v) {_vm.$set(_vm.personInfo, "type", $$v)},expression:"personInfo.type"}},_vm._l((_vm.userType),function(item,index){return _c('el-option',{key:index,attrs:{"label":item.label,"value":item.value}})}),1)],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"所属部门","prop":"enterpriseId"}},[_c('el-cascader',{ref:"cascader",staticClass:"widthThree",attrs:{"options":_vm.enterpriseListOption,"props":_vm.props,"collapse-tags":"","clearable":""},on:{"change":_vm.checkEnterpriseList},model:{value:(_vm.personInfo.enterpriseId),callback:function ($$v) {_vm.$set(_vm.personInfo, "enterpriseId", $$v)},expression:"personInfo.enterpriseId"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"入住时间"}},[_c('el-date-picker',{attrs:{"size":"small","type":"datetime","placeholder":"选择入住日期时间","default-time":"12:00:00"},model:{value:(_vm.value2[0]),callback:function ($$v) {_vm.$set(_vm.value2, 0, $$v)},expression:"value2[0]"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"退租时间"}},[_c('el-date-picker',{attrs:{"size":"small","type":"datetime","placeholder":"选择退租日期时间","default-time":"12:00:00"},model:{value:(_vm.value2[1]),callback:function ($$v) {_vm.$set(_vm.value2, 1, $$v)},expression:"value2[1]"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"性别","prop":"sex"}},[_c('el-select',{staticClass:"widthThree",attrs:{"size":"small","placeholder":"请选择性别","clearable":""},model:{value:(_vm.personInfo.sex),callback:function ($$v) {_vm.$set(_vm.personInfo, "sex", $$v)},expression:"personInfo.sex"}},[_c('el-option',{attrs:{"label":"男","value":1,"selected":""}}),_vm._v(" "),_c('el-option',{attrs:{"label":"女","value":2}})],1)],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"备注","prop":"remarks"}},[_c('el-input',{staticClass:"widthThree",attrs:{"size":"small","clearable":true,"maxlength":100},model:{value:(_vm.personInfo.remarks),callback:function ($$v) {_vm.$set(_vm.personInfo, "remarks", $$v)},expression:"personInfo.remarks"}})],1),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.handleEditperson}},[_vm._v("添加")])],1)],1)]),_vm._v(" "),_c('div',{staticClass:"bottomcontent"},[_c('el-card',{attrs:{"shadow":"nerver"}},[_c('div',{staticClass:"pagehead"},[_c('div',{staticClass:"fjry"},[_vm._v("已入住人员信息")])]),_vm._v(" "),_c('div',{staticClass:"bottomtable"},[_c('el-table',{ref:"multipleTable",staticClass:"table",attrs:{"data":_vm.uselist,"stripe":"","height":"300","header-cell-class-name":"table-header","highlight-current-row":""},on:{"current-cha
  2612. var file = ref.file;
  2613. return _c('div',{},[_c('img',{staticClass:"el-upload-list__item-thumbnail",attrs:{"src":file.url,"alt":""}}),_vm._v(" "),_c('span',{staticClass:"el-upload-list__item-actions"},[_c('span',{staticClass:"el-upload-list__item-preview",on:{"click":function($event){return _vm.handlePictureCardPreview(file)}}},[_c('i',{staticClass:"el-icon-zoom-in"})]),_vm._v(" "),(!_vm.disabled)?_c('span',{staticClass:"el-upload-list__item-delete",on:{"click":function($event){return _vm.handleDownload(file)}}},[_c('i',{staticClass:"el-icon-download"})]):_vm._e(),_vm._v(" "),(!_vm.disabled)?_c('span',{staticClass:"el-upload-list__item-delete",on:{"click":function($event){return _vm.handleRemove(file)}}},[_c('i',{staticClass:"el-icon-delete"})]):_vm._e()])])}}],null,false,3725501023)},[_c('i',{staticClass:"el-icon-plus",attrs:{"slot":"default"},slot:"default"})]),_vm._v(" "),_c('el-dialog',{attrs:{"visible":_vm.dialogVisible,"modal-append-to-body":false},on:{"update:visible":function($event){_vm.dialogVisible=$event}}},[_c('img',{attrs:{"width":"100%","src":_vm.dialogImageUrl,"alt":""}})])],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"开始时间"}},[_c('el-date-picker',{attrs:{"size":"small","type":"datetime","placeholder":"选择开始日期时间","default-time":"12:00:00"},model:{value:(_vm.value2[0]),callback:function ($$v) {_vm.$set(_vm.value2, 0, $$v)},expression:"value2[0]"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"结束时间"}},[_c('el-date-picker',{attrs:{"size":"small","type":"datetime","placeholder":"选择结束日期时间","default-time":"12:00:00"},model:{value:(_vm.value2[1]),callback:function ($$v) {_vm.$set(_vm.value2, 1, $$v)},expression:"value2[1]"}})],1)],1):_vm._e(),_vm._v(" "),(_vm.documentType == 11)?_c('el-form',{ref:"form",attrs:{"model":_vm.voucherfrom,"label-width":"70px"}},[_c('el-form-item',{attrs:{"label":"凭证名称"}},[_c('el-input',{attrs:{"size":"small","clearable":true},model:{value:(_vm.voucherfrom.pzname),callback:function ($$v) {_vm.$set(_vm.voucherfrom, "pzname", $$v)},expression:"voucherfrom.pzname"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"开始时间"}},[_c('el-date-picker',{attrs:{"size":"small","type":"datetime","placeholder":"选择开始日期时间","default-time":"12:00:00"},model:{value:(_vm.value2[0]),callback:function ($$v) {_vm.$set(_vm.value2, 0, $$v)},expression:"value2[0]"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"结束时间"}},[_c('el-date-picker',{attrs:{"size":"small","type":"datetime","placeholder":"选择结束日期时间","default-time":"12:00:00"},model:{value:(_vm.value2[1]),callback:function ($$v) {_vm.$set(_vm.value2, 1, $$v)},expression:"value2[1]"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"录入"}},[_c('el-radio-group',{attrs:{"size":"small"},model:{value:(_vm.voucherfrom.fingerprintAlias),callback:function ($$v) {_vm.$set(_vm.voucherfrom, "fingerprintAlias", $$v)},expression:"voucherfrom.fingerprintAlias"}},[_c('el-radio-button',{attrs:{"label":"左手大拇指"}}),_vm._v(" "),_c('el-radio-button',{attrs:{"label":"左手食指"}}),_vm._v(" "),_c('el-radio-button',{attrs:{"label":"右手大拇指"}}),_vm._v(" "),_c('el-radio-button',{attrs:{"label":"右手食指"}})],1),_vm._v(" "),(_vm.deviceList[0].manufactureId==201||_vm.deviceList[0].manufactureId==221)?_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.addfir}},[_vm._v("GX1000-zh采集指纹\n ")]):_c('iframe',{staticStyle:{"width":"100%","height":"350px"},attrs:{"src":"static/equipment/mafp_serial/index.html","frameborder":"0","id":"iframeBox"}})],1)],1):_vm._e(),_vm._v(" "),(_vm.documentType == 12)?_c('el-form',{ref:"form",attrs:{"model":_vm.voucherfrom,"label-width":"90px"}},[_c('el-form-item',{attrs:{"label":"凭证名称"}},[_c('el-input',{attrs:{"size":"small","clearable":true},model:{value:(_vm.voucherfrom.pzname),callback:function ($$v) {_vm.$set(_vm.voucherfrom, "pzname", $$v)},expression:"voucherfrom.pzname"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"识别身份证"}},[_c('el-input',{attrs:{"placeholder":"请输
  2614. var CheckIn_staticRenderFns = []
  2615. var CheckIn_esExports = { render: CheckIn_render, staticRenderFns: CheckIn_staticRenderFns }
  2616. /* harmony default export */ var views_CheckIn = (CheckIn_esExports);
  2617. // CONCATENATED MODULE: ./src/views/CheckIn.vue
  2618. function CheckIn_injectStyle (ssrContext) {
  2619. __webpack_require__("gL2q")
  2620. }
  2621. var CheckIn_normalizeComponent = __webpack_require__("VU/8")
  2622. /* script */
  2623. /* template */
  2624. /* template functional */
  2625. var CheckIn___vue_template_functional__ = false
  2626. /* styles */
  2627. var CheckIn___vue_styles__ = CheckIn_injectStyle
  2628. /* scopeId */
  2629. var CheckIn___vue_scopeId__ = "data-v-460ff523"
  2630. /* moduleIdentifier (server only) */
  2631. var CheckIn___vue_module_identifier__ = null
  2632. var CheckIn_Component = CheckIn_normalizeComponent(
  2633. CheckIn,
  2634. views_CheckIn,
  2635. CheckIn___vue_template_functional__,
  2636. CheckIn___vue_styles__,
  2637. CheckIn___vue_scopeId__,
  2638. CheckIn___vue_module_identifier__
  2639. )
  2640. /* harmony default export */ var src_views_CheckIn = __webpack_exports__["default"] = (CheckIn_Component.exports);
  2641. /***/ })
  2642. });