chunk-56a8c70a.45a1ded9.js 7.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56a8c70a"],{aae0:function(e,t,a){},b2e8:function(e,t,a){"use strict";a("aae0")},bee6:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container",attrs:{id:"payDetail"}},[a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),e._v(" "),a("div",{staticClass:"search-container"},[a("el-input",{staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"客户昵称/手机号"},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.listQuery.page_index=1,e.getList()}},model:{value:e.listQuery.search_name,callback:function(t){e.$set(e.listQuery,"search_name",t)},expression:"listQuery.search_name"}}),e._v(" "),a("el-input",{staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"支付流水号"},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.listQuery.page_index=1,e.getList()}},model:{value:e.listQuery.pay_no,callback:function(t){e.$set(e.listQuery,"pay_no",t)},expression:"listQuery.pay_no"}}),e._v(" "),a("el-select",{model:{value:e.listQuery.type,callback:function(t){e.$set(e.listQuery,"type",t)},expression:"listQuery.type"}},[a("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),a("el-option",{attrs:{label:"后台充值",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"支付",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"退回",value:"2"}}),e._v(" "),a("el-option",{attrs:{label:"扣款",value:"3"}})],1),e._v(" "),a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm",format:"yyyy-MM-dd HH:mm"},model:{value:e.listQuery.time,callback:function(t){e.$set(e.listQuery,"time",t)},expression:"listQuery.time"}}),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.listQuery.page_index=1,e.getList()}}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.toExport}},[e._v("导出")])],1),e._v(" "),a("el-table",{staticClass:"tableBorder",attrs:{border:"",stripe:"","header-cell-style":{background:"#f8fbfc"},data:e.tableList}},[a("el-table-column",{attrs:{prop:"pay_num",label:"支付流水号",width:"230"}}),e._v(" "),a("el-table-column",{attrs:{prop:"order_num",label:"订单号",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"时间",width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"user",label:"昵称"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return a("span",{},[e._v(e._s(n.user&&n.user.nickname))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"user",label:"姓名"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return a("span",{},[e._v(e._s(n.user&&n.user.realname))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"user",label:"手机号",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return a("span",{},[e._v(e._s(n.user&&n.user.mobile))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"type",label:"摘要",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return a("span",{},[e._v(e._s(e.typeShow(n.type)))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_money",label:"金额",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return a("span",{},[e._v(e._s(e.parseMoney(n.pay_money)))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"style",label:"支付方式"}}),e._v(" "),a("el-table-column",{attrs:{prop:"remark",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{prop:"op_name",label:"操作人"}})],1),e._v(" "),a("pagination",{attrs:{total:e.tableTotal,limit:e.listQuery.page_size,page:e.listQuery.page_index},on:{pagination:e.changePagination,"update:limit":e.changePagination}})],1)},r=[],l=(a("ac6a"),a("456d"),a("c7eb")),i=(a("96cf"),a("1da1")),s=a("d161"),o=a("ed08"),u=a("8975"),c={data:function(){return{loadingFull:!1,listQuery:{page_size:10,page_index:1,pay_no:"",search_name:"",type:"",time:""},tableList:[],tableTotal:0}},created:function(){this.parseMoney=o["g"],this.getList()},methods:{getList:function(){var e=Object(i["a"])(Object(l["a"])().mark((function e(){var t,a,n,r,i,o,u,c=this;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loadingFull=!0,t=this.listQuery,a=t.page_size,n=t.page_index,r=t.pay_no,i=t.search_name,o=t.type,u=t.time,e.next=4,Object(s["c"])({page_size:a,page_index:n,pay_no:r,search_name:i,type:o,start_time:u.length>0?u[0]:"",end_time:u.length>0?u[1]:""}).then((function(e){c.loadingFull=!1,200===e.code?(c.tableList=e.data.list,c.tableTotal=e.data.total):c.$message.error(e.message)})).catch((function(e){c.loadingFull=!1}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),changePagination:function(e){var t=e.page,a=e.limit;this.listQuery.page_size=a,this.listQuery.page_index=t,this.getList()},typeShow:function(e){var t;switch(e){case 1:t="支付";break;case 2:t="退回";break;case 3:t="扣款";break;default:t="后台充值"}return t},toExport:function(){var e=Object(i["a"])(Object(l["a"])().mark((function e(){var t,n=this;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loadingFull=!0,t=this.listQuery.time,e.next=4,Object(s["d"])({pay_no:this.listQuery.pay_no,search_name:this.listQuery.search_name,type:this.listQuery.type,start_time:t.length>0?t[0]:"",end_time:t.length>0?t[1]:""}).then((function(e){n.loadingFull=!1,200===e.code?e.data.length<1?n.$message.error("可有内容可导出"):Promise.all([a.e("chunk-5bdd67a2"),a.e("chunk-2c21b5a5")]).then(a.bind(null,"4bf8d")).then((function(t){t.export_json_to_excel({header:Object.keys(e.data[0]),data:e.data.map((function(t){return Object.keys(e.data[0]).map((function(e){return t[e]}))})),filename:"".concat(Object(u["formatter"])(new Date,"yyyy-MM-dd"),"收支明细"),bookType:"xlsx"})})):n.$message.error(e.message)})).catch((function(e){n.loadingFull=!1}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},p=c,d=(a("b2e8"),a("2877")),y=Object(d["a"])(p,n,r,!1,null,"a8814248",null);t["default"]=y.exports},d161:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"d",(function(){return l})),a.d(t,"b",(function(){return i})),a.d(t,"f",(function(){return s})),a.d(t,"e",(function(){return o})),a.d(t,"a",(function(){return u}));var n=a("b775");function r(e){return Object(n["a"])({url:"/money/get_payment_list",method:"get",params:e})}function l(e){return Object(n["a"])({url:"/money/export_payment_list",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/soap/getBatchDelaytransConfirm",method:"get",params:e})}function s(e){return Object(n["a"])({url:"/soap/batchDelaytransConfirm",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/CustomerReturnPay/batchDelaytransConfirm",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/soap/exportBatchDelaytransConfirm",method:"get",params:e})}}}]);