(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-60af"],{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,l=o(e),s=i(l),c=s.length,u=0,d=[];c>u;)n=s[u++],a&&!r.call(l,n)||d.push(t?[n,l[n]]:l[n]);return d}}},UyGd:function(t,e,n){"use strict";n.d(e,"i",function(){return o}),n.d(e,"g",function(){return r}),n.d(e,"h",function(){return l}),n.d(e,"k",function(){return s}),n.d(e,"e",function(){return c}),n.d(e,"j",function(){return u}),n.d(e,"f",function(){return d}),n.d(e,"c",function(){return f}),n.d(e,"b",function(){return h}),n.d(e,"d",function(){return p}),n.d(e,"a",function(){return m});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_demo/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_demo/safetySelfInspection/info",method:"post",data:t})}function l(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/safetySelfInspection/itemInfo",method:"post",data:t})}function s(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/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_demo/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_demo/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_demo/safetySelfInspection/del",method:"post",data:t})}function f(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/elementManagement/getElementTree",method:"post",data:t})}function h(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/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_demo/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_demo/safetyInspectionItem/info",method:"post",data:t})}},YAjj:function(t,e,n){},gO7a: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"),l={components:{Titlename:o.a},data:function(){return{dialogVisible:!1,form:{name:""},id:"",formInline:{user:"",region:""},list:[],lists:[]}},created:function(){this.id=this.$route.query.id,this.safeInitem(this.id)},methods:{safeInitem:function(t){var e=this;Object(r.g)({id:t}).then(function(t){200==t.data.code&&(e.list=t.data.result);for(var n=e.checkSameDataA(e.list.itemList),a=0;a<n.length;a++)n[a].child=e.checkSameData(n[a].child);e.lists=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:"",child:[]}),e[a].child.push(t)});var n=i()(e);console.log(n);for(var a=0;a<n.length;a++){for(var o=50,r=0;r<n[a].child.length;r++)if(0!=n[a].child[r].safetyInspectionItemResult)o-=n[a].child[r].selfDeductionList[0].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}})}}},s=(n("klWI"),n("ZrdR")),c=Object(s.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"box-right"},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("50")])]),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}},[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"},on:{click:function(n){t.handleClick(e.row)}}},[t._v("评价")])]}}])})],1)],1)],1)],1)})],2)}))])},[],!1,null,"704084ca",null);c.options.__file="gojudging.vue";e.default=c.exports},k2L4:function(t,e,n){n("tCn3"),t.exports=n("zpmP").Object.values},klWI:function(t,e,n){"use strict";var a=n("gO7a");n.n(a).a},tCn3:function(t,e,n){var a=n("fCtq"),i=n("S3Oy")(!1);a(a.S,"Object",{values:function(t){return i(t)}})}}]);
|