shop-php/public/system/js/chunk-075ccef8.4decdb1c.js
2024-03-04 19:01:04 +08:00

1 line
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-075ccef8"],{"017b":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("div",{staticClass:"container"},[r("el-form",{attrs:{size:"small","label-width":"100px"}},[r("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[r("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,n){return r("el-radio-button",{key:n,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),r("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),r("el-form-item",{staticClass:"width100",attrs:{label:"关键字:"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号/用户昵称",size:"small"},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"}},[r("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1),t._v(" "),r("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-top"},on:{click:t.exports}},[t._v("列表导出")])],1)],1)],1),t._v(" "),r("cards-data",{attrs:{"card-lists":t.cardLists}})],1),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[r("el-table-column",{attrs:{label:"订单号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return["sys_accoubts"!=e.row.financial_type?r("span",[t._v(t._s(e.row.order_sn))]):r("span",[t._v(t._s(e.row.financial_record_sn))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"financial_record_sn",label:"交易流水号","min-width":"100"}}),t._v(" "),r("el-table-column",{attrs:{prop:"create_time",label:"交易时间","min-width":"100",sortable:""}}),t._v(" "),r("el-table-column",{attrs:{prop:"user_info",label:"对方信息","min-width":"80"}}),t._v(" "),r("el-table-column",{attrs:{prop:"financial_type_cn",label:"交易类型","min-width":"100"}}),t._v(" "),r("el-table-column",{attrs:{label:"收支金额(元)","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1===e.row.financial_pm?e.row.number:-e.row.number))])]}}])}),t._v(" "),r("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?r("router-link",{attrs:{to:{path:t.roterPre+"/accounts/reconciliation?reconciliation_id="+e.row.order_id}}},[r("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?r("router-link",{attrs:{to:{path:t.roterPre+"/order/list?order_sn="+e.row.order_sn}}},[r("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1):r("router-link",{attrs:{to:{path:t.roterPre+"/order/refund?refund_order_sn="+e.row.order_sn}}},[r("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1)]}}])})],1),t._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),r("file-list",{ref:"exportList"})],1)},a=[],i=r("c7eb"),o=(r("96cf"),r("1da1")),l=r("2801"),s=r("e572"),c=r("2e83"),u=r("30dc"),d=r("83d6"),f=r("0f56"),h={name:"AccountsCapitalFlow",components:{fileList:u["a"],cardsData:f["a"]},data:function(){return{timeVal:[],tableData:{data:[],total:0},roterPre:d["roterPre"],listLoading:!0,tableFrom:{date:"",keyword:"",page:1,limit:20},fromList:s["a"],options:[],cardLists:[]}},mounted:function(){this.getList(),this.getStatisticalData()},methods:{selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.tableFrom.page=1,this.getList(),this.getStatisticalData()},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(o["a"])(Object(i["a"])().mark((function t(e){var r,n,a,o,l;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=JSON.parse(JSON.stringify(this.tableFrom)),n=[],r.page=1,a=1,o={},l=0;case 5:if(!(l<a)){t.next=14;break}return t.next=8,this.downData(r);case 8:o=t.sent,a=Math.ceil(o.count/r.limit),o.export.length&&(n=n.concat(o.export),r.page++);case 11:l++,t.next=5;break;case 14:return Object(c["a"])(o.header,o.title,n,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,r){fundingRecordsExportApi(t).then((function(t){return e(t.data)}))}))},exportRecord:function(){var t=this;Object(l["c"])(this.tableFrom).then((function(e){var r=t.$createElement;t.$msgbox({title:"提示",message:r("p",null,[r("span",null,'文件正在生成中,请稍后点击"'),r("span",{style:"color: teal"},"导出记录"),r("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(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()}}},m=h,g=(r("06ab"),r("2877")),p=Object(g["a"])(m,n,a,!1,null,"95fe820a",null);e["default"]=p.exports},"06ab":function(t,e,r){"use strict";r("eb8b")},"2e83":function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));r("28a5");var n=r("8122"),a=r("e8ae"),i=r.n(a),o=r("21a6");function l(t,e,r,a,l,s){var c,u=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],d=1,h=new i.a.Workbook,m=t.length;function g(t){var e=Array.isArray(t)?t[0]:t,r=Array.isArray(t)?t[1]:{};c=h.addWorksheet(e,r)}function p(t,e){if(!Object(n["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var r=0;r<t.length;r++){var a=c.getRow(r+1);a.getCell(1).value=t[r],a.height=30,a.font={bold:!0,size:20,vertAlign:"subscript"},a.alignment={vertical:"bottom",horizontal:"center"},a.outlineLevel=1,c.mergeCells(r+1,1,r+1,e),a.commit(),d++}}}function b(t){if(!Object(n["isEmpty"])(t)){for(var e=c.getRow(d),r=1;r<=t.length;r++)e.getCell(r).value=t[r-1];e.height=25,e.width=50,e.font={bold:!0,size:18,vertAlign:"subscript"},e.alignment={vertical:"bottom",horizontal:"center"},e.outlineLevel=1,e.commit(),d++}}function v(t){if(!Object(n["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var r=d,a=c.getRow(d),i=!1,o=0,l=0,s=0,u=0;u<t[e].length;u++)Array.isArray(t[e][u])?(o=s,i=!0,y(t[e][u],s),s+=t[e][u][0].length,l=s):(a.getCell(w(s)).value=t[e][u],a.getCell(w(s)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"center"},s++);i&&_(r,d,o,l),a.height=25,a.commit(),d++}}function y(t,e){for(var r=t.length,n=r-1,a=0;a<t.length;a++){for(var i=c.getRow(d),o=0;o<t[a].length;o++)i.getCell(w(e+o)).value=t[a][o],i.getCell(w(e+o)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"center"};i.height=25,i.commit(),a<n&&d++}}function _(t,e,r,n){for(var a=0;a<m;a++)(a<r||a>n)&&c.mergeCells(w(a)+t+":"+w(a)+e)}function x(t){if(!Object(n["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var r=c.getRow(d);r.getCell(1).value=t[e],r.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},r.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+d+":"+w(m-1)+d),d++}else{var a=c.getRow(d);a.getCell(1).value=t[f],a.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+d+":"+w(m-1)+d)}}function w(t){if(t<26)return u[t];var e=t%26,r=Math.floor(t%26);return u[r]+u[e]}function k(t){t||(t=(new Date).getTime()),h.xlsx.writeBuffer().then((function(e){var r=new Blob([e],{type:"application/octet-stream"});o["saveAs"](r,t+".xlsx")}))}g(s),p(e,m),b(t),v(r),x(a),k(l)}},e572:function(t,e,r){"use strict";r.d(e,"c",(function(){return n})),r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return i}));var n=[{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"}]}},eb8b:function(t,e,r){},f8b7:function(t,e,r){"use strict";r.d(e,"q",(function(){return a})),r.d(e,"t",(function(){return i})),r.d(e,"v",(function(){return o})),r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return s})),r.d(e,"a",(function(){return c})),r.d(e,"w",(function(){return u})),r.d(e,"o",(function(){return d})),r.d(e,"p",(function(){return f})),r.d(e,"s",(function(){return h})),r.d(e,"r",(function(){return m})),r.d(e,"u",(function(){return g})),r.d(e,"A",(function(){return p})),r.d(e,"k",(function(){return b})),r.d(e,"l",(function(){return v})),r.d(e,"m",(function(){return y})),r.d(e,"h",(function(){return _})),r.d(e,"i",(function(){return x})),r.d(e,"j",(function(){return w})),r.d(e,"g",(function(){return k})),r.d(e,"C",(function(){return C})),r.d(e,"D",(function(){return L})),r.d(e,"B",(function(){return F})),r.d(e,"f",(function(){return z})),r.d(e,"e",(function(){return A})),r.d(e,"d",(function(){return O})),r.d(e,"z",(function(){return j})),r.d(e,"y",(function(){return D})),r.d(e,"x",(function(){return S}));var n=r("0c6d");function a(t){return n["a"].get("order/lst",t)}function i(t){return n["a"].get("order_other/lst",t)}function o(t){return n["a"].post("order_other/pay_order",t)}function l(){return n["a"].get("order/chart")}function s(){return n["a"].get("order_other/chart")}function c(t){return n["a"].get("order/title",t)}function u(t){return n["a"].get("store/order/update/".concat(t,"/form"))}function d(t){return n["a"].get("store/order/delivery/".concat(t,"/form"))}function f(t){return n["a"].get("order/detail/".concat(t))}function h(t){return n["a"].get("order_other/detail/".concat(t))}function m(t,e){return n["a"].get("order/status/".concat(t),e)}function g(t,e){return n["a"].get("order_other/status/".concat(t),e)}function p(t){return n["a"].get("order/refund/lst",t)}function b(t){return n["a"].get("order/children/".concat(t))}function v(t){return n["a"].get("order_other/children/".concat(t))}function y(t){return n["a"].get("order/express/".concat(t))}function _(t){return n["a"].get("order/excel",t)}function x(t){return n["a"].get("order_other/excel",t)}function w(t){return n["a"].get("order/refund/excel",t)}function k(t){return n["a"].get("excel/lst",t)}function C(){return n["a"].get("order/takechart")}function L(t){return n["a"].get("order/takelst",t)}function F(t){return n["a"].get("order/take_title",t)}function z(){return n["a"].get("excel/type")}function A(t){return n["a"].get("delivery/order/lst",t)}function O(t){return n["a"].get("delivery/order/cancel/".concat(t,"/form"))}function j(t){return n["a"].get("delivery/station/payLst",t)}function D(){return n["a"].get("delivery/title")}function S(){return n["a"].get("delivery/belence")}}}]);