1 line
8.9 KiB
JavaScript
1 line
8.9 KiB
JavaScript
webpackJsonp([161],{dLP5:function(e,t){},gKmA:function(e,t){},vpA7:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("d7EF"),r=o.n(a),i=o("//Fk"),s=o.n(i),l=o("Dd8w"),n=o.n(l),f=o("NYxO"),c=o("3MlD"),m=o("bzuE"),p=o("6n/8"),d=o("Dod7"),u="/apis/hl/ahgl/xcjc/detail",h={components:{DialogChooseSingleUser:c.a,yxkUpload:p.a},name:"repair_detail",data:function(){return{uploadUrl:d.a.uploadUrl,ftpPrefix:d.a.ftpPrefix,formDetail:{},formData:{targetList:[],taglocationappearanceImage:[],deletetag_appearanceImage:[]},eventId:"",hitchList:[],deviceStatusList:[],tableData:[],initFilePaths:[],dialogVisible:!1,dialogImageUrl:"",repairRecordImage:[],loading:!1,btnCompleteShow:!1,btnSendShow:!1,btnHandleShow:!1,chooseUserVisible:!1,recordList:[],type:null,config:m.a,formInfo:{},showDeal:!1,showAudit:!1}},mounted:function(){this.$route.query.type&&(this.type=this.$route.query.type),this.eventId=this.$route.query.id;var e=this.$route.query.type;"待审批"==e&&(this.showDeal=!0),"已完成"==e&&(this.showDeal=!0,this.showAudit=!0),this.updateTagNav(this.$route),this.getDetail()},methods:n()({},Object(f.d)({removeTagNav:"tagNav/removeTagNav",updateTagNav:"tagNav/updateTagNav"}),{getDetail:function(){var e=this;this.$api.yxkAPI.yxkGet(u,{id:this.eventId}).then(function(t){if(0==t.code){var o=t.data;e.formInfo=o;var a=[];a.push(o.auditVO),e.formInfo.auditVO=a,e.formInfo=n()({},e.formInfo)}else e.formInfo={};e.loading=!1}).finally(function(){e.loading=!1})},initialize:function(){var e=this;s.a.all([this.$api.dictAPI.getDictsByType("device_malfunction"),this.$api.dictAPI.getDictsByType("device_status")]).then(function(t){var o=r()(t,2),a=o[0],i=o[1];0===a.code&&(e.hitchList=a.datas,e.hitchList&&(e.formData.type=e.hitchList[0].id)),0===i.code&&(e.deviceStatusList=i.datas)}).catch(function(e){console.log(e)})},complete:function(){this.$router.push({path:"/wwbx/check",query:{id:this.eventId,t:Date.now(),redirect:this.$route.path}})},repair:function(){this.$router.push({path:"/wwbx/handle",query:{id:this.eventId,t:Date.now(),redirect:this.$route.path}})},recordDetail:function(e){this.$router.push({path:"/wwbx/record_detail",query:{id:e.id,t:Date.now()}})},getUser:function(e){var t=this,o=e.id,a=this.eventId;this.$confirm("确认将维修单转派给【"+e.name+"】吗?","提示",{type:"warning"}).then(function(){t.$api.repairCheckAPI.reventTurnToSend({eventId:a,userId:o}).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.save_back()):t.$message({message:e.msg?e.msg:"转派失败,请重试",type:"error"})}).catch(function(e){t.$message({message:"转派失败,请重试",type:"error"})})})},send:function(){this.chooseUserVisible=!0},back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.go(-1)},save_back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.push({path:"/wwbx/index",t:Date.now()})},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0}})},v={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sys-box repair-box"},[o("div",{staticClass:"sys-operate"},[o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.back()}}},[e._v(e._s(e.config.cancelText))])],1),e._v(" "),o("div",{staticClass:"sys-form"},[o("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{"label-width":"120px",model:e.formInfo}},[o("div",{staticClass:"flex"},[o("el-form-item",{staticClass:"form-inline",attrs:{label:"现场稽查单",prop:"xcjcd"}},[o("el-input",{attrs:{placeholder:"现场稽查单",disabled:""},model:{value:e.formInfo.xcjcd,callback:function(t){e.$set(e.formInfo,"xcjcd",t)},expression:"formInfo.xcjcd"}})],1),e._v(" "),o("el-form-item",{staticClass:"form-inline",attrs:{label:"检验日期",prop:"jcrq"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.jcrq,callback:function(t){e.$set(e.formInfo,"jcrq",t)},expression:"formInfo.jcrq"}})],1),e._v(" "),o("el-form-item",{staticClass:"form-inline",attrs:{label:"检验人员",prop:"jcry"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.jcry,callback:function(t){e.$set(e.formInfo,"jcry",t)},expression:"formInfo.jcry"}})],1)],1),e._v(" "),o("div",{staticClass:"flex"},[o("el-form-item",{staticClass:"form-inline",attrs:{label:"车间",prop:"cjid"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.cj,callback:function(t){e.$set(e.formInfo,"cj",t)},expression:"formInfo.cj"}})],1),e._v(" "),o("el-form-item",{staticClass:"form-inline",attrs:{label:"检查类别",prop:"jclbid"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.jclb,callback:function(t){e.$set(e.formInfo,"jclb",t)},expression:"formInfo.jclb"}})],1),e._v(" "),o("el-form-item",{staticClass:"form-inline",attrs:{label:"责任人",prop:"zrr"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.zrr,callback:function(t){e.$set(e.formInfo,"zrr",t)},expression:"formInfo.zrr"}})],1),e._v(" "),o("el-form-item",{staticClass:"form-inline",attrs:{label:"要求完成日期",prop:"yqwcrq"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.yqwcrq,callback:function(t){e.$set(e.formInfo,"yqwcrq",t)},expression:"formInfo.yqwcrq"}})],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"问题描述",prop:"wtms"}},[o("el-input",{attrs:{type:"textarea",placeholder:"问题描述",autosize:{minRows:4},readonly:""},model:{value:e.formInfo.wtms,callback:function(t){e.$set(e.formInfo,"wtms",t)},expression:"formInfo.wtms"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"备注",prop:"bz"}},[o("el-input",{attrs:{type:"textarea",placeholder:"备注",autosize:{minRows:4},readonly:""},model:{value:e.formInfo.bz,callback:function(t){e.$set(e.formInfo,"bz",t)},expression:"formInfo.bz"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"现场图片"}},[o("yxkUpload",{attrs:{state:!0,disabled:"",img:e.formInfo.xctp},model:{value:e.formInfo.xctp,callback:function(t){e.$set(e.formInfo,"xctp",t)},expression:"formInfo.xctp"}})],1),e._v(" "),e.showDeal?o("el-divider",{attrs:{"content-position":"left"}},[e._v("问题处理")]):e._e(),e._v(" "),e.showDeal?o("div",{staticClass:"flex"},[o("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"处理人员"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.clry,callback:function(t){e.$set(e.formInfo,"clry",t)},expression:"formInfo.clry"}})],1),e._v(" "),o("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"处理日期",prop:"clrq"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.clrq,callback:function(t){e.$set(e.formInfo,"clrq",t)},expression:"formInfo.clrq"}})],1)],1):e._e(),e._v(" "),e.showDeal?o("el-form-item",{attrs:{label:"解决方案",prop:"jjfa"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.jjfa,callback:function(t){e.$set(e.formInfo,"jjfa",t)},expression:"formInfo.jjfa"}})],1):e._e(),e._v(" "),e.showDeal?o("el-form-item",{attrs:{label:"整改图片"}},[o("yxkUpload",{attrs:{state:"",disabled:"",img:e.formInfo.zgtp},model:{value:e.formInfo.zgtp,callback:function(t){e.$set(e.formInfo,"zgtp",t)},expression:"formInfo.zgtp"}})],1):e._e(),e._v(" "),e.showAudit?o("el-divider",{attrs:{"content-position":"left"}},[e._v("审批意见")]):e._e(),e._v(" "),e.showAudit?o("div",{staticClass:"flex"},[o("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"审批人员",prop:"spry"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.spry,callback:function(t){e.$set(e.formInfo,"spry",t)},expression:"formInfo.spry"}})],1),e._v(" "),o("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"审批日期",prop:"clrq"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.sprq,callback:function(t){e.$set(e.formInfo,"sprq",t)},expression:"formInfo.sprq"}})],1),e._v(" "),"不通过"==e.formData.spjg?o("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"责任人",prop:"clrq"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.zrr,callback:function(t){e.$set(e.formInfo,"zrr",t)},expression:"formInfo.zrr"}})],1):e._e(),e._v(" "),o("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"审批结果"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.spjg,callback:function(t){e.$set(e.formInfo,"spjg",t)},expression:"formInfo.spjg"}})],1),e._v(" "),o("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"审批意见",prop:"spyj"}},[o("el-input",{attrs:{readonly:""},model:{value:e.formInfo.spyj,callback:function(t){e.$set(e.formInfo,"spyj",t)},expression:"formInfo.spyj"}})],1)],1):e._e()],1)],1),e._v(" "),o("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})]),e._v(" "),o("DialogChooseSingleUser",{attrs:{visible:e.chooseUserVisible},on:{"update:visible":function(t){e.chooseUserVisible=t},change:e.getUser}})],1)},staticRenderFns:[]};var I=o("VU/8")(h,v,!1,function(e){o("gKmA"),o("dLP5")},"data-v-c2d977b0",null);t.default=I.exports}}); |