shop_mer_admin/mer/js/chunk-0a501a0d.f270b023.js

1 line
17 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a501a0d"],{"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:"请输入订单号/用户昵称",clearable:""},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("el-button",{staticClass:"mb20",attrs:{size:"small",type:"primary"},on:{click:t.exports}},[t._v("列表导出")]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"}},[n("el-table-column",{attrs:{label:"订单号","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return["mer_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":"200",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":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return["mer_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||"order_platform_coupon"==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):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)},o=[],i=n("c7eb"),a=(n("96cf"),n("1da1")),c=n("2801"),u=n("30dc"),l=n("83d6"),s=n("0f56"),f=n("2e83"),d=n("0b65"),g={components:{fileList:u["a"],cardsData:s["a"]},data:function(){return{pickerOptions:d["a"],tableData:{data:[],total:0},roterPre:l["roterPre"],listLoading:!0,tableFrom:{keyword:"",date:"",page:1,limit:20},timeVal:[],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:{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.getList(),this.getStatisticalData()},getStatisticalData:function(){var t=this;Object(c["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(a["a"])(Object(i["a"])().mark((function t(e){var n,r,o,a,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,o=1,a={},c=0;case 5:if(!(c<o)){t.next=14;break}return t.next=8,this.downData(n);case 8:a=t.sent,o=Math.ceil(a.count/n.limit),a.export.length&&(r=r.concat(a.export),n.page++);case 11:c++,t.next=5;break;case 14:return Object(f["a"])(a.header,a.title,r,a.foot,a.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["b"])(t).then((function(t){return e(t.data)}))}))},exportRecord:function(){var t=this;Object(c["b"])(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(){var t=this;this.listLoading=!0,Object(c["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()}}},m=g,p=(n("e755"),n("2877")),h=Object(p["a"])(m,r,o,!1,null,"6cde65bc",null);e["default"]=h.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,"k",(function(){return o})),n.d(e,"o",(function(){return i})),n.d(e,"m",(function(){return a})),n.d(e,"n",(function(){return c})),n.d(e,"l",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return s})),n.d(e,"s",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"j",(function(){return g})),n.d(e,"a",(function(){return m})),n.d(e,"q",(function(){return p})),n.d(e,"p",(function(){return h})),n.d(e,"r",(function(){return b})),n.d(e,"g",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"e",(function(){return w})),n.d(e,"d",(function(){return _})),n.d(e,"h",(function(){return k}));var r=n("0c6d");function o(t){return r["a"].get("store/order/reconciliation/lst",t)}function i(t,e){return r["a"].post("store/order/reconciliation/status/".concat(t),e)}function a(t,e){return r["a"].get("store/order/reconciliation/".concat(t,"/order"),e)}function c(t,e){return r["a"].get("store/order/reconciliation/".concat(t,"/refund"),e)}function u(t){return r["a"].get("store/order/reconciliation/mark/".concat(t,"/form"))}function l(t){return r["a"].get("financial_record/list",t)}function s(t){return r["a"].get("financial_record/export",t)}function f(t){return r["a"].get("financial/export",t)}function d(){return r["a"].get("version")}function g(){return r["a"].get("financial/account/form")}function m(){return r["a"].get("financial/create/form")}function p(t){return r["a"].get("financial/lst",t)}function h(t){return r["a"].get("financial/detail/".concat(t))}function b(t){return r["a"].get("financial/mark/".concat(t,"/form"))}function v(t){return r["a"].get("financial_record/lst",t)}function y(t,e){return r["a"].get("financial_record/detail/".concat(t),e)}function w(t){return r["a"].get("financial_record/title",t)}function _(t,e){return r["a"].get("financial_record/detail_export/".concat(t),e)}function k(t){return r["a"].get("financial_record/count",t)}},"2e83":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));n("28a5");var r=n("8122"),o=n("e8ae"),i=n.n(o),a=n("21a6");function c(t,e,n,o,c,u){var l,s=["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 i.a.Workbook,m=t.length;function p(t){var e=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:{};l=g.addWorksheet(e,n)}function h(t,e){if(!Object(r["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var n=0;n<t.length;n++){var o=l.getRow(n+1);o.getCell(1).value=t[n],o.height=30,o.font={bold:!0,size:20,vertAlign:"subscript"},o.alignment={vertical:"bottom",horizontal:"center"},o.outlineLevel=1,l.mergeCells(n+1,1,n+1,e),o.commit(),d++}}}function b(t){if(!Object(r["isEmpty"])(t)){for(var e=l.getRow(d),n=1;n<=t.length;n++)e.getCell(n).value=t[n-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(r["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var n=d,o=l.getRow(d),i=!1,a=0,c=0,u=0,s=0;s<t[e].length;s++)Array.isArray(t[e][s])?(a=u,i=!0,y(t[e][s],u),u+=t[e][s][0].length,c=u):(o.getCell(k(u)).value=t[e][s],o.getCell(k(u)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"center"},u++);i&&w(n,d,a,c),o.height=25,o.commit(),d++}}function y(t,e){for(var n=t.length,r=n-1,o=0;o<t.length;o++){for(var i=l.getRow(d),a=0;a<t[o].length;a++)i.getCell(k(e+a)).value=t[o][a],i.getCell(k(e+a)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"center"};i.height=25,i.commit(),o<r&&d++}}function w(t,e,n,r){for(var o=0;o<m;o++)(o<n||o>=r)&&l.mergeCells(k(o)+t+":"+k(o)+e)}function _(t){if(!Object(r["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=l.getRow(d);n.getCell(1).value=t[e],n.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},n.alignment={vertical:"middle",horizontal:"left"},l.mergeCells("A"+d+":"+k(m-1)+d),d++}else{var o=l.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"},l.mergeCells("A"+d+":"+k(m-1)+d)}}function k(t){if(t<26)return s[t];var e=t%26,n=Math.floor(t%26);return s[n]+s[e]}function x(t){t||(t=(new Date).getTime()),g.xlsx.writeBuffer().then((function(e){var n=new Blob([e],{type:"application/octet-stream"});a["saveAs"](n,t+".xlsx")}))}p(u),h(e,m),b(t),v(n),_(o),x(c)}},c5d7:function(t,e,n){},e755:function(t,e,n){"use strict";n("c5d7")},f8b7:function(t,e,n){"use strict";n.d(e,"I",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"M",(function(){return c})),n.d(e,"F",(function(){return u})),n.d(e,"G",(function(){return l})),n.d(e,"q",(function(){return s})),n.d(e,"J",(function(){return f})),n.d(e,"L",(function(){return d})),n.d(e,"E",(function(){return g})),n.d(e,"K",(function(){return m})),n.d(e,"T",(function(){return p})),n.d(e,"R",(function(){return h})),n.d(e,"W",(function(){return b})),n.d(e,"V",(function(){return v})),n.d(e,"U",(function(){return y})),n.d(e,"Q",(function(){return w})),n.d(e,"e",(function(){return _})),n.d(e,"t",(function(){return k})),n.d(e,"S",(function(){return x})),n.d(e,"n",(function(){return D})),n.d(e,"m",(function(){return C})),n.d(e,"l",(function(){return L})),n.d(e,"k",(function(){return F})),n.d(e,"D",(function(){return z})),n.d(e,"x",(function(){return O})),n.d(e,"H",(function(){return T})),n.d(e,"Z",(function(){return j})),n.d(e,"ab",(function(){return A})),n.d(e,"Y",(function(){return S})),n.d(e,"B",(function(){return $})),n.d(e,"A",(function(){return M})),n.d(e,"y",(function(){return R})),n.d(e,"z",(function(){return E})),n.d(e,"C",(function(){return V})),n.d(e,"j",(function(){return P})),n.d(e,"h",(function(){return Y})),n.d(e,"i",(function(){return B})),n.d(e,"P",(function(){return J})),n.d(e,"p",(function(){return N})),n.d(e,"o",(function(){return W})),n.d(e,"a",(function(){return q})),n.d(e,"s",(function(){return G})),n.d(e,"w",(function(){return H})),n.d(e,"r",(function(){return I})),n.d(e,"g",(function(){return K})),n.d(e,"f",(function(){return Q})),n.d(e,"O",(function(){return U})),n.d(e,"N",(function(){return X})),n.d(e,"v",(function(){return Z})),n.d(e,"u",(function(){return tt})),n.d(e,"X",(function(){return et})),n.d(e,"d",(function(){return nt}));var r=n("0c6d");function o(t){return r["a"].get("store/order/lst",t)}function i(){return r["a"].get("store/order/chart")}function a(t){return r["a"].get("store/order/title",t)}function c(t,e){return r["a"].post("store/order/update/".concat(t),e)}function u(t,e){return r["a"].post("store/order/delivery/".concat(t),e)}function l(t){return r["a"].get("store/order/detail/".concat(t))}function s(t){return r["a"].get("store/order/children/".concat(t))}function f(t,e){return r["a"].get("store/order/log/".concat(t),e)}function d(t){return r["a"].get("store/order/remark/".concat(t,"/form"))}function g(t){return r["a"].post("store/order/delete/".concat(t))}function m(t){return r["a"].get("store/order/printer/".concat(t))}function p(t){return r["a"].get("store/refundorder/lst",t)}function h(t){return r["a"].get("store/refundorder/detail/".concat(t))}function b(t){return r["a"].get("store/refundorder/status/".concat(t,"/form"))}function v(t){return r["a"].get("store/refundorder/mark/".concat(t,"/form"))}function y(t){return r["a"].get("store/refundorder/log/".concat(t))}function w(t){return r["a"].get("store/refundorder/delete/".concat(t))}function _(t){return r["a"].post("store/refundorder/refund/".concat(t))}function k(t){return r["a"].get("store/order/express/".concat(t))}function x(t){return r["a"].get("store/refundorder/express/".concat(t))}function D(t){return r["a"].get("store/order/excel",t)}function C(t){return r["a"].get("store/order/delivery_export",t)}function L(t){return r["a"].get("excel/lst",t)}function F(t){return r["a"].get("excel/download/".concat(t))}function z(t){return r["a"].get("store/order/verify/".concat(t))}function O(t,e){return r["a"].post("store/order/verify/".concat(t),e)}function T(){return r["a"].get("store/order/filtter")}function j(){return r["a"].get("store/order/takechart")}function A(t){return r["a"].get("store/order/takelst",t)}function S(t){return r["a"].get("store/order/take_title",t)}function $(t){return r["a"].get("store/receipt/lst",t)}function M(t){return r["a"].get("store/receipt/set_recipt",t)}function R(t){return r["a"].post("store/receipt/save_recipt",t)}function E(t){return r["a"].get("store/receipt/detail/".concat(t))}function V(t,e){return r["a"].post("store/receipt/update/".concat(t),e)}function P(t){return r["a"].get("store/import/lst",t)}function Y(t,e){return r["a"].get("store/import/detail/".concat(t),e)}function B(t,e){return r["a"].get("store/import/excel/".concat(t),e)}function J(t){return r["a"].get("store/refundorder/excel",t)}function N(){return r["a"].get("expr/options")}function W(t){return r["a"].get("expr/temps",t)}function q(t){return r["a"].post("store/order/delivery_batch",t)}function G(){return r["a"].get("serve/config")}function H(){return r["a"].get("delivery/station/select")}function I(){return r["a"].get("delivery/station/options")}function K(t){return r["a"].get("delivery/order/lst",t)}function Q(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function U(t){return r["a"].get("delivery/station/payLst",t)}function X(t){return r["a"].get("delivery/station/code",t)}function Z(t){return r["a"].get("store/refundorder/check/".concat(t))}function tt(){return r["a"].get("store/refundorder/refund_message")}function et(t){return r["a"].post("store/refundorder/create",t)}function nt(t){return r["a"].post("store/refundorder/compute",t)}}}]);