Your Name
2022-04-08 1f2a259f8cbb7eb0b12d12895116c309eb8cd609
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-b339"],{"+HW0":function(t,e,n){"use strict";n.r(e);var a=n("omC7"),i=n.n(a),o=n("NNB3"),r=n("UyGd"),s=n("r9+B"),l={components:{Titlename:o.a},data:function(){return{dialogVisible:!1,id:"",resource:"0",form:{},formInline:{name:"",remark:""},name:"",typeid:"",rules:{name:[{required:!0,message:"说明不能为空",trigger:"change"}]}}},created:function(){this.id=this.$route.query.idX,this.typeid=this.$route.query.id,this.name=this.$route.query.name,this.safeT(this.id)},methods:{safeT:function(t){var e=this;Object(r.a)({id:t}).then(function(t){200==t.data.code&&(e.form=t.data.result)})},coAdd:function(t,e){var n=this;this.$nextTick(function(){n.$refs.form.clearValidate()}),this.titleN=e,"新增"==e?(this.dialogVisible=!0,this.formInline={name:"",remark:""}):(this.dialogVisible=!0,this.index=this.form.deductionList.findIndex(function(e){return e.name==t.name}),this.formInline=JSON.parse(i()(t)))},listAdd:function(){var t=this;this.$refs.form.validate(function(e){e&&("新增"==t.titleN?(t.form.deductionList.push(t.formInline),t.dialogVisible=!1):(t.form.deductionList[t.index].name=t.formInline.name,t.form.deductionList[t.index].space=t.formInline.space,t.dialogVisible=!1))})},listDel:function(t){var e=this.form.deductionList.findIndex(function(e){return e.name==t.name});this.form.deductionList.splice(e,1)},safetyInspectionItemA:function(){var t=this;Object(s.d)(this.form).then(function(e){200==e.data.code?(t.$notify({type:"success",duration:2e3,message:"修改成功",title:"成功"}),t.$router.push({path:"/new",query:{name:t.name,id:t.typeid}})):t.$message({type:"warning",message:e.data.message})})},back:function(){this.$router.push({path:"/new",query:{name:this.name,id:this.typeid}})},bacQx:function(){this.dialogVisible=!1,this.safeT(this.id)},handleClick:function(){this.dialogVisible=!0}}},c=(n("vSE+"),n("ZrdR")),u=Object(c.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-right"},[n("Titlename",{attrs:{title:"基础信息"}}),t._v(" "),n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[n("div",{staticStyle:{width:"80%",margin:"auto"}},[n("el-row",{staticClass:"box-right-content",attrs:{align:"top"}},[n("el-col",{attrs:{span:11}},[n("el-form-item",{attrs:{label:"A级要素"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!0},model:{value:t.form.elementAName,callback:function(e){t.$set(t.form,"elementAName",e)},expression:"form.elementAName"}},[n("el-option",{attrs:{label:"区域一",value:"shanghai"}}),t._v(" "),n("el-option",{attrs:{label:"区域二",value:"beijing"}})],1)],1)],1),t._v(" "),n("el-col",{staticStyle:{"white-space":"nowrap"},attrs:{span:11,offset:2}},[n("el-form-item",{attrs:{label:"B级要素"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!0},model:{value:t.form.elementBName,callback:function(e){t.$set(t.form,"elementBName",e)},expression:"form.elementBName"}},[n("el-option",{attrs:{label:"区域一",value:"shanghai"}}),t._v(" "),n("el-option",{attrs:{label:"区域二",value:"beijing"}})],1)],1)],1)],1),t._v(" "),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"标准化要求"}},[n("el-input",{attrs:{rows:3,type:"textarea",placeholder:""},model:{value:t.form.standardizationRequirements,callback:function(e){t.$set(t.form,"standardizationRequirements",e)},expression:"form.standardizationRequirements"}})],1)],1)],1),t._v(" "),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"企业达标标准"}},[n("el-input",{attrs:{type:"textarea",rows:3,placeholder:""},model:{value:t.form.enterpriseStandard,callback:function(e){t.$set(t.form,"enterpriseStandard",e)},expression:"form.enterpriseStandard"}})],1)],1)],1),t._v(" "),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"评审方法"}},[n("el-input",{attrs:{type:"textarea",rows:3,placeholder:""},model:{value:t.form.reviewMethod,callback:function(e){t.$set(t.form,"reviewMethod",e)},expression:"form.reviewMethod"}})],1)],1)],1)],1),t._v(" "),n("Titlename",{attrs:{title:"评选标准"}}),t._v(" "),n("div",{staticStyle:{width:"80%",margin:"auto"}},[n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"否决项"}},[n("el-input",{attrs:{type:"textarea",rows:3,placeholder:""},model:{value:t.form.veto,callback:function(e){t.$set(t.form,"veto",e)},expression:"form.veto"}})],1)],1)],1),t._v(" "),n("el-row",{staticStyle:{padding:"15px 1%"}},[n("el-col",{attrs:{span:10,offset:2}},[n("span",{staticStyle:{"font-size":"16px","font-weight":"bold","line-height":"29px"}},[t._v("扣分清单")])]),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[n("el-button",{staticClass:"btns",attrs:{type:"primary",size:"mini",icon:"el-icon-plus"},on:{click:function(e){t.coAdd("","新增")}}},[t._v("新增")])],1)],1),t._v(" "),n("el-row",[n("el-col",{attrs:{span:22,offset:2}},[n("el-table",{staticStyle:{width:"99%","margin-left":"1%"},attrs:{data:t.form.deductionList,border:""}},[n("el-table-column",{attrs:{type:"index",align:"center",label:"序号",width:"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",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.coAdd(e.row,"编辑")}}},[t._v("编辑")]),t._v(" "),n("el-button",{staticStyle:{color:"red"},attrs:{type:"text",size:"small"},on:{click:function(n){t.listDel(e.row)}}},[t._v("删除")])]}}])})],1)],1)],1)],1),t._v(" "),n("el-row",[n("el-col",{staticStyle:{padding:"20px 0","text-align":"center"},attrs:{span:24}},[n("el-button",{staticClass:"btns",attrs:{type:"primary"},on:{click:function(e){t.safetyInspectionItemA()}}},[t._v("提交")]),t._v(" "),n("el-button",{on:{click:function(e){t.back()}}},[t._v("取消")])],1)],1)],1)],1)]),t._v(" "),n("el-dialog",{attrs:{title:"扣分详情",visible:t.dialogVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-form",{ref:"form",attrs:{rules:t.rules,model:t.formInline,"label-width":"54px"}},[n("el-form-item",{attrs:{label:"说明",prop:"name"}},[n("el-input",{model:{value:t.formInline.name,callback:function(e){t.$set(t.formInline,"name",e)},expression:"formInline.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"备注"}},[n("el-input",{attrs:{rows:5,type:"textarea"},model:{value:t.formInline.remark,callback:function(e){t.$set(t.formInline,"remark",e)},expression:"formInline.remark"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",staticStyle:{"text-align":"center",display:"block"},attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"btns",attrs:{type:"primary"},on:{click:t.listAdd}},[t._v("确 定")]),t._v(" "),n("el-button",{on:{click:t.bacQx}},[t._v("取 消")])],1)],1)],1)},[],!1,null,"598ed0a6",null);u.options.__file="reviewXG.vue";e.default=u.exports},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},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 f}),n.d(e,"b",function(){return m}),n.d(e,"d",function(){return h}),n.d(e,"a",function(){return p}),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 f(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 m(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/getUserList",method:"post",data:t})}function h(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 p(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){},lVJ5:function(t,e,n){},"r9+B":function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"a",function(){return r}),n.d(e,"d",function(){return s}),n.d(e,"b",function(){return l}),n.d(e,"e",function(){return c});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/safetyInspectionItem/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/safetyInspectionItem/add",method:"post",data:t})}function s(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetyInspectionItem/mod",method:"post",data:t})}function l(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/safetyInspectionItem/del",method:"post",data:t})}function c(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.21:8006/zhongtai/elementManagement/getElementTree",method:"post",data:t})}},"vSE+":function(t,e,n){"use strict";var a=n("lVJ5");n.n(a).a}}]);