|
|
webpackJsonp([3],{140:function(t,e,a){"use strict";var i=a(39),s=a.n(i),n=a(21),r=a.n(n),l=a(9),o=a.n(l),c=a(22),d=a.n(c),v=a(17),u=a.n(v),p=a(16),m=a(26),f=a.n(m),h=a(24),_=(a.n(h),new p.a);e.a={components:{},name:"SendRecordPage",data:function(){var t=this;this.$createElement;return{filter:{certName:"",mobile:"",uid:"",investName:"",validStatus:"",entryType:""},page:1,total:0,data:[],detail:{},investInfo:{},nowSelectedRow:{},isShowDetail:!1,isShowInvest:!1,columns:[{title:"UID",key:"uid",align:"center",width:100},{title:"商家类型",align:"center",render:function(t,e){return t("span",{},["","入驻卖家","超级入驻卖家","","普通卖家"][e.row.entryType])},width:90},{title:"商家名称",key:"certName",align:"center",width:100},{title:"手机号",align:"center",key:"mobile",width:120},{title:"身份证",align:"center",key:"certNo",width:140},{title:"上架SKUP",align:"center",key:"selfSkuNum",width:95},{title:"违规次数",key:"breakRuleTimes",width:90},{title:"账户余额",align:"center",render:function(t,e){var a=e.row;return t("span",{style:{color:parseInt(a.money,10)>999?"inherit":"red"}},a.money)},width:90},{title:"入驻时间",align:"center",render:function(t,e){var a=e.row;return t("span",[a.enterTime?u()(a.enterTime).format("YYYY-MM-DD"):"--"])},width:100},{title:"退出入驻时间",align:"center",render:function(t,e){var a=e.row;return t("span",[a.quitTime?u()(a.quitTime).format("YYYY-MM-DD"):"--"])},width:100},{title:"入驻状态",align:"center",key:"validStatusDesc"},{title:"招商人员",align:"center",key:"investName"},{title:"操作",align:"center",width:150,render:function(e,a){var i=a.row;return e("div",[e(h.Button,{attrs:{type:"primary",size:"small"},on:{click:function(){return t.onShowDetail(i)}},style:"display:none"},["查看"]),i.investName?e(h.Button,{attrs:{type:"primary",size:"small"},on:{click:function(){return t.onEditInvest(i)}}},["修改招商人"]):e(h.Button,{attrs:{type:"success",size:"small"},on:{click:function(){return t.onEditInvest(i)}}},["绑定招商人"])])}}]}},created:function(){var t=this;this.$nextTick(function(){var e=f.a.parse(location.search?location.search.slice(1):""),a=e.page,i=e.certName,s=e.investName,n=e.mobile,r=e.uid,l=e.validStatus;t.filter.certName=i?decodeURIComponent(i):t.filter.certName,t.filter.mobile=n||t.filter.mobile,t.filter.uid=r||t.filter.uid,t.filter.validStatus=l?parseInt(l):t.filter.validStatus,t.filter.investName=s?decodeURIComponent(s):t.filter.investName,t.page=a?parseInt(a):1,t.fetchData(t.filter,t.page)})},methods:{onFilter:function(){this.fetchData(this.filter)},onClear:function(){this.$refs.filterForm.resetFields(),this.fetchData(this.filter)},onPageChange:function(t){this.fetchData(this.filter,t)},fetchData:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return d()(r.a.mark(function i(){var s;return r.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e.page=a,e.$Loading.start(),i.next=4,_._get("/ufoPlatform/storedSeller/queryStoredSeller",o()({page:a},e.getParams(t)));case 4:s=i.sent,console.log(s),200===s.code?(e.total=s.data.total,e.data=s.data.list,e.$Loading.finish()):(s.message&&e.$Message.warning(s.message),e.$Loading.error());case 7:case"end":return i.stop()}},i,e)}))()},onShowDetail:function(t){var e=this;return d()(r.a.mark(function a(){var i;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(i=o()({},t),i.enterTime=t.enterTime?u()(t.enterTime).format("YYYY-MM-DD HH:mm:ss"):"--",i.quitTime=t.quitTime?u()(t.quitTime).format("YYYY-MM-DD HH:mm:ss"):"--",e.detail=o()({},i),i.idCardFrontUrl&&(e.detail.idCardFrontUrl=""),e.isShowDetail=!0,!i.idCardFrontUrl){a.next=10;break}return a.next=9,e.drawMask(i.idCardFrontUrl);case 9:e.detail.idCardFrontUrl=a.sent;case 10:case"end":return a.stop()}},a,e)}))()},drawMask:function(t){var e=this;return d()(r.a.mark(function a(){var i,n,l,o,c;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i=document.createElement("canvas"),n=document.createElement("canvas"),l=i.getContext("2d"),o=n.getContext("2d"),c=new Image,c.src=t,c.setAttribute("crossOrigin","anonymous"),a.abrupt("return",new s.a(function(a,s){c.onload=function(){var t=void 0;n.width=c.width,n.height=c.height,i.width=c.width,i.height=c.height,o.drawImage(c,0,0),t=o.getImageData(0,0,n.width,n.height);return e.createMosaic(o,n.width,n.height,12,t),l.drawImage(n,0,0),a(i.toDataURL("image/jpeg"))},c.onerror=function(){return a(t)}}));case 8:case"end":return a.stop()}},a,e)}))()},createMosaic:function(t,e,a,i,s){for(var n=0;n<a;n+=i)for(var r=0;r<e;r+=i){var l=s.data[4*(n*e+r)],o=s.data[4*(n*e+r)+1],c=s.data[4*(n*e+r)+2],d=s.data[4*(n*e+r)+3];t.fillStyle="rgba("+l+","+o+","+c+","+d+")",t.fillRect(r,n,r+i,n+i)}},onEditInvest:function(t){this.nowSelectedRow=t,this.isShowInvest=!0,this.investInfo={uid:t.uid,investName:t.investName||""}},submitInvist:function(){var t=this;this.investInfo.uid&&_._post("/ufoPlatform/storedSeller/saveInvestUser",this.investInfo).then(function(e){200===e.code?(t.closePopup(),t.fetchData(t.filter,t.page),t.$Modal.info({title:"提示",content:e.message})):(t.closePopup(),t.$Modal.info({title:"提示",content:"保存失败"}))})},closePopup:function(){this.detail={},this.investInfo={},this.isShowDetail=!1,this.isShowInvest=!1},getParams:function(t){return{certName:t.certName,mobile:t.mobile,uid:t.uid,investName:t.investName,validStatus:parseInt(t.validStatus)>=0?t.validStatus:void 0,entryType:parseInt(t.entryType)>=0?t.entryType:void 0}}}}},365:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(366),s=a(13);Object(s.a)(i.a)},366:function(t,e,a){"use strict";function i(t){r||a(367)}var s=a(140),n=a(368),r=!1,l=a(0),o=i,c=l(s.a,n.a,!1,o,null,null);c.options.__file="src/views/shop/index.vue",e.a=c.exports},367:function(t,e){},368:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("LayoutContent",{attrs:{breads:[{title:"店铺列表"}]}},[a("LayoutFilter",{on:{"on-filter":t.onFilter,"on-clear":t.onClear}},[a("Form",{ref:"filterForm",attrs:{inline:"",model:t.filter}},[a("FormItem",{attrs:{prop:"uid"}},[a("Input",{attrs:{placeholder:"输入uid"},model:{value:t.filter.uid,callback:function(e){t.$set(t.filter,"uid",e)},expression:"filter.uid"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"certName"}},[a("Input",{attrs:{placeholder:"商家名称"},model:{value:t.filter.certName,callback:function(e){t.$set(t.filter,"certName",e)},expression:"filter.certName"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"mobile"}},[a("Input",{attrs:{placeholder:"手机号"},model:{value:t.filter.mobile,callback:function(e){t.$set(t.filter,"mobile",e)},expression:"filter.mobile"}})],1),t._v(" "),a("FormItem",[a("Input",{attrs:{placeholder:"招商人"},model:{value:t.filter.investName,callback:function(e){t.$set(t.filter,"investName",e)},expression:"filter.investName"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"validStatus"}},[a("Select",{staticStyle:{width:"100px"},attrs:{placeholder:"选择状态"},model:{value:t.filter.validStatus,callback:function(e){t.$set(t.filter,"validStatus",e)},expression:"filter.validStatus"}},[a("Option",{attrs:{value:1}},[t._v("已入驻")]),t._v(" "),a("Option",{attrs:{value:9}},[t._v("已退驻")])],1)],1),t._v(" "),a("FormItem",{attrs:{prop:"entryType"}},[a("Select",{staticStyle:{width:"100px"},attrs:{placeholder:"商家类型"},model:{value:t.filter.entryType,callback:function(e){t.$set(t.filter,"entryType",e)},expression:"filter.entryType"}},[a("Option",{attrs:{value:1}},[t._v("入驻卖家")]),t._v(" "),a("Option",{attrs:{value:2}},[t._v("超级入驻卖家")]),t._v(" "),a("Option",{attrs:{value:4}},[t._v("普通卖家")])],1)],1)],1)],1),t._v(" "),a("LayoutTable",{attrs:{page:t.page,total:t.total,columns:t.columns,data:t.data},on:{"on-page-change":t.onPageChange}}),t._v(" "),a("div",{staticClass:"popup-detail-wrapper",class:{show:t.isShowDetail}},[a("Card",{staticClass:"popup-detail-container"},[a("p",{attrs:{slot:"title"},slot:"title"},[t._v("商家详情")]),t._v(" "),a("Button",{staticClass:"btn-close",attrs:{slot:"extra"},on:{click:t.closePopup},slot:"extra"},[t._v("X")]),t._v(" "),a("div",{staticClass:"pop-detail-content"},[a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("UID")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.uid||" "))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("商家类型")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(["","入驻卖家","超级入驻","","普通卖家"][t.detail.entryType]))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("商家名称")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.certName||"--"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("手机号")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.mobile||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("招商人员")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.investName||"--"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("违规次数")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.breakRuleTimes||"0"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("账户余额")]),t._v(" "),a("Col",{staticStyle:{color:"red"},attrs:{span:"8"}},[t._v(t._s(t.detail.money||"0.00"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("入驻状态")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.validStatusDesc||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("入驻时间")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.enterTime||"--"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("退出入驻时间")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.quitTime||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("身份证号")]),t._v(" "),a("Col",{attrs:{span:"20"}},[t._v(t._s(t.detail.certNo||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title no-border-right",staticStyle:{"min-height":"150px","line-height":"150px"},attrs:{span:"4"}},[t._v("身份证照片")]),t._v(" "),a("Col",{staticClass:"border-left",staticStyle:{"min-height":"150px"},attrs:{span:"20"}},[t.detail.idCardFrontUrl?a("img",{staticClass:"cert-image",attrs:{src:t.detail.idCardFrontUrl}}):t._e(),t._v(" "),t.detail.idCardBackUrl?a("img",{staticClass:"cert-image",attrs:{src:t.detail.idCardBackUrl}}):t._e()])],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"popup-invist-wrapper",class:{show:t.isShowInvest}},[a("Card",{staticClass:"popup-invist-container"},[a("p",{attrs:{slot:"title"},slot:"title"},[t._v("绑定招商人")]),t._v(" "),a("Button",{staticClass:"btn-close",attrs:{slot:"extra"},on:{click:t.closePopup},slot:"extra"},[t._v("X")]),t._v(" "),a("div",{staticClass:"popup-invist-content"},[a("Row",[a("Col",{staticClass:"invist-title",attrs:{span:"8"}},[t._v("招商人员")]),t._v(" "),a("Col",{attrs:{span:"16"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.investInfo.investName,expression:"investInfo.investName"}],staticStyle:{width:"80%"},attrs:{type:"text",placeholder:"请输入招商人"},domProps:{value:t.investInfo.investName},on:{input:function(e){e.target.composing||t.$set(t.investInfo,"investName",e.target.value)}}})])],1),t._v(" "),a("Row",[a("Col",{staticStyle:{"text-align":"center"},attrs:{span:"24"}},[a("Button",{attrs:{type:"success"},on:{click:t.submitInvist}},[t._v("保存")])],1)],1)],1)],1)],1)],1)},s=[];i._withStripped=!0;var n={render:i,staticRenderFns:s};e.a=n}},[365]); |