(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-90aa"],{"1Y47":function(t,e,n){"use strict";var a=n("kThr");n.n(a).a},GiRh:function(t,e,n){t.exports={default:n("k2L4"),__esModule:!0}},Gp3n:function(t,e,n){"use strict";var a=n("YAjj");n.n(a).a},NNB3:function(t,e,n){"use strict";var a={name:"Titlename",props:{title:{type:String,default:"标题"}},data:function(){return{}}},i=(n("Gp3n"),n("ZrdR")),o=Object(i.a)(a,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"app"},[e("div",{staticClass:"box"},[e("div",{staticClass:"dian"}),this._v(" "),e("div",{staticClass:"net"},[this._v(this._s(this.title))])])])},[],!1,null,"3c99051b",null);o.options.__file="index.vue";e.a=o.exports},S3Oy:function(t,e,n){var a=n("Xp5O"),i=n("S5+y"),o=n("iorM"),r=n("DMUv").f;t.exports=function(t){return function(e){for(var n,s=o(e),l=i(s),c=l.length,u=0,d=[];c>u;)n=l[u++],a&&!r.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},UyGd:function(t,e,n){"use strict";n.d(e,"j",function(){return o}),n.d(e,"h",function(){return r}),n.d(e,"i",function(){return s}),n.d(e,"l",function(){return l}),n.d(e,"e",function(){return c}),n.d(e,"k",function(){return u}),n.d(e,"f",function(){return d}),n.d(e,"c",function(){return h}),n.d(e,"b",function(){return f}),n.d(e,"d",function(){return p}),n.d(e,"a",function(){return m}),n.d(e,"g",function(){return b});var a=n("X4fA"),i=n("t3Un");function o(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/page",method:"post",data:t})}function r(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/info",method:"post",data:t})}function s(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/itemInfo",method:"post",data:t})}function l(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/modItemInfo",method:"post",data:t})}function c(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/add",method:"post",data:t})}function u(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/mod",method:"post",data:t})}function d(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/del",method:"post",data:t})}function h(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/elementManagement/getElementTree",method:"post",data:t})}function f(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/getUserList",method:"post",data:t})}function p(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetyInspectionItem/infoElementA",method:"post",data:t})}function m(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetyInspectionItem/info",method:"post",data:t})}function b(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetySelfInspection/finish",method:"post",data:t})}},YAjj:function(t,e,n){},if6n:function(t,e,n){"use strict";n.r(e);var a=n("GiRh"),i=n.n(a),o=n("NNB3"),r=n("UyGd"),s={components:{Titlename:o.a},data:function(){return{dialogVisible:!1,form:{name:""},id:"",formInline:{user:"",region:""},list:[],lists:[],listType:[],typeId:""}},created:function(){this.id=this.$route.query.id,this.typeId=this.$route.query.type,this.safeInitem(this.id)},methods:{finish:function(){for(var t=this,e="",n=[],a=0;a<this.listType.length;a++)e=null!=this.listType[a].safetyInspectionItemResult,n.push(e);if(-1==n.indexOf(!1)){this.id;this.$confirm("确定要结单吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r.g)({id:t.id}).then(function(e){console.log(123,e),"200"===e.data.code?(t.$notify({title:"成功",message:"结单成功",type:"success",duration:2e3}),t.$router.push({path:"/checklistself"})):t.$message({message:e.data.message,type:"warning"})})}).catch(function(t){})}else alert("请将所有评分评价后再点结算")},safeInitem:function(t){var e=this;Object(r.h)({id:t}).then(function(t){200==t.data.code&&(e.list=t.data.result),e.listType=t.data.result.itemList;for(var n=e.checkSameDataA(e.list.itemList),a=0;a<n.length;a++)n[a].child=e.checkSameData(n[a].child),n[a].child.points=n[a].child.point;e.lists=n,console.log("tag",n)})},checkSameDataA:function(t){var e={};return t.forEach(function(t,n){var a=t.elementAName;e[a]||(e[a]={elementAName:a,child:[]}),e[a].child.push(t)}),i()(e)},checkSameData:function(t){var e={};t.forEach(function(t,n){var a=t.elementBName;e[a]||(e[a]={elementBName:a,point:"",points:t.point,child:[]}),e[a].child.push(t)});for(var n=i()(e),a=0;a<n.length;a++){for(var o=n[a].points,r=0;r<n[a].child.length;r++)if(0!=n[a].child[r].safetyInspectionItemResult)for(var s=0;s<n[a].child[r].selfDeductionList.length;s++)o-=n[a].child[r].selfDeductionList[s].point;else{o=0}n[a].point=o>0?o:0}return n},handleClick:function(t){this.$router.push({path:"/review",query:{idC:t.id,id:this.id}})}}},l=(n("1Y47"),n("ZrdR")),c=Object(l.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"box-right"},[2!=t.typeId?n("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(e){t.finish()}}},[t._v("结单")]):t._e(),t._v(" "),t._l(t.lists,function(e,a){return n("div",{key:a,staticStyle:{padding:"0 0 20px 0"}},[n("div",{staticClass:"title"},[t._v("\n A级要素:"),n("span",[t._v(t._s(e.elementAName))])]),t._v(" "),t._l(e.child,function(e,a){return n("div",{key:a},[n("el-row",{staticClass:"titles"},[n("el-col",{attrs:{span:6}},[n("p",[n("span",[t._v("B级要素:")]),t._v(t._s(e.elementBName))])]),t._v(" "),n("el-col",{attrs:{span:6}},[n("p",[n("span",[t._v("总分:")]),t._v(t._s(e.points))])]),t._v(" "),n("el-col",{attrs:{span:6}},[n("p",[n("span",[t._v("得分:")]),t._v(t._s(e.point))])])],1),t._v(" "),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-table",{attrs:{border:"",data:e.child,"header-cell-style":{background:"#eef1f6",color:"#606266"},"cell-style":{background:"#fff",color:"#606266"}}},[n("el-table-column",{attrs:{prop:"standardizationRequirements",align:"center",label:"标准化要求"}}),t._v(" "),n("el-table-column",{attrs:{prop:"enterpriseStandard",align:"center",label:"企业达标标准"}}),t._v(" "),n("el-table-column",{attrs:{prop:"reviewMethod",align:"center",label:"评审方法"}}),t._v(" "),n("el-table-column",{attrs:{prop:"veto",align:"center",label:"否决项"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"评审结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.safetyInspectionItemResult?n("span",[t._v("否决")]):t._e(),t._v(" "),1==e.row.safetyInspectionItemResult?n("span",[t._v("扣分")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"扣分项",type:"expand",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-table",{attrs:{data:e.row.selfDeductionList,border:"","header-cell-style":{background:"#eef1f6",color:"#606266"},"cell-style":{background:"#fff",color:"#606266"}}},[n("el-table-column",{attrs:{prop:"name",align:"center",label:"扣分项"}}),t._v(" "),n("el-table-column",{attrs:{prop:"point",align:"center",label:"扣分"}}),t._v(" "),n("el-table-column",{attrs:{prop:"remark",align:"center",label:"扣分备注"}})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"remark",align:"center",label:"备注"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作",width:"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small",disabled:2==t.typeId},on:{click:function(n){t.handleClick(e.row)}}},[t._v("评价")])]}}])})],1)],1)],1)],1)})],2)})],2)])},[],!1,null,"7a08b846",null);c.options.__file="gojudging.vue";e.default=c.exports},k2L4:function(t,e,n){n("tCn3"),t.exports=n("zpmP").Object.values},kThr:function(t,e,n){},tCn3:function(t,e,n){var a=n("fCtq"),i=n("S3Oy")(!1);a(a.S,"Object",{values:function(t){return i(t)}})}}]);
|