完成签约之后直接添加人员,录入下发凭证
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.

1006 lines
30 KiB

  1. webpackJsonp([88],{
  2. /***/ "1CLN":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "pztB":
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  10. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/promise.js
  11. var promise = __webpack_require__("//Fk");
  12. var promise_default = /*#__PURE__*/__webpack_require__.n(promise);
  13. // EXTERNAL MODULE: ./node_modules/babel-runtime/regenerator/index.js
  14. var regenerator = __webpack_require__("Xxa5");
  15. var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
  16. // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/asyncToGenerator.js
  17. var asyncToGenerator = __webpack_require__("exGp");
  18. var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
  19. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  20. var stringify = __webpack_require__("mvHQ");
  21. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  22. // EXTERNAL MODULE: ./src/components/zTree1.vue + 2 modules
  23. var zTree1 = __webpack_require__("6Ljo");
  24. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  25. var api = __webpack_require__("gyMJ");
  26. // EXTERNAL MODULE: ./src/components/checkInRoom.vue + 2 modules
  27. var checkInRoom = __webpack_require__("R41B");
  28. // EXTERNAL MODULE: ./src/utils/equipment.js
  29. var equipment = __webpack_require__("ObZk");
  30. // EXTERNAL MODULE: ./src/utils/index.js
  31. var utils = __webpack_require__("0xDb");
  32. // EXTERNAL MODULE: ./src/utils/util.js
  33. var util = __webpack_require__("oFuF");
  34. // EXTERNAL MODULE: ./src/api/allFun.js
  35. var allFun = __webpack_require__("mprh");
  36. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/FreezeManagement.vue
  37. //
  38. //
  39. //
  40. //
  41. //
  42. //
  43. //
  44. //
  45. //
  46. //
  47. //
  48. //
  49. //
  50. //
  51. //
  52. //
  53. //
  54. //
  55. //
  56. //
  57. //
  58. //
  59. //
  60. //
  61. //
  62. //
  63. //
  64. //
  65. //
  66. //
  67. //
  68. //
  69. //
  70. //
  71. //
  72. //
  73. //
  74. //
  75. //
  76. //
  77. //
  78. //
  79. //
  80. //
  81. //
  82. //
  83. //
  84. //
  85. //
  86. //
  87. //
  88. //
  89. //
  90. //
  91. //
  92. //
  93. //
  94. //
  95. //
  96. //
  97. //
  98. //
  99. //
  100. //
  101. //
  102. //
  103. //
  104. //
  105. //
  106. //
  107. //
  108. //
  109. //
  110. //
  111. //
  112. //
  113. //
  114. //
  115. //
  116. //
  117. //
  118. //
  119. //
  120. //
  121. //
  122. //
  123. //
  124. //
  125. //
  126. //
  127. //
  128. //
  129. //
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. //
  155. //
  156. //
  157. //
  158. //
  159. //
  160. //
  161. //
  162. //
  163. //
  164. //
  165. //
  166. //
  167. //
  168. //
  169. //
  170. //
  171. //
  172. //
  173. /* harmony default export */ var FreezeManagement = ({
  174. inject: ['reload'],
  175. name: "campus",
  176. data: function data() {
  177. return {
  178. selectTotal: 0,
  179. selectoption: [],
  180. selectoptionValue: '',
  181. roomlist: [],
  182. SelectedList: [],
  183. defaultProps: {
  184. children: "children",
  185. label: "name"
  186. },
  187. steplist: [{
  188. src: "../assets/img/1.png",
  189. title: "房源选择"
  190. }, {
  191. src: "../assets/img/2.png",
  192. title: "冻结人员"
  193. }],
  194. stepindex: 0,
  195. stepindex1: 0,
  196. query: {
  197. address: "",
  198. name: "",
  199. pageIndex: 1,
  200. pageSize: 10,
  201. activeName: "first"
  202. },
  203. activeName: "first",
  204. tableData: [],
  205. tableData1: [],
  206. tableData2: [],
  207. multipleSelection: [],
  208. delList: [],
  209. editVisible: false,
  210. pageTotal: 0,
  211. personInfo: {
  212. name: "",
  213. phone: "",
  214. number: "",
  215. sex: "",
  216. education: "",
  217. email: "",
  218. leaseTerm: "",
  219. rent: "",
  220. birth: "",
  221. nation: "",
  222. address: "",
  223. remarks: ""
  224. },
  225. rules: {
  226. name: [{
  227. required: true,
  228. message: "请输入姓名",
  229. trigger: "blur"
  230. }, {
  231. min: 1,
  232. max: 8,
  233. message: "长度在 1 到 8 个字符",
  234. trigger: "blur"
  235. }],
  236. phone: [{
  237. required: true,
  238. message: "请输入系统编号",
  239. trigger: "blur"
  240. }, {
  241. min: 1,
  242. max: 11,
  243. message: "请输入正确的系统编号",
  244. trigger: "blur"
  245. }],
  246. number: [{
  247. required: true,
  248. message: "请输入身份证号",
  249. trigger: "blur"
  250. }, {
  251. min: 1,
  252. max: 18,
  253. message: "请输入正确的身份证号",
  254. trigger: "blur"
  255. }],
  256. sex: [{
  257. required: true,
  258. message: "请选择性别",
  259. trigger: "change"
  260. }],
  261. education: [{
  262. required: true,
  263. message: "请选择学历",
  264. trigger: "change"
  265. }],
  266. email: [{
  267. required: true,
  268. message: "请输入邮箱",
  269. trigger: "blur"
  270. }, {
  271. min: 1,
  272. max: 64,
  273. message: "请输入正确的邮箱",
  274. trigger: "blur"
  275. }],
  276. leaseTerm: [{
  277. required: true,
  278. message: "请选择租期时间",
  279. trigger: "change"
  280. }],
  281. rent: [{
  282. required: true,
  283. message: "请输入租金",
  284. trigger: "blur"
  285. }],
  286. birth: [{
  287. required: true,
  288. message: "请输入租金",
  289. trigger: "blur"
  290. }],
  291. nation: [{
  292. required: true,
  293. message: "请选择学历",
  294. trigger: "change"
  295. }],
  296. address: [{
  297. required: true,
  298. message: "请输入地址",
  299. trigger: "change"
  300. }]
  301. },
  302. form: {},
  303. idx: -1,
  304. id: -1,
  305. showIndex: 0,
  306. ztreeObj: null,
  307. uselist: [],
  308. zNodes: [],
  309. setting: {
  310. edit: {
  311. enable: true,
  312. drag: {
  313. isMove: true
  314. },
  315. showRemoveBtn: false,
  316. showRenameBtn: false
  317. },
  318. check: {
  319. enable: false
  320. },
  321. data: {
  322. simpleData: {
  323. enable: true,
  324. pIdKey: "pid"
  325. }
  326. },
  327. view: {
  328. showIcon: true,
  329. addHoverDom: this.addHoverDom,
  330. removeHoverDom: this.removeHoverDom
  331. }
  332. },
  333. currentRow: [],
  334. currentRow1: [],
  335. options: [],
  336. state: "",
  337. loading: false,
  338. timeout: null,
  339. deviceList: [],
  340. userInfo: {
  341. type: ''
  342. },
  343. treeList: [],
  344. ZNodesTree: [],
  345. AllLock: [],
  346. AllPerson: [],
  347. fullscreenLoading: false
  348. };
  349. },
  350. components: {
  351. zTree: zTree1["a" /* default */],
  352. checkInRoom: checkInRoom["a" /* default */]
  353. },
  354. beforeCreate: function beforeCreate() {
  355. // var tenantId = JSON.parse(localStorage.getItem('tenantId'))
  356. // if (tenantId == 400) {
  357. // this.$store.commit('defaultsettenantid')
  358. // }
  359. },
  360. created: function created() {
  361. this.userInfo = JSON.parse(localStorage.getItem('info'));
  362. this.selectoption = JSON.parse(localStorage.getItem('selectoption'));
  363. this.selectoptionValue = localStorage.getItem('tenantId');
  364. this.addRoom();
  365. this.getAllLock();
  366. // this.getAllPerson()
  367. },
  368. methods: {
  369. // 获取所有锁
  370. getAllLock: function getAllLock() {
  371. var _this2 = this;
  372. var t = {
  373. lockType: 1
  374. };
  375. var data1 = {
  376. q: stringify_default()(t),
  377. pageSize: 0,
  378. pageNum: 0
  379. };
  380. Object(api["g" /* httpPost */])(data1, this.$api.getDeviceItems).then(function (res) {
  381. if (res.success) {
  382. _this2.AllLock = res.data.list;
  383. }
  384. });
  385. },
  386. getAllPerson: function getAllPerson(id) {
  387. var _this3 = this;
  388. var data1 = {
  389. // ids:[]
  390. q: stringify_default()({
  391. ancestor: id
  392. })
  393. };
  394. Object(api["d" /* httpGet */])(data1, this.$api.getSiteTenant).then(function (res) {
  395. if (res.success) {
  396. _this3.AllPerson = res.data.list;
  397. }
  398. });
  399. },
  400. // 获取所有人员
  401. selectAllMethods: function selectAllMethods() {
  402. if (this.activeName == "first") {
  403. var total = 0;
  404. this.tableData.map(function (li) {
  405. li.check = true;
  406. total++;
  407. });
  408. this.selectTotal = total;
  409. } else if (this.activeName == "second") {
  410. var total = 0;
  411. this.tableData1.map(function (li) {
  412. li.check = true;
  413. total++;
  414. });
  415. this.selectTotal = total;
  416. } else if (this.activeName == "third") {
  417. var total = 0;
  418. this.tableData2.map(function (li) {
  419. li.check = true;
  420. total++;
  421. });
  422. this.selectTotal = total;
  423. }
  424. },
  425. selectTenantId: function selectTenantId(e) {
  426. localStorage.setItem('tenantId', e);
  427. this.reload();
  428. },
  429. //添加房源
  430. addRoom: function addRoom() {
  431. var _this4 = this;
  432. var data = {};
  433. Object(api["d" /* httpGet */])(data, this.$api.getTree).then(function (res) {
  434. _this4.treeList = res.data;
  435. var array = Object(utils["n" /* uniqueArray */])(res.data, "id");
  436. _this4.ZNodesTree = Object(utils["p" /* ztreeToElementTree */])(array, {});
  437. _this4.addRoom1();
  438. });
  439. },
  440. addRoom1: function addRoom1() {
  441. var _this5 = this;
  442. var data = {};
  443. Object(api["d" /* httpGet */])(data, this.$api.getSiteList).then(function (res) {
  444. res.data.list.list.map(function (li) {
  445. var name = util["a" /* default */].findIndexArray(_this5.ZNodesTree, li.id, []);
  446. var path = '';
  447. if (name) {
  448. path = name.join('/');
  449. }
  450. li['path'] = path;
  451. });
  452. var array = Object(utils["n" /* uniqueArray */])(res.data.list.list, 'id');
  453. _this5.roomlist = Object(utils["p" /* ztreeToElementTree */])(array, {});
  454. });
  455. },
  456. checkfun: function checkfun(index, status) {
  457. this.tableData[index].check = !this.tableData[index].check;
  458. this.currentRow = this.tableData[index];
  459. var total = 0;
  460. this.tableData.map(function (li) {
  461. if (li.check) {
  462. total++;
  463. }
  464. });
  465. this.selectTotal = total;
  466. },
  467. cancelSelection: function cancelSelection() {
  468. this.tableData.map(function (li) {
  469. li.check = false;
  470. });
  471. this.tableData1.map(function (li) {
  472. li.check = false;
  473. });
  474. this.tableData2.map(function (li) {
  475. li.check = false;
  476. });
  477. this.selectTotal = 0;
  478. },
  479. checkfun1: function checkfun1(index, status) {
  480. this.tableData1.map(function (li) {
  481. li.check = false;
  482. });
  483. this.tableData1[index].check = true;
  484. this.currentRow = this.tableData1[index];
  485. },
  486. checkfun2: function checkfun2(index, status) {
  487. this.tableData2.map(function (li) {
  488. li.check = false;
  489. });
  490. this.tableData2[index].check = status;
  491. this.currentRow = this.tableData2[index];
  492. },
  493. // 获取人员
  494. querySearchAsync: function querySearchAsync(queryString, cb) {
  495. var _this6 = this;
  496. var q = {
  497. name: queryString
  498. };
  499. var data = {
  500. q: stringify_default()(q)
  501. };
  502. var personInfo = [];
  503. this.loading = true;
  504. Object(api["g" /* httpPost */])(data, this.$api.getlistNum).then(function (res) {
  505. personInfo = res.data.list;
  506. var restaurants = res.data.list;
  507. var results = queryString ? restaurants.filter(_this6.createFilter(queryString)) : restaurants;
  508. console.log(results);
  509. cb(results);
  510. });
  511. },
  512. createFilter: function createFilter(queryString) {
  513. return function (restaurant) {
  514. return restaurant.name.indexOf(queryString) === 0;
  515. };
  516. },
  517. handleSelect: function handleSelect(item) {
  518. this.personInfo = item;
  519. this.uselist.push(item);
  520. },
  521. // 返回
  522. selectstep: function selectstep(i) {
  523. if (i < this.stepindex) {
  524. this.$refs.cardShow.setActiveItem(i);
  525. }
  526. },
  527. getRomDevice: function getRomDevice(row) {
  528. console.log(row, this.AllLock);
  529. return this.AllLock.filter(function (item) {
  530. return item.roomId == row;
  531. })[0];
  532. },
  533. // 解冻
  534. thawMethods: function thawMethods() {
  535. var _this7 = this;
  536. var _this = this;
  537. if (this.currentRow1.length == 0) {
  538. this.$message.error('请选择解冻人员');
  539. return;
  540. }
  541. this.$confirm("确定要解冻吗?", "提示", {
  542. type: "warning"
  543. }).then(function () {
  544. _this.currentRow1.map(function () {
  545. var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(li) {
  546. var resultRow;
  547. return regenerator_default.a.wrap(function _callee$(_context) {
  548. while (1) {
  549. switch (_context.prev = _context.next) {
  550. case 0:
  551. if (!(li.info != null)) {
  552. _context.next = 5;
  553. break;
  554. }
  555. _context.next = 3;
  556. return _this7.getRomDevice(li.siteId);
  557. case 3:
  558. resultRow = _context.sent;
  559. if (resultRow) {
  560. resultRow['userId'] = JSON.parse(li.info).userId || JSON.parse(li.info).userPassword;
  561. resultRow['keyId'] = JSON.parse(li.info).keyId || JSON.parse(li.info).userPassword;
  562. resultRow['frozenStartTime'] = 1676603379; //moment(this.freeUserDate[0]).format("X")
  563. resultRow['frozenEndTime'] = 1895132615; //moment(this.freeUserDate[1]).format("X")
  564. resultRow['name'] = li.name;
  565. allFun["a" /* default */].freeUserManage(0, resultRow, function (callback) {
  566. if (callback.code == 200) {
  567. _this7.$message.success("解冻指令下发成功");
  568. } else {
  569. _this7.$message.error("解冻指令下发失败");
  570. }
  571. });
  572. }
  573. case 5:
  574. case "end":
  575. return _context.stop();
  576. }
  577. }
  578. }, _callee, _this7);
  579. }));
  580. return function (_x) {
  581. return _ref.apply(this, arguments);
  582. };
  583. }());
  584. });
  585. },
  586. // 冻结
  587. rentRefund: function rentRefund() {
  588. var _this8 = this;
  589. var _this = this;
  590. if (this.currentRow1.length == 0) {
  591. this.$message.error('请选择冻结人员');
  592. return;
  593. }
  594. this.$confirm("确定要冻结吗?", "提示", {
  595. type: "warning"
  596. }).then(function () {
  597. _this.currentRow1.map(function () {
  598. var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2(li) {
  599. var resultRow;
  600. return regenerator_default.a.wrap(function _callee2$(_context2) {
  601. while (1) {
  602. switch (_context2.prev = _context2.next) {
  603. case 0:
  604. if (!(li.info != null)) {
  605. _context2.next = 5;
  606. break;
  607. }
  608. _context2.next = 3;
  609. return _this8.getRomDevice(li.siteId);
  610. case 3:
  611. resultRow = _context2.sent;
  612. if (resultRow) {
  613. resultRow['userId'] = JSON.parse(li.info).userId || JSON.parse(li.info).userPassword;
  614. resultRow['keyId'] = JSON.parse(li.info).keyId || JSON.parse(li.info).userPassword;
  615. resultRow['frozenStartTime'] = 1676603379; //moment(this.freeUserDate[0]).format("X")
  616. resultRow['frozenEndTime'] = 1895132615; //moment(this.freeUserDate[1]).format("X")
  617. resultRow['name'] = li.name;
  618. allFun["a" /* default */].freeUserManage(1, resultRow, function (callback) {
  619. if (callback.code == 200) {
  620. _this8.$message.success("冻结指令下发成功");
  621. } else {
  622. _this8.$message.error("冻结指令下发失败");
  623. }
  624. });
  625. }
  626. case 5:
  627. case "end":
  628. return _context2.stop();
  629. }
  630. }
  631. }, _callee2, _this8);
  632. }));
  633. return function (_x2) {
  634. return _ref2.apply(this, arguments);
  635. };
  636. }());
  637. });
  638. },
  639. getuserlist: function getuserlist() {
  640. var _this9 = this;
  641. var q = {
  642. id: this.currentRow.id
  643. };
  644. var data = {
  645. q: stringify_default()(q)
  646. };
  647. Object(api["d" /* httpGet */])(data, this.$api.getSiteTenant).then(function (res) {
  648. res.data.list.map(function (li) {
  649. li['roomName'] = _this9.currentRow.name;
  650. });
  651. _this9.uselist = res.data.list;
  652. });
  653. },
  654. getPersonInfo: function getPersonInfo(data) {
  655. var _this10 = this;
  656. return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee3() {
  657. var _this;
  658. return regenerator_default.a.wrap(function _callee3$(_context3) {
  659. while (1) {
  660. switch (_context3.prev = _context3.next) {
  661. case 0:
  662. _this = _this10;
  663. return _context3.abrupt("return", new promise_default.a(function (resolve, reject) {
  664. var list = [];
  665. var _loop = function _loop(i) {
  666. str = _this.AllPerson.filter(function (item) {
  667. return item.id == data[i].cardId;
  668. });
  669. console.log(str);
  670. list.concat(str);
  671. };
  672. for (var i = 0; i < data.length; i++) {
  673. var str;
  674. _loop(i);
  675. }
  676. resolve(list);
  677. }));
  678. case 2:
  679. case "end":
  680. return _context3.stop();
  681. }
  682. }
  683. }, _callee3, _this10);
  684. }))();
  685. },
  686. getFilterDeviceList: function getFilterDeviceList() {},
  687. // 下一步
  688. stepnext: function stepnext() {
  689. var _this11 = this;
  690. return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee4() {
  691. var filterDemiseInformation, promise3;
  692. return regenerator_default.a.wrap(function _callee4$(_context4) {
  693. while (1) {
  694. switch (_context4.prev = _context4.next) {
  695. case 0:
  696. filterDemiseInformation = [];
  697. _this11.fullscreenLoading = true;
  698. promise3 = new promise_default.a(function (resolve, reject) {
  699. var conditionRoomAndPersonnel = _this11.AllPerson;
  700. _this11.tableData.map(function (li) {
  701. if (li.check) {
  702. var promise1 = new promise_default.a(function (resolve, reject) {
  703. var filterDeviceLi = _this11.AllLock.filter(function (item) {
  704. return item.roomId == li.id;
  705. })[0];
  706. resolve(filterDeviceLi);
  707. });
  708. var promise2 = new promise_default.a(function (resolve, reject) {
  709. var filterPersonLi = conditionRoomAndPersonnel.filter(function (item) {
  710. return item.siteId == li.id;
  711. });
  712. resolve(filterPersonLi);
  713. });
  714. promise_default.a.all([promise1, promise2]).then(function (values) {
  715. if (values[0]) {
  716. var obj = values[0];
  717. obj['list'] = values[1];
  718. filterDemiseInformation.push(obj);
  719. }
  720. });
  721. }
  722. });
  723. setTimeout(function () {
  724. resolve(filterDemiseInformation);
  725. }, 500);
  726. });
  727. promise_default.a.all([promise3]).then(function (values) {
  728. var personlist = [];
  729. values[0].map(function (li, index) {
  730. li.list.map(function (lt, index) {
  731. lt.roomName = li.roomName;
  732. lt.deviceNum = li.deviceNum;
  733. lt.imei = li.imei;
  734. lt.manufactureId = li.manufactureId;
  735. personlist.push(lt);
  736. });
  737. });
  738. setTimeout(function () {
  739. _this11.uselist = personlist;
  740. _this11.$refs.cardShow.next();
  741. _this11.stepindex += 1;
  742. _this11.stepindex1 = _this11.stepindex;
  743. _this11.fullscreenLoading = false;
  744. }, 500);
  745. });
  746. case 4:
  747. case "end":
  748. return _context4.stop();
  749. }
  750. }
  751. }, _callee4, _this11);
  752. }))();
  753. },
  754. onClick: function onClick(treeNode) {
  755. if (treeNode.children) {
  756. var str = treeNode.children[0].acreage || "";
  757. if (str == "" || str == null) {
  758. console.log(treeNode);
  759. this.fatherMethod(treeNode.pid);
  760. } else {
  761. this.fatherMethod(treeNode.id);
  762. }
  763. } else {
  764. this.fatherMethod(treeNode.id);
  765. }
  766. this.getAllPerson(treeNode.pid);
  767. },
  768. fatherMethod: function fatherMethod(id) {
  769. var _this12 = this;
  770. var q = {
  771. ancestor: id
  772. };
  773. var data = {
  774. q: stringify_default()(q)
  775. };
  776. Object(api["d" /* httpGet */])(data, this.$api.getSiteList).then(function (res) {
  777. var tableData = [],
  778. tableData1 = [],
  779. tableData2 = [];
  780. var array = Object(utils["n" /* uniqueArray */])(res.data.list.list, "id");
  781. array.map(function (li, index) {
  782. var name = util["a" /* default */].findIndexArray(_this12.ZNodesTree, li.id, []);
  783. var path = '';
  784. if (name) {
  785. path = name.join('/');
  786. }
  787. li['path'] = path;
  788. if (li.acreage) {
  789. li.check = false;
  790. tableData.push(li);
  791. if (li.id == id) {
  792. _this12.tableData.splice(index, 1);
  793. } else if (li.count == 0) {
  794. tableData2.push(li);
  795. } else if (li.count > 0) {
  796. tableData1.push(li);
  797. }
  798. }
  799. });
  800. _this12.tableData = tableData;
  801. _this12.pageTotal = tableData.length;
  802. _this12.tableData1 = tableData1;
  803. _this12.tableData2 = tableData2;
  804. });
  805. },
  806. handleClick: function handleClick(tab, event) {
  807. if (tab.name == "second") {
  808. this.pageTotal = this.tableData1.length;
  809. } else if (tab.name == "third") {
  810. this.pageTotal = this.tableData2.length;
  811. }
  812. },
  813. handleChange: function handleChange(value) {
  814. console.log(value);
  815. },
  816. // 触发搜索按钮
  817. handleSearch: function handleSearch() {
  818. this.$set(this.query, "pageIndex", 1);
  819. this.getData();
  820. },
  821. // 删除操作
  822. handleDelete: function handleDelete(index) {
  823. var _this13 = this;
  824. // 二次确认删除
  825. this.$confirm("确定要删除吗?", "提示", {
  826. type: "warning"
  827. }).then(function () {
  828. _this13.$message.success("删除成功");
  829. _this13.tableData.splice(index, 1);
  830. }).catch(function () {});
  831. },
  832. // 多选操作
  833. handleCurrentChange: function handleCurrentChange(val) {
  834. this.currentRow = val;
  835. },
  836. handleCurrentChange1: function handleCurrentChange1(val) {
  837. console.log(val);
  838. this.currentRow1 = val;
  839. },
  840. delAllSelection: function delAllSelection() {
  841. var length = this.multipleSelection.length;
  842. var str = "";
  843. this.delList = this.delList.concat(this.multipleSelection);
  844. for (var i = 0; i < length; i++) {
  845. str += this.multipleSelection[i].name + " ";
  846. }
  847. this.$message.error("\u5220\u9664\u4E86" + str);
  848. this.multipleSelection = [];
  849. },
  850. // 编辑操作
  851. handleEdit: function handleEdit(index, row) {
  852. this.idx = index;
  853. this.form = row;
  854. this.editVisible = true;
  855. },
  856. // 添加人员绑定
  857. handleEditperson: function handleEditperson(index, row) {
  858. var data = [{
  859. cardId: row.id,
  860. endTime: this.personInfo.leaseTerm[0],
  861. remark: this.personInfo.remarks,
  862. siteId: this.currentRow.id,
  863. startTime: this.personInfo.leaseTerm[1]
  864. }];
  865. Object(api["g" /* httpPost */])(data, this.$api.bindCard).then(function (res) {});
  866. },
  867. // 删除人员
  868. handleDeleteperson: function handleDeleteperson(index) {
  869. var _this14 = this;
  870. // 二次确认删除
  871. this.$confirm("确定要删除吗?", "提示", {
  872. type: "warning"
  873. }).then(function () {
  874. _this14.$message.success("删除成功");
  875. _this14.uselist.splice(index, 1);
  876. }).catch(function () {});
  877. },
  878. // 保存编辑
  879. saveEdit: function saveEdit() {
  880. this.editVisible = false;
  881. this.$message.success("\u4FEE\u6539\u7B2C " + (this.idx + 1) + " \u884C\u6210\u529F");
  882. this.$set(this.tableData, this.idx, this.form);
  883. },
  884. // 分页导航
  885. handlePageChange: function handlePageChange(val) {
  886. this.$set(this.query, "pageIndex", val);
  887. this.getData();
  888. }
  889. }
  890. });
  891. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-094270a3","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/FreezeManagement.vue
  892. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:(_vm.fullscreenLoading),expression:"fullscreenLoading",modifiers:{"fullscreen":true,"lock":true}}]},[_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":""}}):_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":"690px","autoplay":false,"indicator-position":"none","arrow":"never","initial-index":0}},[_c('el-carousel-item',[_c('el-row',{staticClass:"rowcli",attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":6}},[_c('el-card',{staticClass:"h700 cardbg",attrs:{"shadow":"always"}},[_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"}}),_vm._v(" "),_c('el-tab-pane',{attrs:{"label":"正常房间","name":"second"}}),_vm._v(" "),_c('el-tab-pane',{attrs:{"label":"空置房间","name":"third"}})],1),_vm._v(" "),_c('div',{staticClass:"nextstep"},[_c('el-badge',{staticClass:"item",attrs:{"value":_vm.selectTotal}},[_c('el-button',{staticClass:"nextstep1",attrs:{"type":"primary","size":"mini"},on:{"click":_vm.selectAllMethods}},[_vm._v("全选")])],1),_vm._v(" "),_c('el-button',{staticClass:"nextstep1",attrs:{"size":"mini","type":"primary"},on:{"click":_vm.cancelSelection}},[_vm._v("取消")]),_vm._v(" "),_c('el-button',{attrs:{"size":"mini","type":"primary"},on:{"click":_vm.stepnext}},[_vm._v("下一步")])],1)],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)}),_vm._v(" "),_c('div',{staticClass:"totalPosition"},[_c('el-pagination',{attrs:{"layout":"total","total":_vm.tableData1.length}})],1)],2):_vm._e(),_vm._v(" "),(_vm.activeName == 'third')?_c('div',{staticClass:"room-list"},[_vm._l((_vm.tableData2),f
  893. var staticRenderFns = []
  894. var esExports = { render: render, staticRenderFns: staticRenderFns }
  895. /* harmony default export */ var views_FreezeManagement = (esExports);
  896. // CONCATENATED MODULE: ./src/views/FreezeManagement.vue
  897. function injectStyle (ssrContext) {
  898. __webpack_require__("1CLN")
  899. }
  900. var normalizeComponent = __webpack_require__("VU/8")
  901. /* script */
  902. /* template */
  903. /* template functional */
  904. var __vue_template_functional__ = false
  905. /* styles */
  906. var __vue_styles__ = injectStyle
  907. /* scopeId */
  908. var __vue_scopeId__ = "data-v-094270a3"
  909. /* moduleIdentifier (server only) */
  910. var __vue_module_identifier__ = null
  911. var Component = normalizeComponent(
  912. FreezeManagement,
  913. views_FreezeManagement,
  914. __vue_template_functional__,
  915. __vue_styles__,
  916. __vue_scopeId__,
  917. __vue_module_identifier__
  918. )
  919. /* harmony default export */ var src_views_FreezeManagement = __webpack_exports__["default"] = (Component.exports);
  920. /***/ })
  921. });