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.
 
 
 
 
 
crmeb_php/public/mer/js/chunk-67e1db22.23b7c7ca.js

1 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67e1db22"],{"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",inline:"","label-width":"100px"}},[r("span",{staticClass:"seachTiele"},[t._v("时间选择:")]),t._v(" "),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"}}),t._v(" "),r("div",{staticClass:"mt20"},[r("span",{staticClass:"seachTiele"},[t._v("关键字:")]),t._v(" "),r("el-input",{staticClass:"selWidth mr20",attrs:{placeholder:"请输入订单号/用户昵称"},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}}),t._v(" "),r("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-search"},on:{click:t.getList}},[t._v("搜索")]),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}}),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[r("el-table-column",{attrs:{label:"订单号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return["mer_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:{label:"交易类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("transactionTypeFilter")(e.row.financial_type)))])]}}])}),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["mer_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)},o=[],a=r("c80c"),i=(r("96cf"),r("3b8d")),l=r("2801"),c=r("30dc"),s=r("83d6"),u=r("0f56"),d=r("2e83"),f={components:{fileList:c["a"],cardsData:u["a"]},data:function(){return{tableData:{data:[],total:0},roterPre:s["roterPre"],listLoading:!0,tableFrom:{keyword:"",date:"",page:1,limit:20},timeVal:[],fromList:{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"}]},selectionList:[],ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,evaluationStatusList:[{value:1,label:"已回复"},{value:0,label:"未回复"}],cardLists:[],orderDatalist:null}},mounted:function(){this.getList(),this.getStatisticalData()},methods:{selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(),this.getStatisticalData()},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(),this.getStatisticalData()},getStatisticalData:function(){var t=this;Object(l["h"])({date:this.tableFrom.date}).then((function(e){t.cardLists=e.data})).catch((function(e){t.$message.error(e.message)}))},exports:function(){var t=Object(i["a"])(Object(a["a"])().mark((function t(e){var r,n,o,i,l;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=JSON.parse(JSON.stringify(this.tableFrom)),n=[],r.page=1,o=1,i={},l=0;case 5:if(!(l<o)){t.next=14;break}return t.next=8,this.downData(r);case 8:i=t.sent,o=Math.ceil(i.count/r.limit),i.export.length&&(n=n.concat(i.export),r.page++);case 11:l++,t.next=5;break;case 14:return Object(d["a"])(i.header,i.title,n,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,r){Object(l["b"])(t).then((function(t){return e(t.data)}))}))},exportRecord:function(){var t=this;Object(l["b"])(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(){var t=this;this.listLoading=!0,Object(l["c"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()}}},g=f,m=(r("4b19"),r("2877")),p=Object(m["a"])(g,n,o,!1,null,"73102b09",null);e["default"]=p.exports},"2e83":function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));r("28a5");var n=r("8122"),o=r("e8ae"),a=r.n(o),i=r("21a6");function l(t,e,r,o,l,c){var s,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,g=new a.a.Workbook,m=t.length;function p(t){var e=Array.isArray(t)?t[0]:t,r=Array.isArray(t)?t[1]:{};s=g.addWorksheet(e,r)}function h(t,e){if(!Object(n["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var r=0;r<t.length;r++){var o=s.getRow(r+1);o.getCell(1).value=t[r],o.height=30,o.font={bold:!0,size:20,vertAlign:"subscript"},o.alignment={vertical:"bottom",horizontal:"center"},o.outlineLevel=1,s.mergeCells(r+1,1,r+1,e),o.commit(),d++}}}function b(t){if(!Object(n["isEmpty"])(t)){for(var e=s.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,o=s.getRow(d),a=!1,i=0,l=0,c=0,u=0;u<t[e].length;u++)Array.isArray(t[e][u])?(i=c,a=!0,y(t[e][u],c),c+=t[e][u][0].length,l=c):(o.getCell(x(c)).value=t[e][u],o.getCell(x(c)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"center"},c++);a&&_(r,d,i,l),o.height=25,o.commit(),d++}}function y(t,e){for(var r=t.length,n=r-1,o=0;o<t.length;o++){for(var a=s.getRow(d),i=0;i<t[o].length;i++)a.getCell(x(e+i)).value=t[o][i],a.getCell(x(e+i)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"center"};a.height=25,a.commit(),o<n&&d++}}function _(t,e,r,n){for(var o=0;o<m;o++)(o<r||o>n)&&s.mergeCells(x(o)+t+":"+x(o)+e)}function w(t){if(!Object(n["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var r=s.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"},s.mergeCells("A"+d+":"+x(m-1)+d),d++}else{var o=s.getRow(d);o.getCell(1).value=t[f],o.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"left"},s.mergeCells("A"+d+":"+x(m-1)+d)}}function x(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()),g.xlsx.writeBuffer().then((function(e){var r=new Blob([e],{type:"application/octet-stream"});i["saveAs"](r,t+".xlsx")}))}p(c),h(e,m),b(t),v(r),w(o),k(l)}},"4b19":function(t,e,r){"use strict";r("4c2e")},"4c2e":function(t,e,r){},f8b7:function(t,e,r){"use strict";r.d(e,"F",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return i})),r.d(e,"J",(function(){return l})),r.d(e,"C",(function(){return c})),r.d(e,"D",(function(){return s})),r.d(e,"p",(function(){return u})),r.d(e,"G",(function(){return d})),r.d(e,"I",(function(){return f})),r.d(e,"B",(function(){return g})),r.d(e,"H",(function(){return m})),r.d(e,"Q",(function(){return p})),r.d(e,"O",(function(){return h})),r.d(e,"T",(function(){return b})),r.d(e,"S",(function(){return v})),r.d(e,"R",(function(){return y})),r.d(e,"N",(function(){return _})),r.d(e,"d",(function(){return w})),r.d(e,"s",(function(){return x})),r.d(e,"P",(function(){return k})),r.d(e,"m",(function(){return C})),r.d(e,"l",(function(){return L})),r.d(e,"k",(function(){return z})),r.d(e,"j",(function(){return F})),r.d(e,"A",(function(){return A})),r.d(e,"u",(function(){return D})),r.d(e,"E",(function(){return O})),r.d(e,"V",(function(){return S})),r.d(e,"W",(function(){return j})),r.d(e,"U",(function(){return T})),r.d(e,"y",(function(){return V})),r.d(e,"x",(function(){return E})),r.d(e,"v",(function(){return R})),r.d(e,"w",(function(){return $})),r.d(e,"z",(function(){return M})),r.d(e,"i",(function(){return P})),r.d(e,"g",(function(){return B})),r.d(e,"h",(function(){return J})),r.d(e,"M",(function(){return N})),r.d(e,"o",(function(){return W})),r.d(e,"n",(function(){return G})),r.d(e,"a",(function(){return H})),r.d(e,"r",(function(){return I})),r.d(e,"t",(function(){return K})),r.d(e,"q",(function(){return Q})),r.d(e,"f",(function(){return U})),r.d(e,"e",(function(){return q})),r.d(e,"L",(function(){return X})),r.d(e,"K",(function(){return Y}));var n=r("0c6d");function o(t){return n["a"].get("store/order/lst",t)}function a(){return n["a"].get("store/order/chart")}function i(t){return n["a"].get("store/order/title",t)}function l(t,e){return n["a"].post("store/order/update/".concat(t),e)}function c(t,e){return n["a"].post("store/order/delivery/".concat(t),e)}function s(t){return n["a"].get("store/order/detail/".concat(t))}function u(t){return n["a"].get("store/order/children/".concat(t))}function d(t,e){return n["a"].get("store/order/log/".concat(t),e)}function f(t){return n["a"].get("store/order/remark/".concat(t,"/form"))}function g(t){return n["a"].post("store/order/delete/".concat(t))}function m(t){return n["a"].get("store/order/printer/".concat(t))}function p(t){return n["a"].get("store/refundorder/lst",t)}function h(t){return n["a"].get("store/refundorder/detail/".concat(t))}function b(t){return n["a"].get("store/refundorder/status/".concat(t,"/form"))}function v(t){return n["a"].get("store/refundorder/mark/".concat(t,"/form"))}function y(t){return n["a"].get("store/refundorder/log/".concat(t))}function _(t){return n["a"].get("store/refundorder/delete/".concat(t))}function w(t){return n["a"].post("store/refundorder/refund/".concat(t))}function x(t){return n["a"].get("store/order/express/".concat(t))}function k(t){return n["a"].get("store/refundorder/express/".concat(t))}function C(t){return n["a"].get("store/order/excel",t)}function L(t){return n["a"].get("store/order/delivery_export",t)}function z(t){return n["a"].get("excel/lst",t)}function F(t){return n["a"].get("excel/download/".concat(t))}function A(t){return n["a"].get("store/order/verify/".concat(t))}function D(t,e){return n["a"].post("store/order/verify/".concat(t),e)}function O(){return n["a"].get("store/order/filtter")}function S(){return n["a"].get("store/order/takechart")}function j(t){return n["a"].get("store/order/takelst",t)}function T(t){return n["a"].get("store/order/take_title",t)}function V(t){return n["a"].get("store/receipt/lst",t)}function E(t){return n["a"].get("store/receipt/set_recipt",t)}function R(t){return n["a"].post("store/receipt/save_recipt",t)}function $(t){return n["a"].get("store/receipt/detail/".concat(t))}function M(t,e){return n["a"].post("store/receipt/update/".concat(t),e)}function P(t){return n["a"].get("store/import/lst",t)}function B(t,e){return n["a"].get("store/import/detail/".concat(t),e)}function J(t){return n["a"].get("store/import/excel/".concat(t))}function N(t){return n["a"].get("store/refundorder/excel",t)}function W(){return n["a"].get("expr/options")}function G(t){return n["a"].get("expr/temps",t)}function H(t){return n["a"].post("store/order/delivery_batch",t)}function I(){return n["a"].get("serve/config")}function K(){return n["a"].get("delivery/station/select")}function Q(){return n["a"].get("delivery/station/options")}function U(t){return n["a"].get("delivery/order/lst",t)}function q(t){return n["a"].get("delivery/order/cancel/".concat(t,"/form"))}function X(t){return n["a"].get("delivery/station/payLst",t)}function Y(t){return n["a"].get("delivery/station/code",t)}}}]);