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

613 lines
21 KiB

  1. webpackJsonp([69],{
  2. /***/ "AKti":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "f2vC":
  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/babel-runtime/core-js/object/keys.js
  14. var keys = __webpack_require__("fZjL");
  15. var keys_default = /*#__PURE__*/__webpack_require__.n(keys);
  16. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  17. var api = __webpack_require__("gyMJ");
  18. // EXTERNAL MODULE: ./src/utils/index.js
  19. var utils = __webpack_require__("0xDb");
  20. // EXTERNAL MODULE: ./src/views/doorMagnetism/common/map.vue + 2 modules
  21. var map = __webpack_require__("xMD2");
  22. // EXTERNAL MODULE: ./node_modules/moment/moment.js
  23. var moment = __webpack_require__("PJh5");
  24. var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
  25. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/concat.vue
  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. /* harmony default export */ var concat = ({
  160. name: "alarmRecord",
  161. data: function data() {
  162. return {
  163. modeList: [{
  164. name: '短信',
  165. id: 'toSms'
  166. }, {
  167. name: '公众号',
  168. id: 'toWechat'
  169. }, {
  170. name: '电话',
  171. id: 'toVoice'
  172. }],
  173. pageTotal: 0,
  174. rules: {
  175. region: [{
  176. required: true,
  177. message: '请选择所属单位',
  178. trigger: 'blur'
  179. }],
  180. phone: [{
  181. required: true,
  182. message: '请输入电话',
  183. trigger: 'blur'
  184. }],
  185. name: [{
  186. required: true,
  187. message: '请输入名称',
  188. trigger: 'blur'
  189. }]
  190. },
  191. dialogVisible2: false,
  192. titleText: '设备未处理报警记录(IMEI:860709056256857)',
  193. textarea: '', //批量处理备注
  194. dialogVisible: false,
  195. dialogVisible1: false,
  196. input: '',
  197. content: '切换单个/多个查询模式',
  198. selected: true,
  199. advancedQueryStatus: false,
  200. advancedQueryText: '高级查询',
  201. formInline: {
  202. phone: '',
  203. name: '',
  204. toSms: false,
  205. toVoice: false,
  206. toWechat: false,
  207. enterpriseId: ''
  208. },
  209. tableData: [],
  210. rowStyle: {
  211. background: '#f8f9fa',
  212. fontSize: '12px'
  213. },
  214. multipleSelection: [],
  215. enterpriselist: [],
  216. formRoom: {
  217. name: '',
  218. phone: '',
  219. region: '',
  220. toWechat: false,
  221. toVoice: false,
  222. toSms: false
  223. },
  224. form1: {
  225. address: '',
  226. province: '',
  227. city: '',
  228. latitude: 0, // 纬度
  229. longitude: 0, // 经度
  230. district: ''
  231. },
  232. currentPage: 1,
  233. currentPage1: 1,
  234. pageSize: 10,
  235. pageTotal1: 0,
  236. batch: true,
  237. zNodes: [],
  238. modifyRow: '',
  239. modifyStatus: false,
  240. deviceList: [],
  241. devicerow: '',
  242. userInfo: {
  243. type: ''
  244. }
  245. };
  246. },
  247. components: {
  248. Map: map["a" /* default */]
  249. },
  250. computed: {},
  251. created: function created() {
  252. this.userInfo = JSON.parse(localStorage.getItem('info'));
  253. this.getEnterprise();
  254. this.getlist();
  255. },
  256. mounted: function mounted() {},
  257. methods: {
  258. InputFun: function InputFun(e) {
  259. if (e == 'toSms') {
  260. this.formInline['toSms'] = true;
  261. this.formInline['toVoice'] = false;
  262. this.formInline['toWechat'] = false;
  263. } else if (e == 'toVoice') {
  264. this.formInline['toSms'] = false;
  265. this.formInline['toVoice'] = true;
  266. this.formInline['toWechat'] = false;
  267. } else if (e == 'toWechat') {
  268. this.formInline['toSms'] = false;
  269. this.formInline['toVoice'] = false;
  270. this.formInline['toWechat'] = true;
  271. }
  272. },
  273. modifswitch: function modifswitch(index, row) {
  274. var _this = this;
  275. this.$confirm('是否确认修改?', '提示').then(function (_) {
  276. var data = {
  277. list: [{
  278. id: row.id,
  279. phone: row.phone,
  280. enterpriseId: row.enterpriseId,
  281. name: row.name,
  282. toSms: row.toSms || false,
  283. toVoice: row.toVoice || false,
  284. toWechat: row.toWechat || false
  285. }]
  286. };
  287. if (row.name == "") {
  288. _this.$message.error("名称不能为空");
  289. } else if (row.phone == "") {
  290. _this.$message.error("手机号不能为空");
  291. } else {
  292. Object(api["g" /* httpPost */])(data, _this.$api.updateAlarm).then(function (res) {
  293. if (res.success) {
  294. _this.$message.success("修改成功");
  295. _this.getlist();
  296. } else {
  297. _this.$message.error("修改失败");
  298. }
  299. });
  300. }
  301. }).catch(function (_) {
  302. _this.getlist();
  303. });
  304. },
  305. deleteAlarm: function deleteAlarm(index, row) {
  306. var _this2 = this;
  307. var data = {
  308. ids: [row.id]
  309. };
  310. Object(api["g" /* httpPost */])(data, this.$api.deleteAlarm).then(function (res) {
  311. if (res.success) {
  312. _this2.$message.success("删除成功");
  313. _this2.getlist();
  314. } else {
  315. _this2.$message.error("删除失败");
  316. }
  317. });
  318. },
  319. reset: function reset() {
  320. var formInline = {
  321. region: '',
  322. name: '',
  323. phone: '',
  324. mode: ''
  325. };
  326. this.formInline = formInline;
  327. },
  328. // 修改房源
  329. modifyRoom: function modifyRoom(index, row) {
  330. var formRoom = {
  331. name: row.name,
  332. phone: row.phone,
  333. region: row.enterpriseId,
  334. toSms: row.toSms,
  335. toVoice: row.toVoice,
  336. toWechat: row.toWechat
  337. };
  338. this.formRoom = formRoom;
  339. this.modifyRow = row;
  340. this.dialogVisible = true;
  341. this.modifyStatus = true;
  342. },
  343. updateRoom: function updateRoom() {
  344. var _this3 = this;
  345. var formRoom = this.formRoom;
  346. var data = {
  347. list: [{
  348. id: this.modifyRow.id,
  349. phone: formRoom.phone,
  350. enterpriseId: formRoom.region,
  351. name: formRoom.name,
  352. toSms: formRoom.toSms,
  353. toVoice: formRoom.toVoice,
  354. toWechat: formRoom.toWechat
  355. }]
  356. };
  357. if (formRoom.name == "") {
  358. this.$message.error("名称不能为空");
  359. } else if (formRoom.phone == "") {
  360. this.$message.error("手机号不能为空");
  361. } else {
  362. Object(api["g" /* httpPost */])(data, this.$api.updateAlarm).then(function (res) {
  363. if (res.success) {
  364. _this3.$message.success("修改成功");
  365. _this3.dialogVisible = false;
  366. _this3.getlist();
  367. } else {
  368. _this3.$message.error("修改失败");
  369. }
  370. });
  371. }
  372. },
  373. // 创建人员
  374. saveEdit: function saveEdit() {
  375. var _this4 = this;
  376. var formRoom = this.formRoom;
  377. if (formRoom.name == "") {
  378. this.$message.error("姓名不能为空");
  379. } else if (formRoom.phone == "") {
  380. this.$message.error("手机号不能为空");
  381. } else {
  382. var data = {
  383. phone: formRoom.phone,
  384. enterpriseId: formRoom.region,
  385. name: formRoom.name,
  386. toSms: formRoom.toSms || false,
  387. toVoice: formRoom.toVoice || false,
  388. toWechat: formRoom.toWechat || false
  389. };
  390. Object(api["g" /* httpPost */])(data, this.$api.addAlarmUser).then(function (res) {
  391. if (res.success) {
  392. _this4.dialogVisible = false;
  393. _this4.getlist();
  394. _this4.$message.success("创建成功");
  395. } else {
  396. _this4.$message.error("创建失败");
  397. }
  398. });
  399. }
  400. },
  401. yz: function yz(obj) {
  402. var str = {};
  403. keys_default()(obj).forEach(function (key) {
  404. if (obj[key] != '' && key != 'mode') {
  405. str[key] = obj[key];
  406. }
  407. });
  408. return str;
  409. },
  410. // 获取列表
  411. getlist: function getlist() {
  412. var _this5 = this;
  413. var q = this.yz(this.formInline);
  414. var data = {
  415. q: stringify_default()(q),
  416. orderBy: "create_time desc",
  417. pageNum: this.currentPage,
  418. pageSize: this.pageSize
  419. };
  420. Object(api["d" /* httpGet */])(data, this.$api.getAlarmUser).then(function (res) {
  421. if (res.data.list.length > 0) {
  422. _this5.tableData = res.data.list;
  423. // this.tableData=res.data.list
  424. _this5.pageTotal = res.data.total;
  425. } else {
  426. _this5.tableData = [];
  427. _this5.pageTotal = 0;
  428. }
  429. });
  430. },
  431. openMap: function openMap() {
  432. if (this.form.longitude == 'undefined' && this.form.latitude == 'undefined') {
  433. this.$refs.map.open();
  434. } else {
  435. this.$refs.map.open(this.form1);
  436. }
  437. },
  438. updateLocation: function updateLocation(orgAddr, lon, lat, province, city, district) {
  439. this.form1 = {
  440. address: orgAddr,
  441. province: province,
  442. city: city,
  443. latitude: lat, // 纬度
  444. longitude: lon, // 经度
  445. district: district
  446. };
  447. },
  448. // 获取单位
  449. getEnterprise: function getEnterprise() {
  450. var _this6 = this;
  451. var data = {
  452. q: stringify_default()({
  453. name: this.formInline.name
  454. })
  455. };
  456. Object(api["d" /* httpGet */])(data, this.$api.getEnterprise).then(function (res) {
  457. if (res.success) {
  458. _this6.enterpriselist = res.data.list;
  459. _this6.zNodes = [];
  460. _this6.zNodes = Object(utils["p" /* ztreeToElementTree */])(res.data.list, {});
  461. } else {
  462. _this6.$message.error("获取失败");
  463. }
  464. });
  465. },
  466. // 未处理记录打开
  467. recordFun: function recordFun() {
  468. this.dialogVisible1 = true;
  469. },
  470. // 未处理记录处理关闭
  471. handleClose1: function handleClose1(done) {
  472. done();
  473. },
  474. // 批量处理关闭
  475. handleClose: function handleClose(done) {
  476. done();
  477. this.modifyStatus = false;
  478. },
  479. // 批量处理
  480. batchProcessing: function batchProcessing() {
  481. this.dialogVisible = true;
  482. this.formRoom = {
  483. name: '',
  484. address: '',
  485. floorNum: '',
  486. region: ''
  487. };
  488. this.modifyStatus = false;
  489. },
  490. // 分页
  491. handleSizeChange: function handleSizeChange(val) {
  492. this.pageSize = val;
  493. this.getlist();
  494. console.log("\u6BCF\u9875 " + val + " \u6761");
  495. },
  496. handleCurrentChange: function handleCurrentChange(val) {
  497. this.currentPage = val;
  498. this.getlist();
  499. console.log("\u5F53\u524D\u9875: " + val);
  500. },
  501. // 表头样式
  502. rowClass: function rowClass(_ref) {
  503. var row = _ref.row,
  504. rowIndex = _ref.rowIndex;
  505. return "background:#f8f9fa;color:#333;font-blod:none;font-size:12px;";
  506. },
  507. // 表格勾选
  508. handleSelectionChange: function handleSelectionChange(val) {
  509. if (val.length > 0) {
  510. this.batch = false;
  511. } else {
  512. this.batch = true;
  513. }
  514. },
  515. // 高级查询显示
  516. advancedQueryFun: function advancedQueryFun() {
  517. if (this.advancedQueryStatus) {
  518. this.advancedQueryText = "高级查询";
  519. this.advancedQueryStatus = false;
  520. } else {
  521. this.advancedQueryText = "同用查询";
  522. this.advancedQueryStatus = true;
  523. }
  524. },
  525. // 批量处理备注监控
  526. textareaFun: function textareaFun(e) {
  527. this.textarea = e;
  528. },
  529. // 单个/多个查询切换
  530. switchFun: function switchFun() {
  531. this.selected = !this.selected;
  532. }
  533. }
  534. });
  535. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-406f8e64","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/concat.vue
  536. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":"container"}},[_c('div',{staticClass:"alarmrecord"},[_c('el-card',{staticClass:"box-card"},[_c('el-row',{},[_c('div',{staticClass:"search"},[_c('el-form',{staticClass:"demo-form-inline",attrs:{"inline":true,"model":_vm.formInline}},[(_vm.userInfo.type==0)?_c('el-form-item',{attrs:{"label":""}},[_c('selectoption')],1):_vm._e(),_vm._v(" "),_c('el-form-item',{attrs:{"label":"单位名称:"}},[_c('el-select',{staticClass:"w200",attrs:{"size":"small","clearable":"","placeholder":"请选择所属单位"},model:{value:(_vm.formInline.enterpriseId),callback:function ($$v) {_vm.$set(_vm.formInline, "enterpriseId", $$v)},expression:"formInline.enterpriseId"}},_vm._l((_vm.enterpriselist),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.name,"value":item.id}})}),1)],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"姓名:"}},[_c('el-input',{attrs:{"placeholder":"请输入联系人姓名","size":"small","clearable":true},model:{value:(_vm.formInline.name),callback:function ($$v) {_vm.$set(_vm.formInline, "name", $$v)},expression:"formInline.name"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"电话:"}},[_c('el-input',{attrs:{"type":"number","maxlength":"11","placeholder":"请输入联系人电话","size":"small","clearable":true},model:{value:(_vm.formInline.phone),callback:function ($$v) {_vm.$set(_vm.formInline, "phone", $$v)},expression:"formInline.phone"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"通知方式:"}},[_c('el-select',{staticClass:"w200",attrs:{"clearable":"","size":"small","placeholder":"请选择通知方式"},on:{"input":function($event){return _vm.InputFun($event)}},model:{value:(_vm.formInline.mode),callback:function ($$v) {_vm.$set(_vm.formInline, "mode", $$v)},expression:"formInline.mode"}},_vm._l((_vm.modeList),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.name,"value":item.id}})}),1)],1),_vm._v(" "),_c('el-form-item',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.reset}},[_vm._v("重置")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.getlist}},[_vm._v("查询")])],1)],1)],1)]),_vm._v(" "),_c('el-row',{staticClass:"marginTop"},[_c('div',{staticClass:"tablecell"},[_c('el-row',{staticClass:"floatRight"},[_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.batchProcessing}},[_vm._v("新增")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"border":true,"tooltip-effect":"dark","header-cell-style":_vm.rowClass,"row-key":"id","default-expand-all":true,"tree-props":{children: 'children', hasChildren: 'hasChildren'},"cell-style":{fontSize:'12px'},"stripe":"","height":"590"},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"55"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"name","label":"姓名","width":"120"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"enterpriseName","label":"所属单位","show-overflow-tooltip":""}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"phone","label":"电话","show-overflow-tooltip":""}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"通知方式","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-switch',{attrs:{"inactive-text":"短信"},on:{"change":function($event){return _vm.modifswitch(scope.$index, scope.row)}},model:{value:(scope.row.toSms),callback:function ($$v) {_vm.$set(scope.row, "toSms", $$v)},expression:"scope.row.toSms"}}),_vm._v(" "),_c('el-switch',{attrs:{"inactive-text":"公众号"},on:{"change":function($event){return _vm.modifswitch(scope.$index, scope.row)}},model:{value:(scope.row.toWechat),callback:function ($$v) {_vm.$set(scope.row, "toWechat", $$v)},expression:"scope.row.toWechat"}}),_vm._v(" "),_c('el-switch',{attrs:{"inactive-text":"电话"},on:{"change":function($event){return _vm.modifswitch(scope.$index, scope.row)}},model:{value:(
  537. var staticRenderFns = []
  538. var esExports = { render: render, staticRenderFns: staticRenderFns }
  539. /* harmony default export */ var views_concat = (esExports);
  540. // CONCATENATED MODULE: ./src/views/concat.vue
  541. function injectStyle (ssrContext) {
  542. __webpack_require__("AKti")
  543. }
  544. var normalizeComponent = __webpack_require__("VU/8")
  545. /* script */
  546. /* template */
  547. /* template functional */
  548. var __vue_template_functional__ = false
  549. /* styles */
  550. var __vue_styles__ = injectStyle
  551. /* scopeId */
  552. var __vue_scopeId__ = "data-v-406f8e64"
  553. /* moduleIdentifier (server only) */
  554. var __vue_module_identifier__ = null
  555. var Component = normalizeComponent(
  556. concat,
  557. views_concat,
  558. __vue_template_functional__,
  559. __vue_styles__,
  560. __vue_scopeId__,
  561. __vue_module_identifier__
  562. )
  563. /* harmony default export */ var src_views_concat = __webpack_exports__["default"] = (Component.exports);
  564. /***/ })
  565. });