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.
1 lines
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5687f148"],{"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",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("el-form-item",{attrs:{label:"关键字:",prop:"keyword"}},[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.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[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:{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":"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("router-link",{attrs:{to:{path:t.roterPre+"/order/list?order_sn="+e.row.order_sn}}},[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1):"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("file-list",{ref:"exportList"})],1)},a=[],i=n("c80c"),o=(n("96cf"),n("3b8d")),c=n("2801"),u=n("e572"),l=n("2e83"),s=n("30dc"),f=n("83d6"),d=n("0f56"),m=n("0b65"),g={name:"AccountsCapitalFlow",components:{fileList:s["a"],cardsData:d["a"]},data:function(){return{pickerOptions:m["a"],timeVal:[],tableData:{data:[],total:0},roterPre:f["roterPre"],listLoading:!0,tableFrom:{date:"",keyword:"",page:1,limit:20},fromList:u["a"],options:[],cardLists:[]}},mounted:function(){this.getList(),this.getStatisticalData()},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},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(c["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(o["a"])(Object(i["a"])().mark((function t(e){var n,r,a,o,c;return Object(i["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,o={},c=0;case 5:if(!(c<a)){t.next=14;break}return t.next=8,this.downData(n);case 8:o=t.sent,a=Math.ceil(o.count/n.limit),o.export.length&&(r=r.concat(o.export),n.page++);case 11:c++,t.next=5;break;case 14:return Object(l["a"])(o.header,o.title,r,o.foot,o.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(c["c"])(t).then((function(t){return e(t.data)}))}))},exportRecord:function(){var t=this;Object(c["c"])(this.tableFrom).then((function(e){var n=t.$createElement;t.$msgbox({title:"提示",message:n("p",null,[n("span",null,'文件正在生成中,请稍后点击"'),n("span",{style:"color: teal"},"导出记录"),n("span",null,'"查看~ ')]),confirmButtonText:"我知道了"}).then((function(t){}))})).catch((function(e){t.$message.error(e.message)}))},getExportFileList:function(){this.$refs.exportList.exportFileList()},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(c["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()}}},p=g,h=n("2877"),b=Object(h["a"])(p,r,a,!1,null,"695a2097",null);e["default"]=b.exports},"0b65":function(t,e,n){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]}},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 u})),n.d(e,"b",(function(){return l})),n.d(e,"x",(function(){return s})),n.d(e,"B",(function(){return f})),n.d(e,"z",(function(){return d})),n.d(e,"A",(function(){return m})),n.d(e,"y",(function(){return g})),n.d(e,"d",(function(){return p})),n.d(e,"c",(function(){return h})),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 x})),n.d(e,"r",(function(){return y})),n.d(e,"N",(function(){return k})),n.d(e,"K",(function(){return D})),n.d(e,"I",(function(){return F})),n.d(e,"G",(function(){return L})),n.d(e,"M",(function(){return C})),n.d(e,"J",(function(){return T})),n.d(e,"H",(function(){return O})),n.d(e,"m",(function(){return $})),n.d(e,"l",(function(){return z})),n.d(e,"k",(function(){return j})),n.d(e,"e",(function(){return S})),n.d(e,"q",(function(){return M})),n.d(e,"o",(function(){return P})),n.d(e,"O",(function(){return V})),n.d(e,"t",(function(){return E})),n.d(e,"s",(function(){return J})),n.d(e,"p",(function(){return Y})),n.d(e,"P",(function(){return N})),n.d(e,"u",(function(){return q})),n.d(e,"F",(function(){return B})),n.d(e,"C",(function(){return R})),n.d(e,"D",(function(){return A})),n.d(e,"E",(function(){return G}));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 u(t){return r["a"].get("bill/list",t)}function l(){return r["a"].get("bill/type")}function s(t){return r["a"].get("merchant/order/reconciliation/lst",t)}function f(t,e){return r["a"].post("merchant/order/reconciliation/status/".concat(t),e)}function d(t,e){return r["a"].get("merchant/order/reconciliation/".concat(t,"/order"),e)}function m(t,e){return r["a"].get("merchant/order/reconciliation/".concat(t,"/refund"),e)}function g(t){return r["a"].get("merchant/order/reconciliation/mark/".concat(t,"/form"))}function p(t){return r["a"].get("financial_record/list",t)}function h(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 x(t){return r["a"].get("user/extract/detail/".concat(t))}function y(){return r["a"].get("version")}function k(t){return r["a"].get("config/".concat(t))}function D(t){return r["a"].get("financial/lst",t)}function F(){return r["a"].get("financial/title")}function L(t){return r["a"].get("financial/detail/".concat(t))}function C(t,e){return r["a"].post("financial/status/".concat(t),e)}function T(t){return r["a"].get("financial/mark/".concat(t,"/form"))}function O(t,e){return r["a"].post("financial/update/".concat(t),e)}function $(t){return r["a"].get("financial_record/lst",t)}function z(t,e){return r["a"].get("financial_record/detail/".concat(t),e)}function j(t){return r["a"].get("financial_record/title",t)}function S(t,e){return r["a"].get("financial_record/detail_export/".concat(t),e)}function M(t){return r["a"].get("financial_record/count",t)}function P(t){return r["a"].get("agreement/".concat(t))}function V(t,e){return r["a"].post("agreement/".concat(t),e)}function E(t){return r["a"].get("receipt/lst",t)}function J(t){return r["a"].get("receipt/detail/".concat(t))}function Y(){return r["a"].get("profitsharing/config")}function N(t){return r["a"].post("profitsharing/config",t)}function q(t){return r["a"].get("financial_record/mer_lst",t)}function B(t,e){return r["a"].get("financial_record/mer_list/".concat(t),e)}function R(t,e){return r["a"].get("financial_record/mer_detail/".concat(t),e)}function A(t,e){return r["a"].get("financial_record/mer_excel/".concat(t),e)}function G(t,e){return r["a"].get("financial_record/mer_title/".concat(t),e)}},e572:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i}));var r=[{label:"开启",value:1},{label:"关闭",value:0}],a={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},i={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}},f8b7:function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"o",(function(){return c})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return l})),n.d(e,"n",(function(){return s})),n.d(e,"s",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"j",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return p})),n.d(e,"f",(function(){return h})),n.d(e,"u",(function(){return b})),n.d(e,"v",(function(){return _})),n.d(e,"t",(function(){return v})),n.d(e,"e",(function(){return w})),n.d(e,"d",(function(){return x})),n.d(e,"c",(function(){return y})),n.d(e,"r",(function(){return k})),n.d(e,"q",(function(){return D})),n.d(e,"p",(function(){return F}));var r=n("0c6d");function a(t){return r["a"].get("order/lst",t)}function i(){return r["a"].get("order/chart")}function o(t){return r["a"].get("order/title",t)}function c(t){return r["a"].get("store/order/update/".concat(t,"/form"))}function u(t){return r["a"].get("store/order/delivery/".concat(t,"/form"))}function l(t){return r["a"].get("order/detail/".concat(t))}function s(t,e){return r["a"].get("order/status/".concat(t),e)}function f(t){return r["a"].get("order/refund/lst",t)}function d(t){return r["a"].get("order/children/".concat(t))}function m(t){return r["a"].get("order/express/".concat(t))}function g(t){return r["a"].get("order/excel",t)}function p(t){return r["a"].get("order/refund/excel",t)}function h(t){return r["a"].get("excel/lst",t)}function b(){return r["a"].get("order/takechart")}function _(t){return r["a"].get("order/takelst",t)}function v(t){return r["a"].get("order/take_title",t)}function w(){return r["a"].get("excel/type")}function x(t){return r["a"].get("delivery/order/lst",t)}function y(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function k(t){return r["a"].get("delivery/station/payLst",t)}function D(){return r["a"].get("delivery/title")}function F(){return r["a"].get("delivery/belence")}}}]); |