webpackjsonp([72],{g4lx:function(e,t,i){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var o=r(i("4yfn")),a=(r(i("gcxn")),r(i("s/go")),i("9rma")),l=r(i("psvj"));function r(e){return e&&e.__esmodule?e:{default:e}}t.default={layout:"project",head:function(){return{title:"工程专卖店-首页"}},data:function(){return{areatype:"",brandid:"",keyword:"",timequatum:"",proshopstate:"",proshopstatelist:[{label:"全部",value:""},{label:"待审核",value:"0"},{label:"审核通过",value:"1"},{label:"申请拒绝",value:"3"},{label:"公示中",value:"5"},{label:"已删除",value:"9"}],pickeroptions:{shortcuts:[{text:"最近一周",onclick:function(e){var t=new date,i=new date;i.settime(i.gettime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近一个月",onclick:function(e){var t=new date,i=new date;i.settime(i.gettime()-2592e6),e.$emit("pick",[i,t])}},{text:"最近三个月",onclick:function(e){var t=new date,i=new date;i.settime(i.gettime()-7776e6),e.$emit("pick",[i,t])}}]},colorlist:["#08eac9","#39c51a","#faaf5b","#0d2ce0","#00a0ea","#db2417"],brandlists:[],pageno:1,pagesize:15,total:0,projectdata:[],loading:!1,dissentrow:null,dissentform:{dissentinfo:"",files:[]},uploadbaseurl:l.default.uploadbaseurl+"/apps",downloadbaseurl:l.default.downloadbaseurl+"/",rules:{dissentinfo:[{required:!0,message:"请填写异议详情",trigger:"blur"}]},dissentvisible:!1,infolists:[],infovisible:!1,imgviewvisible:!1,imgviewurl:""}},watch:{$route:function(e,t){this.pageno=1,this.loaddata()}},computed:(0,o.default)({},(0,a.mapgetters)({})),mounted:function(){this.loaddata()},methods:(0,o.default)({},(0,a.mapactions)({pagenotice:"project/pagenotice",adddissent:"project/adddissent",selectdissents:"project/selectdissents",selectbrands:"project/selectbrands"}),{handlepicturepreview:function(e){this.imgviewurl=this.downloadbaseurl+e.filepath,this.imgviewvisible=!0},handleremove:function(e,t){var i=e.response.returntargets[0].fileid;this.dissentform.files.splice(this.dissentform.files.findindex(function(e){return e.imageid===i}),1),console.log("this.dissentform.files",this.dissentform.files)},handlesuccess:function(e,t){this.imageurl=url.createobjecturl(t.raw);var i={imageid:t.response.returntargets[0].fileid,filepath:t.response.returntargets[0].filename};this.dissentform.files.push(i)},beforeupload:function(e){var t=e.name.substring(e.name.lastindexof(".")+1),i="jpg/jpeg/png",o=e.size/1024/1024<=15;return i.indexof(t)<0&&this.$message({message:"上传文件只能是 jpg、jpeg、png格式!",type:"warning"}),o||this.$message({message:"上传文件大小不能超过 5mb!",type:"warning"}),i.indexof(t)>=0&&o},proshopdissent:function(e){this.dissentrow=e,this.dissentvisible=!0},proshopdissentinfo:function(e){var t=this,i={noticeid:e.noticeid};this.selectdissents(i).then(function(e){console.log("res>>>",e),t.infolists=e,t.infovisible=!0}).catch(function(e){})},submitdissent:function(){var e=this;if(this.dissentform.dissentinfo){var t={noticeid:this.dissentrow.noticeid,proshopid:this.dissentrow.proshopid,dissentinfo:this.dissentform.dissentinfo,files:this.dissentform.files};this.adddissent(t).then(function(t){e.dissentvisible=!1,e.$message({type:"success",message:"提交成功!"})}).catch(function(e){})}else this.$message({type:"warning",message:"请填写异议详情!"})},handlechangebrand:function(e){this.brandlists=this.brandlists.map(function(t){return t.brandid==e.brandid&&(t.ischecked=!t.ischecked),t}),this.pageprotect(1)},handlechangeallbrand:function(e){this.brandlists=this.brandlists.map(function(t){return t.ischecked=e,t}),this.pageprotect(1)},handlechangetype:function(e){this.areatype=e,this.handlechangeallbrand(!1),this.pageprotect(1)},loaddata:function(){this.areatype=this.$route.query.type||"1",this.pageprotect(),this.getselectbrands()},getselectbrands:function(){var e=this;this.selectbrands({brandname:""}).then(function(t){var i=t||[];i.foreach(function(t,i){t.ischecked=!1,i<6&&e.colorlist.foreach(function(e,o){i==o&&(t.brandcolor=e)})}),e.brandlists=i})},pageprotect:function(e){var t=this;this.loading=!0;var i,o=[];this.brandlists.foreach(function(e){e.ischecked&&o.push(e.brandid)}),i=o.join(","),console.log(">>>>",this.timequatum);var a=null,l=null;this.timequatum[0]&&this.timequatum[1]&&(l=new date(this.timequatum[0]).gettime(),a=new date(this.timequatum[1]).gettime());var r={keyword:this.keyword,starttime:l,endtime:a,state:this.areatype,proshopstate:this.proshopstate,brandids:i,pageno:e||this.pageno||1,pagesize:this.pagesize};this.pagenotice(r).then(function(e){t.loading=!1,t.projectdata=e.list,t.total=number(e.total)}).catch(function(e){t.loading=!1})},currenchange:function(e){this.pageno=number(e),this.pageprotect()},search:function(){this.pageno=1,this.pageprotect(1)}}),components:{}}},gctb:function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createelement,i=e._self._c||t;return i("div",{staticclass:"public-signs-wrap",on:{click:function(t){e.isshowsale=!1}}},[i("div",{staticclass:"tablename"},[e._v("\n "+e._s(1==e.areatype?"新店公示区":"历史公示区")+"\n "),i("div",{staticclass:"return-back",on:{click:function(t){e.$router.back()}}},[e._v("返回")])]),i("div",{staticclass:"brand-list"},[e._l(e.brandlists,function(t,o){return i("div",{key:o,staticclass:"brand-item",style:t.ischecked?{background:t.brandcolor}:"",on:{click:function(i){e.handlechangebrand(t)}}},[i("div",[e._v(e._s(t.brandname))]),t.ischecked?i("img",{staticstyle:{height:"20px","margin-left":"3px"},attrs:{src:"/images/selected.png"}}):e._e()])}),i("div",{staticclass:"brand-item",staticstyle:{background:"#ffa200"},on:{click:function(t){e.handlechangeallbrand(!0)}}},[e._v("\n 全部门店\n ")])],2),i("el-form",{ref:"form",staticclass:"inquiry-form",attrs:{"label-width":"85px"}},[i("div",{on:{keyup:function(t){if(!("button"in t)&&13!==t.keycode)return null;e.pageprotect(1)}}},[i("el-form-item",{attrs:{label:"关键字","label-width":"65px"}},[i("el-input",{staticstyle:{width:"240px"},attrs:{placeholder:"部门,名称、经销商、地址,k号"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),i("el-form-item",{attrs:{label:"审核时间段"}},[i("el-date-picker",{staticstyle:{width:"320px"},attrs:{type:"datetimerange","picker-options":e.pickeroptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right",placeholder:"点击选择审核完成时间段"},model:{value:e.timequatum,callback:function(t){e.timequatum=t},expression:"timequatum"}})],1),i("el-select",{staticstyle:{width:"100px","margin-left":"10px","margin-top":"3px"},attrs:{placeholder:"请选择状态"},model:{value:e.proshopstate,callback:function(t){e.proshopstate=t},expression:"proshopstate"}},e._l(e.proshopstatelist,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.pageprotect(1)}}},[e._v("查询")]),0==e.areatype?i("el-button",{attrs:{type:"warning"},on:{click:function(t){e.handlechangetype(1)}}},[e._v("\n 新店公示区\n ")]):e._e(),1==e.areatype?i("el-button",{attrs:{type:"warning"},on:{click:function(t){e.handlechangetype(0)}}},[e._v("\n 历史公示区\n ")]):e._e()],1)]),i("div",{staticclass:"table-box",staticstyle:{top:"135px"}},[i("el-table",{directives:[{name:"loading",rawname:"v-loading.body",value:e.loading,expression:"loading",modifiers:{body:!0}}],staticstyle:{"min-width":"1600px"},attrs:{data:e.projectdata,border:""}},[i("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),i("el-table-column",{attrs:{prop:"brandname",label:"部门"}}),i("el-table-column",{attrs:{prop:"subbrand",label:"品牌名称"}}),i("el-table-column",{attrs:{prop:"provincename",label:"授权地区"}}),i("el-table-column",{attrs:{prop:"dealername",label:"经销商名称",width:"100"}}),i("el-table-column",{attrs:{prop:"dealercode",label:"k号"}}),i("el-table-column",{attrs:{prop:"proshopname",label:"门店名称"}}),i("el-table-column",{attrs:{prop:"address",label:"详细地址",width:"160"},scopedslots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(t.row.provincename)+e._s(t.row.cityname)+e._s(t.row.areaname)+e._s(t.row.address)+"\n ")])]}}])}),i("el-table-column",{attrs:{prop:"auditresultname",label:"审核结果"}}),i("el-table-column",{attrs:{prop:"auditdesc",label:"审核说明",width:"100"}}),i("el-table-column",{attrs:{prop:"starttime",label:"公示开始时间",width:"160"}}),i("el-table-column",{attrs:{prop:"endtime",label:"公示结束时间",width:"160"}}),i("el-table-column",{attrs:{prop:"audittime",label:"审核时间",width:"160"}}),i("el-table-column",{attrs:{label:"操作","class-name":"last-tr",width:"140"},scopedslots:e._u([{key:"default",fn:function(t){return[1==e.areatype?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){e.proshopdissent(t.row)}}},[e._v("\n 提交异议\n ")]):e._e(),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){e.proshopdissentinfo(t.row)}}},[e._v("\n 异议信息\n ")])]}}])})],1)],1),e.total>0?i("div",{staticclass:"custompage table-page"},[i("el-pagination",{attrs:{layout:"prev, pager, next","page-size":e.pagesize,"current-page":e.pageno,total:e.total},on:{"current-change":e.currenchange}})],1):e._e(),i("el-dialog",{staticclass:"dissent-dialog",attrs:{title:"提交异议",visible:e.dissentvisible},on:{"update:visible":function(t){e.dissentvisible=t}}},[i("el-form",{attrs:{model:e.dissentform,rules:e.rules,"label-position":"left"}},[i("el-form-item",{attrs:{label:"异议详情","label-width":"100px"}},[i("el-input",{model:{value:e.dissentform.dissentinfo,callback:function(t){e.$set(e.dissentform,"dissentinfo",t)},expression:"dissentform.dissentinfo"}})],1),i("el-form-item",{attrs:{label:"上传图片","label-width":"100px"}},[i("el-upload",{attrs:{action:e.uploadbaseurl,"list-type":"picture-card","on-remove":e.handleremove,"on-success":e.handlesuccess,"before-upload":e.beforeupload}},[i("i",{staticclass:"el-icon-plus"})])],1)],1),i("div",{staticclass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dissentvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submitdissent}},[e._v("提 交")])],1)],1),i("el-dialog",{staticclass:"dissent-dialog",attrs:{title:"异议信息列表",visible:e.infovisible},on:{"update:visible":function(t){e.infovisible=t}}},[i("el-table",{staticclass:"dissent-table",staticstyle:{width:"100%"},attrs:{data:e.infolists}},[i("el-table-column",{attrs:{prop:"deptname",label:"异议部门"}}),i("el-table-column",{attrs:{prop:"createbyname",label:"提议人"}}),i("el-table-column",{attrs:{prop:"dissentinfo",label:"异议详情"}}),i("el-table-column",{attrs:{prop:"files",label:"图片"},scopedslots:e._u([{key:"default",fn:function(t){return e._l(t.row.files,function(t,o){return i("div",{key:o},[i("img",{staticstyle:{height:"50px"},attrs:{src:e.downloadbaseurl+t.filepath,alt:""},on:{click:function(i){e.handlepicturepreview(t)}}})])})}}])}),i("el-table-column",{attrs:{prop:"createtime",label:"提议时间",width:"160"}})],1),i("div",{staticclass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})],1),i("el-dialog",{attrs:{visible:e.imgviewvisible,fullscreen:"","append-to-body":""},on:{"update:visible":function(t){e.imgviewvisible=t}}},[i("img",{attrs:{width:"100%",src:e.imgviewurl,alt:""}})])],1)};o._withstripped=!0;var a={render:o,staticrenderfns:[]};t.a=a},hk0i:function(e,t,i){var o=i("l4zz");(e.exports=i("utlt")(!1)).push([e.i,'.projects{width:100%}.projects .tablename{padding:14px 0;text-align:center;font-size:24px;color:#4a4a4a}.projects .inquiry-form.el-form{display:inline-block}.projects .inquiry-form.el-form .el-button{padding:0;margin-left:15px;height:32px;width:76px;font-size:13px}.projects .inquiry-form.el-form .el-form-item{display:inline-block}.projects .inquiry-form.el-form .el-form-item__label{color:#4a4a4a;font-size:13px}.projects .inquiry-form.el-form .el-input__inner{height:30px;background:#f7f7f7;border:1px solid #e1e1e1;border-radius:2px}.projects .table-box{position:absolute;top:110px;bottom:50px;left:10px;right:10px;overflow-x:auto}.projects .table-box .el-table{height:100%;max-width:1566px;position:relative;font-size:13px}.projects .table-box .el-table .el-table__header-wrapper{background:#eef1f6}.projects .table-box .el-table .el-table__body-wrapper{position:absolute;top:40px;bottom:0;left:0;right:0;overflow-x:hidden}.projects .table-page{position:absolute;bottom:0;right:0}.projects .table-page .el-pagination{padding:10px}.projects .el-table td,.projects .el-table th{text-align:center}.projects .el-table button{width:auto}.projects .el-table .cell,.projects .el-table th>div{padding:0 5px!important}.projects .el-table .last-tr .cell{padding-right:20px!important}.el-select-dropdown{max-width:800px;left:404px}.projects .progress-desc{color:#e60012;font-size:16px;margin-bottom:8px}.projects .el-form-item.is-required .el-form-item__label:before{display:none}.projects .el-form-item.is-required .el-form-item__label:after,.projects .required .el-form-item__label:after{content:"*";color:#ff4949;margin-right:4px}.projects .sm-disabled{background-color:#eef1f6!important;border-color:#d1dbe5!important;color:#bbb;cursor:not-allowed!important}.projects .tips{text-align:right;color:#e60012;margin-bottom:20px}.projects .header{padding:29px 0;font-size:36px;text-align:center;color:#4a4a4a}.projects .area .el-select{width:190px}.projects .area .el-select+label{font-size:16px;padding:0 20px}.projects .el-select{width:100%}.projects .el-input__inner,.projects .el-textarea__inner,.projects .sim-input{height:36px;border-radius:4px;background:#f7f7f7;border:1px solid #e1e1e1;resize:none}.projects .sim-input{padding:0 10px;cursor:pointer}.projects .w-5{display:inline-block;width:48%}.projects .w-4{display:inline-block;width:22%}.projects .w-3{display:inline-block;width:31%}.projects .w-5.m-left{margin-left:4%}.projects .w-3.m-left{margin-left:3.5%}.projects .w-4.m-left{margin-left:4%}.projects .form-sub-item{width:48%;padding-left:16px;display:inline-block}.projects .form-sub-item .el-form-item__label{width:120px!important}.projects .form-sub-item .el-form-item__content{margin-left:0!important;display:inline-block}.projects .el-form-item{vertical-align:top}.projects .el-form-item__label{font-size:16px;color:#000}.projects .buttons{text-align:right}.projects .buttons .el-button{width:138px!important;height:40px!important}.projects .title-box{padding:7px 0;margin-bottom:20px;border-bottom:1px solid #77a9fd}.projects .title-box .title{color:#77a9fd;font-size:18px}.projects .title-box .tips{color:#e60012}.projects .promisebox{padding:0 20px;margin-bottom:26px;background:#fefef6;border:1px solid #e1dfd1;border-radius:2px}.projects .promisebox .pheader{padding:16px 0;text-align:center;font-size:16px;color:red;font-weight:700}.projects .upload-demo{margin-bottom:40px}.projects .upload-demo .el-button{width:148px!important;height:36px!important;margin-left:142px;border:1px solid #77a9fd;border-radius:4px;background:#fff;color:#77a9fd;font-size:16px;background:url('+o(i("widd"))+") no-repeat;background-position:20px}.projects .upload-demo .el-upload__tip{margin-left:15px;color:#d0021b;font-size:14px}.projects .fieldset{margin-top:30px;padding:25px;border:1px solid #dfdfdf;position:relative}.projects .fieldset .el-form-item__content{margin-left:0!important}.projects .fieldset .el-upload-btn .el-upload{width:90px;height:60px;line-height:60px;border:1px solid #77a9fd;border-radius:4px;font-size:16px;color:#77a9fd;text-align:center}.projects .fieldset .el-upload-btn .el-upload-list__item{width:90px;height:60px}.projects .fieldset .el-form-item__label{position:absolute;top:-19px;left:25px;background:#fff;width:125px!important;padding:11px 0 10px 11px}.projects .fieldset.fieldset-big .el-form-item__label{width:380px!important}.projects .el-form-item__error{padding-left:20px;background-position:2px 5px}.el-picker-panel__body button{width:auto!important;height:auto!important}.el-picker-panel .el-date-table__row td{line-height:32px}.return-back{float:right;font-size:16px;width:60px;height:30px;line-height:30px;background:#0d2ce0;color:#fff;border-radius:5px;cursor:pointer}.dissent-dialog .dissent-table{max-height:300px;overflow-y:auto}.dissent-dialog .el-dialog__headerbtn{text-align:right}.dissent-dialog .el-input__inner{width:100%!important}.dissent-dialog .dialog-footer .el-button{padding:0}.el-date-editor .el-input__inner{width:100%!important}.public-signs-wrap{padding:0 10px;min-height:320px}.public-signs-wrap .cell-inner{display:block;word-break:break-all}.public-signs-wrap .last-note{padding-right:20px!important}.public-signs-wrap .brand-list{margin-bottom:10px}.public-signs-wrap .brand-list,.public-signs-wrap .brand-list .brand-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.public-signs-wrap .brand-list .brand-item{width:100px;height:30px;background:#c8c8c8;margin-right:10px;border-radius:20px;cursor:pointer;color:#fff;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.public-signs-wrap .departbox{position:absolute;z-index:999999;top:40px;left:0;right:1px;background:#fff;border:1px solid #ddd;max-height:180px;overflow:auto;overflow-x:hidden}.public-signs-wrap .departbox>li{font-size:14px;padding:8px 10px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#48576a;height:36px;line-height:1.5;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.public-signs-wrap .departbox>li:hover{background:#e4e8f1}.public-signs-wrap .fade-enter-active,.public-signs-wrap .fade-leave-active{-webkit-transition:.5s;transition:.5s;height:auto;overflow-y:hidden;opacity:1}.public-signs-wrap .fade-enter,.public-signs-wrap .fade-leave-to{height:0;overflow-y:hidden;opacity:0;-webkit-transition:.5s;transition:.5s}",""])},widd:function(e,t){e.exports="data:image/png;base64,ivborw0kggoaaaansuheugaaabiaaaascayaaaehyb7baaaabgdbtueaalgpc/xhbqaaaxhjrefuobf9ve1ivfeu/u6d54yjpllap/2gfkxjmarubcgffi1abflrppxrqigzs+kh642/knqiowjrzykjilagaamqfbhmc/ipc0cdocrts0edee927n0+30trhzk795zvfoec79w7wf9ld89kg1coxl66an2y5aiff8jyatddceliq349pauppwrt6rodlyd1g4kogoqyi+wc2osf+g07sn00x6fgudnmq3xbejog12ixczjrfghg5glxdqjnbgrooam6msiplqntajpgtyawe0czt6ljsx+x6x4x1dyebfpnjdmzqjmz+ln2yggudvy8tkhswf+ujzaxb6tlafnxihgufl834oszmsoigdlpzwmbmzfigdftiiwzh+d2d0qzm06enkubsufkalwudyhhjilwelrxczy1osg4jjr8ik12uhu/ffwrxdsczvmuixedbcz6l0k33onpp6iadcss+xccwtkfojb4zwykgf1gvbbc9mauxagp7qdoltkdycijlh0qqxdmfwlcjsmkvgg68vycnjisaqmp17euq6fup9wmjinswkmdlcb76cyz9apjsi0s0d603xhbhtpxllimklgeokyaeytwfu+ea/q3mi7x2zsht8gmu3pmt/rfi/m8dx+c9p2kaskufx74p5ee2qbyfdrpnjwoq11w1ofwuz5aznyj+py5rt7jchljq+ewdwcykdoxknyjle8mifod2utwudkpjo5tlvhu7pr+z0uti2uqwoqlcgka5xdq972hwbiaxytqkupb5bgymeet3sobkiksprndksruragbc0gstopzq1rbbpvsuqxyqd+b159ptmjy4oaakdiigvwkiuvuahrdwc2ukyql9fjbliwq8liciije8ujlnxpy75r0ekkymsidr2gs1yvkif/yqa8ou+0+eifaljbfvzvqialvgcyeq8utqd94sjklyun9wzsmctvqjhygafbq/w1efqarlcxuppkrjbkhnkwpjdwdn7cs+f44gjfisbredldqwtqwumaa7vh6perosatvtp25oddk/tedpi1au8ccraaaaabjru5erkjggg=="},"ru/y":function(e,t,i){var o=i("hk0i");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i("fiqi")("07ee3f02",o,!1,{sourcemap:!1})},"u/4n":function(e,t,i){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var o=i("g4lx"),a=i.n(o);for(var l in o)"default"!==l&&function(e){i.d(t,e,function(){return o[e]})}(l);var r=i("gctb"),s=!1;var n=function(e){s||i("ru/y")},p=i("x4nt")(a.a,r.a,!1,n,null,null);p.options.__file="pages/projects/publicsigns.vue",t.default=p.exports}});