启程易购后端代码
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-5e1ff0dc.eaa27143.js

1 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e1ff0dc"],{2801:function(t,e,n){"use strict";n.d(e,"f",(function(){return i})),n.d(e,"j",(function(){return r})),n.d(e,"v",(function(){return c})),n.d(e,"w",(function(){return s})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return l})),n.d(e,"x",(function(){return u})),n.d(e,"B",(function(){return d})),n.d(e,"z",(function(){return f})),n.d(e,"A",(function(){return m})),n.d(e,"y",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"c",(function(){return _})),n.d(e,"L",(function(){return b})),n.d(e,"n",(function(){return h})),n.d(e,"i",(function(){return v})),n.d(e,"g",(function(){return D})),n.d(e,"h",(function(){return C})),n.d(e,"r",(function(){return x})),n.d(e,"N",(function(){return y})),n.d(e,"K",(function(){return w})),n.d(e,"I",(function(){return k})),n.d(e,"G",(function(){return F})),n.d(e,"M",(function(){return L})),n.d(e,"J",(function(){return S})),n.d(e,"H",(function(){return j})),n.d(e,"m",(function(){return O})),n.d(e,"l",(function(){return V})),n.d(e,"k",(function(){return $})),n.d(e,"e",(function(){return z})),n.d(e,"q",(function(){return M})),n.d(e,"o",(function(){return N})),n.d(e,"O",(function(){return J})),n.d(e,"t",(function(){return H})),n.d(e,"s",(function(){return P})),n.d(e,"p",(function(){return E})),n.d(e,"P",(function(){return q})),n.d(e,"u",(function(){return B})),n.d(e,"F",(function(){return I})),n.d(e,"C",(function(){return T})),n.d(e,"D",(function(){return A})),n.d(e,"E",(function(){return G}));var a=n("0c6d");function i(t){return a["a"].get("user/extract/lst",t)}function r(t,e){return a["a"].post("user/extract/status/".concat(t),e)}function c(t){return a["a"].get("user/recharge/list",t)}function s(){return a["a"].get("user/recharge/total")}function o(t){return a["a"].get("bill/list",t)}function l(){return a["a"].get("bill/type")}function u(t){return a["a"].get("merchant/order/reconciliation/lst",t)}function d(t,e){return a["a"].post("merchant/order/reconciliation/status/".concat(t),e)}function f(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 p(t){return a["a"].get("merchant/order/reconciliation/mark/".concat(t,"/form"))}function g(t){return a["a"].get("financial_record/list",t)}function _(t){return a["a"].get("financial_record/export",t)}function b(t){return a["a"].get("financial/export",t)}function h(t){return a["a"].get("bill/export",t)}function v(t){return a["a"].get("user/extract/export",t)}function D(t){return a["a"].get("user/extract/status_form/".concat(t))}function C(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 w(t){return a["a"].get("financial/lst",t)}function k(){return a["a"].get("financial/title")}function F(t){return a["a"].get("financial/detail/".concat(t))}function L(t,e){return a["a"].post("financial/status/".concat(t),e)}function S(t){return a["a"].get("financial/mark/".concat(t,"/form"))}function j(t,e){return a["a"].post("financial/update/".concat(t),e)}function O(t){return a["a"].get("financial_record/lst",t)}function V(t,e){return a["a"].get("financial_record/detail/".concat(t),e)}function $(t){return a["a"].get("financial_record/title",t)}function z(t,e){return a["a"].get("financial_record/detail_export/".concat(t),e)}function M(t){return a["a"].get("financial_record/count",t)}function N(t){return a["a"].get("agreement/".concat(t))}function J(t,e){return a["a"].post("agreement/".concat(t),e)}function H(t){return a["a"].get("receipt/lst",t)}function P(t){return a["a"].get("receipt/detail/".concat(t))}function E(){return a["a"].get("profitsharing/config")}function q(t){return a["a"].post("profitsharing/config",t)}function B(t){return a["a"].get("financial_record/mer_lst",t)}function I(t,e){return a["a"].get("financial_record/mer_list/".concat(t),e)}function T(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 G(t,e){return a["a"].get("financial_record/mer_title/".concat(t),e)}},bbbf:function(t,e,n){"use strict";n("d91b")},d131:function(t,e,n){"use strict";n.r(e);var a=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",{attrs:{size:"small","label-width":"90px",inline:""}},[n("el-form-item",{attrs:{label:"时间选择:"}},[n("el-date-picker",{staticStyle:{width:"280px"},attrs:{type:"daterange",align:"right","unlink-panels":"",format:"yyyy/MM/dd","value-format":"yyyy/MM/dd",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-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",disabled:""},model:{value:t.mer_id,callback:function(e){t.mer_id=e},expression:"mer_id"}},t._l(t.merSelect,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value.toString()}})})),1)],1)],1)],1),t._v(" "),t.cardLists.length>0?n("cards-data",{attrs:{"card-lists":t.cardLists,more:!0}}):t._e(),t._v(" "),n("el-card",{staticClass:"box-card"},[t.headeNum.length>0?n("el-tabs",{on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.tableForm.type,callback:function(e){t.$set(t.tableForm,"type",e)},expression:"tableForm.type"}},t._l(t.headeNum,(function(t,e){return n("el-tab-pane",{key:e,attrs:{name:t.type.toString(),label:t.title}})})),1):t._e(),t._v(" "),n("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":""}},[n("el-table-column",{attrs:{label:"序号","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.tableForm.page-1)*t.tableForm.limit+1))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"time",label:"日期","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"income",label:"账期内收入","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"expend",label:"账期内支出","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"charge",label:"平台应入账金额","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onDetails(e.row.time)}}},[t._v("详情")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.exports(e.row.time)}}},[t._v("下载账单")])]}}])})],1),t._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{background:"","page-size":t.tableForm.limit,"current-page":t.tableForm.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("el-dialog",{attrs:{title:1==t.tableForm.type?"日账单详情":"月账单详情",visible:t.dialogVisible,width:"830px","before-close":t.handleClose,center:""},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-row",{staticClass:"ivu-mt mt20",attrs:{align:"middle"}},[n("el-col",{attrs:{span:4}},[n("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"0"}},[n("el-menu-item",{attrs:{name:t.accountDetails.date}},[n("span",[t._v(t._s(t.accountDetails.date))])])],1)],1),t._v(" "),n("el-col",{attrs:{span:20}},[n("el-col",{attrs:{span:6}},[n("div",{staticClass:"grid-content"},[n("span",{staticClass:"title"},[t._v(t._s(t.accountDetails.income&&t.accountDetails.income.title))]),t._v(" "),n("span",{staticClass:"color_red"},[t._v(t._s(t.accountDetails.income&&t.accountDetails.income.number)+"元")]),t._v(" "),n("span",{staticClass:"count"},[t._v(t._s(t.accountDetails.income&&t.accountDetails.income.count))]),t._v(" "),t.accountDetails.income&&t.accountDetails.income.data&&t.accountDetails.income.data.length>0?n("div",{staticClass:"list"},t._l(t.accountDetails.income.data,(function(e,a){return n("el-row",{key:a,staticClass:"item"},[n("el-col",{staticClass:"name",attrs:{span:12}},[t._v(t._s(e["0"]))]),t._v(" "),n("el-col",{staticClass:"cost",attrs:{span:12}},[n("span",{staticClass:"cost_num"},[t._v(t._s(e["1"]))]),t._v(" "),n("span",{staticClass:"cost_count"},[t._v(t._s(e["2"]))])])],1)})),1):t._e()]),t._v(" "),n("el-divider",{attrs:{direction:"vertical"}})],1),t._v(" "),n("el-col",{attrs:{span:6}},[n("div",{staticClass:"grid-content"},[n("span",{staticClass:"title"},[t._v(t._s(t.accountDetails.bill&&t.accountDetails.bill.title))]),t._v(" "),n("span",{staticClass:"color_red"},[t._v(t._s(t.accountDetails.bill&&t.accountDetails.bill.number)+"元")]),t._v(" "),n("span",{staticClass:"count"},[t._v(t._s(t.accountDetails.bill&&t.accountDetails.bill.count))]),t._v(" "),t.accountDetails.bill&&t.accountDetails.bill.data&&t.accountDetails.bill.data.length>0?n("div",{staticClass:"list"},t._l(t.accountDetails.bill.data,(function(e,a){return n("el-row",{key:a,staticClass:"item"},[n("el-col",{staticClass:"name",attrs:{span:12}},[t._v(t._s(e["0"]))]),t._v(" "),n("el-col",{staticClass:"cost",attrs:{span:12}},[n("span",{staticClass:"cost_num"},[t._v(t._s(e["1"]))]),t._v(" "),n("span",{staticClass:"cost_count"},[t._v(t._s(e["2"]))])])],1)})),1):t._e()]),t._v(" "),n("el-divider",{attrs:{direction:"vertical"}})],1),t._v(" "),n("el-col",{attrs:{span:6}},[n("div",{staticClass:"grid-content"},[n("span",{staticClass:"title"},[t._v(t._s(t.accountDetails.expend&&t.accountDetails.expend.title))]),t._v(" "),n("span",{staticClass:"color_gray"},[t._v(t._s(t.accountDetails.expend&&t.accountDetails.expend.number)+"元")]),t._v(" "),n("span",{staticClass:"count"},[t._v(t._s(t.accountDetails.expend&&t.accountDetails.expend.count))]),t._v(" "),t.accountDetails.expend&&t.accountDetails.expend.data&&t.accountDetails.expend.data.length>0?n("div",{staticClass:"list"},t._l(t.accountDetails.expend.data,(function(e,a){return n("el-row",{key:a,staticClass:"item"},[n("el-col",{staticClass:"name",attrs:{span:12}},[t._v(t._s(e["0"]))]),t._v(" "),n("el-col",{staticClass:"cost",attrs:{span:12}},[n("span",{staticClass:"cost_num"},[t._v(t._s(e["1"]))]),t._v(" "),n("span",{staticClass:"cost_count"},[t._v(t._s(e["2"]))])])],1)})),1):t._e()]),t._v(" "),n("el-divider",{attrs:{direction:"vertical"}})],1),t._v(" "),n("el-col",{attrs:{span:6}},[n("div",{staticClass:"grid-content"},[n("span",{staticClass:"title"},[t._v(t._s(t.accountDetails.charge&&t.accountDetails.charge.title))]),t._v(" "),n("span",{staticClass:"color_gray"},[t._v(t._s(t.accountDetails.charge&&t.accountDetails.charge.number)+"元")])])])],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("我知道了")])],1)],1)],1)},i=[],r=n("c80c"),c=(n("96cf"),n("3b8d")),s=n("2801"),o=n("c4c8"),l=n("83d6"),u=n("0f56"),d=n("2e83"),f={name:"MerchantDetail",components:{cardsData:u["a"]},data:function(){return{loading:!1,roterPre:l["roterPre"],timeVal:[],listLoading:!0,tableData:{data:[],total:0},tableForm:{page:1,limit:10,date:"",type:"1"},ruleForm:{status:"0"},headeNum:[{type:1,title:"日账单"},{type:2,title:"月账单"}],dialogVisible:!1,rules:{status:[{required:!0,message:"请选择对账状态",trigger:"change"}]},reconciliationId:0,cardLists:[],mer_id:"",merSelect:[],accountDetails:{date:"",charge:{},expend:{},income:{}}}},computed:{},mounted:function(){this.getMerSelect(),this.getList(""),this.getHeaderData()},methods:{getMerSelect:function(){var t=this;Object(o["Q"])().then((function(e){t.merSelect=e.data.map((function(t){return{label:t.mer_name,value:t.mer_id}})),t.mer_id=t.$route.params.id})).catch((function(e){t.$message.error(e.message)}))},onDetails:function(t){var e=this;Object(s["C"])(this.tableForm.type,{mer_id:this.$route.params.id,date:t}).then((function(t){e.dialogVisible=!0,e.accountDetails=t.data})).catch((function(t){e.$message.error(t.message)}))},getHeaderData:function(){var t=this;Object(s["E"])(this.$route.params.id,{date:this.tableForm.date}).then((function(e){t.cardLists=e.data.stat})).catch((function(e){t.$message.error(e.message)}))},exports:function(){var t=Object(c["a"])(Object(r["a"])().mark((function t(e){var n,a,i,c,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=JSON.parse(JSON.stringify(this.tableForm)),a=[],n.page=1,i=1,c={},s=0;case 5:if(!(s<i)){t.next=14;break}return t.next=8,this.downData(n,e);case 8:c=t.sent,i=Math.ceil(c.count/n.limit),c.export.length&&(a=a.concat(c.export),n.page++);case 11:s++,t.next=5;break;case 14:return Object(d["a"])(c.header,c.title,a,c.foot,c.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,e){var n=this;return t.date=e,t.mer_id=this.$route.params.id,new Promise((function(e,a){Object(s["D"])(n.tableForm.type,t).then((function(t){return e(t.data)}))}))},handleClose:function(){this.dialogVisible=!1},onchangeTime:function(t){this.timeVal=t,this.tableForm.date=this.timeVal?this.timeVal.join("-"):"",this.getList(""),this.getHeaderData()},getList:function(t){var e=this;this.listLoading=!0,this.tableForm.page=t||this.tableForm.page,Object(s["F"])(this.$route.params.id,this.tableForm).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableForm.page=t,this.getList("")},handleSizeChange:function(t){this.tableForm.limit=t,this.chkName="",this.getList("")}}},m=f,p=(n("bbbf"),n("2877")),g=Object(p["a"])(m,a,i,!1,null,"056d99c9",null);e["default"]=g.exports},d91b:function(t,e,n){}}]);