1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e620efc"],{"9d41":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container bgHeight"},[r("div",{ref:"box",staticClass:"searchStys transition_dom"},[r("el-form",{ref:"query",attrs:{model:t.query}},[r("div",{ref:"form_box",staticClass:"searchBar"},[r("div",{staticClass:"searchInput"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:"title"}},[r("el-input",{attrs:{placeholder:"收费主体",clearable:""},model:{value:t.query.title,callback:function(e){t.$set(t.query,"title",e)},expression:"query.title"}})],1)],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:"status"}},[r("el-select",{attrs:{placeholder:"支付状态",clearable:""},model:{value:t.query.status,callback:function(e){t.$set(t.query,"status",e)},expression:"query.status"}},[r("el-option",{attrs:{label:"未支付",value:1}}),t._v(" "),r("el-option",{attrs:{label:"已支付",value:2}}),t._v(" "),r("el-option",{attrs:{label:"已退款",value:3}})],1)],1)],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:"type"}},[r("el-select",{attrs:{placeholder:"费用类型",clearable:""},model:{value:t.query.type,callback:function(e){t.$set(t.query,"type",e)},expression:"query.type"}},t._l(t.orderTypeList,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:"transactionId"}},[r("el-input",{attrs:{placeholder:"交易流水号",clearable:""},model:{value:t.query.transactionId,callback:function(e){t.$set(t.query,"transactionId",e)},expression:"query.transactionId"}})],1)],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:"orderNo"}},[r("el-input",{attrs:{placeholder:"支付订单号",clearable:""},model:{value:t.query.orderNo,callback:function(e){t.$set(t.query,"orderNo",e)},expression:"query.orderNo"}})],1)],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:"phone"}},[r("el-input",{attrs:{placeholder:"支付人/支付人手机号",clearable:""},model:{value:t.query.phone,callback:function(e){t.$set(t.query,"phone",e)},expression:"query.phone"}})],1)],1),t._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",[r("el-date-picker",{attrs:{clearable:"","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange","range-separator":"至","start-placeholder":"订单支付开始日期","end-placeholder":"订单支付结束日期","default-time":["00:00:00","23:59:59"]},model:{value:t.taskDate,callback:function(e){t.taskDate=e},expression:"taskDate"}})],1)],1),t._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",[r("el-date-picker",{attrs:{clearable:"","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange","range-separator":"至","start-placeholder":"订单创建开始日期","end-placeholder":"订单创建结束日期","default-time":["00:00:00","23:59:59"]},model:{value:t.creatDate,callback:function(e){t.creatDate=e},expression:"creatDate"}})],1)],1)],1)],1),t._v(" "),r("div",{staticClass:"searchBtn"},[r("el-form-item",[r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(e){return t.resetForm("query")}}},[t._v("重置")]),t._v(" "),r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),t.is_show?t._e():r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:t.upAndDown}},[t._v("展开"),r("i",{staticClass:"el-icon-arrow-down"})]),t._v(" "),t.is_show?r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:t.upAndDown}},[t._v("收起"),r("i",{staticClass:"el-icon-arrow-up"})]):t._e()],1)],1)])])],1),t._v(" "),r("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[r("div",{staticClass:"planLst",attrs:{slot:"header"},slot:"header"},[r("span",{staticClass:"planTitle"},[t._v("交易订单列表")]),t._v(" "),r("div",[r("el-popover",{attrs:{placement:"top-start",title:"温馨提示:",width:"400",trigger:"hover"}},[r("div",[r("div",[t._v("基于数据安全考虑,每次下载均有记录且数据控制如下:")]),t._v(" "),r("div",[t._v("1. 仅支持最多“两个月”数据下载。")]),t._v(" "),r("div",[t._v("2. 默认为“近两个月”数据。")]),t._v(" "),r("div",[t._v("\n 3. 若需更改,请在搜索条件选择“支付/销单日期”,并符合上述要求。\n ")])]),t._v(" "),r("el-button",{staticStyle:{margin:"0 10px"},attrs:{slot:"reference",type:"primary",icon:"el-icon-download"},on:{click:t.downloadList},slot:"reference"},[t._v("下载Excel")])],1),t._v(" "),r("el-popover",{attrs:{placement:"bottom"},model:{value:t.refreshShow,callback:function(e){t.refreshShow=e},expression:"refreshShow"}},[r("el-date-picker",{attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"选择订单更新日期"},model:{value:t.refreshDate,callback:function(e){t.refreshDate=e},expression:"refreshDate"}}),t._v(" "),r("div",{staticStyle:{"margin-top":"10px"}},[r("el-button",{attrs:{size:"mini"},on:{click:t.refreshEsc}},[t._v("取消")]),t._v(" "),r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"mini",loading:t.refreshLoad},on:{click:t.refreshClick}},[t._v("确定")])],1),t._v(" "),r("el-button",{attrs:{slot:"reference",type:"success",icon:"el-icon-refresh"},slot:"reference"},[t._v("支付状态更新")])],1)],1)]),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{border:"",data:t.listTable,"header-cell-style":t.headClass,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"#",align:"center","min-width":"50",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1)+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center","min-width":"160",label:"订单类型",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("getItemType")(e.row.type,t.orderTypeList)))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"缴费主体","min-width":"200","show-overflow-tooltip":"",prop:"title",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.content?e.row.content:e.row.title||"-"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"支付人","show-overflow-tooltip":"","min-width":"100",prop:"userName"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.userName||"-"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"支付人手机号","show-overflow-tooltip":"","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.phone||"-"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"right","min-width":"130",label:"支付金额(元)",prop:"totalAmount"},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.status?r("span",[t._v("-"+t._s(t._f("toThousandFilter")(e.row.totalAmount)))]):r("span",[t._v(t._s(t._f("toThousandFilter")(e.row.totalAmount)))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center","min-width":"100","show-overflow-tooltip":"",label:"支付状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1==e.row.status?"未支付":2==e.row.status?"已支付":"已退款"))]),t._v(" "),1==e.row.status?r("el-button",{attrs:{type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.checkStatus(e.row)}}}):t._e()]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center","min-width":"170","show-overflow-tooltip":"",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.createdAt||"-"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center","min-width":"170","show-overflow-tooltip":"",label:"支付时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.payTime||"-"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"支付订单号","show-overflow-tooltip":"","min-width":"220"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.orderNo))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"交易流水号","show-overflow-tooltip":"","min-width":"270"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.transactionId||"-"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center","min-width":"100","show-overflow-tooltip":"",label:"支付渠道"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1==e.row.channel?"W":2==e.row.channel||3==e.row.channel?"K":4==e.row.channel||5==e.row.channel?"X":"其它"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作","min-width":"70",align:"center",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(r){return t.viewOrder(e.row)}}},[t._v("查看")])]}}])})],1),t._v(" "),"1"!=t.query.status?r("div",{staticClass:"tableBottom"},[r("el-row",[r("el-col",{attrs:{span:4}},[t._v("合计")]),t._v(" "),r("el-col",{attrs:{span:20}},[t._v("支付金额(元):"+t._s(t.totalMoney)+" ")])],1)],1):t._e(),t._v(" "),r("div",{staticClass:"pagination"},[t.bPageShow?r("el-pagination",{ref:"pagination",attrs:{background:"",layout:"total, sizes, prev, pager, next, jumper","current-page":t.query.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":t.query.pageSize,total:t.pageTotal},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)],1)],1)},n=[],o=r("a6be"),s=r("dce5"),i=r("dd26"),l=r.n(i);function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function o(r,a,n,o){var l=a&&a.prototype instanceof i?a:i,c=Object.create(l.prototype);return u(c,"_invoke",function(r,a,n){var o,i,l,c=0,u=n||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,r){return o=e,i=0,l=t,p.n=r,s}};function f(r,a){for(i=r,l=a,e=0;!d&&c&&!n&&e<u.length;e++){var n,o=u[e],f=p.p,h=o[2];r>3?(n=h===a)&&(l=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=t):o[0]<=f&&((n=r<2&&f<o[1])?(i=0,p.v=a,p.n=o[1]):f<h&&(n=r<3||o[0]>a||a>h)&&(o[4]=r,o[5]=a,p.n=h,i=0))}if(n||r>1)return s;throw d=!0,a}return function(n,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),i=u,l=h;(e=i<2?t:l)||!d;){o||(i?i<3?(i>1&&(p.n=-1),f(i,l)):p.n=l:p.v=l);try{if(c=2,o){if(i||(n="next"),e=o[n]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),i=1);o=t}else if((e=(d=p.n<0)?l:r.call(a,p))!==s)break}catch(e){o=t,i=1,l=e}finally{c=1}}return{value:e,done:d}}}(r,n,o),!0),c}var s={};function i(){}function l(){}function d(){}e=Object.getPrototypeOf;var p=[][a]?e(e([][a]())):(u(e={},a,(function(){return this})),e),f=d.prototype=i.prototype=Object.create(p);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,n,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=d,u(f,"constructor",d),u(d,"constructor",l),l.displayName="GeneratorFunction",u(d,n,"GeneratorFunction"),u(f),u(f,n,"Generator"),u(f,a,(function(){return this})),u(f,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:o,m:h}})()}function u(t,e,r,a){var n=Object.defineProperty;try{n({},"",{})}catch(t){n=0}u=function(t,e,r,a){function o(e,r){u(t,e,(function(t){return this._invoke(e,r,t)}))}e?n?n(t,e,{value:r,enumerable:!a,configurable:!a,writable:!a}):t[e]=r:(o("next",0),o("throw",1),o("return",2))},u(t,e,r,a)}function d(t,e,r,a,n,o,s){try{var i=t[o](s),l=i.value}catch(t){return void r(t)}i.done?e(l):Promise.resolve(l).then(a,n)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(a,n){var o=t.apply(e,r);function s(t){d(o,a,n,s,i,"next",t)}function i(t){d(o,a,n,s,i,"throw",t)}s(void 0)}))}}var f={data:function(){return{is_show:!1,height:"",isShow:!1,pageTotal:0,listLoading:!1,refreshLoad:!1,refreshShow:!1,refreshDate:"",listTable:[],taskDate:"",creatDate:"",totalMoney:0,orderTypeList:s["zb"],query:{pageNumber:1,pageSize:10,title:"",status:"",type:"",orderNo:"",transactionId:"",phone:"",state:"",startDate:"",endDate:""}}},beforeRouteEnter:function(t,e,r){r((function(e){var r=t.name,a=JSON.parse(sessionStorage.getItem(r));a&&(e.query=a),e.getlistData()}))},mounted:function(){this.getRealHeight()},created:function(){this.setTime(),this.headClass(),this.getlistData()},methods:{setTime:function(){var t=l()().subtract(6,"days").format("YYYY-MM-DD 00:00:00"),e=l()().format("YYYY-MM-DD 23:59:59");this.taskDate=[t,e]},checkStatusList:function(t){Object(o["c"])({orderNo:t.orderNo})},getlistData:function(){var t=p(c().m((function t(){var e=this;return c().w((function(t){while(1)switch(t.n){case 0:if(this.searchCondition(),this.listLoading=!0,this.bPageShow=!1,this.query.projectUuid=this.$store.state.community_uuid,!(this.listTable.length>0)){t.n=1;break}return t.n=1,this.listTable.forEach((function(t){1==t.status&&e.checkStatusList(t)}));case 1:return t.n=2,this.$nextTick((function(){Object(o["i"])(e.query).then((function(t){0==t.code&&(e.listTable=t.data.records,e.pageTotal=t.data.rowsCount,e.totalMoney=t.data.totalAmount),sessionStorage.setItem(e.$route.name,JSON.stringify(e.query))})),e.listLoading=!1}));case 2:this.$nextTick((function(){e.bPageShow=!0}));case 3:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onSearch:function(){this.query.pageNumber=1,this.searchCondition(),this.getlistData()},searchCondition:function(){this.taskDate?(this.query.startDate=this.taskDate[0],this.query.endDate=this.taskDate[1]):(this.query.startDate="",this.query.endDate=""),this.creatDate?(this.query.createdStartAt=this.creatDate[0],this.query.createdEndAt=this.creatDate[1]):(this.query.createdStartAt="",this.query.createdEndAt="")},handleSizeChange:function(t){this.query.pageSize=t,this.query.pageNumber=1,this.getlistData()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getlistData()},resetForm:function(t){this.$refs[t].resetFields(),this.setTime(),this.creatDate="",this.query.pageNumber=1,this.onSearch()},handleSlow:function(){this.isShow=!this.isShow},headClass:function(){return"text-align:center;background:#FAFAFA;"},viewOrder:function(t){this.$router.replace({path:"/viewInfo/orderDetail",query:{id:t.id,type:t.type}})},downloadList:function(){if(this.taskDate){if(l()(this.taskDate[1]).diff(l()(this.taskDate[0]),"days")>62)return this.$message("只能下载两个月内的数据,请重新选择!"),!1;this.query.startDate=this.taskDate[0],this.query.endDate=this.taskDate[1]}else this.query.startDate="",this.query.endDate="";var t="支付分账交易列表_".concat((new Date).getTime(),".xls");Object(o["k"])(this.query).then((function(e){var r=new Blob([e],{type:"application/vnd.ms-excel;charset=UTF-8"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r);else{var a=document.createElement("a");a.download=t,a.href=URL.createObjectURL(r),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}}))},checkStatus:function(t){var e=this;Object(o["c"])({orderNo:t.orderNo}).then((function(t){0==t.code&&(e.$message.success("查询状态成功!"),e.getlistData())}))},refreshClick:function(){var t=this;this.refreshDate&&(this.refreshLoad=!0,Object(o["b"])({projectUuid:this.$store.state.community_uuid,startDate:"".concat(this.refreshDate," 00:00:00"),endDate:"".concat(this.refreshDate," 23:59:59")}).then((function(e){0==e.code?(t.$message.success("状态刷新成功!"),t.refreshEsc(),thie.getlistData()):t.refreshLoad=!1})).catch((function(e){t.refreshLoad=!1})))},refreshEsc:function(){this.refreshLoad=!1,this.refreshDate="",this.refreshShow=!1},upAndDown:function(){this.is_show?this.$refs.box.style.height="80px":this.$refs.box.style.height=this.height,this.is_show=!this.is_show},getRealHeight:function(){this.$nextTick((function(){this.height=this.$refs.form_box.offsetHeight+"px"}))}}},h=f,v=(r("d02a"),r("829d")),m=Object(v["a"])(h,a,n,!1,null,"1c28b5a8",null);e["default"]=m.exports},a6be:function(t,e,r){"use strict";r.d(e,"i",(function(){return n})),r.d(e,"g",(function(){return o})),r.d(e,"h",(function(){return s})),r.d(e,"e",(function(){return i})),r.d(e,"f",(function(){return l})),r.d(e,"l",(function(){return c})),r.d(e,"j",(function(){return u})),r.d(e,"a",(function(){return d})),r.d(e,"k",(function(){return p})),r.d(e,"d",(function(){return f})),r.d(e,"c",(function(){return h})),r.d(e,"b",(function(){return v}));var a=r("b775");function n(t){return Object(a["a"])({url:"/appproject/OrderInfo/pageList",method:"POST",data:t})}function o(t){return Object(a["a"])({url:"/appproject/OrderInfo/findById",method:"POST",data:t})}function s(t){return Object(a["a"])({url:"/appproject/OrderInfo/findByOrderNo",method:"POST",data:t})}function i(t){return Object(a["a"])({url:"/appproject/OrderInfo/findByOutSiderOrderNo",method:"POST",data:t})}function l(t){return Object(a["a"])({url:"/appproject/OrderInfo/findDetailByOrderId",method:"POST",data:t})}function c(t){return Object(a["a"])({url:"/appproject/OrderInfo/findByOrderId",method:"POST",data:t})}function u(t){return Object(a["a"])({url:"/appproject/OrderInfo/findOrderEvaluate",method:"POST",data:t})}function d(t){return Object(a["a"])({url:"/appproject/OrderAccountTradeInfo/pageList",method:"POST",data:t})}function p(t){return Object(a["a"])({url:"/appproject/OrderInfo/pageListDownload",method:"POST",responseType:"blob",data:t})}function f(t){return Object(a["a"])({url:"/appproject/OrderInfo/createReceipt",method:"POST",data:t})}function h(t){return Object(a["a"])({url:"/appproject/OrderInfo/checkOrderPaymentStatus",method:"POST",data:t})}function v(t){return Object(a["a"])({url:"/appproject/OrderInfo/batchSynStatus",method:"POST",data:t})}},a778:function(t,e,r){},d02a:function(t,e,r){"use strict";r("a778")}}]); |