webpackjsonp([71],{"5if5":function(e,t,i){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var o=r(i("4yfn")),a=r(i("a3yh")),s=(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(){var e;return e={keyword:"",saledeptname:"",dealername:"",hasdissent:"",areatype:"1",brandid:""},(0,a.default)(e,"keyword",""),(0,a.default)(e,"timequatum",""),(0,a.default)(e,"proshopstate",""),(0,a.default)(e,"proshopstatelist",[{label:"全部",value:""},{label:"待审核",value:"0"},{label:"审核通过",value:"1"},{label:"申请拒绝",value:"3"},{label:"公示中",value:"5"},{label:"已删除",value:"9"}]),(0,a.default)(e,"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])}}]}),(0,a.default)(e,"colorlist",["#08eac9","#39c51a","#faaf5b","#0d2ce0","#00a0ea","#db2417"]),(0,a.default)(e,"pageno",1),(0,a.default)(e,"pagesize",15),(0,a.default)(e,"total",0),(0,a.default)(e,"projectdata",[]),(0,a.default)(e,"loading",!1),(0,a.default)(e,"dissentrow",null),(0,a.default)(e,"dissentform",{dissentinfo:"",files:[]}),(0,a.default)(e,"uploadbaseurl",l.default.uploadbaseurl+"/apps"),(0,a.default)(e,"downloadbaseurl",l.default.downloadbaseurl+"/"),(0,a.default)(e,"rules",{dissentinfo:[{required:!0,message:"请填写异议详情",trigger:"blur"}]}),(0,a.default)(e,"dissentvisible",!1),(0,a.default)(e,"infolists",[]),(0,a.default)(e,"infovisible",!1),(0,a.default)(e,"imgviewvisible",!1),(0,a.default)(e,"imgviewurl",""),(0,a.default)(e,"state",""),(0,a.default)(e,"statelists",[]),e},watch:{$route:function(e,t){this.pageno=1,this.loaddata()}},computed:(0,o.default)({},(0,s.mapgetters)({})),mounted:function(){this.loaddata()},methods:(0,o.default)({},(0,s.mapactions)({pagenotice:"project/getpageprojectpurchasepublicity",adddissent:"project/createpurchasedissents",selectdissents:"project/listpurchasedissents",selectbrands:"project/selectbrands",getconstvalue:"projectcom/getconstvalue"}),{transformresult:function(e){return-1!==e.indexof(this.keyword)?e.replace(this.keyword,''+this.keyword+""):e},formatproductname:function(e){var t=e&&e.productname;return t?string(t).split(",").map(function(e){return"
"+e+"
"}).join(""):""},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){console.log("proshopdissent item:",e),this.dissentrow=e,this.dissentvisible=!0,console.log("proshopdissent dissentvisible:",!0)},proshopdissentinfo:function(e){var t=this,i={noticeid:e.noticeid};console.log("item:",e),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:"请填写异议详情!"})},handlechangetype:function(e){this.areatype=e,this.pageprotect(1)},loaddata:function(){var e=this;this.areatype=this.$route.query.type||"1",this.pageprotect(),this.getconstvalue({constcode:"recprojstate"}).then(function(t){e.statelists=t})},pageprotect:function(e){var t=this;this.loading=!0;var i={keyword:this.keyword&&this.keyword.trim(),dealername:this.dealername&&this.dealername.trim(),saledeptname:this.saledeptname&&this.saledeptname.trim(),projectclass:2,hasdissent:this.hasdissent,pageno:e||this.pageno||1,pagesize:this.pagesize,state:this.state,dealerids:1==this.projecttype?this.dealerids:""};this.pagenotice(i).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()},handlereset:function(){this.keyword="",this.saledeptname="",this.hasdissent="",this.pageno=1,this.state="",this.pageprotect(1)}}),components:{}}},egko:function(e,t,i){var o=i("e4+n");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i("fiqi")("296160fe",o,!1,{sourcemap:!1})},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=="},"e4+n":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-info-success-badge .el-badge__content{background-color:unset!important}.dissent-info-fail-badge .el-badge__content{background-color:red}.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}",""])},"p+ia":function(e,t,i){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var o=i("5if5"),a=i.n(o);for(var s in o)"default"!==s&&function(e){i.d(t,e,function(){return o[e]})}(s);var l=i("uqri"),r=!1;var n=function(e){r||i("egko")},p=i("x4nt")(a.a,l.a,!1,n,null,null);p.options.__file="pages/projects/purchase/projectpublicity.vue",t.default=p.exports},uqri: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 战略集采备案-公示区\n "),i("div",{staticclass:"return-back",on:{click:function(t){e.$router.back()}}},[e._v("返回")])]),i("el-form",{ref:"form",staticclass:"inquiry-form",attrs:{"label-width":"70px"}},[i("div",{on:{keyup:function(t){if(!("button"in t)&&13!==t.keycode)return null;e.pageprotect(1)}}},[i("el-form-item",{attrs:{label:"关键字"}},[i("el-input",{staticstyle:{width:"120px"},attrs:{placeholder:"模糊查询"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),i("el-form-item",{attrs:{label:"科室名称"}},[i("el-input",{staticstyle:{width:"120px"},attrs:{placeholder:"模糊查询"},model:{value:e.saledeptname,callback:function(t){e.saledeptname=t},expression:"saledeptname"}})],1),i("el-form-item",{attrs:{label:"异议选择"}},[i("el-select",{staticstyle:{width:"120px"},attrs:{placeholder:"请选择"},model:{value:e.hasdissent,callback:function(t){e.hasdissent=t},expression:"hasdissent"}},[i("el-option",{attrs:{label:"全部",value:""}}),i("el-option",{attrs:{label:"有异议",value:1}}),i("el-option",{attrs:{label:"无异议",value:0}})],1)],1),i("el-form-item",{attrs:{label:"备案状态"}},[i("el-select",{staticclass:"custom-select",staticstyle:{width:"120px"},model:{value:e.state,callback:function(t){e.state=t},expression:"state"}},e._l(e.statelists,function(e,t){return i("el-option",{key:t,attrs:{label:e.constdesc,value:e.constvalue}})}))],1),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.pageprotect(1)}}},[e._v("查询")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handlereset}},[e._v("重置")])],1)]),i("div",{staticclass:"table-box",staticstyle:{top:"105px"}},[i("el-table",{directives:[{name:"loading",rawname:"v-loading.body",value:e.loading,expression:"loading",modifiers:{body:!0}}],staticclass:"el-table-column-left",staticstyle:{"min-width":"1900px"},attrs:{data:e.projectdata,border:""}},[i("el-table-column",{attrs:{prop:"projectid",label:"工程编号",width:"120"}}),i("el-table-column",{attrs:{prop:"custname",label:"客户名称"},scopedslots:e._u([{key:"default",fn:function(t){return[i("div",{domprops:{innerhtml:e._s(e.transformresult(t.row.custname))}})]}}])}),i("el-table-column",{attrs:{prop:"custcompanyaddress",label:"客户公司地址",width:"220"}}),i("el-table-column",{attrs:{prop:"deptmanname",label:"业务经理",width:"100"}}),i("el-table-column",{attrs:{prop:"saledeptname",label:"备案科室",width:"120"}}),i("el-table-column",{attrs:{prop:"statename",label:"备案状态",width:"70"}}),i("el-table-column",{attrs:{prop:"createtime",label:"备案时间"}}),i("el-table-column",{attrs:{prop:"productname",label:"产品",align:"left",width:"280"},scopedslots:e._u([{key:"default",fn:function(t){return[i("div",{staticstyle:{"text-align":"left"},domprops:{innerhtml:e._s(e.formatproductname(t.row))}})]}}])}),i("el-table-column",{attrs:{prop:"contractstarttime",label:"合同开始时间",width:"160"}}),i("el-table-column",{attrs:{prop:"contractendtime",label:"合同结束时间",width:"160"}}),i("el-table-column",{attrs:{prop:"notecontent",label:"备注",width:"120"}}),i("el-table-column",{attrs:{prop:"stmnote",label:"市场部备注",width:"120"}}),i("el-table-column",{attrs:{label:"操作","class-name":"last-tr",width:"140"},scopedslots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){e.proshopdissent(t.row)}}},[e._v("\n 提交异议\n ")]),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){e.proshopdissentinfo(t.row)}}},[i("el-badge",{class:"1"===string(t.row.hasdissent)?"dissent-info-fail-badge":"dissent-info-success-badge",attrs:{"is-dot":!0}},[e._v("\n 异议信息\n ")])],1)]}}])})],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}});