chunk-570ae324.9821a952.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-570ae324"],{"017b":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"selCard mb14"},[n("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small",inline:"","label-width":"85px"}},[n("el-form-item",{attrs:{label:"时间选择:"}},[n("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end","start-placeholder":"开始时间","end-placeholder":"结束时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("select-search",{ref:"selectSearch",attrs:{select:t.select,searchSelectList:t.searchSelectList},on:{search:t.searchList}}),t._v(" "),n("el-form-item",{attrs:{label:"订单号:",prop:"order_sn"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.order_sn,callback:function(e){t.$set(t.tableFrom,"order_sn",e)},expression:"tableFrom.order_sn"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"支付方式:",prop:"pay_type"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.pay_type,callback:function(e){t.$set(t.tableFrom,"pay_type",e)},expression:"tableFrom.pay_type"}},[n("el-option",{attrs:{label:"余额",value:"0"}}),t._v(" "),n("el-option",{attrs:{label:"微信",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"支付宝",value:"2"}}),t._v(" "),n("el-option",{attrs:{label:"线下支付",value:"3"}})],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.getSearchList}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),t.cardLists.length>0?n("cards-data",{attrs:{"card-lists":t.cardLists}}):t._e(),t._v(" "),n("el-card",[n("div",{staticClass:"mb20"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.exports}},[t._v("导出列表")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"订单号","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return["sys_accoubts"!=e.row.financial_type?n("span",[t._v(t._s(e.row.order_sn))]):n("span",[t._v(t._s(e.row.financial_record_sn))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"financial_record_sn",label:"交易流水号","min-width":"200"}}),t._v(" "),n("el-table-column",{attrs:{label:"第三方交易单号","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.orderInfo&&e.row.orderInfo.transaction_id||"-"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"交易时间","min-width":"150",sortable:""}}),t._v(" "),n("el-table-column",{attrs:{prop:"user_info",label:"对方信息","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"交易类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("transactionTypeFilter")(e.row.financial_type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"支付方式","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("orderPayType")(e.row.pay_type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"收支金额(元)","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1===e.row.financial_pm?e.row.number:-e.row.number))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return["sys_accoubts"==e.row.financial_type?n("router-link",{attrs:{to:{path:t.roterPre+"/accounts/reconciliation?reconciliation_id="+e.row.order_id}}},[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1):"order"==e.row.financial_type||"brokerage_one"==e.row.financial_type||"brokerage_two"==e.row.financial_type?n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.onOrderDetail(e.row.order_id)}}},[t._v("详情")]):"svip"==e.row.financial_type?n("router-link",{attrs:{to:{path:t.roterPre+"/user/member/record"}}},[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1):n("router-link",{attrs:{to:{path:t.roterPre+"/order/refund?refund_order_sn="+e.row.order_sn}}},[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1)]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),n("order-detail",{ref:"orderDetail",attrs:{orderId:t.orderId,disabled:!0,drawer:t.drawer},on:{closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer,getList:t.getList}})],1)},a=[],i=n("db72"),o=n("c80c"),c=(n("96cf"),n("3b8d")),l=n("2801"),s=n("e572"),u=n("2e83"),d=n("83d6"),f=n("0f56"),p=n("0b65"),m=n("a053"),h=n("6e76"),g={name:"AccountsCapitalFlow",components:{orderDetail:m["a"],cardsData:f["a"],selectSearch:h["default"]},data:function(){return{pickerOptions:p["a"],timeVal:[],tableData:{data:[],total:0},roterPre:d["roterPre"],listLoading:!0,select:"nickname",searchSelectList:[{label:"昵称",value:"nickname"},{label:"用户ID",value:"uid"}],tableFrom:{date:"",keyword:"",page:1,limit:20},fromList:s["a"],options:[],cardLists:[],orderId:0,drawer:!1}},mounted:function(){this.getList(),this.getStatisticalData()},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.$refs.selectSearch.resetParmas()},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList(),this.getStatisticalData()},getStatisticalData:function(){var t=this;Object(l["q"])({date:this.tableFrom.date}).then((function(e){t.cardLists=e.data})).catch((function(e){t.$message.error(e.message)}))},exports:function(){var t=Object(c["a"])(Object(o["a"])().mark((function t(e){var n,r,a,i,c;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=JSON.parse(JSON.stringify(this.tableFrom)),r=[],n.page=1,a=1,i={},c=0;case 5:if(!(c<a)){t.next=14;break}return t.next=8,this.downData(n);case 8:i=t.sent,a=Math.ceil(i.count/n.limit),i.export.length&&(r=r.concat(i.export),n.page++);case 11:c++,t.next=5;break;case 14:return Object(u["a"])(i.header,i.title,r,i.foot,i.filename),t.abrupt("return");case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),downData:function(t){return new Promise((function(e,n){Object(l["c"])(t).then((function(t){return e(t.data)}))}))},changeDrawer:function(t){this.drawer=t},closeDrawer:function(){this.drawer=!1},onOrderDetail:function(t){this.orderId=t,this.$refs.orderDetail.getInfo(t),this.drawer=!0},searchList:function(t){this.tableFrom=Object(i["a"])(Object(i["a"])({},this.tableFrom),t),this.getList(1)},getSearchList:function(){this.$refs.selectSearch.changeSearch()},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["d"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()}}},b=g,_=n("2877"),v=Object(_["a"])(b,r,a,!1,null,"ba16a3ee",null);e["default"]=v.exports},2801:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"j",(function(){return i})),n.d(e,"v",(function(){return o})),n.d(e,"w",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return s})),n.d(e,"x",(function(){return u})),n.d(e,"B",(function(){return d})),n.d(e,"z",(function(){return f})),n.d(e,"A",(function(){return p})),n.d(e,"y",(function(){return m})),n.d(e,"d",(function(){return h})),n.d(e,"c",(function(){return g})),n.d(e,"L",(function(){return b})),n.d(e,"n",(function(){return _})),n.d(e,"i",(function(){return v})),n.d(e,"g",(function(){return w})),n.d(e,"h",(function(){return y})),n.d(e,"r",(function(){return k})),n.d(e,"N",(function(){return x})),n.d(e,"K",(function(){return L})),n.d(e,"I",(function(){return F})),n.d(e,"G",(function(){return D})),n.d(e,"M",(function(){return S})),n.d(e,"J",(function(){return C})),n.d(e,"H",(function(){return O})),n.d(e,"m",(function(){return z})),n.d(e,"l",(function(){return j})),n.d(e,"k",(function(){return I})),n.d(e,"e",(function(){return P})),n.d(e,"q",(function(){return $})),n.d(e,"o",(function(){return V})),n.d(e,"O",(function(){return M})),n.d(e,"t",(function(){return J})),n.d(e,"s",(function(){return N})),n.d(e,"p",(function(){return T})),n.d(e,"P",(function(){return E})),n.d(e,"u",(function(){return q})),n.d(e,"F",(function(){return A})),n.d(e,"C",(function(){return B})),n.d(e,"D",(function(){return R})),n.d(e,"E",(function(){return W}));var r=n("0c6d");function a(t){return r["a"].get("user/extract/lst",t)}function i(t,e){return r["a"].post("user/extract/status/".concat(t),e)}function o(t){return r["a"].get("user/recharge/list",t)}function c(){return r["a"].get("user/recharge/total")}function l(t){return r["a"].get("bill/list",t)}function s(){return r["a"].get("bill/type")}function u(t){return r["a"].get("merchant/order/reconciliation/lst",t)}function d(t,e){return r["a"].post("merchant/order/reconciliation/status/".concat(t),e)}function f(t,e){return r["a"].get("merchant/order/reconciliation/".concat(t,"/order"),e)}function p(t,e){return r["a"].get("merchant/order/reconciliation/".concat(t,"/refund"),e)}function m(t){return r["a"].get("merchant/order/reconciliation/mark/".concat(t,"/form"))}function h(t){return r["a"].get("financial_record/list",t)}function g(t){return r["a"].get("financial_record/export",t)}function b(t){return r["a"].get("financial/export",t)}function _(t){return r["a"].get("bill/export",t)}function v(t){return r["a"].get("user/extract/export",t)}function w(t){return r["a"].get("user/extract/status_form/".concat(t))}function y(t){return r["a"].get("user/extract/detail/".concat(t))}function k(){return r["a"].get("version")}function x(t){return r["a"].get("config/".concat(t))}function L(t){return r["a"].get("financial/lst",t)}function F(){return r["a"].get("financial/title")}function D(t){return r["a"].get("financial/detail/".concat(t))}function S(t,e){return r["a"].post("financial/status/".concat(t),e)}function C(t){return r["a"].get("financial/mark/".concat(t,"/form"))}function O(t,e){return r["a"].post("financial/update/".concat(t),e)}function z(t){return r["a"].get("financial_record/lst",t)}function j(t,e){return r["a"].get("financial_record/detail/".concat(t),e)}function I(t){return r["a"].get("financial_record/title",t)}function P(t,e){return r["a"].get("financial_record/detail_export/".concat(t),e)}function $(t){return r["a"].get("financial_record/count",t)}function V(t){return r["a"].get("agreement/".concat(t))}function M(t,e){return r["a"].post("agreement/".concat(t),e)}function J(t){return r["a"].get("receipt/lst",t)}function N(t){return r["a"].get("receipt/detail/".concat(t))}function T(){return r["a"].get("profitsharing/config")}function E(t){return r["a"].post("profitsharing/config",t)}function q(t){return r["a"].get("financial_record/mer_lst",t)}function A(t,e){return r["a"].get("financial_record/mer_list/".concat(t),e)}function B(t,e){return r["a"].get("financial_record/mer_detail/".concat(t),e)}function R(t,e){return r["a"].get("financial_record/mer_excel/".concat(t),e)}function W(t,e){return r["a"].get("financial_record/mer_title/".concat(t),e)}}}]);