chunk-60b68ee4.4cc25d3c.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60b68ee4","chunk-0b6b1555","chunk-cd314900","chunk-2d22891e"],{"18ea":function(t,e,a){"use strict";a("94cf")},"2d14":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-name-module"},[e("div",{staticClass:"app-size-30 app-color-0"},[t._v(t._s(t.info.receiveUserName))]),e("div",[t._v(t._s(t.info.receiveMobile))]),e("div",[t._v(t._s(t.info.receiveFullAddress)+"("+t._s(t.info.showAddress)+")")]),t._m(0)])},n=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-tag"},[e("img",{attrs:{src:a("da6a"),alt:""}})])}],i={name:"card-name-module",props:{info:{type:Object,default:()=>{}}},data(){return{}}},o=i,l=(a("bd79"),a("1805")),r=Object(l["a"])(o,s,n,!1,null,"fca3533e",null);e["default"]=r.exports},4873:function(t,e,a){"use strict";a("a3fc")},"4ffc":function(t,e,a){},9030:function(t,e,a){},"94cf":function(t,e,a){},a3fc:function(t,e,a){},aaa5:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-list-content"},[e("x-crud",{staticClass:"liu-crud-wrap",on:{load:t.onLoad},scopedSlots:t._u([{key:"slot-tabs",fn:function(){return[e("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabsData,(function(t,a){return e("el-tab-pane",{key:a,attrs:{label:""+t.text,name:t.key}})})),1)]},proxy:!0},{key:"table-column-location",fn:function({scope:a}){return[1==a.row.location?e("span",{staticStyle:{cursor:"pointer",color:"blue","font-weight":"bold"},on:{click:function(e){return t.modifyLocation(a.row)}}},[t._v("本地")]):e("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.modifyLocation(a.row)}}},[t._v("上游")])]}},{key:"table-column-avatar",fn:function({scope:t}){return[e("cl-avatar",{style:{margin:"auto"},attrs:{size:22,src:t.row.avatar}})]}},{key:"table-column-id",fn:function({scope:a}){return[e("el-link",{staticStyle:{"font-size":"12px"},attrs:{underline:!0},on:{click:function(e){return t.detailShowFn(a.row)}}},[t._v(t._s(a.row.id))])]}},{key:"table-column-mobile",fn:function({scope:a}){return[""!=a.row.mobile?e("span",[t._v(t._s(a.row.mobile))]):e("span",[t._v("-")])]}},{key:"table-column-debtAmount",fn:function({scope:a}){return[a.row.debtAmount>0?e("span",{staticStyle:{color:"blue",cursor:"pointer"},on:{click:function(e){return t.goDebtChange(a.row)}}},[t._v(t._s(a.row.debtAmount?parseFloat(a.row.debtAmount):0))]):e("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.goDebtChange(a.row)}}},[t._v("0")])]}},{key:"table-column-balance",fn:function({scope:a}){return[e("span",[t._v(t._s(a.row.balance))])]}},{key:"table-column-debt",fn:function({scope:a}){return[1==a.row.debt?e("i",{staticClass:"el-icon-success",staticStyle:{color:"green","font-size":"18px",cursor:"pointer"},on:{click:function(e){return t.modifyDebt(a.row,0)}}}):e("i",{staticClass:"el-icon-open",staticStyle:{"font-size":"16px",cursor:"pointer"},on:{click:function(e){return t.modifyDebt(a.row,1)}}})]}},{key:"table-column-debtLimit",fn:function({scope:a}){return[1==a.row.debt?e("span",{staticStyle:{"font-weight":"bold",color:"green",cursor:"pointer"},on:{click:function(e){return t.changeDebtAmount(a.row)}}},[t._v(" "+t._s(a.row.debtLimit?parseFloat(a.row.debtLimit):0)+" ")]):e("span",[e("i",{staticClass:"el-icon-edit",staticStyle:{"font-size":"15px",cursor:"pointer"},on:{click:function(e){return t.pleaseOpen()}}})])]}},{key:"table-column-buyAmount",fn:function({scope:a}){return[e("span",[t._v(t._s(a.row.buyAmount?parseFloat(a.row.buyAmount):0))])]}},{key:"slot-add-ghs",fn:function(){return[e("el-button",{staticStyle:{"margin-left":"60px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.addGhs()}}},[t._v("添加供货商")])]},proxy:!0},{key:"slot-export-ghs",fn:function(){return[e("el-button",{staticStyle:{"margin-left":"60px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.exportGhs()}}},[t._v("导出供货商")])]},proxy:!0},{key:"table-column-name",fn:function({scope:a}){return[e("el-link",{staticStyle:{"font-size":"12px"},attrs:{underline:!0},on:{click:function(e){return t.detailShowFn(a.row)}}},[t._v(t._s(a.row.name))])]}},{key:"slot-column-option",fn:function({scope:a}){return[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.goClear}},[t._v("结账")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.goCg(a.row)}}},[t._v("采购")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.modify(a.row)}}},[t._v("修改")]),e("el-button",{attrs:{size:"small",type:"success"},on:{click:function(t){}}},[t._v("结账记录")]),e("el-button",{attrs:{size:"small",type:"success"},on:{click:function(t){}}},[t._v("采购记录")]),e("el-button",{attrs:{size:"small",type:"success"},on:{click:function(t){}}},[t._v("欠款变动明细")])]}},{key:"slot-total-debt-amount",fn:function(){return[e("span",{staticStyle:{"font-size":"15px","font-weight":"bold"}},[t._v("累计欠款:"+t._s(t.totalDebtAmount))])]},proxy:!0}])}),e("detail-draw",{attrs:{show:t.drapShow,info:t.modalData},on:{"update:show":function(e){t.drapShow=e}}}),e("el-dialog",{attrs:{title:t.addGhsTitle,visible:t.addGhsPop,width:"600px",center:"","close-on-click-modal":!1},on:{"update:visible":function(e){t.addGhsPop=e}}},[e("div",[e("div",{staticClass:"accounts-list"},[t._v(" 供货商名 "),e("el-input",{staticStyle:{width:"80%"},attrs:{clearable:""},model:{value:t.addGhsName,callback:function(e){t.addGhsName=e},expression:"addGhsName"}})],1),e("div",{staticClass:"accounts-list"},[t._v(" 商家类型 "),e("div",{staticClass:"accounts-center"},[e("el-button",{attrs:{type:0==t.location?"primary":"",size:"small"},on:{click:function(e){t.location=0}}},[t._v("上游")]),e("el-button",{attrs:{type:1==t.location?"primary":"",size:"small"},on:{click:function(e){t.location=1}}},[t._v("本地")])],1)]),e("div",{staticClass:"accounts-list",staticStyle:{"margin-top":"20px"}},[e("span"),e("div",{staticClass:"accounts-center"},[e("el-button",{on:{click:function(e){return t.resetAddGhs()}}},[t._v("取消")]),e("el-button",{staticStyle:{"margin-left":"80px"},attrs:{type:"primary"},on:{click:function(e){return t.confirmAddGhs()}}},[t._v("确认")])],1)])])])],1)},n=[],i=(a("b138"),a("5880")),o=a("2d14"),l=a("b344"),r={components:{cardName:o["default"],detailDraw:l["default"]},data(){return{app:null,tabIndex:"0",tabsData:[{text:"全部",key:"0",val:0}],modalData:{},drapShow:!1,addGhsName:"",location:0,addGhsPop:!1,addGhsTitle:"添加供货商",totalDebtAmount:0,searchContent:""}},computed:{...Object(i["mapGetters"])({levelData:"level"})},created(){this.getLevel()},mounted(){},methods:{...Object(i["mapActions"])(["getLevel"]),modifyLocation(t){let e=this;e.$confirm("确认修改类型?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{e.$service.ghs.changeLocation({id:t.id}).then(t=>{e.$message.success("修改成功"),e.app.refresh({type:e.tabIndex,name:e.name})})})},resetAddGhs(){this.addGhsPop=!1,this.location=0,this.addGhsName=""},confirmAddGhs(){if(1==this.$util.isEmpty(this.addGhsName))return this.$message({message:"请填写名称",type:"warning"}),!1;this.$confirm("确认添加?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$service.ghs.add({name:this.addGhsName,location:this.location}).then(t=>{this.resetAddGhs(),this.$notify({title:"成功",message:"充值成功",type:"success"}),this.app.refresh({type:this.tabIndex})})})},goDebtChange(t){let e={};e.ghsId=t.id,e.ghsName=t.name,this.$router.push({path:"/in/ghs-debt-record",query:e})},goClear(){this.$message({message:"开发中",type:"warning"})},modify(){this.$message({message:"开发中",type:"warning"})},newCg(){let t={};this.$router.push({path:"/in/add",query:t})},exportGhs(){this.$service.ghs.downloadGhs({name:this.searchContent}).then(t=>{t.file&&(window.location.href=t.file)})},addGhs(){this.addGhsPop=!0},billing(){let t={};this.$router.push({path:"/order/add",query:t})},goCg(t){let e={};e.ghsId=t.id,e.ghsName=t.name,this.$router.push({path:"/in/confirm",query:e})},handleClick(t,e){this.app.refresh({type:this.tabIndex})},detailShowFn(t){this.modalData=t,this.drapShow=!0},onLoad({ctx:t,app:e}){this.app=e,this.$route.query.type&&(this.tabIndex=this.$route.query.type),t.service(this.$service.ghs).set("table",{columns:[{prop:"id",label:"ID",align:"center",width:80},{prop:"avatar",label:"头像",align:"center",width:90},{prop:"name",label:"名称",align:"center",width:260},{prop:"debtAmount",label:"欠款",align:"center",width:100},{prop:"debtNum",label:"笔数",align:"center",width:90},{prop:"location",label:"类型",align:"center",width:90},{prop:"updateTime",label:"最近访问",align:"center",width:160},{prop:"addTime",label:"添加时间",align:"center",width:160}],op:{visible:!0,props:{width:640,align:"center",fixed:"right",label:"操作"},layout:["slot-column-option"]}}).set("dict",{search:{keyWord:"name"}}).set("search",{key:{placeholder:"这里搜索"}}).set("layout",[["slot-tabs"],["search-key","slot-add-ghs","flex1","slot-export-ghs"],["data-table"],["slot-total-debt-amount","flex1","pagination"]]).on("refresh",async(t,{next:e})=>{this.searchContent=t.name?t.name:"";let a=await e(t);this.totalDebtAmount=a.totalDebtAmount?a.totalDebtAmount:0}).done(),e.refresh({type:this.tabIndex})}}},c=r,u=(a("f86d"),a("1805")),d=Object(u["a"])(c,s,n,!1,null,"9aa028e0",null);e["default"]=d.exports},b344:function(t,e,a){"use strict";a.r(e);a("b138");var s=function(){var t=this,e=t._self._c;return e("el-drawer",{attrs:{title:"客户详情",visible:t.showStatus,size:"70%","before-close":t.closeFn,"custom-class":"member-draw-wrap"},on:{"update:visible":function(e){t.showStatus=e}}},[e("div",{staticClass:"head-wrap"},[e("div",{staticClass:"head-left"},[e("cl-avatar",{style:{margin:"auto"},attrs:{size:60,src:t.info.avatar}}),e("div",[t._v(t._s(t.info.userName))]),t.info.userAsset?e("div",[t._v(t._s(t.info.userAsset.growth))]):t._e()],1),e("div",{staticClass:"head-right"},[e("div",[e("div",{staticClass:"info-label"},[t._v("用户ID")]),e("div",{staticClass:"info-val"},[t._v(t._s(t.info.id))])]),e("div",[e("div",{staticClass:"info-label"},[t._v("手机号")]),e("div",{staticClass:"info-val"},[t._v(t._s(t.info.mobile||"-"))])]),e("div",[e("div",{staticClass:"info-label"},[t._v("昵称")]),e("div",{staticClass:"info-val"},[t._v(t._s(t.info.userName))])]),e("div",[e("div",{staticClass:"info-label"},[t._v("粉丝")]),e("div",{staticClass:"info-val"},[t._v(t._s(0==t.info.subscribe?"否":"是"))])]),e("div",[e("div",{staticClass:"info-label"},[t._v("性别")]),e("div",{staticClass:"info-val"},[1==t.info.sex?[t._v("男")]:2==t.info.sex?[t._v("女")]:[t._v("-")]],2)]),e("div",[e("div",{staticClass:"info-label"},[t._v("最近访问")]),e("div",{staticClass:"info-val"},[t._v(t._s(t.info.visitTimeFormat))])]),e("div",[e("div",{staticClass:"info-label"},[t._v("生日")]),e("div",{staticClass:"info-val"},["0000-00-00"==t.info.birthday?[t._v("-")]:[t._v(t._s(t.info.birthday))]],2)]),e("div",[e("div",{staticClass:"info-label"},[t._v("创建时间")]),e("div",{staticClass:"info-val"},[t._v(t._s(t.info.createTime))])]),e("div",[e("div",{staticClass:"info-label"},[t._v("住址")]),e("div",{staticClass:"info-val"},[t._v(t._s(t.info.address||"-"))])]),e("div",[e("div",{staticClass:"info-label"},[t._v("用户来源")]),e("div",{staticClass:"info-val"},[0==t.info.sourceType?[t._v("微信")]:1==t.info.sourceType?[t._v("支付宝")]:2==t.info.sourceType?[t._v("小程序")]:3==t.info.sourceType?[t._v("朋友圈")]:4==t.info.sourceType?[t._v("美团")]:5==t.info.sourceType?[t._v("系统")]:[t._v("-")]],2)])])]),e("div",{staticClass:"card-wrap"},[e("div",{staticClass:"card-tit"},[t._v("资产信息")]),e("el-table",{attrs:{data:t.assetsData}},[e("el-table-column",{attrs:{property:"totalExpend",label:"消费金额"}}),e("el-table-column",{attrs:{property:"totalBuyNum",label:"消费次数"}}),e("el-table-column",{attrs:{property:"balance",label:"余额"}}),e("el-table-column",{attrs:{property:"growth",label:"成长值"}}),e("el-table-column",{attrs:{property:"getCouponNum",label:"领优惠券数"}}),e("el-table-column",{attrs:{property:"totalRecharge",label:"累计充值"}}),e("el-table-column",{attrs:{property:"inviteNum",label:"邀请新人数"}}),e("el-table-column",{attrs:{property:"discount",label:"享折扣"}})],1)],1),e("div",{staticClass:"card-wrap"},[e("div",{staticClass:"card-tit"},[t._v("订单记录")]),e("el-table",{attrs:{data:t.orderData}},[e("el-table-column",{attrs:{property:"id",label:"ID"}}),e("el-table-column",{attrs:{property:"createTime",label:"提交时间"}}),e("el-table-column",{attrs:{property:"actPrice",label:"订单金额"}}),e("el-table-column",{attrs:{property:"payWay",label:"支付方式"}}),e("el-table-column",{attrs:{property:"sendNum",label:"编号"}}),e("el-table-column",{attrs:{property:"status",label:"订单状态"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(t._f("constantfilter")(a.row.status,"ORDER_STATUS")))])]}}])}),e("el-table-column",{attrs:{property:"discount",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.$router.push("/order/list")}}},[t._v("查看订单")])]}}])})],1)],1)])},n=[],i={name:"detail-draw",props:{show:{type:Boolean,default:!1},info:{type:Object,default:()=>{}}},data(){return{showStatus:!1,data:{},assetsData:[],orderData:[]}},watch:{show(t){this.showStatus=t,t&&this.init()}},methods:{init(){this.$service.member.allDetail({userId:this.info.id}).then(t=>{this.data=t,this.assetsData=[t.userAsset],this.orderData=t.orderList})},closeFn(t){this.$emit("update:show",!1),t()}}},o=i,l=(a("18ea"),a("4873"),a("1805")),r=Object(l["a"])(o,s,n,!1,null,"cfe3eb7a",null);e["default"]=r.exports},bd79:function(t,e,a){"use strict";a("4ffc")},da6a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABiBAMAAABZixs9AAAAKlBMVEVHcEz/KED/KEL/KUL/J0L/KEL//f3/5ef/o6r/ZnT/hI7/QVX/xcn/sbecenlCAAAABXRSTlMAIN+Qj+jKzykAAAJ1SURBVFjD7dbNbtNAEAfw6SvwDtx5BN4BVvgjvc464BxrF5qrEwm1RydVyzWRqNSjieCebVVxhYqivgvr9a5jh+KdubOnJNI/P8/sl+GZ+Pd4DU+Ng+cDkZdPRv4j/REUXGR2xEQCWYmvLGR2IuKsYiA1sUk4lRiiYFTiiJCMWCJWJRFxxFyWNCRUDTHHH/aXVx5khCtNnCvE0v30YhiJVXqZnSH+mo0FEQmVTILvExGQERFhIUYaoCN1oxZ6KW6oiJnuWaEp9Y6GmBWlZ+9nondJRUCaFZU3Exi+pyC3t6UI5Y2ZwKgtZQgJEfMM5W/zZTHeFH7k+gZlurKTg9mWNCeHb92ndUqbkzYRZ6RKOokoXY9JiE2Ep3kZ0pA6McpzxGndrhGhXYd63pc68WDapY78SDQxfarXSyzWsvJXEn82f14/zbxSxHbpAmoiwAtJbJcl9La6JLarJu7s1l2cUBBNRDhtdm5E2oxvdBWfEI9XvSN5sF2mCqmXft4NwXC7dBXn9xn6E227duePJ+GQ3Z71Jjqri5hwq8stKHsslQMJi9R3T9Ee4WbHwzCiL59lW/wmHXqqFpni1i2z5lABH4If2ttxIoYTFvnmAkuLgQ9x49RdcuBFxPTj1dW1wuNU+BJuTrAe8m409icscnH2+PhQii9bf2LvRaIgJHpvK0oQEj1EkhIdpDnyvIkOEiS0xA5prwegIuTE35cWUBF6Yu/SIiTaSyshJywSpeSEe5GQ9MTeCzeQEU6ijwAbATYCbATYCLARYCPARoCNABsBNgJsBNgIsBFgI8BGgI0AGwE2AmwE2AiwEWAjwEaAjQAbYScO/gANPL52EWXAdQAAAABJRU5ErkJggg=="},f86d:function(t,e,a){"use strict";a("9030")}}]);