1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-112a5f05"],{"2c2d":function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"layout"},[e("div",{staticClass:"topHeader"},[e("van-icon",{staticClass:"vanIcon",attrs:{name:"arrow-left"},on:{click:t.backtrack}}),e("span",[t._v(t._s("0"===t.data.evaluationStatus?"施工评价":"查看评价详情"))])],1),e("div",{staticClass:"textContent"},["0"===t.data.evaluationStatus?e("div",{staticClass:"sample"},[e("van-cell-group",[e("van-cell",{attrs:{title:"承包商",value:t.data.constructionUnit}}),e("van-cell",{attrs:{title:"项目名称",value:t.data.projectName}}),e("van-cell",{attrs:{title:"管理中心",value:t.data.platform}}),e("van-cell",{attrs:{title:"承包商领队",value:t.data.constructionLeader}})],1)],1):e("div",[e("div",{staticClass:"sample"},[e("van-cell-group",[e("van-cell",{attrs:{title:"项目名称",value:t.data.projectName}}),e("van-cell",{attrs:{title:"当前总分",value:t.totalPoints}})],1)],1),"0"!==t.data.evaluationStatus?e("div",{staticClass:"sample"},[e("ul",{staticClass:"text"},t._l(t.content,(function(a,o){return e("li",{key:o},[e("p",{staticStyle:{"margin-top":".3rem"}},[t._v(t._s(o+1)+"、"+t._s(a.ratedItems))]),e("div",{staticClass:"title"},[t._v("评分标准:")]),t._l(a.scoreConfig,(function(o,r){return e("div",{key:r,staticClass:"standard"},[e("p",{staticStyle:{width:".6rem","text-align":"right"}},[t._v(" "+t._s(o)+"分:")]),e("p",{staticStyle:{width:"calc(100% - .6rem)"}},[t._v(t._s(a.scoringCriteria[r]))])])})),e("p",{staticStyle:{"margin-top":".3rem"}},[t._v("当前评分:"+t._s(a.evaluationScore||"0分"))]),e("p",{staticStyle:{"margin-top":".1rem"}},[t._v("结果说明:"+t._s(a.resultInstructions))]),e("p",{staticStyle:{"margin-top":".3rem",color:"rgb(118, 118, 118)"}},[t._v(t._s(a.descriptionRaters))]),e("img",{directives:[{name:"show",rawName:"v-show",value:a.gradingUserSignature,expression:"item.gradingUserSignature"}],staticStyle:{width:"100%",height:"1.5rem",border:".01rem solid #ccc","border-radius":".05rem","margin-top":".1rem"},attrs:{src:a.gradingUserSignature,alt:""}}),e("div",{directives:[{name:"show",rawName:"v-show",value:!a.gradingUserSignature,expression:"!item.gradingUserSignature"}],staticStyle:{width:"100%",height:"1.5rem",border:".01rem solid #ccc","border-radius":".05rem","margin-top":".1rem"}})],2)})),0)]):t._e()])]),"0"===t.data.evaluationStatus?e("div",{staticClass:"foot"},[e("van-button",{staticStyle:{background:"rgb(0, 64, 152)"},attrs:{type:"info"},on:{click:t.startPro}},[t._v("启 动")])],1):t._e()])},r=[],s=(e("4160"),e("fb6a"),e("ac1f"),e("1276"),e("159b"),e("5530")),n=e("3324"),i=e("2f62"),c={name:"Vueh5CbsEvaluate",data:function(){return{data:{},content:[],totalPoints:0}},computed:Object(s["a"])({},Object(i["b"])("login",["user"])),mounted:function(){this.queryConstructionStartFlowLog()},methods:{queryConstructionStartFlowLog:function(){var t=this;Object(n["u"])({projectNo:this.user.projectNo}).then((function(a){var e=a.data;console.log(e),200===e.code?(console.log(e.data),t.data=e.data,"0"!==e.data.evaluationStatus&&t.queryEvaluationStart()):(t.$notify({type:"danger",message:e.msg,duration:1e3}),t.$router.go(-1))})).catch((function(a){console.log(a.response,"zhe"),t.$notify({type:"danger",message:a.response.data.msg,duration:1e3}),t.$router.go(-1)}))},backtrack:function(){this.$router.go(-1)},queryEvaluationStart:function(){var t=this;Object(n["y"])({projectNo:this.user.projectNo}).then((function(a){var e=a.data;t.totalPoints=0,console.log(e,"1111"),200===e.code?(e.data.forEach((function(a){t.totalPoints+=a.evaluationScore?1*a.evaluationScore.slice(0,a.evaluationScore.length-1):0,a.scoreConfig=a.scoreConfig.split(","),a.scoringCriteria=a.scoringCriteria.split(",")})),t.content=e.data,t.totalPoints+="分"):(t.$notify({type:"danger",message:e.msg,duration:1e3}),t.$router.go(-1))})).catch((function(a){console.log(a.response,"zhe"),t.$notify({type:"danger",message:a.response.data.msg,duration:1e3}),t.$router.go(-1)}))},startPro:function(){var t=this;Object(n["b"])({projectNo:this.user.projectNo}).then((function(a){var e=a.data;200===e.code?(t.$notify({type:"success",message:"启动成功",duration:1e3}),t.queryConstructionStartFlowLog()):t.$notify({type:"danger",message:e.msg,duration:1e3})}))}}},l=c,u=(e("e121"),e("2877")),d=Object(u["a"])(l,o,r,!1,null,"6e6799fe",null);a["default"]=d.exports},"9d43":function(t,a,e){},e121:function(t,a,e){"use strict";var o=e("9d43"),r=e.n(o);r.a}}]);
|