启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-7c5c48a6.0f907343.js

1 lines
12 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c5c48a6"],{"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 r})),n.d(e,"j",(function(){return i})),n.d(e,"v",(function(){return c})),n.d(e,"w",(function(){return o})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),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 v})),n.d(e,"i",(function(){return w})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return k})),n.d(e,"r",(function(){return x})),n.d(e,"N",(function(){return y})),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 S})),n.d(e,"m",(function(){return $})),n.d(e,"l",(function(){return z})),n.d(e,"k",(function(){return M})),n.d(e,"e",(function(){return O})),n.d(e,"q",(function(){return V})),n.d(e,"o",(function(){return j})),n.d(e,"O",(function(){return B})),n.d(e,"t",(function(){return N})),n.d(e,"s",(function(){return P})),n.d(e,"p",(function(){return Y})),n.d(e,"P",(function(){return R})),n.d(e,"u",(function(){return E})),n.d(e,"F",(function(){return J})),n.d(e,"C",(function(){return W})),n.d(e,"D",(function(){return A})),n.d(e,"E",(function(){return I}));var a=n("0c6d");function r(t){return a["a"].get("user/extract/lst",t)}function i(t,e){return a["a"].post("user/extract/status/".concat(t),e)}function c(t){return a["a"].get("user/recharge/list",t)}function o(){return a["a"].get("user/recharge/total")}function l(t){return a["a"].get("bill/list",t)}function u(){return a["a"].get("bill/type")}function s(t){return a["a"].get("merchant/order/reconciliation/lst",t)}function f(t,e){return a["a"].post("merchant/order/reconciliation/status/".concat(t),e)}function d(t,e){return a["a"].get("merchant/order/reconciliation/".concat(t,"/order"),e)}function m(t,e){return a["a"].get("merchant/order/reconciliation/".concat(t,"/refund"),e)}function g(t){return a["a"].get("merchant/order/reconciliation/mark/".concat(t,"/form"))}function p(t){return a["a"].get("financial_record/list",t)}function h(t){return a["a"].get("financial_record/export",t)}function b(t){return a["a"].get("financial/export",t)}function v(t){return a["a"].get("bill/export",t)}function w(t){return a["a"].get("user/extract/export",t)}function _(t){return a["a"].get("user/extract/status_form/".concat(t))}function k(t){return a["a"].get("user/extract/detail/".concat(t))}function x(){return a["a"].get("version")}function y(t){return a["a"].get("config/".concat(t))}function D(t){return a["a"].get("financial/lst",t)}function F(){return a["a"].get("financial/title")}function L(t){return a["a"].get("financial/detail/".concat(t))}function C(t,e){return a["a"].post("financial/status/".concat(t),e)}function T(t){return a["a"].get("financial/mark/".concat(t,"/form"))}function S(t,e){return a["a"].post("financial/update/".concat(t),e)}function $(t){return a["a"].get("financial_record/lst",t)}function z(t,e){return a["a"].get("financial_record/detail/".concat(t),e)}function M(t){return a["a"].get("financial_record/title",t)}function O(t,e){return a["a"].get("financial_record/detail_export/".concat(t),e)}function V(t){return a["a"].get("financial_record/count",t)}function j(t){return a["a"].get("agreement/".concat(t))}function B(t,e){return a["a"].post("agreement/".concat(t),e)}function N(t){return a["a"].get("receipt/lst",t)}function P(t){return a["a"].get("receipt/detail/".concat(t))}function Y(){return a["a"].get("profitsharing/config")}function R(t){return a["a"].post("profitsharing/config",t)}function E(t){return a["a"].get("financial_record/mer_lst",t)}function J(t,e){return a["a"].get("financial_record/mer_list/".concat(t),e)}function W(t,e){return a["a"].get("financial_record/mer_detail/".concat(t),e)}function A(t,e){return a["a"].get("financial_record/mer_excel/".concat(t),e)}function I(t,e){return a["a"].get("financial_record/mer_title/".concat(t),e)}},5211:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard mb14"},[a("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small",inline:"","label-width":"85px"}},[a("el-form-item",{attrs:{label:"时间选择:"}},[a("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(" "),a("el-form-item",{attrs:{label:"是否支付:",prop:"paid"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.paid,callback:function(e){t.$set(t.tableFrom,"paid",e)},expression:"tableFrom.paid"}},[a("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),a("el-option",{attrs:{label:"已支付",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"未支付",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字:",prop:"keyword"}},[a("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(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),t.cardLists.length>0?a("cards-data",{attrs:{"card-lists":t.cardLists,more:!0}}):t._e(),t._v(" "),a("el-card",[a("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":""}},[a("el-table-column",{attrs:{prop:"recharge_id",label:"ID",width:"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"头像","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[t.row.avatar?a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.avatar,"preview-src-list":[t.row.avatar]}})],1):a("img",{staticStyle:{width:"36px",height:"36px","vertical-align":"top"},attrs:{src:n("cdfe"),alt:""}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"用户昵称","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{prop:"order_id",label:"订单号","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{sortable:"","sort-method":function(t,e){return t.price-e.price},label:"支付金额","min-width":"120",prop:"price"}}),t._v(" "),a("el-table-column",{attrs:{sortable:"",label:"赠送金额","sort-method":function(t,e){return t.give_price-e.give_price},"min-width":"120",prop:"give_price"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否支付","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"spBlock"},[t._v(t._s(t._f("payStatusFilter")(e.row.paid)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"充值类型","min-width":"80",prop:"recharge_type"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"spBlock"},[t._v(t._s(t._f("rechargeTypeFilter")(e.row.recharge_type)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"支付时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"spBlock"},[t._v(t._s(e.row.pay_time||"无"))])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("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)],1)},r=[],i=n("2801"),c=n("0f56"),o=n("e572"),l=n("0b65"),u={name:"AccountsBill",components:{cardsData:c["a"]},data:function(){return{pickerOptions:l["a"],cardLists:[],timeVal:[],tableData:{data:[],total:0},listLoading:!0,tableFrom:{paid:"",date:"",keyword:"",page:1,limit:20},fromList:o["a"]}},mounted:function(){this.getList(),this.getStatistics()},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(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["v"])(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()},getStatistics:function(){var t=this;this.StatisticsLoading=!0,Object(i["w"])().then((function(e){var n=e.data;t.cardLists=[{name:"充值总金额",count:n.totalPayPrice,className:"el-icon-s-goods"},{name:"充值退款金额",count:n.totalRefundPrice,className:"el-icon-s-order"},{name:"小程序充值金额",count:n.totalRoutinePrice,className:"el-icon-s-cooperation"},{name:"公众号充值金额",count:n.totalWxPrice,className:"el-icon-s-finance"}],t.StatisticsLoading=!1})).catch((function(e){t.$message.error(e.message),t.StatisticsLoading=!1}))}}},s=u,f=n("2877"),d=Object(f["a"])(s,a,r,!1,null,"37059ba0",null);e["default"]=d.exports},cdfe:function(t,e,n){t.exports=n.p+"system/img/f.5aa43cd3.png"},e572:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var a=[{label:"开启",value:1},{label:"关闭",value:0}],r={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"}]}}}]);