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/system/js/chunk-7f91b7c3.142940de.js

1 lines
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7f91b7c3"],{"7fe2":function(t,e,n){"use strict";n("d18d")},8492:function(t,e,n){"use strict";n.d(e,"J",(function(){return a})),n.d(e,"H",(function(){return o})),n.d(e,"K",(function(){return i})),n.d(e,"I",(function(){return c})),n.d(e,"F",(function(){return u})),n.d(e,"C",(function(){return s})),n.d(e,"P",(function(){return l})),n.d(e,"D",(function(){return f})),n.d(e,"M",(function(){return d})),n.d(e,"L",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"e",(function(){return p})),n.d(e,"h",(function(){return h})),n.d(e,"f",(function(){return v})),n.d(e,"A",(function(){return b})),n.d(e,"Q",(function(){return y})),n.d(e,"T",(function(){return _})),n.d(e,"S",(function(){return x})),n.d(e,"R",(function(){return w})),n.d(e,"G",(function(){return k})),n.d(e,"q",(function(){return F})),n.d(e,"d",(function(){return L})),n.d(e,"p",(function(){return C})),n.d(e,"r",(function(){return S})),n.d(e,"i",(function(){return z})),n.d(e,"n",(function(){return T})),n.d(e,"o",(function(){return $})),n.d(e,"l",(function(){return V})),n.d(e,"bb",(function(){return M})),n.d(e,"E",(function(){return j})),n.d(e,"B",(function(){return D})),n.d(e,"X",(function(){return O})),n.d(e,"Z",(function(){return B})),n.d(e,"W",(function(){return E})),n.d(e,"ab",(function(){return W})),n.d(e,"Y",(function(){return A})),n.d(e,"O",(function(){return J})),n.d(e,"N",(function(){return R})),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 P})),n.d(e,"a",(function(){return U})),n.d(e,"b",(function(){return G})),n.d(e,"U",(function(){return H})),n.d(e,"V",(function(){return K})),n.d(e,"s",(function(){return Q})),n.d(e,"v",(function(){return X})),n.d(e,"x",(function(){return Y})),n.d(e,"z",(function(){return Z})),n.d(e,"y",(function(){return tt})),n.d(e,"w",(function(){return et})),n.d(e,"u",(function(){return nt})),n.d(e,"t",(function(){return rt}));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(){return r["a"].get("system/merchant/create/form")}function l(t){return r["a"].get("system/merchant/update/form/".concat(t))}function f(t){return r["a"].delete("system/merchant/delete/".concat(t))}function d(t,e){return r["a"].post("system/merchant/status/".concat(t),{status:e})}function m(t){return r["a"].get("system/merchant/password/form/".concat(t))}function g(t){return r["a"].get("system/merchant/category/lst",t)}function p(){return r["a"].get("system/merchant/category/form")}function h(t){return r["a"].get("system/merchant/category/form/".concat(t))}function v(t){return r["a"].delete("system/merchant/category/".concat(t))}function b(t,e){return r["a"].get("merchant/order/lst/".concat(t),e)}function y(t){return r["a"].get("merchant/order/mark/".concat(t,"/form"))}function _(t,e){return r["a"].get("merchant/order/refund/lst/".concat(t),e)}function x(t){return r["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function w(t,e){return r["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function k(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 C(t){return r["a"].delete("merchant/intention/delete/".concat(t))}function S(t){return r["a"].get("merchant/intention/status/".concat(t,"/form"))}function z(t){return r["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function T(){return r["a"].get("agreement/sys_intention_agree")}function $(t){return r["a"].post("agreement/sys_intention_agree",t)}function V(t){return r["a"].get("agreement/".concat(t))}function M(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 D(){return r["a"].get("system/merchant/count")}function O(t){return r["a"].post("merchant/type/create",t)}function B(t){return r["a"].get("merchant/type/lst",t)}function E(){return r["a"].get("merchant/mer_auth")}function W(t,e){return r["a"].post("merchant/type/update/".concat(t),e)}function A(t){return r["a"].delete("merchant/type/delete/".concat(t))}function J(t){return r["a"].get("merchant/type/mark/".concat(t))}function R(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 P(t,e){return r["a"].post("system/applyments/status/".concat(t),e)}function U(t){return r["a"].get("system/applyments/detail/".concat(t))}function G(t){return r["a"].get("profitsharing/lst",t)}function H(t){return r["a"].post("profitsharing/again/".concat(t))}function K(t){return r["a"].get("system/applyments/mark/".concat(t,"/form"))}function Q(t){return r["a"].get("profitsharing/export",t)}function X(t){return r["a"].get("margin/lst",t)}function Y(t){return r["a"].get("margin/refund/lst",t)}function Z(t){return r["a"].get("margin/refund/status/".concat(t,"/form"))}function tt(t){return r["a"].get("margin/refund/mark/".concat(t,"/form"))}function et(t){return r["a"].get("margin/refund/show/".concat(t))}function nt(t,e){return r["a"].get("margin/list/".concat(t),e)}function rt(t){return r["a"].get("margin/set/".concat(t,"/form"))}},d18d:function(t,e,n){},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("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small","label-width":"100px"}},[n("span",{staticClass:"seachTiele"},[t._v("创建时间:")]),t._v(" "),n("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small",clearable:""},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,r){return n("el-radio-button",{key:r,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),n("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}}),t._v(" "),n("div",{staticClass:"mt20"},[n("span",{staticClass:"seachTiele"},[t._v("分账时间:")]),t._v(" "),n("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small",clearable:""},on:{change:function(e){return t.selectChange2(t.tableFrom.profit_date)}},model:{value:t.tableFrom.profit_date,callback:function(e){t.$set(t.tableFrom,"profit_date",e)},expression:"tableFrom.profit_date"}},t._l(t.fromList.fromTxt,(function(e,r){return n("el-radio-button",{key:r,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),n("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间",clearable:""},on:{change:t.onchangeTime2},model:{value:t.timeVal2,callback:function(e){t.timeVal2=e},expression:"timeVal2"}})],1),t._v(" "),n("div",{staticClass:"mt20"},[n("span",{staticClass:"seachTiele"},[t._v("状态:")]),t._v(" "),n("el-select",{staticClass:"filter-item selWidth mr20",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),t._v(" "),n("span",{staticClass:"seachTiele"},[t._v("分账账单类型:")]),t._v(" "),n("el-select",{staticClass:"filter-item selWidth mr20",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("div",{staticClass:"mt20"},[n("span",{staticClass:"seachTiele"},[t._v("商户名称:")]),t._v(" "),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),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-top"},on:{click:t.exportRecord}},[t._v("列表导出")]),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.getExportFileList}},[t._v("导出记录")])],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[n("el-table-column",{attrs:{prop:"profitsharing_id",label:"分账ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"order.order_sn",label:"订单编号","min-width":"60"}}),t._v(" "),n("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"60"}}),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":"80"},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":"100"},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":"100"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150",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:{"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(" "),n("file-list",{ref:"exportList"})],1)},a=[],o=n("8492"),i=n("c4c8"),c=n("30dc"),u={components:{fileList:c["a"]},data:function(){return{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:{getMerSelect:function(){var t=this;Object(i["P"])().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["U"])(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:"已取消"})}))},selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(1)},selectChange2:function(t){this.tableFrom.profit_date=t,this.timeVal2=[],this.getList(1)},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("")}}},s=u,l=(n("7fe2"),n("2877")),f=Object(l["a"])(s,r,a,!1,null,"4746dc96",null);e["default"]=f.exports},f8b7:function(t,e,n){"use strict";n.d(e,"n",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"p",(function(){return c})),n.d(e,"l",(function(){return u})),n.d(e,"m",(function(){return s})),n.d(e,"o",(function(){return l})),n.d(e,"t",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"j",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return p})),n.d(e,"f",(function(){return h})),n.d(e,"v",(function(){return v})),n.d(e,"w",(function(){return b})),n.d(e,"u",(function(){return y})),n.d(e,"e",(function(){return _})),n.d(e,"d",(function(){return x})),n.d(e,"c",(function(){return w})),n.d(e,"s",(function(){return k})),n.d(e,"r",(function(){return F})),n.d(e,"q",(function(){return L}));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 d(t){return r["a"].get("order/children/".concat(t))}function m(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 v(){return r["a"].get("order/takechart")}function b(t){return r["a"].get("order/takelst",t)}function y(t){return r["a"].get("order/take_title",t)}function _(){return r["a"].get("excel/type")}function x(t){return r["a"].get("delivery/order/lst",t)}function w(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function k(t){return r["a"].get("delivery/station/payLst",t)}function F(){return r["a"].get("delivery/title")}function L(){return r["a"].get("delivery/belence")}}}]);