webpackjsonp([73],{bsts:function(e,t,r){var o=r("tyki");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);r("fiqi")("0bb754f4",o,!1,{sourcemap:!1})},rcf0:function(e,t,r){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var o=s(r("4yfn")),i=s(r("2zc1")),a=r("9rma");function s(e){return e&&e.__esmodule?e:{default:e}}t.default={layout:"project",data:function(){var e=this;return{isedit:1,refrecid:"",isselectpro:!1,wfcateid:"",userinfo:"",refnote:"",recid:"",isdisabled:!1,rectime:"",projectinfo:{projectid:"",rectime:"",dealername:"",logincode:"",projectname:"",projaddress:"",statename:"",addtime:"",createtime:"",invalidtime:"",createbyname:"",procdesc:""},rerecordlists:[],rules:{refrecid:[{validator:function(t,r,o){e.refrecid?o():o(new error("请选择备案工程!!"))}}]}}},mounted:function(){var e=this;this.wfcateid=i.default.local.get("wfcateid"),this.recid=this.$route.query.recid,this.isedit=this.$route.query.isedit,this.userinfo=i.default.local.get("userinfo"),this.$route.query.refrecid&&(this.isselectpro=!0),this.refrecid=number(this.$route.query.refrecid)||"",this.getlistcanrerecord().then(function(t){e.rerecordlists=t,e.refrecid&&(e.projectinfo=e.rerecordlists.find(function(t){return t.recid==e.refrecid}),e.rectime=e.projectinfo&&(e.projectinfo.rectime||e.projectinfo.oatime))}),this.recid&&this.getprojectcdetails({recid:this.recid}).then(function(t){1==e.isedit&&(e.refrecid=t.refrecid),e.refnote=t.note,e.projectinfo=t,e.rectime=t.rectime,e.projectinfo=t})},methods:(0,o.default)({},(0,a.mapactions)({getlistcanrerecord:"project/getlistcanrerecord",createprotectionc:"project/createprotectionc",updateprotectionc:"project/updateprotectionc",getprojectcdetails:"project/getprojectcdetails"}),{onsubmit:function(e){var t=this;this.isdisabled=!0,this.$refs[e].validate(function(e){if(e){var r={wfcateid:t.wfcateid,recid:t.recid||"",refrecid:t.projectinfo.recid,projectid:t.projectinfo.projectid,note:t.refnote};if(t.recid)return void t.updateprotectionc(r).then(function(e){t.isdisabled=!1,t.$router.push("/projects/continue")}).catch(function(e){t.isdisabled=!1,e&&t.$message.error(e||"创建失败!")});t.createprotectionc(r).then(function(e){t.$router.push("/projects/continue"),t.isdisabled=!1}).catch(function(e){e&&t.$message.error(e||"修改失败!"),t.isdisabled=!1})}else t.$message.error("请选择备案工程!"),t.isdisabled=!1})},canceledit:function(){var e=this;this.$msgbox({title:"提示",message:"确定取消?",showcancelbutton:!0,confirmbuttontext:"确定",cancelbuttontext:"取消",beforeclose:function(t,r,o){"confirm"===t?(e.$router.push({path:"/projects/continue"}),o()):o()}})},selectproject:function(e){var t=this;this.projectinfo=this.rerecordlists.find(function(e){return e.recid==t.refrecid}),this.rectime=this.projectinfo&&(this.projectinfo.rectime||this.projectinfo.oatime)}})}},tyki:function(e,t,r){var o=r("l4zz");(e.exports=r("utlt")(!1)).push([e.i,'.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(r("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}.projectconreg-wrap{height:100%;overflow:auto;padding:0 20px}",""])},vpso:function(e,t,r){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var o=r("rcf0"),i=r.n(o);for(var a in o)"default"!==a&&function(e){r.d(t,e,function(){return o[e]})}(a);var s=r("emho"),l=!1;var c=function(e){l||r("bsts")},d=r("x4nt")(i.a,s.a,!1,c,null,null);d.options.__file="pages/projects/projectconreg.vue",t.default=d.exports},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=="},emho:function(e,t,r){"use strict";var o=function(){var e=this,t=e.$createelement,r=e._self._c||t;return r("div",{staticclass:"projectconreg-wrap"},[r("div",{staticclass:"header"},[e._v("工程备案续备案")]),e.projectinfo&&e.projectinfo.procdesc&&e.recid?r("div",{staticclass:"progress-desc"},[e._v("注:"+e._s(e.projectinfo&&e.projectinfo.procdesc))]):e._e(),r("el-form",{ref:"form",attrs:{rules:e.rules,model:e.projectinfo,"label-width":"142px","label-position":"left"}},[1!=e.isedit||e.recid?e._e():r("el-form-item",{staticclass:"required",attrs:{label:"备案工程",prop:"refrecid"}},[r("el-select",{attrs:{disabled:!!e.recid||e.isselectpro,placeholder:"请选择工程"},on:{change:e.selectproject},model:{value:e.refrecid,callback:function(t){e.refrecid=t},expression:"refrecid"}},e._l(e.rerecordlists,function(e,t){return r("el-option",{key:t,attrs:{label:e.projectname,value:e.recid}})}))],1),0==e.isedit||e.recid?r("el-form-item",{staticclass:"required",attrs:{label:"备案名称"}},[r("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.projectname}})],1):e._e(),r("el-form-item",{staticclass:"required",attrs:{label:"工程备案编号"}},[r("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.projectid}})],1),3!=e.userinfo.usertype?r("el-form-item",{staticclass:"required",attrs:{label:"经销商"}},[r("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.dealername}})],1):e._e(),3!=e.userinfo.usertype?r("el-form-item",{staticclass:"required",attrs:{label:"经销商账号"}},[r("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.logincode}})],1):e._e(),r("el-form-item",{staticclass:"required",attrs:{label:"工程名称"}},[r("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.projectname}})],1),r("el-form-item",{staticclass:"required",attrs:{label:"工程所在地"}},[r("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.projaddress}})],1),r("el-form-item",{staticclass:"required",attrs:{label:"当前工程状态"}},[r("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.statename}})],1),r("el-form-item",{staticclass:"required",attrs:{label:"原备案时间"}},[r("el-col",{attrs:{span:24}},[r("el-date-picker",{staticstyle:{width:"100%"},attrs:{disabled:"",type:"date",placeholder:"选择日期",value:e.rectime}})],1)],1),r("el-form-item",{staticclass:"required",attrs:{label:"原失效时间"}},[r("el-col",{attrs:{span:24}},[r("el-date-picker",{staticstyle:{width:"100%"},attrs:{disabled:"",type:"date",placeholder:"选择日期",value:e.projectinfo&&e.projectinfo.invalidtime}})],1)],1),e.recid?r("el-form-item",{staticclass:"required",attrs:{label:"修改人"}},[r("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.createbyname}})],1):e._e(),e.recid?r("el-form-item",{staticclass:"required",attrs:{label:"修改时间"}},[r("el-col",{attrs:{span:24}},[r("el-date-picker",{staticstyle:{width:"100%"},attrs:{disabled:"",type:"date",placeholder:"选择日期",value:e.projectinfo&&e.projectinfo.createtime}})],1)],1):e._e(),r("el-form-item",{attrs:{label:"续备备注"}},[r("el-input",{attrs:{disabled:0==e.isedit,type:"textarea"},model:{value:e.refnote,callback:function(t){e.refnote=t},expression:"refnote"}})],1),r("el-form-item",{staticclass:"buttons"},[0!=e.isedit?r("el-button",{on:{click:e.canceledit}},[e._v("取消")]):e._e(),0!=e.isedit?r("el-button",{attrs:{type:"primary",disabled:e.isdisabled},on:{click:function(t){e.onsubmit("form")}}},[e._v("保存")]):e._e()],1)],1)],1)};o._withstripped=!0;var i={render:o,staticrenderfns:[]};t.a=i}});