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

521 lines
19 KiB

  1. webpackJsonp([57],{
  2. /***/ "DclD":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "qf+m":
  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: ./src/api/index.js + 5 modules
  14. var api = __webpack_require__("gyMJ");
  15. // EXTERNAL MODULE: ./src/common/echart/index.vue + 4 modules
  16. var echart = __webpack_require__("C3+4");
  17. // EXTERNAL MODULE: ./node_modules/moment/moment.js
  18. var moment = __webpack_require__("PJh5");
  19. var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
  20. // EXTERNAL MODULE: ./src/utils/util.js
  21. var util = __webpack_require__("oFuF");
  22. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/rechargeManagement/rechargeManagement.vue
  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. /* harmony default export */ var rechargeManagement = ({
  204. name: "contrast",
  205. data: function data() {
  206. return {
  207. payOptions: [{ label: '现金', value: 1 }, { label: '刷卡', value: 2 }, { label: '支付宝', value: 3 }, { label: '微信', value: 4 }],
  208. multipleSelection: [],
  209. multipleSelectionTotal: 0,
  210. tableDataLease: [],
  211. LeasePageTotal: 0,
  212. form: {
  213. payValue: 1,
  214. total: 0,
  215. remark: ' ',
  216. payType: 1
  217. },
  218. drawRadio: '1',
  219. drawerPay: false,
  220. qrcodeStatus: false,
  221. pageNum: 1,
  222. pageSize: 20,
  223. radio3: '1',
  224. tableData: [],
  225. pageTotal: 0,
  226. payValue: 0,
  227. codeDialogVisible: false, //微信支付二维码弹窗
  228. codeUrl: '', // 二维码
  229. cdata: {
  230. title: {
  231. text: '交易统计',
  232. subtext: '',
  233. left: 'center'
  234. },
  235. tooltip: {
  236. trigger: 'item'
  237. },
  238. legend: {
  239. orient: 'vertical',
  240. left: 'left'
  241. },
  242. series: [{
  243. name: '交易统计',
  244. type: 'pie',
  245. radius: '70%',
  246. data: [{
  247. value: 1048,
  248. name: '消费'
  249. }, {
  250. value: 735,
  251. name: '充值'
  252. }],
  253. emphasis: {
  254. itemStyle: {
  255. shadowBlur: 10,
  256. shadowOffsetX: 0,
  257. shadowColor: 'rgba(0, 0, 0, 0.5)'
  258. }
  259. }
  260. }]
  261. },
  262. info: {
  263. balance: 0
  264. },
  265. infoData: {
  266. balance: 0
  267. },
  268. documentHeight: 0
  269. };
  270. },
  271. components: {
  272. Echart: echart["a" /* default */]
  273. },
  274. created: function created() {
  275. this.info = JSON.parse(localStorage.getItem('info'));
  276. this.getOrderList();
  277. this.payTotalMethods();
  278. this.getLeasesList();
  279. this.documentHeight = document.documentElement.clientHeight - 200;
  280. },
  281. mounted: function mounted() {
  282. this.getUserlist();
  283. },
  284. methods: {
  285. // 获取合同列表
  286. getLeasesList: function getLeasesList() {
  287. var _this = this;
  288. var QData = util["a" /* default */].validObject({
  289. status: 2
  290. });
  291. var data = {
  292. pageNum: 0,
  293. pageSize: 0,
  294. orderBy: "create_time desc",
  295. q: stringify_default()(QData)
  296. };
  297. if (data.q == '{}') {
  298. delete data.q;
  299. }
  300. Object(api["g" /* httpPost */])(data, this.$api.postLeasesList).then(function (res) {
  301. if (res.success) {
  302. res.data.list.map(function (li) {
  303. li.signingTime = moment_default()(li.signingTime).format('YYYY-MM-DD HH:mm:ss');
  304. li.contractTime = moment_default()(li.contractTime).format('YYYY-MM-DD HH:mm:ss');
  305. li.createTime = moment_default()(li.createTime).format('YYYY-MM-DD HH:mm:ss');
  306. });
  307. _this.tableDataLease = res.data.list;
  308. _this.LeasePageTotal = res.data.total;
  309. } else {
  310. _this.$message.error(res.message);
  311. }
  312. });
  313. },
  314. // 多选
  315. handleSelectionChange: function handleSelectionChange(val) {
  316. this.multipleSelection = val;
  317. var multipleSelectionTotal = 0;
  318. val.map(function (li) {
  319. multipleSelectionTotal += parseInt(li.monthRent);
  320. });
  321. this.multipleSelectionTotal = parseFloat(multipleSelectionTotal).toFixed(2);
  322. },
  323. // 计算充值短信金额
  324. payTotalMethods: function payTotalMethods() {
  325. if (this.form.payValue == '') {
  326. this.$message.error('数量不能为0');
  327. this.form.payValue = 1;
  328. return;
  329. }
  330. this.form.total = parseInt(this.form.payValue) / 10;
  331. },
  332. // 隐藏充值界面
  333. handleClose: function handleClose() {
  334. this.drawerPay = false;
  335. },
  336. // 退款
  337. drawback: function drawback(no) {
  338. var _this2 = this;
  339. var url = "/v1/pay/refunds/" + no + "/\u9000\u6B3E";
  340. Object(api["d" /* httpGet */])('', url).then(function (res) {
  341. if (res.data.success) {
  342. _this2.$message.success('退款成功');
  343. _this2.getUserlist();
  344. _this2.getOrderList();
  345. } else {
  346. _this2.$message.error(res.data.msg);
  347. }
  348. });
  349. },
  350. handleSizeChange: function handleSizeChange(val) {
  351. this.pageSize = val;
  352. this.getOrderList();
  353. },
  354. handleCurrentChange: function handleCurrentChange(val) {
  355. this.pageNum = val;
  356. this.getOrderList();
  357. },
  358. getUserlist: function getUserlist() {
  359. var _this3 = this;
  360. Object(api["d" /* httpGet */])('', this.$api.getBalance).then(function (res) {
  361. if (res.code == 200) {
  362. _this3.infoData = res.data;
  363. } else {
  364. _this3.$message.error(res.message);
  365. }
  366. });
  367. },
  368. getOrderList: function getOrderList() {
  369. var _this4 = this;
  370. var data = {
  371. pageSize: this.pageSize,
  372. pageNum: this.pageNum,
  373. orderBy: "create_time desc"
  374. };
  375. Object(api["d" /* httpGet */])(data, this.$api.getOrderList).then(function (res) {
  376. if (res.code == 200) {
  377. res.data.list.map(function (li) {
  378. li.totalFee = (li.totalFee / 100).toFixed(2);
  379. li.createTime = moment_default()(li.createTime).format('YYYY-MM-DD HH:mm:ss');
  380. li.expand = JSON.parse(li.expand);
  381. });
  382. _this4.tableData = res.data.list;
  383. _this4.pageTotal = res.data.total;
  384. } else {
  385. _this4.$message.error(res.message);
  386. }
  387. });
  388. },
  389. getRadioLable: function getRadioLable() {
  390. this.goPay();
  391. },
  392. closeDialog: function closeDialog() {
  393. this.codeDialogVisible = false;
  394. this.getOrderList();
  395. this.getUserlist();
  396. },
  397. goPay: function goPay() {
  398. var _this5 = this;
  399. var info = JSON.parse(localStorage.getItem('info'));
  400. if (this.drawRadio == 1) {
  401. var data = {
  402. description: this.form.remark,
  403. productName: this.drawRadio == 1 ? "短信服务" : '交租',
  404. total: parseInt(this.form.payValue) * 10,
  405. userId: info.id,
  406. cardId: info.id,
  407. orderType: this.drawRadio == 1 ? 0 : 1,
  408. payType: 0,
  409. expand: stringify_default()({
  410. phone: info.phone,
  411. nickname: info.username
  412. })
  413. };
  414. console.log(data);
  415. Object(api["g" /* httpPost */])(data, this.$api.createOrder).then(function (res) {
  416. if (res.success) {
  417. _this5.codeUrl = res.data.code_url;
  418. _this5.qrcodeStatus = true;
  419. } else {
  420. _this5.$message.error(res.data.msg);
  421. }
  422. });
  423. } else if (this.drawRadio == 2) {
  424. this.multipleSelection.map(function (li) {
  425. var data = {
  426. description: "交租",
  427. productName: "交租",
  428. total: parseInt(li.monthRent) * 100, //parseInt(this.data.leases.expand.rent)*100,
  429. userId: li.cardId,
  430. cardId: li.cardId,
  431. appid: 'wx20de9fe5943934a1',
  432. uid: info.id,
  433. eid: info.enterpriseId,
  434. orderType: 1,
  435. payType: _this5.form.payType,
  436. expand: stringify_default()({
  437. phone: li.phone,
  438. nickname: li.name
  439. })
  440. };
  441. Object(api["g" /* httpPost */])(data, _this5.$api.rentPrepayOrder).then(function (res) {
  442. if (res.success) {
  443. _this5.$message.success('结算成功');
  444. _this5.getLeasesList();
  445. } else {
  446. _this5.$message.error("\u7ED3\u7B97\u5931\u8D25\uFF1A" + res.message);
  447. }
  448. });
  449. });
  450. }
  451. },
  452. rechargeMethods: function rechargeMethods() {
  453. this.codeDialogVisible = true;
  454. }
  455. }
  456. });
  457. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-6f96ac48","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/rechargeManagement/rechargeManagement.vue
  458. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{attrs:{"shadow":"never"}},[_c('el-row',{attrs:{"gutter":20}},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"header-row-style":{textAlign:'center'},"height":_vm.documentHeight,"align":"center"}},[_c('el-table-column',{attrs:{"prop":"createTime","label":"日期"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"orderNo","label":"订单号"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"totalFee","label":"金额"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"类型"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.orderType==0?'短信充值':scope.row.orderType==1?'交租':scope.row.orderType==2?'语音电话费用充值':scope.row.orderType==3?'系统续费':'未知'))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"支付方式"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.payType==0?'微信支付':scope.row.payType==1?'支付宝支付':scope.row.payType==2?'现金支付':scope.row.payType==3?'银联支付':scope.row.payType==4?'积分支付':'未知'))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"orderStatus","label":"状态"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.orderStatus==0?'支付成功':scope.row.orderStatus==1?'转入退款':scope.row.orderStatus==2?'未支付':scope.row.orderStatus==3?'已关闭':scope.row.orderStatus==4?'已撤销(付款码支付)':scope.row.orderStatus==5?'用户支付中(付款码支付)':scope.row.orderStatus==6?'支付失败(其他原因,如银行返回失败)':'支付失败'))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"describe","label":"操作人"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.expand?scope.row.expand.nickname:''))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"describe","label":"备注"}}),_vm._v(" "),(_vm.info.type === 0)?_c('el-table-column',{attrs:{"label":"操作"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.orderStatus==0)?_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.drawback(scope.row.orderNo)}}},[_vm._v("退款")]):_vm._e()]}}],null,false,2213948113)}):_vm._e()],1),_vm._v(" "),_c('div',{staticClass:"text-right mt-2 d-flex flex-wrap justify-space-between"},[_c('div',{staticClass:"d-inlie-block"},[_c('div',{staticClass:"d-inlie-block"},[_vm._v("短信余额:"),_c('span',{staticClass:"color-e94848 font-size-24 font-weight-600"},[_vm._v(_vm._s(_vm.infoData.balance?(_vm.infoData.balance/10):0))]),_c('span',{staticClass:"color-666 font-size-14 font-weight-600"},[_vm._v("条")])]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":function($event){_vm.drawerPay=true}}},[_vm._v("充值结算")])],1),_vm._v(" "),_c('div',{staticClass:"d-inlie-block"},[_c('el-pagination',{attrs:{"current-page":_vm.pageNum,"page-sizes":[20,100, 200, 300, 400],"page-size":_vm.pageSize,"layout":"total, sizes, prev, pager, next, jumper","total":_vm.pageTotal},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1)])],1)],1),_vm._v(" "),_c('el-drawer',{staticClass:"position-relative",attrs:{"title":"充值结算","visible":_vm.drawerPay,"direction":"rtl","size":"90%","before-close":_vm.handleClose},on:{"update:visible":function($event){_vm.drawerPay=$event}}},[_c('el-card',{staticStyle:{"border":"none"},attrs:{"shadow":"never","body-style":{border:'none'}}},[_c('div',[_c('el-radio',{attrs:{"label":"1","border":""},model:{value:(_vm.drawRadio),callback:function ($$v) {_vm.drawRadio=$$v},expression:"drawRadio"}},[_vm._v("短信充值")]),_vm._v(" "),_c('el-radio',{attrs:{"label":"2","border":""},model:{value:(_vm.drawRadio),callback:function ($$v) {_vm.drawRadio=$$v},expression:"drawRadio"}},[_vm._v("线下交租")])],1),_vm._v(" "),(
  459. var staticRenderFns = []
  460. var esExports = { render: render, staticRenderFns: staticRenderFns }
  461. /* harmony default export */ var rechargeManagement_rechargeManagement = (esExports);
  462. // CONCATENATED MODULE: ./src/views/rechargeManagement/rechargeManagement.vue
  463. function injectStyle (ssrContext) {
  464. __webpack_require__("DclD")
  465. }
  466. var normalizeComponent = __webpack_require__("VU/8")
  467. /* script */
  468. /* template */
  469. /* template functional */
  470. var __vue_template_functional__ = false
  471. /* styles */
  472. var __vue_styles__ = injectStyle
  473. /* scopeId */
  474. var __vue_scopeId__ = "data-v-6f96ac48"
  475. /* moduleIdentifier (server only) */
  476. var __vue_module_identifier__ = null
  477. var Component = normalizeComponent(
  478. rechargeManagement,
  479. rechargeManagement_rechargeManagement,
  480. __vue_template_functional__,
  481. __vue_styles__,
  482. __vue_scopeId__,
  483. __vue_module_identifier__
  484. )
  485. /* harmony default export */ var views_rechargeManagement_rechargeManagement = __webpack_exports__["default"] = (Component.exports);
  486. /***/ })
  487. });