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

569 lines
17 KiB

  1. webpackJsonp([58],{
  2. /***/ "IfIt":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "zkUY":
  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/json/stringify.js
  11. var stringify = __webpack_require__("mvHQ");
  12. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  13. // EXTERNAL MODULE: ./node_modules/vue-schart/src/vue-schart.vue + 2 modules
  14. var vue_schart = __webpack_require__("S4mo");
  15. // EXTERNAL MODULE: ./src/components/zTree1.vue + 2 modules
  16. var zTree1 = __webpack_require__("6Ljo");
  17. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  18. var api = __webpack_require__("gyMJ");
  19. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dueRoom.vue
  20. //
  21. //
  22. //
  23. //
  24. //
  25. //
  26. //
  27. //
  28. //
  29. //
  30. //
  31. //
  32. //
  33. //
  34. //
  35. //
  36. //
  37. //
  38. //
  39. //
  40. //
  41. //
  42. //
  43. //
  44. //
  45. //
  46. //
  47. //
  48. //
  49. //
  50. //
  51. //
  52. //
  53. //
  54. //
  55. //
  56. //
  57. //
  58. //
  59. //
  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. //
  174. //
  175. //
  176. //
  177. //
  178. //
  179. //
  180. //
  181. //
  182. //
  183. //
  184. //
  185. //
  186. //
  187. //
  188. //
  189. //
  190. //
  191. //
  192. //
  193. //
  194. //
  195. //
  196. //
  197. //
  198. //
  199. //
  200. //
  201. //
  202. //
  203. //
  204. //
  205. //
  206. //
  207. //
  208. //
  209. //
  210. //
  211. //
  212. //
  213. //
  214. //
  215. //
  216. //
  217. //
  218. //
  219. //
  220. //
  221. //
  222. //
  223. //
  224. //
  225. //
  226. //
  227. //
  228. //
  229. //
  230. //
  231. //
  232. //
  233. //
  234. //
  235. //
  236. //
  237. //
  238. //
  239. //
  240. //
  241. //
  242. //
  243. //
  244. //
  245. //
  246. //
  247. //
  248. //
  249. //
  250. //
  251. //
  252. //
  253. //
  254. //
  255. //
  256. //
  257. //
  258. //
  259. //
  260. //
  261. //
  262. //
  263. //
  264. //
  265. //
  266. //
  267. //
  268. //
  269. //
  270. //
  271. //
  272. //
  273. //
  274. //
  275. //
  276. //
  277. //
  278. //
  279. //
  280. //
  281. //
  282. //
  283. //
  284. //
  285. //
  286. //
  287. //
  288. //
  289. //
  290. /* harmony default export */ var dueRoom = ({
  291. name: "campus",
  292. data: function data() {
  293. return {
  294. steplist: [{ src: "../assets/img/1.png", title: "房源选择" }, { src: "../assets/img/2.png", title: "人员退租" }],
  295. stepindex: 0,
  296. stepindex1: 0,
  297. query: {
  298. address: "",
  299. name: "",
  300. pageIndex: 1,
  301. pageSize: 20,
  302. activeName: "first"
  303. },
  304. activeName: "first",
  305. options: {
  306. type: "bar",
  307. title: {
  308. text: "近6个月即将到期房间-柱状图"
  309. },
  310. xRorate: 25,
  311. labels: ["周一", "周二", "周三", "周四", "周五"],
  312. datasets: [{
  313. label: "已到期房间",
  314. data: [234, 278, 270, 190, 230]
  315. }, {
  316. label: "本月到期房间",
  317. data: [164, 178, 190, 135, 160]
  318. }, {
  319. label: "下月到期房间",
  320. data: [144, 198, 150, 235, 120]
  321. }]
  322. },
  323. tableData: [],
  324. tableData1: [],
  325. tableData2: [],
  326. tableData3: [],
  327. multipleSelection: [],
  328. delList: [],
  329. editVisible: false,
  330. pageTotal: 0,
  331. form: {},
  332. idx: -1,
  333. id: -1,
  334. showIndex: 0,
  335. ztreeObj: null,
  336. uselist: [],
  337. zNodes: [],
  338. setting: {
  339. edit: {
  340. enable: true,
  341. drag: {
  342. isMove: true
  343. },
  344. showRemoveBtn: false,
  345. showRenameBtn: false
  346. },
  347. check: {
  348. enable: false
  349. },
  350. data: {
  351. simpleData: {
  352. enable: true,
  353. pIdKey: "pid"
  354. }
  355. },
  356. view: {
  357. showIcon: true,
  358. addHoverDom: this.addHoverDom,
  359. removeHoverDom: this.removeHoverDom
  360. }
  361. },
  362. fatherid: 0
  363. };
  364. },
  365. components: {
  366. Schart: vue_schart["a" /* default */],
  367. zTree: zTree1["a" /* default */]
  368. },
  369. created: function created() {
  370. this.getalllist();
  371. },
  372. methods: {
  373. onClick: function onClick(evt, treeId, treeNode) {
  374. // 点击事件
  375. this.fatherid = treeNode.pid;
  376. this.fatherMethod(treeNode.pid);
  377. },
  378. fatherMethod: function fatherMethod(id) {
  379. var _this = this;
  380. var q = {
  381. ancestor: id
  382. };
  383. var data = {
  384. q: stringify_default()(q),
  385. pageNum: 1,
  386. pageSize: 20
  387. };
  388. Object(api["d" /* httpGet */])(data, this.$api.getSiteList).then(function (res) {
  389. _this.tableData = res.data.list.list;
  390. _this.pageTotal = res.data.list.total;
  391. var tableData1 = [],
  392. tableData2 = [];
  393. res.data.list.list.map(function (li, index) {
  394. if (li.id == id) {
  395. _this.tableData.splice(index, 1);
  396. } else if (li.count == 0) {
  397. tableData2.push(li);
  398. } else if (li.count > 0) {
  399. tableData1.push(li);
  400. }
  401. });
  402. _this.tableData1 = tableData1;
  403. _this.tableData2 = tableData2;
  404. });
  405. },
  406. fatherMethod1: function fatherMethod1(pageNum) {
  407. var _this2 = this;
  408. var q = {
  409. ancestor: this.fatherid
  410. };
  411. var data = {
  412. q: stringify_default()(q),
  413. pageNum: pageNum,
  414. pageSize: 20
  415. };
  416. Object(api["d" /* httpGet */])(data, this.$api.getSiteList).then(function (res) {
  417. _this2.tableData = res.data.list.list;
  418. _this2.pageTotal = res.data.list.total;
  419. var tableData1 = [],
  420. tableData2 = [];
  421. res.data.list.list.map(function (li, index) {
  422. if (li.id == id) {
  423. _this2.tableData.splice(index, 1);
  424. } else if (li.count == 0) {
  425. tableData2.push(li);
  426. } else if (li.count > 0) {
  427. tableData1.push(li);
  428. }
  429. });
  430. _this2.tableData1 = tableData1;
  431. _this2.tableData2 = tableData2;
  432. });
  433. },
  434. // 获取所有房间
  435. getalllist: function getalllist() {
  436. var _this3 = this;
  437. var data = {};
  438. Object(api["d" /* httpGet */])(data, this.$api.getTree).then(function (res) {
  439. _this3.zNodes = res.data;
  440. });
  441. },
  442. handleClick: function handleClick(tab, event) {
  443. if (tab.name == "second") {
  444. this.pageTotal = this.tableData1.length;
  445. } else if (tab.name == "third") {
  446. this.pageTotal = this.tableData2.length;
  447. }
  448. },
  449. handleChange: function handleChange(value) {
  450. console.log(value);
  451. },
  452. // 触发搜索按钮
  453. handleSearch: function handleSearch() {
  454. this.$set(this.query, "pageIndex", 1);
  455. this.getData();
  456. },
  457. // 删除操作
  458. handleDelete: function handleDelete(index) {
  459. var _this4 = this;
  460. // 二次确认删除
  461. this.$confirm("确定要删除吗?", "提示", {
  462. type: "warning"
  463. }).then(function () {
  464. _this4.$message.success("删除成功");
  465. _this4.tableData.splice(index, 1);
  466. }).catch(function () {});
  467. },
  468. // 多选操作
  469. handleSelectionChange: function handleSelectionChange(val) {
  470. this.multipleSelection = val;
  471. },
  472. delAllSelection: function delAllSelection() {
  473. var length = this.multipleSelection.length;
  474. var str = "";
  475. this.delList = this.delList.concat(this.multipleSelection);
  476. for (var i = 0; i < length; i++) {
  477. str += this.multipleSelection[i].name + " ";
  478. }
  479. this.$message.error("\u5220\u9664\u4E86" + str);
  480. this.multipleSelection = [];
  481. },
  482. handleCurrentChange: function handleCurrentChange(val) {},
  483. // 编辑操作
  484. handleEdit: function handleEdit(index, row) {
  485. this.idx = index;
  486. this.form = row;
  487. this.editVisible = true;
  488. },
  489. // 保存编辑
  490. saveEdit: function saveEdit() {
  491. this.editVisible = false;
  492. this.$message.success("\u4FEE\u6539\u7B2C " + (this.idx + 1) + " \u884C\u6210\u529F");
  493. this.$set(this.tableData, this.idx, this.form);
  494. },
  495. // 分页导航
  496. handlePageChange: function handlePageChange(val) {
  497. console.log(val, this.query);
  498. if (this.activeName == 'first') {
  499. this.$set(this.query, "pageIndex", val);
  500. this.fatherMethod1(val);
  501. } else if (this.activeName == 'second') {} else if (this.activeName == 'third') {} else if (this.activeName == 'fourth') {}
  502. }
  503. }
  504. });
  505. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-6cea387e","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/dueRoom.vue
  506. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-row',{staticClass:"elrow",attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":24}},[_c('el-card',{attrs:{"shadow":"hover"}},[_c('el-row',{staticClass:"flexrow"},[_c('el-col',{attrs:{"span":5}},[_c('div',{staticClass:"grid-content grid-con-2"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("RMRd"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("到期房间")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v("5")])])])])]),_vm._v(" "),_c('el-col',{attrs:{"span":5}},[_c('div',{staticClass:"grid-content grid-con-2"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("qMbp"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("本月到期房间")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v("3")])])])])]),_vm._v(" "),_c('el-col',{attrs:{"span":5}},[_c('div',{staticClass:"grid-content grid-con-1"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("KHtw"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("下月到期房间")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v("11")])])])])]),_vm._v(" "),_c('el-col',{attrs:{"span":9}},[_c('schart',{ref:"bar",staticClass:"schart",attrs:{"canvasId":"bar","options":_vm.options}})],1)],1)],1)],1)],1),_vm._v(" "),_c('el-card',{staticStyle:{}},[_c('el-row',{staticStyle:{"box-sizing":"border-box","margin":"0 0 0 10px"},attrs:{"gutter":20}},[_c('el-col',{staticStyle:{"background":"#fff","height":"598px","overflow-y":"auto"},attrs:{"span":6}},[_c('el-card',{staticStyle:{},attrs:{"shadow":"always"}},[_c('zTree',{attrs:{"setting":_vm.setting,"nodes":_vm.zNodes},on:{"onClick":_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"}}),_vm._v(" "),_c('el-tab-pane',{attrs:{"label":"下月到期房间","name":"fourth"}})],1)],1),_vm._v(" "),(_vm.activeName == 'first')?_c('el-table',{ref:"multipleTable",staticClass:"table",attrs:{"data":_vm.tableData,"border":"","height":"400","header-cell-class-name":"table-header","highlight-current-row":""},on:{"current-change":_vm.handleCurrentChange}},[_c('el-table-column',{attrs:{"prop":"id","label":"ID","align":"center"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"name","label":"名称"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"count","label":"入住"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"address","label":"地址"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"户型","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.layout == 0)?_c('div',[_vm._v("单间")]):_vm._e(),_vm._v(" "),(scope.row.layout == 1)?_c('div',[_vm._v("一室一厅")]):_vm._e(),_vm._v(" "),(scope.row.layout == 2)?_c('div',[_vm._v("两室一厅")]):_vm._e(),_vm._v(" "),(scope.row.layout == 3)?_c('div',[_vm._v("三室一厅")]):_vm._e()]}}],null,false,3585474365)}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"acreage","label":"面积/m²"}})],1):_vm._e(),_vm._v(" "),(_vm.activeName == 'second')?_c('el-table',{ref:"multipleTable",staticClass:"table",attrs:{"data":_vm.tableData1,"border":"","height":"400","highlight-current-row":"","header-cell-class-name":"table-header"},on:{"current-change":_vm.handleCurrentChange}},[_c('el-table-column',{attrs:{"prop":"id","label":"ID","align":"center"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"name","label":"名称"}}),_vm._v(" "),
  507. var staticRenderFns = []
  508. var esExports = { render: render, staticRenderFns: staticRenderFns }
  509. /* harmony default export */ var views_dueRoom = (esExports);
  510. // CONCATENATED MODULE: ./src/views/dueRoom.vue
  511. function injectStyle (ssrContext) {
  512. __webpack_require__("IfIt")
  513. }
  514. var normalizeComponent = __webpack_require__("VU/8")
  515. /* script */
  516. /* template */
  517. /* template functional */
  518. var __vue_template_functional__ = false
  519. /* styles */
  520. var __vue_styles__ = injectStyle
  521. /* scopeId */
  522. var __vue_scopeId__ = "data-v-6cea387e"
  523. /* moduleIdentifier (server only) */
  524. var __vue_module_identifier__ = null
  525. var Component = normalizeComponent(
  526. dueRoom,
  527. views_dueRoom,
  528. __vue_template_functional__,
  529. __vue_styles__,
  530. __vue_scopeId__,
  531. __vue_module_identifier__
  532. )
  533. /* harmony default export */ var src_views_dueRoom = __webpack_exports__["default"] = (Component.exports);
  534. /***/ })
  535. });