1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-470780e0"],{"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])}}]}},5838:function(t,e,n){},8492:function(t,e,n){"use strict";n.d(e,"M",(function(){return a})),n.d(e,"K",(function(){return o})),n.d(e,"N",(function(){return i})),n.d(e,"L",(function(){return c})),n.d(e,"I",(function(){return u})),n.d(e,"G",(function(){return s})),n.d(e,"E",(function(){return l})),n.d(e,"T",(function(){return f})),n.d(e,"F",(function(){return m})),n.d(e,"Q",(function(){return d})),n.d(e,"P",(function(){return g})),n.d(e,"g",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"h",(function(){return b})),n.d(e,"f",(function(){return y})),n.d(e,"C",(function(){return v})),n.d(e,"U",(function(){return _})),n.d(e,"X",(function(){return w})),n.d(e,"W",(function(){return k})),n.d(e,"V",(function(){return x})),n.d(e,"J",(function(){return D})),n.d(e,"q",(function(){return F})),n.d(e,"d",(function(){return L})),n.d(e,"p",(function(){return T})),n.d(e,"r",(function(){return C})),n.d(e,"i",(function(){return $})),n.d(e,"n",(function(){return S})),n.d(e,"o",(function(){return M})),n.d(e,"l",(function(){return V})),n.d(e,"fb",(function(){return z})),n.d(e,"H",(function(){return j})),n.d(e,"D",(function(){return O})),n.d(e,"bb",(function(){return Y})),n.d(e,"db",(function(){return B})),n.d(e,"ab",(function(){return R})),n.d(e,"eb",(function(){return E})),n.d(e,"cb",(function(){return W})),n.d(e,"S",(function(){return A})),n.d(e,"R",(function(){return J})),n.d(e,"m",(function(){return q})),n.d(e,"k",(function(){return I})),n.d(e,"j",(function(){return N})),n.d(e,"c",(function(){return G})),n.d(e,"a",(function(){return H})),n.d(e,"b",(function(){return K})),n.d(e,"Y",(function(){return P})),n.d(e,"Z",(function(){return Q})),n.d(e,"s",(function(){return U})),n.d(e,"w",(function(){return X})),n.d(e,"v",(function(){return Z})),n.d(e,"x",(function(){return tt})),n.d(e,"z",(function(){return et})),n.d(e,"B",(function(){return nt})),n.d(e,"A",(function(){return rt})),n.d(e,"y",(function(){return at})),n.d(e,"u",(function(){return ot})),n.d(e,"t",(function(){return it})),n.d(e,"O",(function(){return ct}));var r=n("0c6d");function a(t){return r["a"].get("merchant/menu/lst",t)}function o(){return r["a"].get("merchant/menu/create/form")}function i(t){return r["a"].get("merchant/menu/update/form/".concat(t))}function c(t){return r["a"].delete("merchant/menu/delete/".concat(t))}function u(t){return r["a"].get("system/merchant/lst",t)}function s(t){return r["a"].get("system/merchant/detail/".concat(t))}function l(t){return r["a"].post("system/merchant/create",t)}function f(t,e){return r["a"].post("system/merchant/update/".concat(t),e)}function m(t){return r["a"].get("system/merchant/delete/".concat(t,"/form"))}function d(t,e){return r["a"].post("system/merchant/status/".concat(t),{status:e})}function g(t){return r["a"].get("system/merchant/password/form/".concat(t))}function p(t){return r["a"].get("system/merchant/category/lst",t)}function h(){return r["a"].get("system/merchant/category/form")}function b(t){return r["a"].get("system/merchant/category/form/".concat(t))}function y(t){return r["a"].delete("system/merchant/category/".concat(t))}function v(t,e){return r["a"].get("merchant/order/lst/".concat(t),e)}function _(t){return r["a"].get("merchant/order/mark/".concat(t,"/form"))}function w(t,e){return r["a"].get("merchant/order/refund/lst/".concat(t),e)}function k(t){return r["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function x(t,e){return r["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function D(t){return r["a"].post("system/merchant/login/".concat(t))}function F(t){return r["a"].get("merchant/intention/lst",t)}function L(t){return r["a"].get("merchant/intention/mark/".concat(t,"/form"))}function T(t){return r["a"].delete("merchant/intention/delete/".concat(t))}function C(t){return r["a"].get("merchant/intention/status/".concat(t,"/form"))}function $(t){return r["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function S(){return r["a"].get("agreement/sys_intention_agree")}function M(t){return r["a"].post("agreement/sys_intention_agree",t)}function V(t){return r["a"].get("agreement/".concat(t))}function z(t,e){return r["a"].post("agreement/".concat(t),e)}function j(t,e){return r["a"].post("system/merchant/close/".concat(t),{status:e})}function O(){return r["a"].get("system/merchant/count")}function Y(t){return r["a"].post("merchant/type/create",t)}function B(t){return r["a"].get("merchant/type/lst",t)}function R(){return r["a"].get("merchant/mer_auth")}function E(t,e){return r["a"].post("merchant/type/update/".concat(t),e)}function W(t){return r["a"].delete("merchant/type/delete/".concat(t))}function A(t){return r["a"].get("merchant/type/mark/".concat(t))}function J(t){return r["a"].get("/merchant/type/detail/".concat(t))}function q(){return r["a"].get("merchant/type/options")}function I(){return r["a"].get("system/merchant/category/options")}function N(t){return r["a"].get("system/applyments/lst",t)}function G(t,e){return r["a"].post("system/applyments/status/".concat(t),e)}function H(t){return r["a"].get("system/applyments/detail/".concat(t))}function K(t){return r["a"].get("profitsharing/lst",t)}function P(t){return r["a"].post("profitsharing/again/".concat(t))}function Q(t){return r["a"].get("system/applyments/mark/".concat(t,"/form"))}function U(t){return r["a"].get("profitsharing/export",t)}function X(t){return r["a"].get("margin/lst",t)}function Z(t){return r["a"].get("margin/make_up",t)}function tt(t){return r["a"].get("margin/local/".concat(t,"/form"))}function et(t){return r["a"].get("margin/refund/lst",t)}function nt(t){return r["a"].get("margin/refund/status/".concat(t,"/form"))}function rt(t){return r["a"].get("margin/refund/mark/".concat(t,"/form"))}function at(t){return r["a"].get("margin/refund/show/".concat(t))}function ot(t,e){return r["a"].get("margin/list/".concat(t),e)}function it(t){return r["a"].get("margin/set/".concat(t,"/form"))}function ct(t,e){return r["a"].get("system/merchant/get_operate_list/".concat(t),e)}},bca0:function(t,e,n){"use strict";n("5838")},f403: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"},[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,clearable:""},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:"分账时间:"}},[n("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions,clearable:""},on:{change:t.onchangeTime2},model:{value:t.timeVal2,callback:function(e){t.timeVal2=e},expression:"timeVal2"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"状态:",prop:"status"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.applyStatus,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"账单类型:",prop:"type"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},[n("el-option",{attrs:{label:"订单支付",value:"order"}}),t._v(" "),n("el-option",{attrs:{label:"尾款支付",value:"presell"}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"商户名称:",prop:"mer_id"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_id,callback:function(e){t.$set(t.tableFrom,"mer_id",e)},expression:"tableFrom.mer_id"}},t._l(t.merSelect,(function(t){return n("el-option",{key:t.mer_id,attrs:{label:t.mer_name,value:t.mer_id}})})),1)],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(" "),n("el-card",{staticClass:"mt14"},[n("div",{staticClass:"mb20"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.exportRecord}},[t._v("导出列表")])],1),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:{prop:"profitsharing_id",label:"分账ID","min-width":"60"}}),t._v(" "),n("el-table-column",{attrs:{prop:"order.order_sn",label:"订单编号","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{label:"订单金额","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("分账金额: "+t._s(e.row.profitsharing_price))]),t._v(" "),e.row.profitsharing_refund>0?n("div",{staticStyle:{color:"#82e493"}},[t._v("退款金额: "+t._s(e.row.profitsharing_refund))]):t._e(),t._v(" "),n("div",[t._v("分账给商户金额: "+t._s(e.row.profitsharing_mer_price))])]}}])}),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("order"==e.row.type?"订单支付":"尾款支付"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?n("div",[t._v("未分账")]):1==e.row.status?n("div",[t._v("已分账"),n("br"),t._v("分账时间: "+t._s(e.row.profitsharing_time))]):-1==e.row.status?n("div",[t._v("已退款")]):-2==e.row.status?n("div",[t._v("分账失败"),n("br"),t._v(" "),n("span",{staticStyle:{color:"red","font-size":"12px"}},[t._v(" 失败原因: "+t._s(e.row.error_msg))])]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[-2==e.row.status?n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.splitAccount(e.row.profitsharing_id)}}},[t._v("立即分账")]):t._e()]}}])})],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=[],o=n("8492"),i=n("c4c8"),c=n("30dc"),u=n("0b65"),s={components:{fileList:c["a"]},data:function(){return{pickerOptions:u["a"],tableData:{data:[],total:0},merSelect:[],listLoading:!0,tableFrom:{type:"",mer_id:"",keyword:"",status:"",date:"",profit_date:"",page:1,limit:20},timeVal:[],timeVal2:[],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:"",LogLoading:!1,applyStatus:[{value:0,label:"待分账"},{value:1,label:"已分账"},{value:-1,label:"已退款"},{value:-2,label:"分账失败"}],orderDatalist:null}},mounted:function(){this.getList(""),this.getMerSelect()},methods:{searchReset:function(){this.timeVal=[],this.timeVal2=[],this.tableFrom.date="",this.tableFrom.profit_date="",this.$refs.searchForm.resetFields(),this.getList(1)},getMerSelect:function(){var t=this;Object(i["S"])().then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},splitAccount:function(t){var e=this;this.$confirm("是否确认分账?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["Y"])(t).then((function(t){e.$message.success(t.message),e.getList("")})).catch((function(t){e.$message.error(t.message),e.getList("")}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},onchangeTime2:function(t){this.timeVal2=t,this.tableFrom.profit_date=t?this.timeVal2.join("-"):"",this.getList(1)},exportRecord:function(){var t=this;Object(o["s"])(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(o["b"])(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("")}}},l=s,f=(n("bca0"),n("2877")),m=Object(f["a"])(l,r,a,!1,null,"34f9635e",null);e["default"]=m.exports},f8b7:function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"o",(function(){return c})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return s})),n.d(e,"n",(function(){return l})),n.d(e,"s",(function(){return f})),n.d(e,"i",(function(){return m})),n.d(e,"j",(function(){return d})),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 y})),n.d(e,"t",(function(){return v})),n.d(e,"e",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"c",(function(){return k})),n.d(e,"r",(function(){return x})),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 o(){return r["a"].get("order/chart")}function i(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 s(t){return r["a"].get("order/detail/".concat(t))}function l(t,e){return r["a"].get("order/status/".concat(t),e)}function f(t){return r["a"].get("order/refund/lst",t)}function m(t){return r["a"].get("order/children/".concat(t))}function d(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 y(t){return r["a"].get("order/takelst",t)}function v(t){return r["a"].get("order/take_title",t)}function _(){return r["a"].get("excel/type")}function w(t){return r["a"].get("delivery/order/lst",t)}function k(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function x(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")}}}]); |