webpackJsonp([78],{ /***/ "0hOQ": /***/ (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/api/index.js + 5 modules var api = __webpack_require__("gyMJ"); // EXTERNAL MODULE: ./src/utils/util.js var util = __webpack_require__("oFuF"); // EXTERNAL MODULE: ./node_modules/moment/moment.js var moment = __webpack_require__("PJh5"); var moment_default = /*#__PURE__*/__webpack_require__.n(moment); // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/rechargeManagement/bill.vue // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ var bill = ({ name: "bill", data: function data() { return { tableData: [], documentHeight: 0, pageSize: 20, pageTotal: 0, pageNum: 1, search: { startTime: '', endTime: '' } }; }, created: function created() { this.info = JSON.parse(localStorage.getItem('info')); this.getOrderList(); this.documentHeight = document.documentElement.clientHeight - 300; }, mounted: function mounted() {}, methods: { // 订单列表 getOrderList: function getOrderList() { var _this = this; var q = util["a" /* default */].validObject(this.search); var data = { pageSize: this.pageSize, pageNum: this.pageNum, orderBy: "create_time desc", q: stringify_default()(q) }; Object(api["d" /* httpGet */])(data, this.$api.getOrderList).then(function (res) { if (res.code == 200) { res.data.list.map(function (li) { li.totalFee = (li.totalFee / 100).toFixed(2); li.createTime = moment_default()(li.createTime).format('YYYY-MM-DD HH:mm:ss'); if (li.expand) { li.expand = JSON.parse(li.expand); } else { li.expand = { phonephone: '', nickname: '' }; } }); _this.tableData = res.data.list; _this.pageTotal = res.data.total; } else { _this.$message.error(res.message); } }); }, // 退款 drawback: function drawback(no) { var _this2 = this; var url = "/v1/pay/refunds/" + no + "/\u9000\u6B3E"; Object(api["d" /* httpGet */])('', url).then(function (res) { if (res.data.success) { _this2.$message.success('退款成功'); _this2.getUserlist(); _this2.getOrderList(); } else { _this2.$message.error(res.data.msg); } }); }, handleSizeChange: function handleSizeChange(val) { this.pageSize = val; this.getOrderList(); }, handleCurrentChange: function handleCurrentChange(val) { this.pageNum = val; this.getOrderList(); }, // 批量导出 batchExport: function batchExport() {}, // 查询 searchMethods: function searchMethods() { this.getOrderList(); } } }); // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-2a92c108","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/bill.vue var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bill"},[_c('div',{staticClass:"container"},[_c('div',{staticClass:"handle-box"},[_c('div',{staticClass:"d-inlie-block mb-2"},[_c('el-date-picker',{staticClass:"width100",attrs:{"size":"small","type":"datetime","placeholder":"开始日期","default-time":"00:00:00"},model:{value:(_vm.search.startTime),callback:function ($$v) {_vm.$set(_vm.search, "startTime", $$v)},expression:"search.startTime"}}),_vm._v(" "),_c('span',[_vm._v("至")]),_vm._v(" "),_c('el-date-picker',{staticClass:"width100",attrs:{"size":"small","type":"datetime","placeholder":"结束日期","default-time":"00:00:00"},model:{value:(_vm.search.endTime),callback:function ($$v) {_vm.$set(_vm.search, "endTime", $$v)},expression:"search.endTime"}})],1),_vm._v(" "),_c('el-select',{staticClass:"mb-2",attrs:{"placeholder":"请选择订单类型","size":"small","clearable":""},model:{value:(_vm.search.orderType),callback:function ($$v) {_vm.$set(_vm.search, "orderType", $$v)},expression:"search.orderType"}},[_c('el-option',{key:"0",attrs:{"label":"短信充值","value":"0"}}),_vm._v(" "),_c('el-option',{key:"1",attrs:{"label":"交租","value":"1"}}),_vm._v(" "),_c('el-option',{key:"2",attrs:{"label":"语音电话充值","value":"2"}}),_vm._v(" "),_c('el-option',{key:"3",attrs:{"label":"系统续费","value":"3"}})],1),_vm._v(" "),_c('el-select',{staticClass:"mb-2",attrs:{"placeholder":"请选择支付方式","size":"small","clearable":""},model:{value:(_vm.search.payType),callback:function ($$v) {_vm.$set(_vm.search, "payType", $$v)},expression:"search.payType"}},[_c('el-option',{key:"0",attrs:{"label":"微信支付","value":"0"}}),_vm._v(" "),_c('el-option',{key:"1",attrs:{"label":"支付宝支付","value":"1"}}),_vm._v(" "),_c('el-option',{key:"2",attrs:{"label":"现金支付","value":"2"}}),_vm._v(" "),_c('el-option',{key:"3",attrs:{"label":"银联支付","value":"3"}}),_vm._v(" "),_c('el-option',{key:"4",attrs:{"label":"积分支付","value":"4"}})],1),_vm._v(" "),_c('el-button',{staticClass:"mb-2",attrs:{"type":"primary","size":"small"},on:{"click":_vm.searchMethods}},[_vm._v("查询")]),_vm._v(" "),_c('el-button',{staticClass:"mb-2",attrs:{"type":"primary","size":"small"},on:{"click":_vm.batchExport}},[_vm._v("批量导出")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticClass:"table",attrs:{"data":_vm.tableData,"border":"","stripe":"","header-cell-class-name":"table-header","empty-text":"无","height":_vm.documentHeight}},[_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:{"label":"支付用户"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.expand.nickname?scope.row.expand.nickname:''))])]}}])}),_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.expand.phone?scope.row.expand.phone:''))])]}}])}),_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-center mt-2"},[_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)])} var staticRenderFns = [] var esExports = { render: render, staticRenderFns: staticRenderFns } /* harmony default export */ var rechargeManagement_bill = (esExports); // CONCATENATED MODULE: ./src/views/rechargeManagement/bill.vue function injectStyle (ssrContext) { __webpack_require__("YXFc") } var normalizeComponent = __webpack_require__("VU/8") /* script */ /* template */ /* template functional */ var __vue_template_functional__ = false /* styles */ var __vue_styles__ = injectStyle /* scopeId */ var __vue_scopeId__ = "data-v-2a92c108" /* moduleIdentifier (server only) */ var __vue_module_identifier__ = null var Component = normalizeComponent( bill, rechargeManagement_bill, __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ var views_rechargeManagement_bill = __webpack_exports__["default"] = (Component.exports); /***/ }), /***/ "YXFc": /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }) });