webpackjsonp([68],{"/ide":function(e,t,o){var r=o("l4zz");(e.exports=o("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('+r(o("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}.withdrawalback-wrap{height:100%;overflow:auto;padding:0 20px}.withdrawalback-wrap .label-tip{font-size:16px}.withdrawalback-wrap .label-tip .tips{display:inline-block;margin-bottom:0;font-size:14px}",""])},"p+q+":function(e,t,o){"use strict";var r=function(){var e=this,t=e.$createelement,o=e._self._c||t;return o("div",{staticclass:"withdrawalback-wrap"},[o("div",{staticclass:"header"},[e._v("退备案保证金")]),e.projectinfo&&e.projectinfo.procdesc&&e.recid?o("div",{staticclass:"progress-desc"},[e._v("注:"+e._s(e.projectinfo&&e.projectinfo.procdesc))]):e._e(),o("div",{staticclass:"tips"},[e._v("填写说明:带*为必填项")]),o("el-form",{ref:"form",attrs:{rules:e.rules,form:e.projectcommit,model:e.projectcommit,"label-width":"142px","label-position":"left"}},[1!=e.isedit||e.recid?e._e():o("el-form-item",{staticclass:"required",attrs:{label:"备案名称",prop:"refrecid"}},[o("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.projectlist,function(e,t){return o("el-option",{key:t,attrs:{label:e.projectname,value:e.recid}})}))],1),0==e.isedit||e.recid?o("el-form-item",{staticclass:"required",attrs:{label:"备案名称"}},[o("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.projectname}})],1):e._e(),3!=e.usertype?o("el-form-item",{staticclass:"required",attrs:{label:"经销商"}},[o("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.dealername}})],1):e._e(),3!=e.usertype?o("el-form-item",{staticclass:"required",attrs:{label:"经销商账号"}},[o("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.logincode}})],1):e._e(),3!=e.usertype?o("el-form-item",{staticclass:"required",attrs:{label:"销售管理部门"}},[o("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.saledeptname||"暂无"}})],1):e._e(),3!=e.usertype?o("el-form-item",{staticclass:"required",attrs:{label:"片区经理"}},[o("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.deptmanname||"暂无"}})],1):e._e(),o("el-form-item",{staticclass:"required",attrs:{label:"当前备案状态"}},[o("el-input",{attrs:{disabled:"",value:e.projectinfo&&e.projectinfo.statename}})],1),o("el-form-item",{staticclass:"required",attrs:{label:"原备案时间"}},[o("el-col",{attrs:{span:24}},[o("el-date-picker",{staticstyle:{width:"100%"},attrs:{disabled:"",type:"date",placeholder:"选择日期",value:e.projectinfo&&e.projectinfo.rectime}})],1)],1),o("el-form-item",{staticclass:"required",attrs:{label:"新备案状态",prop:"newprojstate"}},[o("el-select",{attrs:{disabled:0==e.isedit,placeholder:"请选择新备案状态"},model:{value:e.projectcommit.newprojstate,callback:function(t){e.$set(e.projectcommit,"newprojstate",t)},expression:"projectcommit.newprojstate"}},e._l(e.projectstatelists,function(e,t){return o("el-option",{key:t,attrs:{label:e.constdesc,value:e.constvalue}})}))],1),0==e.isedit?o("el-form-item",{attrs:{label:"财务退款凭证号",prop:"financialcert"}},[o("el-input",{attrs:{disabled:0==e.isedit},model:{value:e.projectcommit.financialcert,callback:function(t){e.$set(e.projectcommit,"financialcert",t)},expression:"projectcommit.financialcert"}})],1):e._e(),o("el-form-item",{attrs:{label:"备注"}},[o("el-input",{attrs:{disabled:0==e.isedit,type:"textarea"},model:{value:e.projectcommit.note,callback:function(t){e.$set(e.projectcommit,"note",t)},expression:"projectcommit.note"}})],1),o("div",{staticclass:"label-tip"},[e._v("已签合同请上传合同照片\n\t \t\t"),o("div",{staticclass:"tips"},[e._v("(单张照片大小 5m 以内,支持格式: jpg、jpeg、png)")])]),o("el-form-item",{staticclass:"fieldset fieldset-big",attrs:{label:""}},[o("el-upload",{staticclass:"el-upload-btn",attrs:{action:e.uploadbaseurlimg,accept:".jpg,.png,.jpeg","list-type":"picture-card","file-list":e.baseurlimgs,"on-success":e.proimguploadsuccess,beforeupload:e.beforeimgupload,"on-preview":e.handlepicturecardpreview,"on-remove":e.handleremove,disabled:0==e.isedit}},[o("span",{staticclass:"upload-text"},[e._v("上传照片")])]),o("el-dialog",{attrs:{size:"tiny"},model:{value:e.dialogvisible,callback:function(t){e.dialogvisible=t},expression:"dialogvisible"}},[o("img",{attrs:{width:"100%",src:e.dialogimageurl,alt:""}})])],1),o("el-form-item",{staticclass:"buttons"},[0!=e.isedit?o("el-button",{on:{click:e.canceledit}},[e._v("取消")]):e._e(),0!=e.isedit?o("el-button",{attrs:{type:"primary",disabled:e.isdisabled},on:{click:function(t){e.onsubmit("form")}}},[e._v("保存")]):e._e(),0!=e.isedit&&e.recid?o("el-button",{attrs:{type:"primary",disabled:e.isdisabled},on:{click:function(t){e.submitcash(e.recid)}}},[e._v("提交")]):e._e()],1)],1)],1)};r._withstripped=!0;var i={render:r,staticrenderfns:[]};t.a=i},ttbd:function(e,t,o){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var r=c(o("4yfn")),i=c(o("zlee")),a=o("9rma"),s=c(o("psvj")),l=c(o("2zc1"));function c(e){return e&&e.__esmodule?e:{default:e}}t.default={layout:"project",data:function(){var e=this;return{usertype:"",recid:"",refrecid:"",isselectpro:!1,isedit:1,isdisabled:!1,uploadbaseurlimg:s.default.uploadbaseurl+"/apps",baseurlimgs:[],dialogimageurl:"",dialogvisible:!1,projectlist:[],projectstatelists:[{constdesc:"流标",constvalue:"3"},{constdesc:"已签",constvalue:"4"},{constdesc:"竞标已签",constvalue:"6"},{constdesc:"取消",constvalue:"7"}],projectcommit:{wfcateid:"",newprojstate:"",financialcert:"",note:"",refundattach:[],projectid:"",rectime:""},projectinfo:{createtime:"",dealername:"",logincode:"",statename:"",procdesc:""},rules:{refrecid:[{validator:function(t,o,r){e.refrecid?r():r(new error("请选择备案工程!!"))}}],newprojstate:[{required:!0,message:"请选择改后工程状态!"}]}}},mounted:function(){var e=this;this.usertype=l.default.local.get("userinfo").usertype,this.recid=this.$route.query.recid,this.$route.query.projectid&&(this.isselectpro=!0),this.refrecid=this.$route.query.projectid?number(this.$route.query.projectid):"",this.isedit=this.$route.query.isedit,this.getlistcanrerecord().then(function(t){e.projectlist=t,e.refrecid&&(e.projectinfo=e.projectlist.find(function(t){return t.recid==e.refrecid}))}),this.recid&&this.getcashbyrecid({recid:this.recid}).then(function(t){e.projectinfo=t,1==e.isedit&&(e.refrecid=t.refrecid),(0,i.default)(e.projectcommit).foreach(function(o,r){(0,i.default)(t).foreach(function(r){o==r&&(e.projectcommit[o]=t[r],"newprojstate"==o&&(e.projectcommit[o]=t[r].tostring()))})}),e.projectcommit.refundattach.foreach(function(t){t.url=s.default.imgbaseurl+"/"+t.fileurl,e.baseurlimgs.push(t)})})},methods:(0,r.default)({},(0,a.mapactions)({createcashdep:"cashdeposit/createcashdep",getlistcanrerecord:"cashdeposit/getlistcanrerecord",getconstvalue:"projectcom/getconstvalue",getcashbyrecid:"cashdeposit/getcashbyrecid",updatecashdep:"cashdeposit/updatecashdep",cashcommit:"cashdeposit/cashcommit"}),{beforeimgupload:function(e){var t=e.name.substring(e.name.lastindexof(".")+1),o="jpg/jpeg/png",r=e.size/1024/1024<=5;return o.indexof(t)<0&&this.$message({message:"上传文件只能是 jpg、jpeg、png格式!",type:"warning"}),r||this.$message({message:"上传文件大小不能超过 5mb!",type:"warning"}),o.indexof(t)>=0&&r},onsubmit:function(e){var t=this;this.isdisabled=!0,this.$refs[e].validate(function(e){if(e){if(t.projectcommit.projectid=t.projectinfo.projectid,t.projectcommit.currprojstate=t.projectinfo.state,t.projectcommit.rectime=t.projectinfo.createtime,t.projectcommit.refrecid=t.refrecid,t.projectcommit.rectime=new date(t.projectcommit.rectime).gettime(),t.recid)return t.projectcommit.recid=t.recid,void t.updatecashdep(t.projectcommit).then(function(e){t.isdisabled=!1,t.$router.push("/projects/cashdeposit")}).catch(function(e){t.isdisabled=!1,e&&t.$message.error(e||"修改失败!")});t.createcashdep(t.projectcommit).then(function(e){t.isdisabled=!1,t.$router.push("/projects/cashdeposit")}).catch(function(e){t.isdisabled=!1,e&&t.$message.error(e||"创建失败!")})}else t.$message.error("信息未完善,请先完善信息!"),t.isdisabled=!1})},proimguploadsuccess:function(e){var t=this;e.returntargets&&e.returntargets.length&&e.returntargets.foreach(function(e){var o={attachtype:0,fileid:e.fileid,fileurl:""};t.projectcommit.refundattach.push(o)})},canceledit:function(){var e=this;this.$msgbox({title:"提示",message:"确定取消?",showcancelbutton:!0,confirmbuttontext:"确定",cancelbuttontext:"取消",beforeclose:function(t,o,r){"confirm"===t?(e.$router.push({path:"/projects/cashdeposit"}),r()):r()}})},handleremove:function(e,t){this.projectcommit.refundattach=this.projectcommit.refundattach.filter(function(t){return t.fileid!==e.fileid})},handlepicturecardpreview:function(e){var t;t=s.default.onlinepreviewurl+"?fileid="+(e.fileid||e.response.returntargets[0].fileid),window.open(t)},selectproject:function(e){var t=this;this.projectinfo=this.projectlist.find(function(e){return e.recid==t.refrecid})},submitcash:function(e){var t=this,o=this;this.$msgbox({title:"提示",message:"提交之后审核过程中不能修改。确定提交?",showcancelbutton:!0,confirmbuttontext:"确定",cancelbuttontext:"取消",beforeclose:function(r,i,a){"confirm"===r?(i.confirmbuttonloading=!0,i.confirmbuttontext="执行中...",o.cashcommit({recid:e}).then(function(e){a(),i.confirmbuttonloading=!1,t.$router.push("/projects/cashdeposit")}).catch(function(e){i.confirmbuttonloading=!1,e&&t.$message({type:"error",message:e||"提交失败,请稍后重试!"})})):a()}})}})}},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=="},aioi:function(e,t,o){var r=o("/ide");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("fiqi")("79a37280",r,!1,{sourcemap:!1})},sspg:function(e,t,o){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var r=o("ttbd"),i=o.n(r);for(var a in r)"default"!==a&&function(e){o.d(t,e,function(){return r[e]})}(a);var s=o("p+q+"),l=!1;var c=function(e){l||o("aioi")},n=o("x4nt")(i.a,s.a,!1,c,null,null);n.options.__file="pages/projects/withdrawalback.vue",t.default=n.exports}});