yxk_pc_mdh/gyhl/static/js/175.8d4434215af7a2f3d4e0.js

1 line
9.2 KiB
JavaScript

webpackJsonp([175],{"/4H1":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("bOdI"),o=a.n(l),i=a("d7EF"),r=a.n(i),s=a("//Fk"),n=a.n(s),c=a("woOf"),f=a.n(c),m=a("Dd8w"),d=a.n(m),u=a("NYxO"),p=a("3MlD"),h=a("bzuE"),v=a("Dod7"),_={components:{DialogChooseSingleUser:p.a},name:"repair_record_detail",data:function(){return{uploadUrl:v.a.uploadUrl,ftpPrefix:v.a.ftpPrefix,formData:{targetList:[],taglocationappearanceImage:[],deletetag_appearanceImage:[],initFileList:[],taskType:null,heldPerson:null,ccNames:""},formCheckInfo:{},recordId:"",loading:!1,initFileList:[],replyList:[],dealList:[],typeList:[],levelList:[],dialogImageUrl:"",dialogVisible:!1,chooseUserVisible:!1,parts:[],type:null,btnHandleShow:!1,btnCompleteShow:!1,report_url:"",config:h.a}},mounted:function(){this.initialize(),this.$route.query.report_url&&(this.report_url=this.$route.query.report_url),this.$route.query.id&&(this.recordId=this.$route.query.id,this.getDetail())},methods:d()({},Object(u.d)({removeTagNav:"tagNav/removeTagNav"}),{getDetail:function(){var t=this;this.loading=!0,this.$api.repairCheckAPI.getRecordDetail(this.recordId).then(function(e){if(0===e.code){if(t.formData=f()({},t.formData,e.recordInfo),e.checkInfo&&(t.formCheckInfo=f()({},t.formData,e.checkInfo[0])),e.ccIdList){var a="";e.ccIdList.forEach(function(t){a+=t.name+","}),a=a.substring(0,a.length-1),t.formData.ccNames=a}if(e.repairRecordImage&&e.repairRecordImage.length>0){t.initFileList=[];for(var l=0;l<e.repairRecordImage.length;l++){var o={name:e.repairRecordImage[l].id,url:t.ftpPrefix+e.repairRecordImage[l].filePath};t.initFileList.push(o)}}e.mapList&&e.mapList.length>0&&(t.parts=e.mapList),t.loading=!1}}).catch(function(e){t.loading=!1})},initialize:function(){var t=this;n.a.all([this.$api.dictAPI.getDictsByType("task_type"),this.$api.dictAPI.getDictsByType("task_level")]).then(function(e){var a=r()(e,2),l=a[0],o=a[1];0===l.code&&(t.typeList=l.datas),0===o.code&&(t.levelList=o.datas)}).catch(function(t){console.log(t)})},back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.go(-1)},reply:function(){this.$router.push({path:"/wwbx/reply",query:{id:this.formData.id,report_url:this.$route.path}})},send:function(){this.chooseUserVisible=!0},handle:function(){this.$router.push({path:"/wwbx/handle",query:{id:this.formData.id,t:Date.now()}})},check:function(){this.$router.push({path:"/wwbx/check",query:{id:this.formData.id,t:Date.now()}})},replyDetail:function(t){},dealDetail:function(t){this.$router.push(o()({path:"/wwbx/check_detail",query:{id:t.id}},"query",{t:Date.now()}))},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0}})},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sys-box taskinfo"},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.back()}}},[t._v(t._s(t.config.cancelText))])],1),t._v(" "),a("div",{staticClass:"sys-form"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"label-width":"120px",model:t.formData}},[a("el-divider",{attrs:{"content-position":"left"}},[t._v("维修记录")]),t._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"实际开工时间"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:t.formData.startTime,callback:function(e){t.$set(t.formData,"startTime",e)},expression:"formData.startTime"}})],1),t._v(" "),a("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"实际完工时间"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:t.formData.endTime,callback:function(e){t.$set(t.formData,"endTime",e)},expression:"formData.endTime"}})],1),t._v(" "),a("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"故障类型"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:t.formData.typeName,callback:function(e){t.$set(t.formData,"typeName",e)},expression:"formData.typeName"}})],1),t._v(" "),a("el-form-item",{staticClass:"form-inline form-half",attrs:{label:"停机时长(小时)"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:t.formData.offHour,callback:function(e){t.$set(t.formData,"offHour",e)},expression:"formData.offHour"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"故障原因"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4},readonly:""},model:{value:t.formData.cause,callback:function(e){t.$set(t.formData,"cause",e)},expression:"formData.cause"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"维修方案"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4},readonly:""},model:{value:t.formData.solution,callback:function(e){t.$set(t.formData,"solution",e)},expression:"formData.solution"}})],1),t._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"维修工时(小时)"}},[a("el-input",{attrs:{readonly:""},model:{value:t.formData.manHour,callback:function(e){t.$set(t.formData,"manHour",e)},expression:"formData.manHour"}})],1),t._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"工时费(元)"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{readonly:""},model:{value:t.formData.manHourCost,callback:function(e){t.$set(t.formData,"manHourCost",e)},expression:"formData.manHourCost"}})],1),t._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"维修费(元)"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{readonly:""},model:{value:t.formData.cost,callback:function(e){t.$set(t.formData,"cost",e)},expression:"formData.cost"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"使用状况"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:t.formData.usageName,callback:function(e){t.$set(t.formData,"usageName",e)},expression:"formData.usageName"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"完工拍照"}},[a("el-upload",{class:{hide:!0},attrs:{accept:".png,.jpg,.jpeg",action:t.uploadUrl,"list-type":"picture-card",disabled:"","file-list":t.initFileList,"on-preview":t.handlePictureCardPreview}},[a("i",{staticClass:"el-icon-plus"})])],1),t._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[t._v("使用备件")]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-table",{attrs:{data:t.parts,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"},border:""}},[a("el-table-column",{attrs:{prop:"code","show-overflow-tooltip":"",label:"备件编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name","show-overflow-tooltip":"",label:"备件名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"type","show-overflow-tooltip":"",align:"center",label:"备件型号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"amount","show-overflow-tooltip":"",align:"center",label:"使用数量"}}),t._v(" "),a("el-table-column",{attrs:{prop:"price","show-overflow-tooltip":"",align:"center",label:"单价(元)"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total","show-overflow-tooltip":"",align:"center",label:"总金额(元)"}}),t._v(" "),a("el-table-column",{attrs:{prop:"content","show-overflow-tooltip":"",align:"center",label:"备注"}})],1)],1),t._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[t._v("验收情况")]),t._v(" "),a("div",{staticClass:"check-box"},[a("div",{staticClass:"check-item flex"},[a("h3",[t._v("验收评价:")]),t._v(" "),a("div",{staticClass:"check-content"},[a("ul",{staticClass:"flex"},[a("li",{staticClass:"flex"},[a("span",[t._v("工作态度")]),t._v(" "),a("el-rate",{attrs:{disabled:""},model:{value:t.formCheckInfo.td_grade,callback:function(e){t.$set(t.formCheckInfo,"td_grade",e)},expression:"formCheckInfo.td_grade"}})],1),t._v(" "),a("li",{staticClass:"flex"},[a("span",[t._v("完成效率")]),t._v(" "),a("el-rate",{attrs:{disabled:""},model:{value:t.formCheckInfo.xl_grade,callback:function(e){t.$set(t.formCheckInfo,"xl_grade",e)},expression:"formCheckInfo.xl_grade"}})],1),t._v(" "),a("li",{staticClass:"flex"},[a("span",[t._v("完成质量")]),t._v(" "),a("el-rate",{attrs:{disabled:""},model:{value:t.formCheckInfo.qa_grade,callback:function(e){t.$set(t.formCheckInfo,"qa_grade",e)},expression:"formCheckInfo.qa_grade"}})],1)])])]),t._v(" "),a("div",{staticClass:"check-item flex"},[a("h3",[t._v("验收内容:")]),t._v(" "),a("div",{staticClass:"check-content"},[a("ul",{staticClass:"flex"},[a("li",[a("span",[t._v("验收结果:")]),t._v("\n "+t._s(t.formCheckInfo.resultName)+"\n ")]),t._v(" "),a("li",[a("span",[t._v("验收人员:")]),t._v("\n "+t._s(t.formCheckInfo.createName)+"\n ")]),t._v(" "),a("li",[a("span",[t._v("验收时间:")]),t._v("\n "+t._s(t.formCheckInfo.update_time)+"\n ")]),t._v(" "),a("li",{staticClass:"long",staticStyle:{"margin-top":"12px"}},[a("p",[t._v("验收意见:"+t._s(t.formCheckInfo.content))])])])])])]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)],1)])},staticRenderFns:[]};var b=a("VU/8")(_,g,!1,function(t){a("P1pS"),a("D0Lq")},"data-v-84556192",null);e.default=b.exports},D0Lq:function(t,e){},P1pS:function(t,e){}});