chunk-149563da.c06f3e4f.js 25 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-149563da"],{"170f":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content"},[a("div",{staticClass:"search_box"},[a("div",[a("el-input",{attrs:{clearable:"",maxlength:"11",placeholder:"店铺名称/手机号","prefix-icon":"el-icon-search"},on:{clear:function(e){return t.toSearch()}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toSearch()}},model:{value:t.params.search_name,callback:function(e){t.$set(t.params,"search_name",e)},expression:"params.search_name"}}),a("el-button",{attrs:{type:"primary",icon:"el-icon-search",loading:t.loading},on:{click:function(e){return t.toSearch()}}},[t._v("搜索")])],1)]),a("div",{staticClass:"table_box"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"listTable",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#f8fbfc"},border:"",stripe:"",data:t.list,height:t.tableHeight+"px","cell-style":{padding:"10px 0"}}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"80",align:"center",index:function(e){return t.params.page_size*(t.params.page_index-1)+e+1}}}),a("el-table-column",{staticStyle:{padding:"0"},attrs:{label:"头像",prop:"img","label-class-name":"label",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{staticClass:"hoverImg",attrs:{width:"36",height:"36",src:t.row.img}})]}}])}),a("el-table-column",{attrs:{prop:"name",label:"店铺名称",align:"center","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.getMoreInfo(n)}}},[t._v(t._s(n.name)+"的店铺")])]}}])}),a("el-table-column",{attrs:{label:"姓名",prop:"user",align:"center","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.username)+" ")]}}])}),a("el-table-column",{attrs:{label:"开通时间",prop:"created_at",align:"center",width:"160","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"手机号",prop:"phone",align:"center"}}),a("el-table-column",{attrs:{label:"认证状态",prop:"user",align:"center","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-tag",{staticStyle:{color:"#ffffff"},attrs:{color:t.storeStatus(n.is_apply).color}},[t._v(" "+t._s(t.storeStatus(n.is_apply).name)+" ")])]}}])}),a("el-table-column",{attrs:{label:"操作",prop:"status",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleDetail(n)}}},[t._v("账户明细")])]}}])})],1)],1),a("el-drawer",{attrs:{title:t.storeInfo.name,visible:t.showUser,direction:"rtl",size:"45%"},on:{"update:visible":function(e){t.showUser=e}}},[a("div",{staticClass:"sidebar_box"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基本信息",name:"first"}}),a("el-tab-pane",{attrs:{label:"用户列表",name:"second"}}),a("el-tab-pane",{attrs:{label:"收款记录",name:"third"}})],1),"first"==t.activeName?a("el-form",[a("el-form-item",{attrs:{label:"商户号:"}},[t._v(t._s(t.authState.sub_mchid))]),a("el-form-item",{attrs:{label:"店铺名称:"}},[t._v(t._s(t.storeInfo.name))]),a("el-form-item",{attrs:{label:"联系方式:"}},[t._v(t._s(t.storeInfo.phone))]),t.storeInfo?a("el-form-item",{attrs:{label:"认证状态:"}},[[t.authState?a("span",[t._v(t._s(t.authState.applyment_state_desc))]):a("span",[t._v("未认证")])]],2):t._e(),t.authState.audit_detail&&t.authState.audit_detail.length>0?a("el-form-item",{attrs:{label:"原因:"}},[t._v(t._s(t.authState.audit_detail[0].reject_reason))]):t._e(),a("el-form-item",{attrs:{label:"星级:"}},[t._v(t._s(t.storeInfo.star))]),a("el-form-item",{attrs:{label:"店铺地区:"}},[t._v(" "+t._s(t.storeInfo.province?t.storeInfo.province:"")+t._s(t.storeInfo.city?t.storeInfo.city:"")+t._s(t.storeInfo.area?t.storeInfo.area:"")+" ")]),a("el-form-item",{attrs:{label:"店铺地址:"}},[t._v(" "+t._s(t.storeInfo.address?t.storeInfo.address:"")+" ")]),a("el-form-item",{attrs:{label:"可提现资金:"}},[t._v(t._s(t.accountInfo.available_amount?t.blanceFmt(t.accountInfo.available_amount):0)+"元")]),a("el-form-item",{attrs:{label:"冻结资金:"}},[t._v(" "+t._s(t.accountInfo.pending_amount?t.blanceFmt(t.accountInfo.pending_amount):0)+"元")]),3==t.storeInfo.is_apply?a("el-form-item",{attrs:{label:"开户银行:"}},[t._v(t._s(t.storeInfo.account_bank))]):t._e(),3==t.storeInfo.is_apply?a("el-form-item",{attrs:{label:"银行卡号:"}},[t._v(t._s(t.storeInfo.account_number))]):t._e(),t.storeInfo.qr_code?a("el-form-item",{attrs:{label:"微信二维码:"}},[[a("img",{staticClass:"qr_code",attrs:{src:t.storeInfo.qr_code}})]],2):t._e()],1):t._e(),"second"==t.activeName?a("div",{staticClass:"user_table"},[a("div",{staticClass:"search_box"},[a("el-input",{attrs:{placeholder:"请输入手机号搜索",clearable:""},on:{clear:function(e){t.userParams.page_index=1,t.getUser()}},model:{value:t.userParams.search_name,callback:function(e){t.$set(t.userParams,"search_name",e)},expression:"userParams.search_name"}}),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.getUser()}}},[t._v("搜索")])],1),a("div",{staticClass:"user_info"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{border:"",stripe:"",data:t.userList,"header-cell-style":{background:"#eef1f6",color:"#606266"},"cell-style":{padding:"2px 0"}}},[a("el-table-column",{attrs:{label:"客户昵称",prop:"nickname",align:"center"}}),a("el-table-column",{staticStyle:{padding:"0"},attrs:{label:"头像",prop:"avatar",width:"80","label-class-name":"label",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[a("img",{staticClass:"hoverImg",attrs:{width:"36",height:"36",src:e.avatar}})]}}],null,!1,3012779399)}),a("el-table-column",{attrs:{label:"手机号",prop:"phone",align:"center"}}),a("el-table-column",{attrs:{label:"总销量",prop:"total",align:"center"}}),a("el-table-column",{attrs:{label:"总销售金额",prop:"account",align:"center"}}),a("el-table-column",{attrs:{label:"用户状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-tag",{attrs:{type:0==n.status?"success":"danger"}},[t._v(" "+t._s(0==n.status?"启用":"禁用")+" ")])]}}],null,!1,2317155960)}),a("el-table-column",{attrs:{label:"操作",prop:"status",width:"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleDisable(n,1)}}},[t._v(t._s(0===n.status?"禁用":"启用"))])]}}],null,!1,77331947)})],1)],1),a("div",{staticClass:"page"},[a("pagination",{attrs:{total:t.userTotal,limit:t.userParams.page_size,page:t.userParams.page_index},on:{pagination:t.userPage,"update:limit":t.userPage}})],1)]):t._e(),"third"==t.activeName?a("div",[a("div",{staticClass:"date_picker"},[a("el-date-picker",{attrs:{type:"daterange","picker-options":t.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss",align:"right",clearable:!1},on:{change:function(e){t.receiptParams.page_index=1,t.getReceipt()}},model:{value:t.dateVal,callback:function(e){t.dateVal=e},expression:"dateVal"}})],1),a("el-tabs",{staticClass:"date_tab",attrs:{type:"card"},on:{"tab-click":t.changeState},model:{value:t.receiptParams.type,callback:function(e){t.$set(t.receiptParams,"type",e)},expression:"receiptParams.type"}},[t.showAll?a("el-tab-pane",{attrs:{label:"全部",name:"0"}}):t._e(),a("el-tab-pane",{attrs:{label:"收款",name:"1"}}),a("el-tab-pane",{attrs:{label:"解冻",name:"2"}}),a("el-tab-pane",{attrs:{label:"提现",name:"3"}}),a("el-tab-pane",{attrs:{label:"退款",name:"4"}})],1),a("div",{staticClass:"record"},[a("div",{staticClass:"record_table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{border:"",stripe:"",data:t.receiptList,"header-cell-style":{background:"#f8fbfc"},"cell-style":{padding:3==t.receiptParams.type?"2px 0":"8px 0"}}},[a("el-table-column",{attrs:{label:"类型",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[1==n.type?a("span",[t._v("收款")]):t._e(),2==n.type?a("span",[t._v("解冻")]):t._e(),3==n.type?a("span",[t._v("提现")]):t._e(),4==n.type?a("span",[t._v("退款")]):t._e()]}}],null,!1,1426857912)}),a("el-table-column",{attrs:{label:"金额(元)",prop:"money",align:"center",width:"100"}}),"0"===t.receiptParams.type?a("el-table-column",{attrs:{label:"可提现金额(元)",prop:"account",align:"center",width:"140"}}):t._e(),a("el-table-column",{attrs:{label:"时间",prop:"created_at",align:"center",width:3==t.receiptParams.type?160:""}}),3==t.receiptParams.type?a("el-table-column",{attrs:{label:"提现状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(t._f("getStatus")(a.status_code,a.status))+" ")]}}],null,!1,1745610718)}):t._e(),3==t.receiptParams.type?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.withdrawalDetail(n)}}},[t._v("查看明细")])]}}],null,!1,407455275)}):t._e()],1),a("el-dialog",{attrs:{title:"提现明细",visible:t.showDetail,width:"30%",center:"",modal:!1},on:{"update:visible":function(e){t.showDetail=e}}},[a("el-form",[t.withdrawal.amount?a("el-form-item",{attrs:{label:"提现金额:"}},[t._v(t._s(t.blanceFmt(t.withdrawal.amount)))]):t._e(),t.withdrawal.create_time?a("el-form-item",{attrs:{label:"提现时间:"}},[t._v(t._s(t._f("rTime")(t.withdrawal.create_time)))]):t._e(),t.withdrawal.status?a("el-form-item",{attrs:{label:"提现状态:"}},[t._v(t._s(t._f("getStatus1")(t.withdrawal.status)))]):t._e(),"FAIL"==t.withdrawal.status?a("el-form-item",{attrs:{label:"失败原因:"}},[t._v(t._s(t.withdrawal.reason))]):t._e(),t.withdrawal.update_time?a("el-form-item",{attrs:{label:"更新时间:"}},[t._v(t._s(t._f("rTime")(t.withdrawal.update_time)))]):t._e()],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.showDetail=!1}}},[t._v("确 定")])],1)],1),a("pagination",{attrs:{total:t.receiptTotal,limit:t.receiptParams.page_size,page:t.receiptParams.page_index},on:{pagination:t.receiptPage,"update:limit":t.receiptPage}})],1)])],1):t._e()],1)]),a("div",{staticClass:"batch-container"},[a("pagination",{attrs:{total:t.totalPage,limit:t.params.page_size,page:t.params.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}})],1)],1)},r=[],s=(a("99af"),a("e9c4"),a("a9e3"),a("b0c0"),a("d81d"),a("73f5")),o=a("44f1"),i=(a("8975"),{name:"StoreList",filters:{getStatus:function(t,e){return"SUCCESS"===t&&0===e?"受理成功":"SUCCESS"===t&&1===e?"提现成功":"CREATE_SUCCESS"===t?"受理成功":"FAIL"===t?"提现失败":"REFUND"===t?"提现退票":"CLOSE"===t?"关单":"INIT"===t?"业务单已创建":"未知"},getStatus1:function(t){switch(t){case"CREATE_SUCCESS":return"受理成功";case"SUCCESS":return"提现成功";case"FAIL":return"提现失败";case"REFUND":return"提现退票";case"CLOSE":return"关单";case"INIT":return"业务单已创建"}},rTime:function(t){var e=function(t){return t<10?"0"+t:t},a=new Date(t),n=a.getFullYear(),r=a.getMonth()+1,s=a.getDate(),o=a.getHours(),i=a.getMinutes(),l=a.getSeconds();return"".concat(n,"-").concat(e(r),"-").concat(e(s)," ").concat(e(o),":").concat(e(i),":").concat(e(l))}},data:function(){return{showAll:!1,dateVal:[],pickerOptions:{},loading:!1,canOpenNum:0,openedNum:0,number:"",activeName:"first",roles:this.$route.meta.buttonAuthList?this.$route.meta.buttonAuthList:[],params:{page_index:1,page_size:15,search_name:""},options:[{value:0,label:"全部"},{value:1,label:"未认证"},{value:2,label:"审核中"},{value:3,label:"待签约"},{value:4,label:"已完成"},{value:5,label:"被驳回"},{value:6,label:"已冻结"}],userParams:{page_index:1,page_size:15,search_name:"",store_id:""},receiptParams:{page_index:1,page_size:15,id:"",type:"1",start_at:"",end_at:""},storeInfo:"",userList:[],showUser:!1,userTotal:0,list:[],searchName:"",totalPage:0,receiptList:[],receiptTotal:0,authState:{},accountInfo:{available_amount:0,pending_amount:0},withdrawal:"",showDetail:!1,tableHeight:0}},created:function(){console.log(this.$route.meta.buttonAuthList,"roles"),this.storeStatus=o["g"],this.blanceFmt=o["a"],this.format=o["d"],this.getList(),this.getData()},mounted:function(){var t=this;this.$nextTick((function(){t.tableHeight=document.getElementsByClassName("table_box")[0].offsetHeight}))},methods:{handleDetail:function(t){this.storeInfo=JSON.parse(JSON.stringify(t)),this.showAll=!0,this.showUser=!0,this.receiptParams.type="0",this.activeName="third",this.dateVal=[],this.getCurrentMonthFirst(),this.getCurrentMonthLast(),this.getReceipt()},getCurrentMonthFirst:function(){var t=new Date;t.setDate(1);var e=parseInt(t.getMonth()+1),a=t.getDate(),n=t.getFullYear();e<10&&(e="0"+e),a<10&&(a="0"+a),this.dateVal[0]="".concat(n,"-").concat(e,"-").concat(a," 00:00:00")},getCurrentMonthLast:function(){var t=new Date,e=t.getMonth(),a=++e,n=new Date(t.getFullYear(),a,1),r=864e5,s=new Date(n-r),o=parseInt(s.getMonth()+1),i=s.getDate(),l=s.getFullYear();o<10&&(o="0"+o),i<10&&(i="0"+i),this.dateVal[1]="".concat(l,"-").concat(o,"-").concat(i," 23:59:59")},handleTagToggle:function(t){this.params.is_delete=Number(t.name),this.list=[],this.getList()},getData:function(){var t=this;Object(s["e"])().then((function(e){200===e.code?t.number=e.data:t.$message.error(e.msg||"获取数据失败")}))},handleReopen:function(t){var e=this;this.$confirm("确认要重开".concat(t.name,"的店铺吗?,请确保店铺钱包里没有资金"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.reopenStore(t)}))},reopenStore:function(t){var e=this;Object(s["h"])({id:t.id}).then((function(a){200===a.code?(e.$message.success("重开".concat(t.name,"的店铺成功!")),e.getList()):e.$message.error(a.msg||"重开".concat(t.name,"的店铺失败!"))}))},handleDel:function(t){var e=this,a=t.deleted_at?"恢复":"删除";t.deleted_at?this.$confirm("确认要".concat(a).concat(t.name,"的店铺吗?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.delStore(t.id,t.name,a)})):this.$prompt("请输入删除原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^.+$/,inputErrorMessage:"删除原因不能为空"}).then((function(n){var r=n.value;e.delStore(t.id,t.name,a,r)})).catch((function(){e.$message({type:"info",message:"取消输入"})}))},delStore:function(t,e,a,n){var r=this,o="恢复"===a?s["i"]:s["b"],i="恢复"===a?{id:t}:{id:t,remark:n};o(i).then((function(t){200===t.code?(r.$message.success("".concat(a).concat(e,"的店铺成功!")),r.getList()):r.$message.error(t.msg||"".concat(a).concat(e,"的店铺失败!"))}))},refState:function(t){var e=this;Object(s["n"])({id:this.storeInfo.id}).then((function(t){200===t.code?e.authState=0===t.data.length?"":t.data:e.$message.error(t.msg||"状态更新失败")}))},resetAuth:function(t){var e=this;this.$confirm("确认要重置".concat(t.name,"的店铺认证状态吗?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.setWxAuth(t.id,t.name)}))},setWxAuth:function(t,e){var a=this;Object(s["j"])({store_id:t}).then((function(t){200===t.code?(a.$message.success("重置".concat(e,"的店铺认证状态成功")),a.getList()):a.$message.error("重置".concat(e,"的店铺认证状态失败"))}))},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?parseTime(e[t]):e[t]}))}))},withdrawalDetail:function(t){var e=this;this.loading=!0;var a=t.transaction_id,n=t.order_no;Object(s["g"])({id:this.storeInfo.id,withdraw_id:a,out_request_no:n}).then((function(t){200==t.code?(e.withdrawal=t.data,e.showDetail=!0,console.log(t,"提现状态")):e.$message.error(t.msg||"获取失败"),e.loading=!1})).catch((function(){e.loading=!1}))},getMoreInfo:function(t){this.showAll=!1,this.storeInfo=JSON.parse(JSON.stringify(t)),this.authState=[],this.showUser=!0,this.activeName="first",this.receiptParams.type="1",this.getInfo()},getInfo:function(){var t=this;this.refState(1),3===this.storeInfo.is_apply?Object(s["c"])({id:this.storeInfo.id}).then((function(e){200===e.code?t.accountInfo=e.data:t.$message.error(e.msg||"获取账户信息失败")})):this.accountInfo=[]},getList:function(){var t=this;this.loading=!0,Object(s["a"])(this.params).then((function(e){200===e.code?(t.loading=!1,t.list=e.data.list,t.totalPage=e.data.total):t.$message.error(e.msg||"获取店铺列表失败"),t.loading=!1})).catch((function(){t.loading=!1}))},getUser:function(){var t=this;this.userParams.store_id=this.storeInfo.id;var e=this.userParams;Object(s["o"])(e).then((function(e){200===e.code?(t.userList=e.data.list,t.userTotal=e.data.total):t.$message.error(e.msg||"获取用户列表失败")}))},getReceipt:function(){var t=this;if(this.receiptList=[],this.dateVal)if(this.receiptParams.id=this.storeInfo.id,this.receiptParams.start_at=this.dateVal[0],this.receiptParams.end_at=this.dateVal[1],"0"===this.receiptParams.type){var e=this.receiptParams,a=e.page_index,n=e.page_size,r=e.id,o=e.start_at,i=e.end_at;Object(s["d"])({page_index:a,page_size:n,id:r,start_at:o,end_at:i}).then((function(e){200===e.code&&(t.receiptList=e.data.list.list,t.receiptTotal=e.data.total)}))}else Object(s["f"])(this.receiptParams).then((function(e){200===e.code?(t.receiptList=e.data.list.list,t.receiptTotal=e.data.total):t.$message.error(e.msg||"获取收款记录失败")}));else this.$message.warning("请先选择时间")},handleClick:function(t){var e=t.name;switch(e){case"first":this.getInfo();case"second":this.getUser();break;case"third":this.getCurrentMonthFirst(),this.getCurrentMonthLast(),this.getReceipt();break;default:break}},changeState:function(t){this.receiptParams.type=t.name,this.receiptParams.page_index=1,this.getReceipt()},changedate:function(t){this.receiptParams.cycle=t.name,this.receiptParams.page_index=1,this.getReceipt()},handleDisable:function(t,e){var a=this,n=t.id,r=t.name,s=t.status;if(0!==s){var o=0===s?"禁用":"启用";this.$confirm("确认要".concat(o).concat(r),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.operaDisabled(n,r,e,s)}))}else this.$prompt("请输入禁用原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^.+$/,inputErrorMessage:"禁用原因不能为空"}).then((function(t){var o=t.value;console.log(o,"value"),a.operaDisabled(n,r,e,s,o)})).catch((function(){a.$message({type:"info",message:"取消输入"})}))},operaDisabled:function(t,e,a,n,r){var o=this,i=0===a?s["k"]:s["p"],l=0===a?{id:t,remark:r}:{id:t};i(l).then((function(t){200===t.code?(o.$message.success(0===n?"已禁用".concat(e):"已启用".concat(e)),0===a?o.getList():o.getUser()):o.$message.error("设置失败")}))},changePagination:function(t,e){console.log(t,e);var a=t.page,n=t.limit;this.params.page_size=n,this.params.page_index=a,this.getList()},userPage:function(t){var e=t.page,a=t.limit;this.userParams.page_size=a,this.userParams.page_index=e,this.getUser()},receiptPage:function(t){var e=t.page,a=t.limit;this.receiptParams.page_size=a,this.receiptParams.page_index=e,this.getReceipt()},toSearch:function(){this.params.page_index=1,this.getList()}}}),l=i,c=(a("fb0c"),a("2877")),u=Object(c["a"])(l,n,r,!1,null,"3efbd3e4",null);e["default"]=u.exports},3390:function(t,e,a){},"44f1":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"d",(function(){return r})),a.d(e,"e",(function(){return s})),a.d(e,"g",(function(){return o})),a.d(e,"f",(function(){return i})),a.d(e,"b",(function(){return l})),a.d(e,"i",(function(){return c})),a.d(e,"h",(function(){return u})),a.d(e,"c",(function(){return d}));a("a9e3"),a("b680"),a("ac1f"),a("5319"),a("4ec9"),a("d3b7"),a("3ca3"),a("ddb0"),a("4de4"),a("d81d");function n(t){var e=Number(t);if(e){e=Math.round(100*e)/1e4,e=e.toFixed(2),e+="";var a=e.indexOf(".")>-1?/(\d{1,3})(?=(?:\d{3})+\.)/g:/(\d{1,3})(?=(?:\d{3})+$)/g;return e.replace(a,"$1,")}return e+".00"}function r(t,e){return t?(Number(t)+"").replace(/\d{1,4}(?=(\d{4})+(\.\d*)?$)/g,"$&,"):0}function s(t,e){if(t){var a=new Map([[0,{color:"#909399",name:"没取消"}],[1,{color:"#909399",name:"审核中"}],[2,{color:"#909399",name:"已取消"}],[3,{color:"#909399",name:"被驳回"}]]);return a.get(t)||{name:"未知订单状态",color:"#909399"}}var n=new Map([[0,{color:"#f97547",name:"待付款"}],[1,{color:"#13c19f",name:"待发货"}],[2,{color:"#ffaa1d",name:"待收货"}],[3,{color:"#409EFF",name:"已完成"}],[4,{color:"#74a2e6",name:"已完成"}]]);return n.get(e)||{name:"未知订单状态",color:"#909399"}}function o(t){switch(+t){case 0:return{name:"未认证",color:"#f97547"};case 1:return{name:"审核中",color:"#13c19f"};case 2:return{name:"待签约",color:"#ffaa1d"};case 3:return{name:"已完成",color:"#409EFF"};case 4:return{name:"被驳回",color:"#999"};case 5:return{name:"已冻结",color:"#ccc"};default:return{name:"审核中",color:"#13c19f"}}}function i(t){switch(+t){case 0:return{name:"未审核",color:"#f96b6b"};case 1:return{name:"已同意",color:"#13c19f"};case 2:return{name:"已驳回",color:"#415161"};case 3:return{name:"已完成",color:"#f96b6b"};default:return{name:"未知支付状态",color:"#909399"}}}function l(t){var e;switch(t){case 0:e="销售未实名认证";break;case 1:e="等待邀请人审核";break;case 2:e="等待审核";break;case 3:e="等待用户确认";break;case 4:e="邀请人审核驳回";break;case 5:e="审核驳回";break;case 6:e="授权成功";break;default:e=t}return e}var c=function(t){var e=0;return t.map((function(t){t.sku.map((function(t){e+=t.num*t.price}))})),e},u=function(t){var e=0;return t.map((function(t){t.sku.map((function(t){e+=t.num}))})),e};function d(t,e){if(null==t)return 0;var a=Date.parse(new Date(e))/1e3,n=Date.parse(new Date(t))/1e3,r=function(t){return t<10?"0"+t:t},s=a-n;if(s>0){var o=Math.floor(s/86400),i=Math.floor(s%86400/3600),l=Math.floor((s-86400*o-3600*i)/60);Math.floor(s-86400*o-3600*i-60*l);return"".concat(r(o))}return 0}},"4ec9":function(t,e,a){"use strict";var n=a("6d61"),r=a("6566");t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},"73f5":function(t,e,a){"use strict";a.d(e,"k",(function(){return r})),a.d(e,"m",(function(){return s})),a.d(e,"a",(function(){return o})),a.d(e,"o",(function(){return i})),a.d(e,"p",(function(){return l})),a.d(e,"n",(function(){return c})),a.d(e,"c",(function(){return u})),a.d(e,"g",(function(){return d})),a.d(e,"f",(function(){return m})),a.d(e,"l",(function(){return f})),a.d(e,"j",(function(){return p})),a.d(e,"e",(function(){return h})),a.d(e,"b",(function(){return g})),a.d(e,"i",(function(){return b})),a.d(e,"h",(function(){return _})),a.d(e,"d",(function(){return v}));var n=a("b775"),r=function(t){return Object(n["a"])({url:"/store/disabled",method:"post",params:t})},s=function(t){return Object(n["a"])({url:"/store/list",method:"get",params:t})},o=function(t){return Object(n["a"])({url:"/store/chaXunSaler",method:"get",params:t})},i=function(t){return Object(n["a"])({url:"/store/get_all_user",method:"get",params:t})},l=function(t){return Object(n["a"])({url:"/user/disabled",method:"post",data:t})},c=function(t){return Object(n["a"])({url:"/store/query",method:"get",params:t})},u=function(t){return Object(n["a"])({url:"/store/get_account_info",method:"get",params:t})},d=function(t){return Object(n["a"])({url:"/store/get_withdrawal_state",method:"get",params:t})},m=function(t){return Object(n["a"])({url:"/store/get_account_detail",method:"get",params:t})},f=function(t){return Object(n["a"])({url:"/store/export",method:"get",params:t})},p=function(t){return Object(n["a"])({url:"/store/set_wx_auth",method:"post",data:t})},h=function(t){return Object(n["a"])({url:"/store/get_data_info",method:"get",params:t})},g=function(t){return Object(n["a"])({url:"/store/deleteStore",method:"post",params:t})},b=function(t){return Object(n["a"])({url:"/store/resDelStore",method:"post",params:t})},_=function(t){return Object(n["a"])({url:"/store/newStore",method:"post",params:t})},v=function(t){return Object(n["a"])({url:"/store/get_account_detail_all",method:"get",params:t})}},fb0c:function(t,e,a){"use strict";a("3390")}}]);