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dJ0jl1NhsZggSUyYveTR+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
-
- /***/ }),
-
- /***/ "LHqX":
- /***/ (function(module, exports) {
-
- module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAGbklEQVRYR9VZW2wVZRD+5mzvoEkB44NIDBejBvECig9EYwKCRnwAKgTlQdv9t6elGJ+4GBVDhPJ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lCNFjMHVCySUmaEWASDaBi5bItM8Z0irQkRCkIqkqDzO8pCES0fUCcoGicjPjEeR/SIpzcyQQ4aQkgWUlaJU8EwgSAXPUlTXbCepXFOlQe1grbAjWoDK5Gjx5PNLBZM2iqTajgIEJcIYXKFQUuJ1dXa4xTJAq1j6apTKVlZcQUkTpbJWRVKt1QJKFlDX54rF0l5woypxTX/B0tRVe/uOFkg4Wiwt3WuHUIDEEtQy4wzl8h0mA8wLd6qGCVuVom0vBO0BoCRBq5YZnQ4cfQklpww8T6nqRqFDpLHBCGO9Eca66ua2zHS8FnAUgFY1Tlr2DUptc+YONY2OEadgAUsh1IrO0S4AlG22drvGuligwy3BLhlgJYA6unWWjCtJBZt/dglB65aZtvcG1abw1Wme7qKALhbokgFdQrBLC9jsHe7QgEiXFrgqM0S61GCXGuxUajC0h6cwNCW/0NTkZDV1ykXc4bvGBaOmthGHj5aY4nDWAREfHx2qqhosRmmteGWUkOnZ9OlZnEkt0Ri75QIAzJoaiqGDxb7ANe9eQGFxnTgKRzF8ZXB/Xzwwpy/q6hoR/8ZpVFTVC6GuTgEALfS5J6MRGOCOsvJ6xK/PsAIgZlI4bhsRirJyI15LOmXa6U4EwA39fPCHmb0EKjiVXIqt/861oIC/Pt4fYT28ceRYIb7ck9P5ACByjp0WhqFDxHa4L3ZfwrGTYvWnj7cOi58ZIrxeUFiD2roGuTYuKkJknYLCKtTUml9XZqEPHMzGqWTqG7CeHuN0IbHn/3i9wAo5l6rw9oeZAgDTf0/k30OVWnf8z5170rH/4EXXAIBYoVdPL3z7faHMAv/33GBQBWpaRiku59MMAbF
-
- /***/ }),
-
- /***/ "gL2q":
- /***/ (function(module, exports) {
-
- // removed by extract-text-webpack-plugin
-
- /***/ }),
-
- /***/ "rdqC":
- /***/ (function(module, exports) {
-
- // removed by extract-text-webpack-plugin
-
- /***/ }),
-
- /***/ "sSoz":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
-
- // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
- var stringify = __webpack_require__("mvHQ");
- var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
-
- // EXTERNAL MODULE: ./src/components/zTree1.vue + 2 modules
- var zTree1 = __webpack_require__("6Ljo");
-
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/cardReader/index.vue
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- var strls = "";
- var errorno = "";
-
- //控制字定义,控制字指定,控制字的含义请查看本公司网站提供的动态库说明
-
- //javascript无法自定义常量, 你可以使用变量代替
-
- var BLOCK0_EN = 0x01; //读第一块的(16个字节)
- var BLOCK1_EN = 0x02; //读第二块的(16个字节)
- var BLOCK2_EN = 0x04; //读第三块的(16个字节)
- var NEEDSERIAL = 0x08; //仅读指定序列号的卡
- var EXTERNKEY = 0x10; //用明码认证密码,产品开发完成后,建议把密码放到设备的只写区,然后用该区的密码后台认证,这样谁都不知道密码是多少,需要这方面支持请联系
- var NEEDHALT = 0x20; //读/写完卡后立即休眠该卡,相当于这张卡不在感应区。要相重新操作该卡必要拿开卡再放上去
-
- var myctrlword = 0;
- var myareano = 0;
- var authmode = 0;
-
- var mypiccserial = "";
-
- var mypicckey = "";
- var piccdata0_2 = "";
-
- var mypicckey_old = ""; //旧密码
- var mypicckey_new = ""; //新密码
- var IcCardReader = document.getElementById("IcCardReader");
-
- /* harmony default export */ var cardReader = ({
- name: "cardReader",
- data: function data() {
- return {};
- },
-
- methods: {
- readcard: function readcard() {
- //指定控制字
- myctrlword = BLOCK0_EN + BLOCK1_EN + BLOCK2_EN + EXTERNKEY;
- //指定区号
- myareano = 8; //指定为第8区
- //批定密码模式
- authmode = 1; //大于0表示用A密码认证,推荐用A密码认证
-
- //指定序列号,未知卡序列号时可指定为8个0
- mypiccserial = "00000000";
-
- //指定密码,以下密码为厂家出厂密码
- mypicckey = "ffffffffffff";
- strls = IcCardReader.piccreadex(myctrlword, mypiccserial, myareano, authmode, mypicckey);
- errorno = strls.substr(0, 4);
-
- if (errorno == "ER00") {
- this.beep();
- }
- switch (errorno) {
- case "ER08":
- alert("寻不到卡");
- break;
- case "ER09":
- alert("寻不到卡");
- break;
- case "ER10":
- alert("寻不到卡");
- break;
-
- case "ER11":
- CardIDShower.value = "密码认证错误\r\n";
- CardIDShower.value = CardIDShower.value + strls + "\r\n";
- CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
- CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
- alert("密码认证错误");
- break;
- case "ER12":
- CardIDShower.value = "密码认证错误" + "\r\n";
- CardIDShower.value = CardIDShower.value + strls + "\r\n";
- CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
- CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
- alert("密码认证错误");
- break;
- case "ER13":
- CardIDShower.value = "读卡错误" + "\r\n";
- CardIDShower.value = CardIDShower.value + strls + "\r\n";
- CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
- CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
- alert("读卡错误");
- break;
-
- case "ER14":
- CardIDShower.value = "写卡错误" + "\r\n";
- CardIDShower.value = CardIDShower.value + strls + "\r\n";
- CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
- CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
- alert("写卡错误");
- break;
-
- case "ER21":
- alert("没找到动态库");
- break;
-
- case "ER22":
- alert("动态库或驱动程序异常");
- break;
-
- case "ER23":
- alert("读卡器未插上或动态库或驱动程序异常");
- break;
- case "ER24":
- alert("操作超时,一般是动态库没有反应");
- break;
- case "ER25":
- alert("发送字数不够");
- break;
- case "ER26":
- alert("发送的CRC错");
- break;
- case "ER27":
- alert("接收的字数不够");
- break;
- case "ER28":
- alert("接收的CRC错");
- break;
- case "ER29":
- alert("函数输入参数格式错误,请仔细查看");
- break;
- default:
- //读卡成功,其中ER00表示完全成功,ER01表示完全没读到卡数据,ER02表示仅读该卡的第一块成功,,ER02表示仅读该卡的第一二块成功,这是刷卡太快原因
- CardIDShower.value = "读卡成功" + "\r\n";
- // CardIDShower.value = CardIDShower.value + strls + "\r\n";
- // CardIDShower.value = CardIDShower.value + "其中错误号为:" + errorno + "\r\n";
- CardIDShower.value = CardIDShower.value + "卡十六进制序列号为:" + strls.substr(5, 8) + "\r\n";
- // CardIDShower.value = CardIDShower.value + "该区第一块十六进制数据为:" + strls.substr(14,32) + "\r\n";
- // CardIDShower.value = CardIDShower.value + "该区第二块十六进制数据为:" + strls.substr(46,32) + "\r\n";
- // CardIDShower.value = CardIDShower.value + "该区第三块十六进制数据为:" + strls.substr(78,32) + "\r\n";
- break;
- }
- },
- beep: function beep() {
- IcCardReader.pcdbeep(100); //100表示响100毫秒
- },
- clears1: function clears1() {
- //alert("abc");
- CardIDShower.value = "";
- }
- }
- });
- // 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
- 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)}
- 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"}})])])}]
- var esExports = { render: render, staticRenderFns: staticRenderFns }
- /* harmony default export */ var components_cardReader = (esExports);
- // CONCATENATED MODULE: ./src/components/cardReader/index.vue
- function injectStyle (ssrContext) {
- __webpack_require__("rdqC")
- }
- var normalizeComponent = __webpack_require__("VU/8")
- /* script */
-
-
- /* template */
-
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = null
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- cardReader,
- components_cardReader,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
-
- /* harmony default export */ var src_components_cardReader = (Component.exports);
-
- // EXTERNAL MODULE: ./src/api/index.js + 5 modules
- var api = __webpack_require__("gyMJ");
-
- // EXTERNAL MODULE: ./src/components/checkInRoom.vue + 2 modules
- var checkInRoom = __webpack_require__("R41B");
-
- // EXTERNAL MODULE: ./src/utils/index.js
- var utils = __webpack_require__("0xDb");
-
- // EXTERNAL MODULE: ./src/utils/equipment.js
- var equipment = __webpack_require__("ObZk");
-
- // EXTERNAL MODULE: ./src/views/zw.vue + 1 modules
- var zw = __webpack_require__("RMlb");
-
- // EXTERNAL MODULE: ./node_modules/moment/moment.js
- var moment = __webpack_require__("PJh5");
- var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
-
- // EXTERNAL MODULE: ./src/utils/util.js
- var util = __webpack_require__("oFuF");
-
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/CheckIn.vue
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
-
-
-
-
- var nowDate = new Date();
- var currentTime = nowDate;
- var endcurrentTime = Object(utils["g" /* getcurrentTime1 */])(6);
- /* harmony default export */ var CheckIn = ({
- inject: ['reload'],
- name: "campus",
- data: function data() {
- return {
- regularCard: false,
- props: {
- multiple: true,
- emitPath: false
- },
- enterpriseListOption: [],
- alreadyTime: [currentTime, endcurrentTime],
- boxHeight: '',
- boxHeightstyle: '',
- selectoption: [],
- selectoptionValue: '',
- value2: [currentTime, endcurrentTime],
- roomlist: [],
- SelectedList: [],
- defaultProps: {
- children: "children",
- label: "name"
- },
- zwid: '',
- fingerprintId: 0,
- url: "../equipment/cardReader/ic01java.html",
- steplist: [{
- src: "../assets/img/1.png",
- title: "房源选择"
- }, {
- src: "../assets/img/2.png",
- title: "人员登记"
- }, {
- src: "../assets/img/3.png",
- title: "录入凭证"
- }],
- checkList: [0],
- dialogImageUrl: '',
- dialogVisible: false,
- disabled: false,
- stepindex: 0,
- stepindex1: 0,
- query: {
- address: "",
- name: "",
- pageIndex: 1,
- pageSize: 10,
- activeName: "first"
- },
- activeName: "first",
- tableData: [],
- tableData1: [],
- tableData2: [],
- multipleSelection: [],
- delList: [],
- editVisible: false,
- pageTotal: 0,
- personInfo: {
- cardId: "",
- name: "",
- phone: "",
- number: "",
- sex: 1,
- type: 0,
- education: "",
- email: "",
- leaseTerm: "",
- rent: "",
- birth: "",
- nation: "",
- address: "",
- remarks: "",
- enterpriseId: ""
- },
- rules: {
- name: [{
- required: true,
- message: "请输入姓名",
- trigger: "blur"
- }, {
- min: 1,
- max: 8,
- message: "长度在 1 到 8 个字符",
- trigger: "blur"
- }],
- cardId: [{
- required: true,
- message: "请输入物理卡号",
- trigger: "blur"
- }],
- type: [{
- required: true,
- message: "请选择身份",
- trigger: "blur"
- }],
- number: [{
- required: true,
- message: "请输入学号",
- trigger: "blur"
- }],
- phone: [{
- required: true,
- message: "请输入手机号",
- trigger: "blur"
- }],
- enterpriseId: [{
- required: true,
- message: "请选择所属部门",
- trigger: "blur"
- }]
- },
- form: {},
- idx: -1,
- id: -1,
- showIndex: 0,
- ztreeObj: null,
- uselist: [],
- uselist1: [],
- uselist2: [],
- zNodes: [],
- setting: {
- edit: {
- enable: false,
- drag: {
- isMove: false
- },
- showRemoveBtn: false,
- showRenameBtn: false
- },
- check: {
- enable: false
- },
- data: {
- simpleData: {
- enable: true,
- pIdKey: "pid"
- }
- },
- view: {
- showIcon: true,
- addHoverDom: this.addHoverDom,
- removeHoverDom: this.removeHoverDom
- }
- },
- currentRow: [],
- options: [],
- state: "",
- loading: false,
- timeout: null,
- documentType: "",
- selectpztype: -1,
- VoucherBox: false,
- startdate: "",
- enddate: "",
- voucherfrom: {
- password: "",
- password1: "",
- startdate: "",
- enddate: "",
- fingerprint: "",
- IDcard: "",
- name: "",
- NFC: "",
- fingerprintAlias: '',
- pzname: ''
- },
- deviceList: [],
- personselect: true,
- devperson: [],
- userInfo: {
- type: ''
- },
- dataShow: true,
- enterpriselist: [],
- ZNodesTree: [],
- userType: [],
- addressName: "",
- checkEnterpriseNode: []
- };
- },
-
- components: {
- zTree: zTree1["a" /* default */],
- cardReader: src_components_cardReader,
- checkInRoom: checkInRoom["a" /* default */],
- zw: zw["a" /* default */]
- },
- watch: {
- alreadyTime: function alreadyTime(newValue, oldValue) {
- var _this2 = this;
-
- this.dataShow = false;
- this.$nextTick(function () {
- _this2.alreadyTime = newValue;
- _this2.dataShow = true;
- });
- }
- },
- beforeCreate: function beforeCreate() {
- // var tenantId = JSON.parse(localStorage.getItem('tenantId'))
- // if (tenantId == 400) {
- // this.$store.commit('defaultsettenantid')
- // }
- },
- created: function created() {
- this.userType = this.$MANUFACTURER.userType;
- this.userInfo = JSON.parse(localStorage.getItem('info'));
- this.selectoption = JSON.parse(localStorage.getItem('selectoption'));
- this.selectoptionValue = localStorage.getItem('tenantId');
- this.getalllist();
- this.getEnterprise();
- },
- mounted: function mounted() {
- var _this3 = this;
-
- this.imgLoad();
- // 监听窗口变动大小计算banner高度
- window.addEventListener("resize", function () {
- _this3.imgLoad();
- });
- },
-
- methods: {
- checkEnterpriseList: function checkEnterpriseList(e) {
- var _this4 = this;
-
- this.$nextTick(function () {
- var list = _this4.$refs['cascader'].getCheckedNodes();
- _this4.checkEnterpriseNode = list;
- console.log(_this4.checkEnterpriseNode);
- });
- },
- phoneChange: function phoneChange(e) {
- this.personInfo.id = "";
- },
-
- // 凭证避免重复
- avoidRepetition: function avoidRepetition(e, type) {
- var _this5 = this;
-
- var person = this.uselist[this.selectpztype];
- if (type == 12) {
- this.uselist2.map(function (li) {
- var content = JSON.parse(li.content);
- if (li.cardId == person.cardId && content.password == e && li.type == 12) {
- _this5.$message.error("该身份证已存在");
- _this5.voucherfrom.IDcard = '';
- }
- });
- } else if (type == 13) {
- this.uselist2.map(function (li) {
- var content = JSON.parse(li.content);
- if (li.cardId == person.cardId && content.password == e && li.type == 13) {
- _this5.$message.error("该NFC已存在");
- _this5.voucherfrom.NFC = '';
- }
- });
- } else if (type == 14) {
- this.uselist2.map(function (li) {
- var content = JSON.parse(li.content);
- if (li.cardId == person.cardId && content.password == e && li.type == 14) {
- _this5.$message.error("该密码已存在");
- _this5.voucherfrom.password = '';
- }
- });
- }
- },
-
- // 指纹别名
- fingerprintAliasMethod: function fingerprintAliasMethod(e) {
- var _this6 = this;
-
- var person = this.uselist[this.selectpztype];
- this.uselist2.map(function (li) {
- var content = JSON.parse(li.content);
- if (li.cardId == person.card && content.fingerprintAlias == e && li.type == 11) {
- _this6.$message.error("该指纹已存在");
- _this6.voucherfrom.fingerprintAlias = '';
- }
- });
- },
- getEnterprise: function getEnterprise() {
- var _this7 = this;
-
- Object(api["d" /* httpGet */])("", this.$api.getEnterprise).then(function (res) {
- res.data.list.map(function (li) {
- li['pid'] = li.parentId;
- li['label'] = li.name;
- li['value'] = li.id;
- });
- var array = util["a" /* default */].uniqueArray(res.data.list, "id");
- var roomlistZNodes = Object(utils["q" /* ztreeToElementTree2 */])(array, []);
- _this7.enterpriseListOption = roomlistZNodes;
- _this7.enterpriselist = res.data.list;
- });
- },
- changeDate: function changeDate(val) {
- console.log(val);
- this.$forceUpdate();
- this.alreadyTime = val;
- },
- imgLoad: function imgLoad() {
- this.$nextTick(function () {
- this.boxHeight = document.documentElement.clientHeight - 100 + 'px;';
- });
- },
- selectTenantId: function selectTenantId(e) {
- localStorage.setItem('tenantId', e);
- this.reload();
- },
-
- // 读卡
- // readCardFun() {
- // var _this = this
- // this.$refs.mychild.cardFun(0x8010, function(data) {
- // if (data.status == 0) {
- // _this.voucherfrom.NFC = data.cardNo.toUpperCase()
- // _this.$message.success("读取成功")
- // } else {
- // _this.$message.error("读取失败")
- // }
- // })
- // },
- // // 读卡
- // readCardFun1() {
- // var _this = this
- // this.$refs.mychild.cardFun(0x8010, function(data) {
- // if (data.status == 0) {
- // _this.voucherfrom.idcard = data.cardNo.toUpperCase()
- // _this.$message.success("读取成功")
- // } else {
- // _this.$message.error("读取失败")
- // }
- // })
- // },
- // 采集指纹
- addfir: function addfir() {
- var _this = this;
- this.$refs.mychild.addFingerprintFun(0x8014, function (data) {
- localStorage.setItem('fingerprint', data);
- _this.localFingerprint = data;
- });
- },
- setVoucherNfc: function setVoucherNfc(data) {
- if (data.cardType == 50) {
- var nfc = "";
- var str = data.cardNo.substr(0, 8);
- var arr4 = Object(utils["h" /* group */])(str, 2).reverse();
- arr4.map(function (li) {
- nfc += li;
- });
- this.voucherfrom.NFC = nfc.toUpperCase();
- } else if (data.cardType == 36) {
- this.voucherfrom.IDcard = data.cardNo.toUpperCase();
- }
- },
- addNfc: function addNfc() {
- var _this = this;
- this.$refs.mychild.cardFun(0x8010, function (data) {
- if (data.status == 0) {
- _this.setVoucherNfc(data);
- } else {
- _this.$message.error("读卡错误,请检查读卡器是否正常!");
- }
- });
- },
-
- //添加房源
- addRoom: function addRoom() {
- var _this8 = this;
-
- var data = {};
- Object(api["d" /* httpGet */])(data, this.$api.getSiteList).then(function (res) {
- res.data.list.list.map(function (li) {
- var name = util["a" /* default */].findIndexArray(_this8.ZNodesTree, li.id, []);
- var path = '';
- if (name) {
- path = name.join('/');
- }
- li['path'] = path;
- });
- var array = Object(utils["n" /* uniqueArray */])(res.data.list.list, 'id');
- _this8.roomlist = Object(utils["p" /* ztreeToElementTree */])(array, {});
- });
- },
- selectCheck: function selectCheck(e) {
- if (e == '左手大拇指') {
- this.fingerprintId = 0;
- this.voucherfrom.nam = '左手大拇指';
- } else if (e == '左手食指') {
- this.fingerprintId = 1;
- this.voucherfrom.nam = '左手食指';
- } else if (e == '右手大拇指') {
- this.fingerprintId = 2;
- this.voucherfrom.nam = '右手大拇指';
- } else if (e == '右手食指') {
- this.fingerprintId = 3;
- this.voucherfrom.nam = '右手食指';
- }
- },
-
- // 人脸图片上传功能
- handleRemove: function handleRemove(file) {
- console.log(file);
- },
- handlePictureCardPreview: function handlePictureCardPreview(file) {
- this.dialogImageUrl = file.url;
- this.dialogVisible = true;
- },
- handleDownload: function handleDownload(file) {
- console.log(file);
- },
- checkfun: function checkfun(index, status) {
- this.tableData.map(function (li) {
- li.check = false;
- });
- this.tableData[index].check = status;
- this.currentRow = this.tableData[index];
- },
- checkfun1: function checkfun1(index, status) {
- this.tableData1.map(function (li) {
- li.check = false;
- });
- this.tableData1[index].check = status;
- this.currentRow = this.tableData1[index];
- },
- checkfun2: function checkfun2(index, status) {
- this.tableData2.map(function (li) {
- li.check = false;
- });
- this.tableData2[index].check = status;
- this.currentRow = this.tableData2[index];
- },
-
- // 选中凭证
- checkBoxfun: function checkBoxfun() {
- console.log(this.checkList);
- },
-
- // 添加凭证
- complete: function complete() {
- var _this9 = this;
-
- if (this.checkList.length == 0) {
- this.$message.error("请选择下发凭证");
- } else {
- this.uselist1.map(function (li, index) {
- setTimeout(function () {
- _this9.addpzcomp(index);
- }, 1000);
- });
- this.stepindex = 0;
- setTimeout(function () {
- _this9.uselist1 = [];
- }, 2000);
- }
- },
- addpzcomp: function addpzcomp(i) {
- var _this10 = this;
-
- var str = {};
- var endTime = new Date(this.uselist1[i].endTime).getTime();
- var startTime = new Date(this.uselist1[i].startTime).getTime();
- endTime = parseInt(endTime / 1000);
- startTime = parseInt(startTime / 1000);
- var passwordStartTime = moment_default()(startTime * 1000).format("YYYYMMDDHHmmss");
- var passwordEndTime = moment_default()(endTime * 1000).format("YYYYMMDDHHmmss");
- var pzname = '',
- cardName = this.uselist1[i].name;
- if (this.deviceList[0].manufactureId == 201 || this.deviceList[0].manufactureId == 221) {
- var data3 = {};
- var userPassword = this.uselist1[i].userPassword;
- var userTelephone = this.uselist1[i].userTelephone;
- if (this.uselist1[i].pztype == 1) {
- cardName = cardName + '-' + this.uselist1[i].pzname;
- pzname = this.uselist1[i].pzname;
- var fingerprint = this.uselist1[i].fingerprint;
- 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) {
- if (callback.success) {
- str = {
- pzname: pzname,
- imei: _this10.deviceList[0].imei,
- deviceNum: _this10.deviceList[0].deviceNum,
- userTelephone: userTelephone,
- userPassword: userPassword,
- fingerprintAlias: _this10.uselist1[i].fingerprintAlias,
- password: '',
- length: fingerprint.length / 2,
- fpTimeId: '',
- operateMode: 16,
- order: 6216,
- fingerprint: fingerprint,
- passwordStartTime: startTime,
- passwordEndTime: endTime,
- cardName: cardName,
- roomName: _this10.deviceList[0].roomName
- };
- var data = {
- cardId: _this10.uselist1[i].cardId,
- content: stringify_default()(str),
- deviceNum: _this10.deviceList[0].deviceNum,
- type: _this10.uselist1[i].pztype,
- imei: _this10.deviceList[0].imei,
- serial: callback.data.serialNumber,
- startTime: startTime,
- endTime: endTime
- };
- Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {
- if (res.success) {
- _this10.$message.success("添加成功");
- } else {
- _this10.$message.error("添加失败");
- }
- });
- } else {
- _this10.$message.error("下发失败");
- }
- });
- this.$refs.cardShow.setActiveItem(0);
- return;
- } else if (this.uselist1[i].pztype == 2) {
- var idcard = '';
- if (this.uselist1[i].IDcard.length == 16) {
- idcard = this.uselist1[i].IDcard;
- } else {
- idcard = Object(utils["d" /* dec2hex */])(this.uselist1[i].IDcard);
- }
- if (this.uselist1[i].pzname) {
- cardName = cardName + '-' + this.uselist1[i].pzname;
- pzname = this.uselist1[i].pzname;
- } else {
- cardName = cardName + '-身份证' + this.uselist1[i].pzid || 1;
- pzname = '身份证' + this.uselist1[i].pzid || 1;
- }
- // var arr4 = group(idcard, 2).reverse();
- // var nfc = "";
- // arr4.map((li) => {
- // nfc += li;
- // });
- if (idcard.length != 16) {
- this.$message.error("卡格式错误,请重新录入");
- return;
- }
- str = {
- pzname: pzname,
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- userTelephone: userTelephone,
- userPassword: userPassword,
- operateMode: 13,
- order: 6213,
- password: idcard.toUpperCase(),
- passwordStartTime: startTime,
- passwordEndTime: endTime,
- is: false,
- cardName: cardName,
- roomName: this.deviceList[0].roomName
- };
- 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) {
- if (callback.success) {
- var data = {
- cardId: _this10.uselist1[i].cardId,
- content: stringify_default()(str),
- deviceNum: _this10.deviceList[0].deviceNum,
- type: _this10.uselist1[i].pztype,
- imei: _this10.deviceList[0].imei,
- serial: callback.data.serialNumber,
- startTime: startTime,
- endTime: endTime
- };
- Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {
- if (res.success) {
- _this10.$message.success("添加成功");
- } else {
- _this10.$message.error("添加失败");
- }
- });
- } else {
- _this10.$message.error("下发失败");
- }
- });
- this.$refs.cardShow.setActiveItem(0);
- return;
- } else if (this.uselist1[i].pztype == 3) {
- var nfc = "";
- if (this.uselist1[i].NFC.length == 8) {
- // nfc = this.uselist1[i].NFC
- nfc = util["a" /* default */].cardFormatConversion(this.uselist1[i].NFC);
- nfc = nfc + '00000000';
- } else {
- var arr2 = Object(utils["d" /* dec2hex */])(this.uselist1[i].NFC);
- var arr4 = Object(utils["h" /* group */])(arr2, 2);
- arr4.map(function (li) {
- nfc += li;
- });
- nfc = nfc + '00000000';
- }
- if (this.uselist1[i].pzname) {
- cardName = cardName + '-' + this.uselist1[i].pzname;
- pzname = this.uselist1[i].pzname;
- } else {
- cardName = cardName + '-NFC' + this.uselist1[i].pzid || 1;
- pzname = 'NFC' + this.uselist1[i].pzid || 1;
- }
- if (nfc.length != 16) {
- this.$message.error("卡格式错误,请重新录入");
- return;
- }
- str = {
- pzname: pzname,
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- userTelephone: userTelephone,
- userPassword: userPassword,
- operateMode: 10,
- order: 6210,
- password: nfc.toUpperCase(),
- passwordStartTime: startTime,
- passwordEndTime: endTime,
- is: false,
- cardName: cardName,
- roomName: this.deviceList[0].roomName
- };
- 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) {
- if (callback.success) {
- var data = {
- cardId: _this10.uselist1[i].cardId,
- content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
- deviceNum: _this10.deviceList[0].deviceNum,
- type: _this10.uselist1[i].pztype,
- imei: _this10.deviceList[0].imei,
- serial: callback.data.serialNumber,
- startTime: startTime,
- endTime: endTime
- };
- Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {
- if (res.success) {
- _this10.$message.success("添加成功");
- } else {
- _this10.$message.error("添加失败");
- }
- });
- } else {
- _this10.$message.error("下发失败");
- }
- });
- this.$refs.cardShow.setActiveItem(0);
- return;
- } else if (this.uselist1[i].pztype == 4) {
- if (this.uselist1[i].pzname) {
- cardName = cardName + '-' + this.uselist1[i].pzname;
- pzname = this.uselist1[i].pzname;
- } else {
- cardName = cardName + '-密码' + this.uselist1[i].pzid || 1;
- pzname = '密码' + this.uselist1[i].pzid || 1;
- }
- str = {
- pzname: pzname,
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- userTelephone: userTelephone,
- userPassword: userPassword,
- operateMode: 7,
- order: 6207,
- password: this.uselist1[i].password,
- passwordStartTime: startTime,
- passwordEndTime: endTime,
- is: false,
- cardName: cardName,
- roomName: this.deviceList[0].roomName
- };
- 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) {
- if (callback.success) {
- var data = {
- cardId: _this10.uselist1[i].cardId,
- content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
- deviceNum: _this10.deviceList[0].deviceNum,
- type: _this10.uselist1[i].pztype,
- imei: _this10.deviceList[0].imei,
- serial: callback.data.serialNumber,
- startTime: startTime,
- endTime: endTime
- };
- Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {
- if (res.success) {
- _this10.$message.success("添加成功");
- } else {
- _this10.$message.error("添加失败");
- }
- });
- } else {
- _this10.$message.error("下发失败");
- }
- });
- this.$refs.cardShow.setActiveItem(0);
- return;
- }
- } else if (this.deviceList[0].manufactureId == 101) {
- if (this.uselist1[i].pztype == 1) {
- cardName = cardName + '-' + this.uselist1[i].pzname;
- pzname = this.uselist1[i].pzname;
- var fpId = new Date();
- str = {
- username: this.uselist1[i].username,
- pzname: pzname,
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- userTelephone: this.uselist1[i].userTelephone,
- userPassword: this.uselist1[i].userPassword,
- fingerprintAlias: this.uselist1[i].fingerprintAlias,
- password: 'F1',
- length: this.uselist1[i].fingerprint.length / 2,
- fpTimeId: fpId.getTime(),
- order: 6216,
- operateMode: 16,
- fingerprint: this.uselist1[i].fingerprint,
- fingerprintStartTime: passwordStartTime,
- fingerprintEndTime: passwordEndTime,
- cardName: cardName,
- roomName: this.deviceList[0].roomName
- };
- Object(api["g" /* httpPost */])(str, this.$api.fingerprintTransfer).then(function (res1) {
- if (res1.success) {
- var data = {
- cardId: _this10.uselist1[i].cardId,
- content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
- deviceNum: _this10.deviceList[0].deviceNum,
- type: _this10.uselist1[i].pztype,
- imei: _this10.deviceList[0].imei,
- serial: res1.data.serialNumber,
- startTime: startTime,
- endTime: endTime
- };
- Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {});
- _this10.$refs.cardShow.setActiveItem(0);
- } else {
- _this10.$message.error("下发失败");
- }
- });
- return false;
- } else if (this.uselist1[i].pztype == 2) {
- var idcard = '';
- if (this.uselist1[i].IDcard.length == 16) {
- var idcard = this.uselist1[i].IDcard;
- } else {
- idcard = Object(utils["d" /* dec2hex */])(this.uselist1[i].IDcard);
- }
- if (this.uselist1[i].pzname) {
- cardName = cardName + '-' + this.uselist1[i].pzname;
- pzname = this.uselist1[i].pzname;
- } else {
- cardName = cardName + '-身份证' + this.uselist1[i].pzid || 1;
- pzname = '身份证' + this.uselist1[i].pzid || 1;
- }
- str = {
- username: this.uselist1[i].username,
- pzname: pzname,
- cardId: this.uselist1[i].cardId,
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- userTelephone: this.uselist1[i].userTelephone,
- operateMode: 13,
- order: 6213,
- userPassword: this.uselist1[i].userPassword,
- password: idcard.toUpperCase(),
- passwordStartTime: passwordStartTime,
- passwordEndTime: passwordEndTime,
- is: false,
- cardName: cardName,
- roomName: this.deviceList[0].roomName
- };
- } else if (this.uselist1[i].pztype == 3) {
- var nfc = "";
- if (this.uselist1[i].NFC.length == 8) {
- nfc = this.uselist1[i].NFC;
- } else {
- var arr2 = Object(utils["d" /* dec2hex */])(this.uselist1[i].NFC);
- var arr4 = Object(utils["h" /* group */])(arr2, 2);
- arr4.map(function (li) {
- nfc += li;
- });
- }
- if (this.uselist1[i].pzname) {
- cardName = cardName + '-' + this.uselist1[i].pzname;
- pzname = this.uselist1[i].pzname;
- } else {
- cardName = cardName + '-NFC' + this.uselist1[i].pzid || 1;
- pzname = 'NFC' + this.uselist1[i].pzid || 1;
- }
- str = {
- username: this.uselist1[i].username,
- pzname: pzname,
- cardId: this.uselist1[i].cardId,
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- userTelephone: this.uselist1[i].userTelephone,
- operateMode: 10,
- order: 6210,
- userPassword: this.uselist1[i].userPassword,
- password: nfc.toUpperCase(),
- passwordStartTime: passwordStartTime,
- passwordEndTime: passwordEndTime,
- is: false,
- cardName: cardName,
- roomName: this.deviceList[0].roomName
- };
- } else if (this.uselist1[i].pztype == 4) {
- if (this.uselist1[i].pzname) {
- cardName = cardName + '-' + this.uselist1[i].pzname;
- pzname = this.uselist1[i].pzname;
- } else {
- cardName = cardName + '-NFC' + this.uselist1[i].pzid || 1;
- pzname = 'NFC' + this.uselist1[i].pzid || 1;
- }
- str = {
- username: this.uselist1[i].username,
- pzname: pzname,
- cardId: this.uselist1[i].cardId,
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- password: this.uselist1[i].password,
- userTelephone: this.uselist1[i].userTelephone,
- operateMode: 7,
- order: 6207,
- passwordStartTime: passwordStartTime,
- passwordEndTime: passwordEndTime,
- userPassword: this.uselist1[i].userPassword,
- is: false,
- cardName: cardName,
- roomName: this.deviceList[0].roomName
- };
- }
- Object(api["g" /* httpPost */])(str, this.$api.getDeviceOperateUserInfo).then(function (res1) {
- if (res1.success) {
- var data = {
- cardId: _this10.uselist1[i].cardId,
- content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
- deviceNum: _this10.deviceList[0].deviceNum,
- type: _this10.uselist1[i].pztype,
- imei: _this10.deviceList[0].imei,
- serial: res1.data.serialNumber,
- startTime: startTime,
- endTime: endTime
- };
- Object(api["g" /* httpPost */])(data, _this10.$api.addCertificates).then(function (res) {});
- _this10.$message.success("下发成功");
- // this.deviceList = [];
- } else {
- _this10.$message.error("下发失败");
- }
- });
- this.$refs.cardShow.setActiveItem(0);
- }
- },
- Bytes2Str: function Bytes2Str(arrBytes) {
- var str = "";
- for (var i = 0; i < arrBytes.length; i++) {
- var tmp;
- var num = parseInt(arrBytes[i]);
- if (num < 0) {
- //此处填坑,当byte因为符合位导致数值为负时候,需要对数据进行处理
- tmp = (255 + num + 1).toString(16);
- } else {
- tmp = num.toString(16);
- }
- if (tmp.length == 1) {
- tmp = "0" + tmp;
- }
- if (i > 0) {
- str += "" + tmp;
- } else {
- str += tmp;
- }
- }
- return str;
- },
- stringToHex: function stringToHex(str) {
- var val = "";
- for (var i = 0; i < str.length; i++) {
- val += parseInt(str[i]).toString(16);
- }
- return val;
- },
- getTypeSort: function getTypeSort(data, type, cardId) {
- var num = 1;
- data.map(function (li) {
- if (li.type == type && li.cardId == cardId) {
- num++;
- }
- });
- return num;
- },
-
- // 提交凭证录入弹框内容
- saveVoucherfrom: function saveVoucherfrom() {
- var _this = this;
- if (this.value2[0] == '' || this.value2[1] == '') {
- this.$message.error("请选择开始和结束时间");
- return false;
- }
- // if (this.voucherfrom.pzname == '') {
- // this.$message.error("请填写凭证名称");
- // return
- // }
- var sort = this.getTypeSort(this.uselist2, this.documentType, this.uselist[_this.selectpztype].cardId);
- var pzname = this.voucherfrom.pzname;
- if (this.documentType == 12) {
- if (this.voucherfrom.IDcard == "") {
- this.$message.error("身份证号不能为空");
- return;
- }
- } else if (this.documentType == 13) {
- if (this.voucherfrom.NFC == "") {
- this.$message.error("NFC不能为空");
- return;
- }
- if (this.voucherfrom.NFC.length != 8) {
- this.$message.error("NFC格式错误,请重新录入");
- return;
- }
- } else if (this.documentType == 14) {
- if (this.voucherfrom.password == "") {
- this.$message.error("密码不能为空");
- return;
- }
- }
- if (pzname == '') {
- if (this.documentType == 11) {
- pzname = '指纹' + sort;
- } else if (this.documentType == 12) {
- pzname = '身份证' + sort;
- } else if (this.documentType == 13) {
- pzname = 'NFC' + sort;
- } else if (this.documentType == 14) {
- pzname = '密码' + sort;
- }
- }
- if (this.documentType == 11) {
- var fingerprint = localStorage.getItem("fingerprint");
- if (this.deviceList[0].manufactureId == 101) {
- var array = fingerprint.split(",");
- var num = this.Bytes2Str(array);
- this.voucherfrom.fingerprint = num;
- if (fingerprint == "") {
- this.$message.error("请录入指纹");
- return;
- }
- } else {
- this.voucherfrom.fingerprint = fingerprint;
- }
- if (this.voucherfrom.fingerprintAlias == '') {
- this.$message.error("请选择指纹别名");
- return;
- }
- }
- if (this.voucherfrom.password != this.voucherfrom.password1) {
- this.$message.error("两次输入的密码不一致,请重新输入!");
- return;
- } else if (parseInt(this.voucherfrom.password.length) % 2 != 0 && this.voucherfrom.password.length != 0) {
- this.$message.error("输入的密码长度需要为6位!");
- return;
- } else {
- var NFCData = this.voucherfrom.NFC;
- if (this.regularCard) {
- NFCData = NFCData + 'AA55';
- }
- var row = {
- username: _this.uselist[_this.selectpztype].name,
- pzname: pzname,
- cardId: _this.uselist[_this.selectpztype].cardId,
- siteId: _this.uselist[_this.selectpztype].siteId,
- userPassword: JSON.parse(this.uselist[_this.selectpztype].info).userPassword,
- userTelephone: JSON.parse(_this.uselist[_this.selectpztype].info).userTelephone,
- password: _this.voucherfrom.password,
- phone: _this.uselist[_this.selectpztype].phone,
- fingerprint: _this.voucherfrom.fingerprint,
- fingerprintId: _this.fingerprintId,
- fingerprintAlias: _this.voucherfrom.fingerprintAlias,
- pztype: _this.documentType,
- IDcard: _this.voucherfrom.IDcard,
- NFC: NFCData,
- name: _this.uselist[_this.selectpztype].name,
- id: _this.uselist[_this.selectpztype].id,
- startdate: this.time(+new Date(_this.startdate)),
- enddate: _this.time(+new Date(_this.enddate)),
- startTime: _this.value2[0],
- endTime: _this.value2[1]
- };
- _this.addpzMethods(row);
- _this.creatVoucher(row);
- _this.VoucherBox = false;
- _this.$message.success("提交成功");
- }
- },
- addpzMethods: function addpzMethods(row) {
- var myDate = new Date();
- var fingerprintId = myDate.getTime();
- var voucherType = "";
- if (row.pztype == 10) {
- voucherType = 0;
- } else if (row.pztype == 11) {
- voucherType = 1;
- } else if (row.pztype == 12) {
- voucherType = 2;
- } else if (row.pztype == 13) {
- voucherType = 3;
- } else if (row.pztype == 14) {
- voucherType = 4;
- }
- var rowdata = {
- username: row.username,
- pzname: row.pzname,
- cardId: row.cardId,
- siteId: row.siteId,
- userPassword: row.userPassword,
- userTelephone: row.userTelephone,
- password: row.password,
- phone: row.userTelephone,
- fingerprint: row.fingerprint,
- fingerprintAlias: row.fingerprintAlias,
- fingerprintId: fingerprintId,
- pztype: voucherType,
- IDcard: row.IDcard,
- NFC: row.NFC,
- name: row.name,
- id: row.id,
- startdate: row.startdate,
- enddate: row.enddate,
- startTime: row.startTime,
- endTime: row.endTime
- };
- this.uselist1.push(rowdata);
- // this.uselist2.splice(index, 1);
- },
- creatVoucher: function creatVoucher(row) {
- var _this11 = this;
-
- var cardName = "",
- pzname = "";
- if (row.pztype == 11) {
- var fingerprint = row.fingerprint;
- if (row.pzname) {
- pzname = row.pzname;
- } else {
- pzname = '指纹' + row.pzid || 1;
- }
- var str = {
- username: row.username,
- pzname: pzname,
- userTelephone: row.userTelephone,
- userPassword: row.userPassword,
- fingerprintAlias: row.fingerprintAlias,
- password: "",
- passwordStartTime: parseInt(row.startTime.getTime() / 1000),
- passwordEndTime: parseInt(row.endTime.getTime() / 1000),
- operateMode: 16,
- order: 6216,
- fingerprint: fingerprint
- };
- var data = {
- cardId: row.cardId,
- content: stringify_default()(str),
- type: row.pztype,
- startTime: parseInt(row.startTime.getTime() / 1000),
- endTime: parseInt(row.endTime.getTime() / 1000)
- };
- Object(api["g" /* httpPost */])(data, this.$api.addCertificates).then(function (res) {});
- this.uselist2 = [];
- this.getOnePersonCerTificate(row);
- return false;
- } else if (row.pztype == 12) {
- var arr2 = '';
- if (row.IDcard.length == 16) {
- arr2 = row.IDcard;
- } else if (row.IDcard.length == 0) {
- this.$message.error("请输入身份证");
- return false;
- } else {
- arr2 = Object(utils["d" /* dec2hex */])(row.IDcard);
- }
- cardName = row.username;
- if (row.pzname) {
- cardName += '-' + row.pzname;
- pzname = row.pzname;
- } else {
- cardName += '-身份证' + row.cardId || 1;
- pzname = '身份证' + row.cardId || 1;
- }
- str = {
- username: row.username,
- pzname: row.pzname,
- userTelephone: row.userTelephone,
- userPassword: row.userPassword,
- operateMode: 13,
- order: 6213,
- password: arr2.toUpperCase(), //this.voucher.idcard,
- passwordStartTime: moment_default()(row.startTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
- passwordEndTime: moment_default()(row.endTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
- is: false,
- cardName: cardName
- };
- } else if (row.pztype == 13) {
- var nfc = "";
- if (row.NFC.length == 8) {
- nfc = row.NFC;
- } else if (row.NFC.length == 0) {
- this.$message.error("请输入NFC");
- return false;
- } else {
- var array3 = Object(utils["d" /* dec2hex */])(row.NFC);
- var arr4 = Object(utils["h" /* group */])(array3, 2);
- arr4.map(function (li) {
- nfc += li;
- });
- }
- cardName = row.username;
- if (row.pzname) {
- cardName += '-' + row.pzname;
- pzname = row.pzname;
- } else {
- cardName += '-NFC' + row.cardId || 1;
- pzname = 'NFC' + row.cardId || 1;
- }
- str = {
- username: row.username,
- pzname: row.pzname,
- operateMode: 10,
- order: 6210,
- userTelephone: row.userTelephone,
- userPassword: row.userPassword,
- password: nfc.toUpperCase(), //this.voucher.nfc,
- passwordStartTime: moment_default()(row.startTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
- passwordEndTime: moment_default()(row.endTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
- is: false,
- cardName: cardName
- };
- } else if (row.pztype == 14) {
- if (row.password.length != 6) {
- this.$message.error("密码长度为6位");
- return false;
- } else if (row.password.length == 0) {
- this.$message.error("请输入密码");
- return false;
- }
- cardName = row.username;
- if (row.pzname) {
- cardName += '-' + row.pzname;
- pzname = row.pzname;
- } else {
- cardName += '-密码' + row.cardId || 1;
- pzname = '密码' + row.cardId || 1;
- }
- str = {
- username: row.username,
- pzname: row.pzname,
- password: row.password,
- userTelephone: row.userTelephone,
- userPassword: row.userPassword,
- operateMode: 7,
- order: 6207,
- passwordStartTime: moment_default()(row.startTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
- passwordEndTime: moment_default()(row.endTime.getTime() / 1000).format('YYYYMMDDHHmmss'),
- is: false,
- cardName: cardName
- };
- }
- var data = {
- cardId: row.cardId,
- content: stringify_default()(str),
- type: row.pztype,
- startTime: parseInt(row.startTime.getTime() / 1000),
- endTime: parseInt(row.endTime.getTime() / 1000)
- };
- Object(api["g" /* httpPost */])(data, this.$api.addCertificates).then(function (res) {
- _this11.uselist2 = [];
- _this11.getOnePersonCerTificate(row);
- });
- },
- getcertififun: function getcertififun(id, callback) {
- var data = {
- pageNum: 1,
- pageSize: 1,
- orderBy: "create_at desc",
- // orderType: "desc",
- // orderBy: "createAt",
- q: {
- cardId: id
- }
- };
- Object(api["d" /* httpGet */])(data, this.$api.getCertificates).then(function (res) {
- callback(res);
- });
- },
-
- // 点击显示录入凭证弹框
- showVoucherBoxfun: function showVoucherBoxfun() {
- console.log(this.documentType);
- this.VoucherBox = true;
- this.startdate = this.uselist[this.selectpztype].startTime;
- this.enddate = this.uselist[this.selectpztype].endTime;
- console.log(this.uselist[this.selectpztype]);
- var NFC = '';
- var array3 = Object(utils["d" /* dec2hex */])(this.uselist[this.selectpztype].cardId);
- var arr4 = Object(utils["h" /* group */])(array3, 2).reverse();
- arr4.map(function (li) {
- NFC += li;
- });
- if (NFC.length != 8) {
- this.voucherfrom.NFC = "";
- } else {
- this.voucherfrom.NFC = NFC.toUpperCase();
- }
- },
-
- // 点击显示选择录入凭证类型
- showelectfun: function showelectfun(i) {
- if (this.selectpztype == i) {
- this.selectpztype = -1;
- } else {
- this.selectpztype = i;
- }
- },
- time: function time() {
- var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : +new Date();
-
- var date = new Date(time + 8 * 3600 * 1000); // 增加8小时
- return date.toJSON().substr(0, 19).replace("T", " ");
- },
-
- // 已录入凭证添加
- addpz: function addpz(index, row) {
- var myDate = new Date();
- var fingerprintId = myDate.getTime();
- var voucherType = "";
- if (row.type == 10) {
- voucherType = 0;
- } else if (row.type == 11) {
- voucherType = 1;
- } else if (row.type == 12) {
- voucherType = 2;
- } else if (row.type == 13) {
- voucherType = 3;
- } else if (row.type == 14) {
- voucherType = 4;
- }
- console.log(row);
- var rowdata = {
- username: row.name,
- pzname: row.contentJSON.pzname,
- pzid: row.contentJSON.userTelephone.substr(row.contentJSON.userTelephone.length - 1, row.contentJSON.userTelephone.length - 5),
- cardId: row.cardId,
- siteId: this.deviceList[0].roomId,
- userPassword: row.contentJSON.userPassword,
- userTelephone: row.contentJSON.userTelephone,
- password: row.contentJSON.password,
- phone: row.contentJSON.userTelephone,
- fingerprint: row.contentJSON.fingerprint,
- fingerprintAlias: row.contentJSON.fingerprintAlias,
- fingerprintId: fingerprintId,
- pztype: voucherType,
- IDcard: row.contentJSON.password,
- NFC: row.contentJSON.password,
- name: row.name,
- id: row.id,
- startdate: this.time(+new Date(this.alreadyTime[0])),
- enddate: this.time(+new Date(this.alreadyTime[1])),
- startTime: this.alreadyTime[0],
- endTime: this.alreadyTime[1]
- };
- this.uselist1.push(rowdata);
- // this.uselist2.splice(index, 1);
- },
-
- // 移除已添加人员凭证
- deletepz: function deletepz(index, row) {
- this.uselist1.splice(index, 1);
- },
-
- // 移除人员
- deletefun: function deletefun(row) {
- var _this12 = this;
-
- if (this.deviceList[0].manufactureId == 201 || this.deviceList[0].manufactureId == 221) {
- var data = {
- lockerId: this.deviceList[0].deviceNum,
- imei: this.deviceList[0].imei,
- lockerUserId: JSON.parse(row.info).userPassword,
- keyId: JSON.parse(row.info).userPassword,
- role: 0,
- action: 2, //1--添加、2--删除、3--修改
- order: 6203,
- cardName: row.name,
- roomName: this.deviceList[0].roomName
- };
- Object(api["g" /* httpPost */])(data, this.$api.ZGduserOperation).then(function (res) {
- _this12.$message.success("下发成功");
- var data = [];
- var str = {
- siteId: row.siteId,
- cardId: row.cardId
- };
- data.push(str);
- Object(api["g" /* httpPost */])(data, _this12.$api.unbindCard).then(function (res) {
- _this12.$message.success("删除成功");
- _this12.getroomperson();
- });
- });
- } else if (this.deviceList[0].manufactureId == 101) {
- var str1 = {
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- userTelephone: JSON.parse(row.info).userTelephone,
- // cardId:this.personInfo.cardId,
- userPassword: JSON.parse(row.info).userPassword,
- password: "20210816",
- passwordStartTime: "20210813010101",
- passwordEndTime: "20680813010101",
- operateMode: 3,
- order: 6203,
- is: false,
- cardName: row.name,
- roomName: this.deviceList[0].roomName
- };
- if (JSON.parse(row.info).pass) {
- str1['pass'] = true;
- }
- Object(api["g" /* httpPost */])(str1, this.$api.getDeviceOperateUserInfo).then(function (res2) {
- if (res2.success) {
- _this12.$message.success("下发成功");
- var data = [];
- var str = {
- siteId: row.siteId,
- cardId: row.cardId
- };
- data.push(str);
- Object(api["g" /* httpPost */])(data, _this12.$api.unbindCard).then(function (res) {
- _this12.$message.success("删除成功");
- _this12.getroomperson();
- });
- }
- });
- }
- },
-
- // 获取人员
- querySearchAsync: function querySearchAsync(queryString, cb) {
- var _this13 = this;
-
- var q = {
- name: queryString
- };
- var data = {
- pageSize: 30,
- pageNum: 1,
- q: stringify_default()(q)
- };
- var personInfo = [];
- this.loading = true;
- Object(api["g" /* httpPost */])(data, this.$api.getlistNum).then(function (res) {
- personInfo = res.data.list;
- _this13.personselect = false;
- personInfo.map(function (li) {
- if (li.name == queryString) {
- _this13.personselect = true;
- }
- });
- var restaurants = res.data.list;
- var results = queryString ? restaurants.filter(_this13.createFilter(queryString)) : restaurants;
- cb(results);
- });
- },
- createFilter: function createFilter(queryString) {
- return function (restaurant) {
- return restaurant.name.indexOf(queryString) === 0;
- };
- },
- handleSelect: function handleSelect(item) {
- this.personInfo = item;
- this.personselect = true;
- },
-
- // 返回
- selectstep: function selectstep(i) {
- if (i < this.stepindex) {
- this.stepindex = i;
- this.$refs.cardShow.setActiveItem(i);
- }
- },
-
- // 下一步
- stepnext: function stepnext() {
- if (this.stepindex == 0) {
- this.getroomperson();
- this.getItems();
- }
- if (this.currentRow.id) {
- var name = util["a" /* default */].findIndexArray(this.roomlist, this.currentRow.id, []);
- this.addressName = name.join('/');
- this.$refs.cardShow.next();
- this.stepindex += 1;
- this.stepindex1 = this.stepindex;
- } else {
- this.$message.error("请选择房间");
- }
- },
-
- // 下发凭证下一步
- stepnext1: function stepnext1() {
- if (this.uselist1.length == 0) {
- this.$message.error("请选择凭证");
- } else {
- this.$refs.cardShow.next();
- this.stepindex += 1;
- this.stepindex1 = this.stepindex;
- }
- },
-
- // 获取对应房间门锁
- getItems: function getItems() {
- var _this14 = this;
-
- var t = {
- roomIds: [this.currentRow.id],
- lockType: 1
- };
- var data = {
- q: stringify_default()(t)
- };
- Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
- _this14.deviceList = res.data.list;
- if (res.data.list.length == 0) {
- _this14.$message.error("请先绑定门锁");
- }
- });
- },
-
- // 查询选择的人员凭证
- getOnePersonCerTificate: function getOnePersonCerTificate(row) {
- var _this15 = this;
-
- var data1 = {
- pageNum: 0,
- pageSize: 0,
- q: stringify_default()({
- cardId: row.cardId,
- types: "10,11,12,13,14"
- }),
- orderBy: "create_at desc"
- };
- Object(api["d" /* httpGet */])(data1, this.$api.getCertificates).then(function (res) {
- if (res.success) {
- var dataOne = util["a" /* default */].zlib_unzip(res.data);
- var list = [];
- dataOne.map(function (li) {
- li['contentJSON'] = JSON.parse(li.content);
- li['pzname'] = JSON.parse(li.content).pzname;
- if (li.type == 11) {
- var fdStart = li.pzname.indexOf("蓝牙");
- if (fdStart != 0) {
- list.push(li);
- }
- } else {
- list.push(li);
- }
- });
- list.sort(function (a, b) {
- return a.createAt - b.createAt;
- });
- _this15.uselist2 = list.reverse();
- } else {
- _this15.$message.error("获取该门锁凭证失败");
- }
- });
- },
- getroomperson: function getroomperson() {
- var _this16 = this;
-
- var q = {
- id: this.currentRow.id
- };
- var data = {
- q: stringify_default()(q)
- };
- this.uselist2 = [];
- Object(api["d" /* httpGet */])(data, this.$api.getSiteTenant).then(function (res) {
- res.data.list.map(function (li) {
- li['startTimeText'] = moment_default()(li.startTime).format("YYYY-MM-DD HH:mm:ss");
- li['endTimeText'] = moment_default()(li.endTime).format("YYYY-MM-DD HH:mm:ss");
- });
- _this16.uselist = res.data.list;
- });
- },
- getalllist: function getalllist() {
- var _this17 = this;
-
- var data = {};
- Object(api["d" /* httpGet */])(data, this.$api.getTree).then(function (res) {
- var temp = {},
- arr = [];
- res.data.map(function (item, index) {
- if (!temp[item.id]) {
- arr.push(item);
- temp[item.id] = true;
- }
- });
- var array = Object(utils["n" /* uniqueArray */])(res.data, 'id');
- _this17.ZNodesTree = Object(utils["p" /* ztreeToElementTree */])(array, {});
- _this17.zNodes = arr;
- _this17.addRoom();
- });
- },
-
- onClick: function onClick(treeNode) {
- // 点击事件
- if (treeNode.children) {
- var str = treeNode.children[0].acreage || "";
- if (str == "" || str == null) {
- this.fatherMethod(treeNode.pid);
- } else {
- this.fatherMethod(treeNode.id);
- }
- } else {
- this.fatherMethod(treeNode.id);
- }
- },
- fatherMethod: function fatherMethod(id) {
- var _this18 = this;
-
- var q = {
- ancestor: id,
- isRoom: 1
- };
- var data = {
- q: stringify_default()(q)
- };
- Object(api["d" /* httpGet */])(data, this.$api.getSiteList).then(function (res) {
- var tableData = [],
- tableData1 = [],
- tableData2 = [];
- res.data.list.list.map(function (li, index) {
- li.check = false;
- tableData.push(li);
- var name = util["a" /* default */].findIndexArray(_this18.ZNodesTree, li.id, []);
- var path = '';
- if (name) {
- path = name.join('/');
- }
- li['path'] = path;
- if (li.id == id) {
- _this18.tableData.splice(index, 1);
- } else if (li.count == 0) {
- tableData2.push(li);
- } else if (li.count > 0) {
- tableData1.push(li);
- }
- });
- _this18.tableData = tableData;
- _this18.pageTotal = tableData.length;
- _this18.tableData1 = tableData1;
- _this18.tableData2 = tableData2;
- });
- },
- handleClick: function handleClick(tab, event) {
- if (tab.name == "second") {
- this.pageTotal = this.tableData1.length;
- } else if (tab.name == "third") {
- this.pageTotal = this.tableData2.length;
- }
- },
- handleChange: function handleChange(value) {
- console.log(value);
- },
-
- // 触发搜索按钮
- handleSearch: function handleSearch() {
- this.$set(this.query, "pageIndex", 1);
- this.getData();
- },
-
- // 删除操作
- handleDelete: function handleDelete(index) {
- var _this19 = this;
-
- // 二次确认删除
- this.$confirm("确定要删除吗?", "提示", {
- type: "warning"
- }).then(function () {
- _this19.$message.success("删除成功");
- _this19.tableData.splice(index, 1);
- }).catch(function () {});
- },
-
- // 多选操作
- handleCurrentChange: function handleCurrentChange(val) {
- this.currentRow = val;
- },
- handleCurrentChange1: function handleCurrentChange1(val) {
- // this.currentRow = val;
- },
- delAllSelection: function delAllSelection() {
- var length = this.multipleSelection.length;
- var str = "";
- this.delList = this.delList.concat(this.multipleSelection);
- for (var i = 0; i < length; i++) {
- str += this.multipleSelection[i].name + " ";
- }
- this.$message.error("\u5220\u9664\u4E86" + str);
- this.multipleSelection = [];
- },
-
- // 编辑操作
- handleEdit: function handleEdit(index, row) {
- this.idx = index;
- this.form = row;
- this.editVisible = true;
- },
- getRandomNumber: function getRandomNumber(n) {
- var arr = new Array(n); //用于存放随机数
- var randomNumber = ""; //存放随机数
- for (var i = 0; i < arr.length; i++) {
- arr[i] = parseInt(Math.random() * 10);
- }var flag = 0;
- for (var i = 0; i < arr.length - 1; i++) {
- for (var j = i + 1; j < arr.length; j++) {
- if (arr[i] == arr[j]) {
- flag = 1;
- break;
- }
- }
- if (flag) break;
- }
- for (var i = 0; i < arr.length; i++) {
- randomNumber += arr[i];
- }
- return randomNumber;
- },
-
- // 添加人员绑定
- handleEditperson: function handleEditperson() {
- var _this20 = this;
-
- if (this.value2[0] == '' || this.value2[1] == '') {
- this.$message.error("请选择入住和退租时间");
- return false;
- }
- var phone = this.personInfo.phone;
- if (this.deviceList.length == 0) {
- this.$message.error("请先绑定设备");
- return false;
- } else {
- var result = this.uselist.some(function (item) {
- return item.cardId == _this20.personInfo.id;
- });
- if (!result) {
- if (this.personInfo.name == "" || this.personInfo.type === "" || this.personInfo.number == "" || this.personInfo.phone == "" || this.personInfo.enterpriseId == "") {
- this.$message.error("请填写完整信息");
- } else {
- if (this.personselect) {
- var data = [{
- cardId: this.personInfo.id,
- remark: this.personInfo.remarks,
- siteId: this.currentRow.id,
- startTime: this.value2[0],
- endTime: this.value2[1]
- }];
- var str = {
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- userTelephone: JSON.parse(this.personInfo.info).userTelephone,
- // cardId:this.personInfo.cardId,
- userPassword: JSON.parse(this.personInfo.info).userPassword,
- password: JSON.parse(this.personInfo.info).userPassword,
- operateMode: 26,
- order: 6226,
- passwordStartTime: "20210813010101",
- passwordEndTime: "20680813010101",
- is: false,
- cardName: this.personInfo.name,
- roomName: this.deviceList[0].roomName
- };
- this.devperson.push(str);
- if (this.deviceList[0].manufactureId == 201 || this.deviceList[0].manufactureId == 221) {
- var data1 = {
- lockerId: this.deviceList[0].deviceNum,
- imei: this.deviceList[0].imei,
- lockerUserId: JSON.parse(this.personInfo.info).userPassword,
- keyId: JSON.parse(this.personInfo.info).userPassword,
- role: 0,
- action: 1,
- order: 6226,
- cardName: this.personInfo.name,
- roomName: this.deviceList[0].roomName
- };
- Object(api["g" /* httpPost */])(data1, this.$api.ZGduserOperation).then(function (res) {
- if (res.success) {
- var locakUserdata = {
- deviceNum: _this20.deviceList[0].deviceNum,
- imei: _this20.deviceList[0].imei,
- cardId: _this20.personInfo.id,
- content: stringify_default()(data1), //operateMode:NFC-10、把人员添加到凭证-1
- type: 26,
- serial: res.data.serialNumber,
- startTime: _this20.value2[0].getTime() / 1000,
- endTime: _this20.value2[1].getTime() / 1000
- };
- util["a" /* default */].sendLockUser(locakUserdata, function (callbackLOCK) {});
- _this20.$message.success("添加成功");
- Object(api["g" /* httpPost */])(data, _this20.$api.bindCard).then(function (res2) {
- _this20.getroomperson();
- });
- } else {
- _this20.$message.error(res.msg);
- }
- });
- } else if (this.deviceList[0].manufactureId == 101) {
- Object(api["g" /* httpPost */])(str, this.$api.getDeviceOperateUserInfo).then(function (res2) {
- if (res2.success) {
- var locakUserdata = {
- deviceNum: _this20.deviceList[0].deviceNum,
- imei: _this20.deviceList[0].imei,
- cardId: _this20.personInfo.id,
- content: stringify_default()(str), //operateMode:NFC-10、把人员添加到凭证-1
- type: 26,
- serial: res2.data.serialNumber,
- startTime: _this20.value2[0].getTime() / 1000,
- endTime: _this20.value2[1].getTime() / 1000
- };
- util["a" /* default */].sendLockUser(locakUserdata, function (callbackLOCK) {});
- _this20.$message.success("添加成功");
- Object(api["g" /* httpPost */])(data, _this20.$api.bindCard).then(function (res) {
- _this20.getroomperson();
- });
- } else {
- _this20.$message.error("添加失败");
- }
- });
- }
- } else {
- var infostr = {
- userTelephone: phone,
- userPassword: phone.substring(phone.length - 6, phone.length),
- userId: phone.substring(phone.length - 6, phone.length),
- keyId: phone.substring(phone.length - 6, phone.length)
- };
- var data2 = {
- card: this.personInfo.card,
- cardState: 1,
- name: this.personInfo.name,
- number: this.personInfo.number,
- info: stringify_default()(infostr),
- phone: this.personInfo.phone,
- // enterpriseId: this.personInfo.enterpriseId,
- sex: parseInt(this.personInfo.sex),
- type: this.personInfo.type
- };
- var str1 = {
- imei: this.deviceList[0].imei,
- deviceNum: this.deviceList[0].deviceNum,
- userTelephone: phone,
- userPassword: phone.substring(phone.length - 6, phone.length),
- password: phone.substring(phone.length - 6, phone.length),
- operateMode: 26,
- order: 6226,
- passwordStartTime: "20210813010101",
- passwordEndTime: "20680813010101",
- is: false,
- cardName: this.personInfo.name,
- roomName: this.deviceList[0].roomName
- };
- if (this.deviceList[0].manufactureId == 201 || this.deviceList[0].manufactureId == 221) {
- var data1 = {
- lockerId: this.deviceList[0].deviceNum,
- imei: this.deviceList[0].imei,
- lockerUserId: phone.substring(phone.length - 6, phone.length),
- keyId: phone.substring(phone.length - 6, phone.length),
- role: 0,
- action: 1,
- order: 6226,
- cardName: this.personInfo.name,
- roomName: this.deviceList[0].roomName
- };
- Object(api["g" /* httpPost */])(data1, this.$api.ZGduserOperation).then(function (res) {
- if (res.success) {
- _this20.$message.success("添加成功");
- Object(api["g" /* httpPost */])(data2, _this20.$api.addCard).then(function (res3) {
- _this20.editVisiblelist = false;
- var locakUserdata = {
- deviceNum: _this20.deviceList[0].deviceNum,
- imei: _this20.deviceList[0].imei,
- cardId: res3.data,
- content: stringify_default()(data1), //operateMode:NFC-10、把人员添加到凭证-1
- type: 26,
- serial: res.data.serialNumber,
- startTime: _this20.value2[0].getTime() / 1000,
- endTime: _this20.value2[1].getTime() / 1000
- };
- var dataprise = [];
- _this20.checkEnterpriseNode.map(function (li) {
- var obj = {
- itemId: res3.data,
- orderId: li.value
- };
- dataprise.push(obj);
- });
- console.log(dataprise);
- if (dataprise.length > 0) {
- Object(api["g" /* httpPost */])(dataprise, _this20.$api.personBindEnterprise).then(function (res) {});
- }
- util["a" /* default */].sendLockUser(locakUserdata, function (callbackLOCK) {});
- _this20.getlist(res3.data);
- });
- } else {
- _this20.$message.error("添加失败");
- }
- });
- } else {
- Object(api["g" /* httpPost */])(str1, this.$api.getDeviceOperateUserInfo).then(function (res2) {
- if (res2.success) {
- _this20.$message.success("下发成功");
- Object(api["g" /* httpPost */])(data2, _this20.$api.addCard).then(function (res) {
- var locakUserdata = {
- deviceNum: _this20.deviceList[0].deviceNum,
- imei: _this20.deviceList[0].imei,
- cardId: res.data,
- content: stringify_default()(str1), //operateMode:NFC-10、把人员添加到凭证-1
- type: 26,
- serial: res2.data.serialNumber,
- startTime: _this20.value2[0].getTime() / 1000,
- endTime: _this20.value2[1].getTime() / 1000
- };
- var dataprise = [];
- _this20.checkEnterpriseNode.map(function (li) {
- var obj = {
- itemId: res.data,
- orderId: li.value
- };
- dataprise.push(obj);
- });
- if (dataprise.length > 0) {
- Object(api["g" /* httpPost */])(dataprise, _this20.$api.personBindEnterprise).then(function (res) {});
- }
- util["a" /* default */].sendLockUser(locakUserdata, function (callbackLOCK) {});
- _this20.editVisiblelist = false;
- _this20.getlist(res.data);
- });
- } else {
- _this20.$message.error("添加失败");
- }
- });
- }
- }
- }
- } else {
- this.$message.error("此人员已存在");
- }
- }
- },
- getlist: function getlist(cardId) {
- var _this21 = this;
-
- var q = {
- id: cardId
- };
- var data = {
- pageNum: 1,
- pageSize: 10,
- q: stringify_default()(q)
- };
- Object(api["g" /* httpPost */])(data, this.$api.getlistNum).then(function (res) {
- var data = [{
- cardId: res.data.list[0].id,
- remark: _this21.personInfo.remarks,
- siteId: _this21.currentRow.id,
- startTime: _this21.value2[0],
- endTime: _this21.value2[1]
- }];
- Object(api["g" /* httpPost */])(data, _this21.$api.bindCard).then(function (res) {
- _this21.getroomperson();
- });
- });
- },
-
- // 删除人员
- handleDeleteperson: function handleDeleteperson(index) {
- var _this22 = this;
-
- // 二次确认删除
- this.$confirm("确定要删除吗?", "提示", {
- type: "warning"
- }).then(function () {
- _this22.$message.success("删除成功");
- _this22.uselist.splice(index, 1);
- }).catch(function () {});
- },
-
- // 保存编辑
- saveEdit: function saveEdit() {
- this.editVisible = false;
- this.$message.success("\u4FEE\u6539\u7B2C " + (this.idx + 1) + " \u884C\u6210\u529F");
- this.$set(this.tableData, this.idx, this.form);
- },
-
- // 分页导航
- handlePageChange: function handlePageChange(val) {
- this.$set(this.query, "pageIndex", val);
- }
- }
- });
- // 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
- 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
- var item = ref.item;
- 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
- var file = ref.file;
- 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":"请输
- var CheckIn_staticRenderFns = []
- var CheckIn_esExports = { render: CheckIn_render, staticRenderFns: CheckIn_staticRenderFns }
- /* harmony default export */ var views_CheckIn = (CheckIn_esExports);
- // CONCATENATED MODULE: ./src/views/CheckIn.vue
- function CheckIn_injectStyle (ssrContext) {
- __webpack_require__("gL2q")
- }
- var CheckIn_normalizeComponent = __webpack_require__("VU/8")
- /* script */
-
-
- /* template */
-
- /* template functional */
- var CheckIn___vue_template_functional__ = false
- /* styles */
- var CheckIn___vue_styles__ = CheckIn_injectStyle
- /* scopeId */
- var CheckIn___vue_scopeId__ = "data-v-460ff523"
- /* moduleIdentifier (server only) */
- var CheckIn___vue_module_identifier__ = null
- var CheckIn_Component = CheckIn_normalizeComponent(
- CheckIn,
- views_CheckIn,
- CheckIn___vue_template_functional__,
- CheckIn___vue_styles__,
- CheckIn___vue_scopeId__,
- CheckIn___vue_module_identifier__
- )
-
- /* harmony default export */ var src_views_CheckIn = __webpack_exports__["default"] = (CheckIn_Component.exports);
-
-
- /***/ })
-
- });
|