yxk_pc_mdh/gyhl/static/js/45.297780286d94593e8410.js

1 line
104 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

webpackJsonp([45],{"9uzq":function(e,t){},EPtc:function(e,t,a){"use strict";var i={name:"dialogChooseSingleDevice",props:{id:{type:String,default:""},visible:{type:Boolean,default:!1},attribute:{}},watch:{visible:function(e,t){e!==t&&(e&&this.initData(),this.innerVisible=e)},innerVisible:function(e,t){e!==t&&this.$emit("update:visible",e)}},data:function(){return{subsetList:[],subsetAll:[],subsetTotal:0,searchData_Subset:{pageno:1,pagesize:5,auditSign:179,useStatus:1},callBackData:[],innerVisible:this.visible,loading:!1,dialogLoading:!1,deviceType:[],deviceDept:[],addVisible:!1}},computed:{},methods:{initData:function(){var e=this;this.$api.materielAPI.typeList({pageno:1,pagesize:100}).then(function(t){0===t.code&&t.data&&(e.deviceType=t.data.datas)}),this.searchSubset()},searchSubset:function(){var e=this;this.attribute&&(this.searchData_Subset.attribute=this.attribute),this.dialogLoading=!0,this.$api.materielAPI.list(this.searchData_Subset).then(function(t){e.dialogLoading=!1,0===t.code&&(e.subsetList=t.data?t.data.datas:[],e.subsetTotal=t.data?t.data.totalRows:0)})},ckSubsetAll:function(e){this.subsetAll=e},subsetSizeChange:function(e){this.searchData_Subset.pagesize=e,this.searchSubset()},subsetCurrentChange:function(e){this.searchData_Subset.pageno=e,this.searchSubset()},submit:function(e){console.log(e);var t={serialNo:e.serialNo,name:e.name,specification:e.specification,unitUomName:e.unitUomName,id:e.id,quantityAccuracy:e.quantityAccuracy};this.$emit("change",t),this.innerVisible=!1},resetFields:function(){this.$refs.form&&this.$refs.form.resetFields()}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{center:"",title:"选择物料",visible:e.innerVisible,width:"900px"},on:{"update:visible":function(t){e.innerVisible=t}}},[a("div",[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"物料代码"}},[a("el-input",{attrs:{placeholder:"请出入物料代码",clearable:"",size:"small"},model:{value:e.searchData_Subset.serialNo,callback:function(t){e.$set(e.searchData_Subset,"serialNo",t)},expression:"searchData_Subset.serialNo"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"物料名称"}},[a("el-input",{attrs:{placeholder:"请输入物料名称",clearable:"",size:"small"},model:{value:e.searchData_Subset.name,callback:function(t){e.$set(e.searchData_Subset,"name",t)},expression:"searchData_Subset.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"规格型号"}},[a("el-input",{attrs:{placeholder:"请输入规格型号",clearable:"",size:"small"},model:{value:e.searchData_Subset.specification,callback:function(t){e.$set(e.searchData_Subset,"specification",t)},expression:"searchData_Subset.specification"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"物料类型"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择备件类型",clearable:"",size:"small"},model:{value:e.searchData_Subset.type,callback:function(t){e.$set(e.searchData_Subset,"type",t)},expression:"searchData_Subset.type"}},e._l(e.deviceType,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.searchSubset()}}},[e._v("查询")])],1)],1)],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],attrs:{data:e.subsetList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}}},[a("el-table-column",{attrs:{prop:"serialNo",label:"物料代码",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"specification",label:"规格型号",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"unitUomName",label:"计量单位",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"valuationMethodName",label:"计价方法",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"typeName",label:"物料类型",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"attributeName",label:"物料属性",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"defaultFacilityName",label:"默认仓库",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"defaultLocationName",label:"默认仓位",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.submit(t.row)}}},[e._v("选择")])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Subset.pageno,"page-sizes":[5,10,20],"page-size":e.searchData_Subset.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.subsetTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Subset,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Subset,"pageno",t)},"size-change":e.subsetSizeChange,"current-change":e.subsetCurrentChange}})],1)])},staticRenderFns:[]},r=a("VU/8")(i,s,!1,null,null,null);t.a=r.exports},VFpq:function(e,t){},lyl9:function(e,t){},wC0R:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,s=a("d7EF"),r=a.n(s),n=a("//Fk"),l=a.n(n),o=a("mvHQ"),c=a.n(o),u=a("BO1k"),p=a.n(u),d=a("Dd8w"),m=a.n(d),f=a("bOdI"),h=a.n(f),g=a("ysqt"),v=a("lbHh"),b=a.n(v),y=a("GKmE"),_=a("EPtc"),D=a("G9gL"),I=a("FnMF"),S=a("NYxO"),$=a("Dod7"),k=a("bzuE"),C=a("Xnfr"),P=a("3MlD"),w={name:"dialogChooseParts",props:{id:{type:String,default:""},visible:{type:Boolean,default:!1}},watch:{visible:function(e,t){e!==t&&(e&&this.initData(),this.innerVisible=e,this.$nextTick(function(){this.$refs.tb.clearSelection()}))},innerVisible:function(e,t){e!==t&&this.$emit("update:visible",e)}},data:function(){return{subsetList:[],subsetAll:[],subsetTotal:0,searchData_Subset:{pageno:1,pagesize:5},callBackData:[],innerVisible:this.visible,loading:!1,dialogLoading:!1,deviceDept:[],addVisible:!1}},computed:{},methods:{getRowKey:function(e){return e.id},clickRow:function(e){this.$refs.tb.toggleRowSelection(e)},initData:function(){this.searchSubset()},searchSubset:function(e){var t=this;e&&(this.searchData_Subset.pageno=1),this.dialogLoading=!0,this.$api.patroPlanAPI.list(this.searchData_Subset).then(function(e){t.dialogLoading=!1,0===e.code&&(t.subsetList=e.data?e.data.datas:[],t.subsetTotal=e.data?e.data.totalRows:0)})},ckSubsetAll:function(e){this.subsetAll=e},subsetSizeChange:function(e){this.searchData_Subset.pagesize=e,this.searchSubset()},subsetCurrentChange:function(e){this.searchData_Subset.pageno=e,this.searchSubset()},submit:function(e){var t=[];this.subsetAll.length>0&&this.subsetAll.forEach(function(e){t.push(e)}),this.$emit("change",t),this.innerVisible=!1},resetFields:function(){this.$refs.form&&this.$refs.form.resetFields()}}},x={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{center:"",title:"选择巡检标准",visible:e.innerVisible,width:"900px"},on:{"update:visible":function(t){e.innerVisible=t}}},[a("div",[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"巡检项目/标准"}},[a("el-input",{attrs:{placeholder:"模糊搜索",clearable:""},model:{value:e.searchData_Subset.fuzzySearch,callback:function(t){e.$set(e.searchData_Subset,"fuzzySearch",t)},expression:"searchData_Subset.fuzzySearch"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.searchSubset(1)}}},[e._v("查询")])],1)],1)],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],ref:"tb",attrs:{"row-key":e.getRowKey,data:e.subsetList,border:"","header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"row-click":e.clickRow,"selection-change":e.ckSubsetAll}},[a("el-table-column",{attrs:{type:"selection","reserve-selection":!0,width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"code",label:"编号","show-overflow-tooltip":"",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center","show-overflow-tooltip":"",label:"巡检项目"}}),e._v(" "),a("el-table-column",{attrs:{prop:"function","show-overflow-tooltip":"",align:"center",label:"巡检标准"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Subset.pageno,"page-sizes":[5,10,20],"page-size":e.searchData_Subset.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.subsetTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Subset,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Subset,"pageno",t)},"size-change":e.subsetSizeChange,"current-change":e.subsetCurrentChange}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submit()}}},[e._v("确定")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.innerVisible=!1}}},[e._v("关闭")])],1)])},staticRenderFns:[]},A=a("VU/8")(w,x,!1,null,null,null).exports,N={name:"equipment_info",components:{ChooseParts:_.a,btnInput:g.a,dialogChooseSingleUser:P.a,dialogChooseSingleUser1:P.a,dialogChooseSingleSupplier:I.a,dialogChooseSingleSupplier1:I.a,dialogChooseSingleSupplier2:I.a,ChooseDevices:D.a,dialogChooseStandard:A},data:function(){return{isDisabled:!1,fullscreenLoading:!1,auto_upload:!1,depOptions:[],selectDeptId:[],selectDeptIdChild:[],uploadUrl:$.a.uploadUrl,ftpPrefix:$.a.ftpPrefix,loading:!1,dialogVisible:!0,chooseSupplierVisible:!1,chooseSupplierVisible1:!1,chooseSupplierVisible2:!1,chooseDevicesVisible:!1,isNew:!0,formData:h()({serialno:"",name:"",type:"",factory:"",model:"",buyTime:"",deviceUse:"",deptId:"",facilitatorAddress:"",facilitatorLegalperson:"",facilitatorPhone:"",factoryId:"",parentId:"",producerAddress:"",producerLegalperson:"",producerPhone:"",serviceId:"",serviceYear:"",souceId:"",supplierAddress:"",supplierId:"",supplierLegalperson:"",supplierPhone:"",userId:"",usingStatus:"",usingTime:"",networkingFlag:!1,site:"",desc:"",engineerName:"",engineerId:"",userName:""},"userId",""),rulesForm:{serialno:[{required:!0,message:"请填写设备编号",trigger:"blur"}],name:[{required:!0,message:"请填写设备名称",trigger:"blur"}],type:[{required:!0,message:"请选择设备类别",trigger:"change"}],userId:[{required:!0,message:"请选择负责人",trigger:"change"}],usingStatus:[{required:!0,message:"请选择使用状况",trigger:"change"}],engineerName:[{required:!0,message:"请选择维修负责人",trigger:"change"}]},deviceType:[],deviceStatus:[],deviceDept:[],deviceSource:[],deviceUser:[],deviceList:[],devicePurpose:[],relevanceAll:[],safetyAll:[],facilitatorList:[],supplierList:[],producerList:[],uomList:[],materielTypes:[],activeName:"first",device_malfunctionTypes:[],searchData_Maintain:{pageno:1,pagesize:10},maintainList:[],maintainTotal:0,maintainAll:[],btnMaintain:!0,totalMaintainManHour:0,totalMaintainCost:0,upkeepAll:[],upkeepList:[],upkeepTotal:0,searchData_Upkeep:{pageno:1,pagesize:10},upkeepSpanArr:[],upkeepPos:0,btnUpkeep:!0,upKeepArr:[],searchData_Polling:{pageno:1,pagesize:20,time:""},pollingList:[],pollingTotal:0,pollingAll:[],btnPolling:!0,spanArr:[],pos:0,auxiliaryList:[],searchData_Auxiliary:{pageno:1,pagesize:10,id:""},auxiliaryTotal:0,auxiliaryAll:[],dialogAuxiliary:!1,subsetList:[],subsetAll:[],subsetTotal:0,formData_child:{pageno:1,pagesize:5},btnAuxiliary:!0,searchData_SparePart:{pageno:1,pagesize:10},sparePartsList:[],sparePartTotal:0,sparePartAll:[],dialogSpareParts:!1,subsetSPList:[],subsetSPAll:[],subsetSPTotal:0,formDataSP:{pageno:1,pagesize:5,auditSign:179},btnSparePart:!0,searchData_Document:{pageno:1,pagesize:10},documentList:[],documentTotal:0,documentAll:[],btnDocument:!0,chooseUserVisible:!1,chooseUserVisible1:!1,chooseMaterielsVisible:!1,docVisible:!1,fileOFNameAndPath:[],documentInfo:{taglocationappearanceImage:""},documentInfo_deptid:"",ruledocumentInfoform:{name:[{required:!0,message:"请填写文档名称",trigger:"blur"}],type:[{required:!0,message:"请选择文档类型",trigger:"change"}],up_user:[{required:!0,message:"请选择上传人",trigger:"change"}],device_name:[{required:!0,message:"请填写所属设备",trigger:"blur"}],deptid:[{required:!0,message:"请选择所属部门",trigger:"change"}],source:[{required:!0,message:"请选择来源",trigger:"change"}]},rulefacilityInfoform:{materielSerialNo:[{required:!0,message:"请选择产品",trigger:"blur"}],standardCapacity:[{required:!0,message:"请填写单件工时",trigger:"blur"}]},rulesuperviseInfoform:{checkitem:[{required:!0,message:"请填写检查事项",trigger:"blur"}],regulatorname:[{required:!0,message:"请填写监管机构",trigger:"blur"}]},ruleinsuranceInfoform:{sortid:[{required:!0,message:"请选择承保险别",trigger:"blur"}],amount:[{required:!0,message:"请填写保险金额",trigger:"blur"}]},sortid_list:[],searchData_Facility:{pageno:1,pagesize:10},facilityList:[],facilityTotal:0,facilityAll:[],btnFacility:!0,btnDelDisabled:!0,btnOtherDisabled:!0,facilityVisible:!1,facilityInfo:{materielId:"",materielName:"",materielSerialNo:"",specification:"",unitUomName:"",standardCapacity:""},searchData_Supervise:{pageno:1,pagesize:10},superviseList:[],superviseTotal:0,superviseAll:[],btnSupervise:!0,superviseVisible:!1,superviseInfo:{period:0},searchData_Insurance:{pageno:1,pagesize:10},insuranceList:[],insuranceTotal:0,insuranceAll:[],btnInsurance:!0,insuranceVisible:!1,insuranceInfo:{amount:"",settleamount:"",charge:""},searchData_Standard:{pageno:1,pagesize:10},standardList:[],standardTotal:0,standardAll:[],btnStandard:!0,standardVisible:!1,chooseStandardVisible:!1,standardInfo:{},thisIds:[],docSourceList:[],docTypeList:[],fileDocList:[],config:k.a}},mounted:function(){this.userInfo=JSON.parse(b.a.get("userInfo")),this.$set(this.facilityInfo,"createByName",this.userInfo.name),this.$set(this.facilityInfo,"createTime",Object(y.c)()),this.initData(),this.$route.query.id?(this.formData.id=this.$route.query.id,this.formData_child.deviceId=this.$route.query.id,this.isNew=!1,this.getDetail(),this.searchData_Maintain.deviceId=this.formData.id,this.searchData_Facility.deviceId=this.formData.id,this.searchData_Polling.deviceId=this.formData.id,this.searchData_Upkeep.deviceId=this.formData.id,this.searchData_Document.device_id=this.formData.id,this.searchData_Supervise.deviceid=this.formData.id,this.searchData_Insurance.deviceid=this.formData.id,this.searchData_Standard.deviceId=this.formData.id):this.isNew=!0},watch:{activeName:function(e){switch(e){case"first":break;case"second":this.maintainFun();break;case"third":this.upKeepFun();break;case"fourth":this.pollingFun();break;case"five":this.auxiliaryFun();break;case"six":this.sparePartsFun();break;case"seven":this.documentFun();break;case"eight":this.facilityFun();break;case"nine":this.superviseFun();break;case"ten":this.insuranceFun();break;case"eleven":this.standardFun()}},docVisible:function(e){this.$nextTick(function(){e||this.$refs.documentInfoform.resetFields()})},facilityVisible:function(e){this.$nextTick(function(){e||this.$refs.facilityInfoform.resetFields()})},superviseVisible:function(e){this.$nextTick(function(){e||this.$refs.superviseInfoform.resetFields()})},insuranceVisible:function(e){this.$nextTick(function(){e||this.$refs.insuranceInfoform.resetFields()})},formData:{handler:function(e,t){""!=e.factoryId&&void 0!=e.factoryId||(this.formData.producerLegalperson="",this.formData.producerPhone="",this.formData.producerAddress=""),""!=e.supplierId&&void 0!=e.supplierId||(this.formData.supplierLegalperson="",this.formData.supplierPhone="",this.formData.supplierAddress=""),""!=e.serviceId&&void 0!=e.serviceId||(this.formData.facilitatorLegalperson="",this.formData.facilitatorPhone="",this.formData.facilitatorAddress="")},deep:!0}},methods:m()({},Object(S.d)({removeTagNav:"tagNav/removeTagNav"}),(i={getDevice:function(e){console.log(e),e&&(this.formData.parentId=e.id,this.formData.parentName=e.name)},getUser:function(e){e?(this.$set(this.formData,"userName",e.name),this.$set(this.formData,"userId",e.id)):(this.$set(this.formData,"userName",""),this.$set(this.formData,"userId",""))},getUser1:function(e){e?(this.$set(this.formData,"engineerName",e.name),this.$set(this.formData,"engineerId",e.id)):(this.$set(this.formData,"engineerName",""),this.$set(this.formData,"engineerId",""))},getSupplier:function(e){console.log(e),e?(this.$set(this.formData,"factoryId",e.id),this.$set(this.formData,"factoryName",e.name),this.$set(this.formData,"producerLegalperson",e.linkmanName),this.$set(this.formData,"producerPhone",e.phone),this.$set(this.formData,"producerAddress",e.address)):(this.$set(this.formData,"factoryId",""),this.$set(this.formData,"factoryName",""),this.$set(this.formData,"producerLegalperson",""),this.$set(this.formData,"producerPhone",""),this.$set(this.formData,"producerAddress",""))},getSupplier1:function(e){e?(this.$set(this.formData,"supplierId",e.id),this.$set(this.formData,"supplierName",e.name),this.$set(this.formData,"supplierLegalperson",e.linkmanName),this.$set(this.formData,"supplierPhone",e.phone),this.$set(this.formData,"supplierAddress",e.address)):(this.$set(this.formData,"supplierId",""),this.$set(this.formData,"supplierName",""),this.$set(this.formData,"supplierLegalperson",""),this.$set(this.formData,"supplierPhone",""),this.$set(this.formData,"supplierAddress",""))},getSupplier2:function(e){e?(this.$set(this.formData,"serviceId",e.id),this.$set(this.formData,"serviceName",e.name),this.$set(this.formData,"facilitatorLegalperson",e.linkmanName),this.$set(this.formData,"facilitatorPhone",e.phone),this.$set(this.formData,"facilitatorAddress",e.address)):(this.$set(this.formData,"serviceId",""),this.$set(this.formData,"serviceName",""),this.$set(this.formData,"facilitatorLegalperson",""),this.$set(this.formData,"facilitatorPhone",""),this.$set(this.formData,"facilitatorAddress",""))},handleChangeAll:function(e){this.documentInfo.deptid=e.length>=1?e[e.length-1]:""},setSuperviseVisible:function(){this.superviseInfo={period:0},this.superviseVisible=!0},setInsuranceVisible:function(){this.insuranceInfo={settleamount:"",amount:"",charge:""},this.insuranceVisible=!0},treeFindPath:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,r=void 0;try{for(var n,l=p()(e);!(i=(n=l.next()).done);i=!0){var o=n.value;if(a.push(o.id),t(o))return a;if(o.children){var c=this.treeFindPath(o.children,t,a);if(c.length)return c}a.pop()}}catch(e){s=!0,r=e}finally{try{!i&&l.return&&l.return()}finally{if(s)throw r}}return[]},setDeptList:function(e){var t=!0,a=!1,i=void 0;try{for(var s,r=p()(e);!(t=(s=r.next()).done);t=!0){var n=s.value;n.hasChildren?this.setDeptList(n.children):n.children=void 0}}catch(e){a=!0,i=e}finally{try{!t&&r.return&&r.return()}finally{if(a)throw i}}},setDefaultDept:function(){if(this.depOptions.length>0&&this.formData.deptId){var e=c()(this.formData.deptId),t=this.treeFindPath(this.depOptions,function(t){return t.id===e});this.selectDeptId=JSON.parse(c()(t))}},handleChange:function(e){this.formData.deptId=e.length>=1?e[e.length-1]:"",this.selectDeptId=e},handleChangeChild:function(e){this.formData_child.deptId=e.length>=1?e[e.length-1]:"",this.selectDeptIdChild=e},getDetail:function(){var e=this,t=this;this.loading=!0,this.$nextTick().then(function(){e.$api.deviceAPI.detail(e.formData.id).then(function(a){0===a.code&&(t.formData.name=a.data.name,t.formData.jth=a.data.jth,t.formData.serialno=a.data.serialno,t.formData.parentId=a.data.parent_id?a.data.parent_id:"",t.formData.parentName=a.data.parent_name?a.data.parent_name:"",t.formData.buyTime=a.data.buy_time?a.data.buy_time:"",t.formData.deviceUse=a.data.device_use?a.data.device_use:"",t.formData.serviceYear=a.data.service_year?a.data.service_year:"",t.formData.userId=a.data.user_id?a.data.user_id:"",t.formData.userName=a.data.user_name?a.data.user_name:"",t.formData.engineerId=a.data.engineer_id?a.data.engineer_id:"",t.formData.engineerName=a.data.engineerName?a.data.engineerName:"",t.formData.souceId=a.data.souce_id?a.data.souce_id:"",t.formData.deptId=a.data.dept_id?a.data.dept_id:"",t.formData.usingTime=a.data.using_time?a.data.using_time:"",t.formData.networkingFlag=a.data.networkingFlag,t.formData.usingStatus=a.data.using_status?a.data.using_status:"",t.formData.type=a.data.type?a.data.type:"",t.formData.factory=a.data.factory?a.data.factory:"",t.formData.site=a.data.site?a.data.site:"",t.formData.model=a.data.model?a.data.model:"",t.formData.desc=a.data.desc?a.data.desc:"",t.formData.supplierId=a.data.supplier_id?a.data.supplier_id:"",t.formData.supplierName=a.data.supplier_name?a.data.supplier_name:"",t.formData.supplierLegalperson=a.data.supplierLinkmanName,t.formData.supplierPhone=a.data.supplier_phone,t.formData.supplierAddress=a.data.supplieraddress,t.formData.serviceId=a.data.service_id?a.data.service_id:"",t.formData.serviceName=a.data.service_name?a.data.service_name:"",t.formData.facilitatorLegalperson=a.data.serviceLinkmanName,t.formData.facilitatorPhone=a.data.service_phone,t.formData.facilitatorAddress=a.data.service_address,t.formData.factoryId=a.data.factory_id?a.data.factory_id:"",t.formData.factoryName=a.data.factory_name?a.data.factory_name:"",t.formData.producerLegalperson=a.data.factoryLinkmanName,t.formData.producerPhone=a.data.factory_phone,t.formData.producerAddress=a.data.factory_address,t.formData=m()({},t.formData),t.setDefaultDept()),e.loading=!1})}).catch(function(t){e.loading=!1})},initData:function(){var e=this;l.a.all([this.$api.dictAPI.getDictsByType("device_type"),this.$api.deviceAPI.getFatherDevice(),this.$api.dictAPI.getDictsByType("device_source"),this.$api.commonAPI.getDeptsTree(),this.$api.commonAPI.getUsers(),this.$api.dictAPI.getDictsByType("device_status"),this.$api.dictAPI.getDictsByType("device_purpose"),this.$api.supplierAPI.groupSupplier(),this.$api.supplierAPI.groupSupplier(),this.$api.supplierAPI.groupSupplier(),this.$api.dictAPI.getDictsByType("uom_type"),this.$api.dictAPI.getDictsByType("document_source"),this.$api.dictAPI.getDictsByType("document_type"),this.$api.materielAPI.typeList({pageno:1,pagesize:100}),this.$api.dictAPI.getDictsByType("device_malfunction"),this.$api.dictAPI.getDictsByType("insurance_coverage")].map(function(e){return e.catch(function(e){return e})})).then(function(t){var a=r()(t,16),i=a[0],s=a[1],n=a[2],l=a[3],o=a[4],c=a[5],u=a[6],p=a[7],d=a[8],m=a[9],f=a[10],h=a[11],g=a[12],v=a[13],b=a[14],y=a[15];0===i.code&&(e.deviceType=i.datas),0===s.code&&(e.deviceList=s.data),0===n.code&&(e.deviceSource=n.datas),0===l.code&&(e.depOptions=l.data.children,e.setDefaultDept(),e.setDeptList(e.depOptions),e.deviceDept=l.data.children),0===o.code&&(e.deviceUser=o.datas),0===c.code&&(e.deviceStatus=c.datas),0===u.code&&(e.devicePurpose=u.datas),0===p.code&&(e.producerList=p.data),0===d.code&&(e.supplierList=d.data),0===m.code&&(e.facilitatorList=m.data),0===f.code&&(e.uomList=f.datas),0===h.code&&(e.docSourceList=h.datas),0===g.code&&(e.docTypeList=g.datas),0===v.code&&(e.materielTypes=v.data.datas),0===b.code&&(e.device_malfunctionTypes=b.datas),0===y.code&&(e.sortid_list=y.datas)}).catch(function(e){console.log(e)})},back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.push({path:"/equipment/index",query:{t:Date.now()}})},saveBaseInfo:function(e){var t=this;void 0==this.formData.parentId&&(this.formData.parentId=""),this.$refs[e].validate(function(e){if(!e)return!1;if(t.isNew){if(t.isDisabled)return;t.isDisabled=!0,t.$api.deviceAPI.add(t.formData).then(function(e){t.isDisabled=!1,0===e.code?(t.$message({message:e.msg,type:"success"}),t.back()):501===e.code?t.$confirm(e.msg,"提示",{type:"warning"}).then(function(){t.formData={};var a=t;t.loading=!0,t.isNew=!1,t.$nextTick().then(function(){t.$api.deviceAPI.detail(e.data.id).then(function(e){0===e.code&&(a.formData.id=e.data.id,a.formData.name=e.data.name,a.formData.serialno=e.data.serialno,a.formData.parentId=e.data.parent_id?e.data.parent_id:"",a.formData.parentName=e.data.parent_name?e.data.parent_name:"",a.formData.buyTime=e.data.buy_time?e.data.buy_time:"",a.formData.deviceUse=e.data.device_use?e.data.device_use:"",a.formData.serviceYear=e.data.service_year?e.data.service_year:"",a.formData.userId=e.data.user_id?e.data.user_id:"",a.formData.userName=e.data.user_name?e.data.user_name:"",a.formData.engineerId=e.data.engineer_id?e.data.engineer_id:"",a.formData.engineerName=e.data.engineerName?e.data.engineerName:"",a.formData.souceId=e.data.souce_id?e.data.souce_id:"",a.formData.deptId=e.data.dept_id?e.data.dept_id:"",a.formData.usingTime=e.data.using_time?e.data.using_time:"",a.formData.networkingFlag=e.data.networkingFlag,a.formData.usingStatus=e.data.using_status?e.data.using_status:"",a.formData.type=e.data.type?e.data.type:"",a.formData.factory=e.data.factory?e.data.factory:"",a.formData.site=e.data.site?e.data.site:"",a.formData.model=e.data.model?e.data.model:"",a.formData.desc=e.data.desc?e.data.desc:"",a.formData.supplierId=e.data.supplier_id?e.data.supplier_id:"",a.formData.supplierName=e.data.supplier_name?e.data.supplier_name:"",a.formData.supplierLegalperson=e.data.supplierLinkmanName,a.formData.supplierPhone=e.data.supplier_phone,a.formData.supplierAddress=e.data.supplieraddress,a.formData.serviceId=e.data.service_id?e.data.service_id:"",a.formData.serviceName=e.data.service_name?e.data.service_name:"",a.formData.facilitatorLegalperson=e.data.serviceLinkmanName,a.formData.facilitatorPhone=e.data.service_phone,a.formData.facilitatorAddress=e.data.service_address,a.formData.factoryId=e.data.factory_id?e.data.factory_id:"",a.formData.factoryName=e.data.factory_name?e.data.factory_name:"",a.formData.producerLegalperson=e.data.factoryLinkmanName,a.formData.producerPhone=e.data.factory_phone,a.formData.producerAddress=e.data.factory_address,a.setDefaultDept()),t.loading=!1,console.log(t.formData)})}).catch(function(e){t.loading=!1})}):t.$message({message:e.msg,type:"error"})})}else{if(t.isDisabled)return;t.isDisabled=!0,t.$api.deviceAPI.edit(t.formData).then(function(e){t.isDisabled=!1,0===e.code?(t.$message({message:e.msg,type:"success"}),t.back()):t.$message({message:e.msg,type:"error"})})}})},producerFun:function(e){var t=this;this.producerList.forEach(function(a){e===a.id&&(t.formData.producerAddress=a.address,t.formData.producerLegalperson=a.linkman_name,t.formData.producerPhone=a.linkman_phone)})},supplierFun:function(e){var t=this;this.supplierList.forEach(function(a){e===a.id&&(t.formData.supplierAddress=a.address,t.formData.supplierLegalperson=a.linkman_name,t.formData.supplierPhone=a.linkman_phone)})},serviceFun:function(e){var t=this;this.facilitatorList.forEach(function(a){e===a.id&&(t.formData.facilitatorAddress=a.address,t.formData.facilitatorLegalperson=a.linkman_name,t.formData.facilitatorPhone=a.linkman_phone)})},maintainFun:function(e){var t=this;1==e&&(this.searchData_Maintain.pageno=1),this.searchData_Maintain.time?(this.searchData_Maintain.startTime=Object(y.b)(this.searchData_Maintain.time[0]),this.searchData_Maintain.endTime=Object(y.b)(this.searchData_Maintain.time[1])):(this.searchData_Maintain.startTime="",this.searchData_Maintain.endTime=""),this.$api.repairCheckAPI.deviceRepairEventList(this.searchData_Maintain).then(function(e){0===e.code&&(t.maintainList=e.data?e.data.datas:[],t.maintainTotal=e.data?e.data.totalRows:0,t.totalMaintainManHour=e.manHourTotal,t.totalMaintainCost=e.costTotal)})},maintainSizeChange:function(e){this.searchData_Maintain.pagesize=e,this.maintainFun()},maintainCurrentChange:function(e){this.searchData_Maintain.pageno=e,this.maintainFun()},ckMaintainAll:function(e){this.maintainAll=e,1==this.maintainAll.length?this.btnMaintain=!1:this.btnMaintain=!0},getMaintainSummaries:function(e){e.columns,e.data;var t=[];return t[0]="总计",t[7]=""+this.totalMaintainManHour,t[4]=""+this.totalMaintainCost,t},getUpkeepSummaries:function(e){e.columns;var t=e.data,a=[];return a[0]="总计",a[6]=0,a[7]=0,console.log(t),t.forEach(function(e){a[6]+=e.manhourCost,a[7]+=e.cost}),a},openMaintainDetails:function(e){this.$router.push({path:"/repair/detail",query:{id:e.eventId,t:Date.now()}})},addMaintain:function(){this.$alert("新增维修功能暂未开放","提示")},removeMaintain:function(){var e=this,t=[];this.maintainAll.forEach(function(e){t.push(e.eventId)});var a={ids:t};this.$confirm("确认删除选中的任务吗?","提示",{type:"warning"}).then(function(){e.$api.repairCheckAPI.batchRemove(a).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.maintainFun()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})},upKeepFun:function(e){var t=this;1==e&&(this.searchData_Upkeep.pageno=1),this.searchData_Upkeep.time?(this.searchData_Upkeep.startTime=Object(y.b)(this.searchData_Upkeep.time[0]),this.searchData_Upkeep.endTime=Object(y.b)(this.searchData_Upkeep.time[1])):(this.searchData_Upkeep.startTime="",this.searchData_Upkeep.endTime=""),this.$api.upkeepPlanAPI.getProByDeviceID(this.searchData_Upkeep).then(function(e){0===e.code&&(t.upkeepList=e.data.datas?e.data.datas:[],t.getUpKeepTable(),t.upkeepTotal=e.data?e.data.totalRows:0)})},openUpkeepDetails:function(e){this.$router.push({path:"/upkeep/execution_detail",query:{id:e.id,t:Date.now()}})},getUpKeepTable:function(){var e=this.upkeepList;this.upkeepSpanArr=[],this.upkeepPos=0;for(var t=0;t<e.length;t++)0===t?(this.upkeepSpanArr.push(1),this.upkeepPos=0):e[t].id===e[t-1].id?(this.upkeepSpanArr[this.upkeepPos]+=1,this.upkeepSpanArr.push(0)):(this.upkeepSpanArr.push(1),this.upkeepPos=t)},arrayUpKeepSpanMethod:function(e){e.row,e.column;var t=e.rowIndex;if(0===e.columnIndex){var a=this.upkeepSpanArr[t];return{rowspan:a,colspan:a>0?1:0}}},addUpkeep:function(){this.$alert("新增保养功能暂未开放","提示")},removeUpkeep:function(){var e=this,t=this.rowIds[0].id;this.$confirm("确认删除选中的保养记录吗?","提示",{type:"warning"}).then(function(){e.$api.upkeepPlanAPI.deletUpPlan(t).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.upKeepFun()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})},ckUpkeepAll:function(e){this.upkeepAll=e,1==this.upkeepAll.length?this.btnUpkeep=!1:this.btnUpkeep=!0},upkeepSizeChange:function(e){this.searchData_Upkeep.pagesize=e,this.upKeepFun()},upkeepCurrentChange:function(e){this.searchData_Upkeep.pageno=e,this.upKeepFun()},pollingFun:function(e){var t=this;1==e&&(this.searchData_Polling.pageno=1),this.searchData_Polling.time?(this.searchData_Polling.startTime=Object(y.b)(this.searchData_Polling.time[0]),this.searchData_Polling.endTime=Object(y.b)(this.searchData_Polling.time[1])):(this.searchData_Polling.startTime="",this.searchData_Polling.endTime=""),this.$api.patroPlanAPI.devicePatrolRecordListIncludeDetail(this.searchData_Polling).then(function(e){0===e.code&&(t.pollingList=e.data?e.data.datas:[],t.pollingTotal=e.data?e.data.totalRows:0,t.getMyTable())})},pollingSizeChange:function(e){this.searchData_Polling.pagesize=e,this.pollingFun()},pollingCurrentChange:function(e){this.searchData_Polling.pageno=e,this.pollingFun()},openPollingDetails:function(e){this.$router.push({path:"/inspection/daily_detail",query:{id:e.recordId,t:Date.now()}})},getMyTable:function(){var e=this.pollingList;this.spanArr=[],this.pos=0;for(var t=0;t<e.length;t++)0===t?(this.spanArr.push(1),this.pos=0):e[t].recordId===e[t-1].recordId?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=t)},arraySpanMethod:function(e){e.row,e.column;var t=e.rowIndex,a=e.columnIndex;if(0===a||1===a||2===a){var i=this.spanArr[t];return{rowspan:i,colspan:i>0?1:0}}},attachAuxiliary:function(){this.dialogAuxiliary=!0,this.searchSubset()},addAuxiliary:function(){this.$alert("新增子设备功能暂未开放","提示")},removeAuxiliary:function(){var e=this,t=[];this.$confirm("是否确定删除已选中的子设备?","提示",{type:"warning"}).then(function(){e.auxiliaryAll.forEach(function(e){t.push(e.id)}),e.$api.deviceAPI.unparent(t).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.auxiliaryFun()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})},auxiliaryFun:function(){var e=this;this.formData.id&&(this.searchData_Auxiliary.id=this.formData.id,this.$api.deviceAPI.listChild(this.searchData_Auxiliary).then(function(t){0===t.code&&(e.auxiliaryList=t.data?t.data.datas:[],e.auxiliaryTotal=t.data?t.data.totalRows:0)}))},auxiliarySizeChange:function(e){this.searchData_Auxiliary.pagesize=e,this.auxiliaryFun()},auxiliaryCurrentChange:function(e){this.searchData_Auxiliary.pageno=e,this.auxiliaryFun()},ckAuxiliaryAll:function(e){this.auxiliaryAll=e,this.auxiliaryAll.length>=1?this.btnAuxiliary=!1:this.btnAuxiliary=!0},auxiliaySave:function(){var e=this;if(this.subsetAll.length>0){var t=[];this.subsetAll.forEach(function(e){t.push(e.id)}),this.$api.deviceAPI.fatherAddChilds({ids:t,id:this.formData.id}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.dialogAuxiliary=!1,e.auxiliaryFun()):e.$message({message:t.msg?t.msg:"附加失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"附加失败,请重试",type:"error"})})}},searchSubset:function(e){var t=this;e&&(this.formData_child.pageno=1),this.$api.deviceAPI.childDevice(this.formData_child).then(function(e){0===e.code&&(t.subsetList=e.data?e.data.datas:[],t.subsetTotal=e.data?e.data.totalRows:0)})},ckSubsetAll:function(e){this.subsetAll=e},subsetSizeChange:function(e){this.formData.pagesize=e,this.searchSubset()},subsetCurrentChange:function(e){this.formData.pageno=e,this.searchSubset()},sparePartsFun:function(){var e=this;this.formData.id&&(this.searchData_SparePart.id=this.formData.id,this.$api.deviceAPI.sparePartList(this.formData.id).then(function(t){0===t.code&&(e.sparePartsList=t.data?t.data.datas:[],e.sparePartTotal=t.data?t.data.totalRows:0)}))},clickSubsetSPRow:function(e){this.$refs.tb.toggleRowSelection(e)},chooseSparePartsBtn:function(){this.formData.id?(this.dialogSpareParts=!0,this.searchSubsetSP()):this.$alert("请新增设备资料详情并选择主设备","提示")},removeSpareParts:function(){var e=this;if(this.formData.id){var t=[];this.$confirm("是否确定删除关联备件?","提示",{type:"warning"}).then(function(){e.sparePartAll.forEach(function(e){t.push(e.id)}),e.$api.deviceAPI.deletchilds({id:e.formData.id,ids:t}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.sparePartsFun()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})}else this.$alert("请新增设备资料详情并选择主设备","提示")},ckSparePartAll:function(e){this.sparePartAll=e,this.sparePartAll.length>0?this.btnSparePart=!1:this.btnSparePart=!0},sparePartsSizeChange:function(e){this.searchData_SparePart.pagesize=e,this.sparePartsFun()},sparePartsCurrentChange:function(e){this.searchData_SparePart.pageno=e,this.sparePartsFun()},sparePartSave:function(){var e=this;if(this.subsetSPAll.length>0){var t=[];this.subsetSPAll.forEach(function(e){t.push(e.id)}),this.$api.deviceAPI.fatherAddchilds({ids:t,id:this.formData.id}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.dialogSpareParts=!1,e.sparePartsFun()):e.$message({message:t.msg?t.msg:"添加失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"添加失败,请重试",type:"error"})})}},searchSubsetSP:function(e){var t=this;e&&(this.formDataSP.pageno=1),this.$api.materielAPI.list(this.formDataSP).then(function(e){0===e.code&&(t.subsetSPList=e.data?e.data.datas:[],t.subsetSPTotal=e.data?e.data.totalRows:0)})},ckSubsetSPAll:function(e){this.subsetSPAll=e},subsetSPSizeChange:function(e){this.formDataSP.pagesize=e,this.searchSubsetSP()},subsetSPCurrentChange:function(e){this.formDataSP.pageno=e,this.searchSubsetSP()},documentFun:function(){var e=this;this.$api.deviceAPI.listDocPage(this.searchData_Document).then(function(t){0===t.code&&(e.documentList=t.data?t.data.datas:[],e.documentTotal=t.data?t.data.totalRows:0)})},documentSizeChange:function(e){this.searchData_Document.pagesize=e,this.maintainFun()},documentCurrentChange:function(e){this.searchData_Document.pageno=e,this.maintainFun()},ckDocumentAll:function(e){this.documentAll=e,this.documentAll.length>0?this.btnDocument=!1:this.btnDocument=!0},docUpUserChange:function(e){var t=void 0;if(this.deviceUser.forEach(function(a){e===a.id&&(t=a.deptId)}),this.depOptions.length>0&&t){var a=c()(t),i=this.treeFindPath(this.depOptions,function(e){return e.id===a});this.documentInfo_deptid=JSON.parse(c()(i)),this.documentInfo.deptid=this.documentInfo_deptid.length>=1?this.documentInfo_deptid[this.documentInfo_deptid.length-1]:""}},addDocument:function(){this.documentInfo={},this.documentInfo_deptid="",this.fileOFNameAndPath=[],this.fileDocList=[],this.documentInfo.device_id=this.formData.id,this.documentInfo.device_name=this.formData.name,this.docVisible=!0},handleRemove:function(e,t){if(e.raw){for(var a=void 0,i=0;i<this.fileOFNameAndPath.length;i++)this.fileOFNameAndPath[i].filePath==e.raw.filePath&&(a=i);this.fileOFNameAndPath.splice(a,1)}else{for(var s=void 0,r=0;r<this.fileOFNameAndPath.length;r++)this.fileOFNameAndPath[r].filePath==e.url.substr(1)&&(s=r);this.fileOFNameAndPath.splice(s,1)}},uploadSuccess:function(e,t){"操作成功"===e.msg&&this.fileOFNameAndPath.push({filePath:e.filePath,fileName:e.fileName})},httpRequest:function(e,t,a){var i=this,s=new FormData;s.append("file",e,t),this.$api.commonAPI.uploadUrl(s).then(function(t){i.fullscreenLoading=!1,0==t.code?(i.$message({message:"上传成功",type:"success",duration:2e3}),a?a.filePath=t.filePath:e.filePath=t.filePath,i.fileOFNameAndPath.push({filePath:t.filePath,fileName:t.fileName})):(i.fullscreenLoading=!1,i.$message.error("上传失败"),i.$refs.upload.uploadFiles.splice(i.$refs.upload.uploadFiles.length-1,1))})},onPreview:function(e){e.url?window.open(e.url):e.raw&&window.open(this.ftpPrefix+e.raw.filePath)},onChange:function(e,t){if(e.size>5e6)return this.$message.error("上传文件不能超过5M!"),this.$refs.upload.fileList=this.$refs.upload.fileList,this.$refs.upload.uploadFiles.splice(this.$refs.upload.uploadFiles.length-1,1),!1;e=e.raw;var a=this;/image\/\w+/.test(e.type)?(this.fullscreenLoading=!0,C.a.compressAccurately(e,400).then(function(t){t.size?a.httpRequest(t,e.name,e):(a.$message.error("压缩图片失败"),a.fullscreenLoading=!1,a.$refs.upload.uploadFiles.splice(a.$refs.upload.uploadFiles.length-1,1))}).catch(function(t){a.httpRequest(e,e.name)})):(this.fullscreenLoading=!0,this.httpRequest(e,e.name))},removeDocument:function(){var e=this,t=[];this.$confirm("确认删除选中的文档资料记录吗?","提示",{type:"warning"}).then(function(){e.documentAll.forEach(function(e){t.push(e.id)}),e.$api.documentAPI.batchRemove(t).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.documentFun()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})},saveDocument:function(e){var t=this;if(this.documentInfo.deviceId=this.formData.id,null!=this.fileOFNameAndPath&&this.fileOFNameAndPath.length>0){var a=[];this.fileOFNameAndPath.forEach(function(e){var t={fileName:e.fileName,filePath:e.filePath};a.push(t)}),this.documentInfo.taglocationappearanceImage=c()(a)}this.$refs[e].validate(function(e){e&&(0!=t.fileOFNameAndPath.length?t.$api.deviceAPI.addDoc(t.documentInfo).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.docVisible=!1,t.documentFun()):t.$message({message:e.msg,type:"error"})}):t.$message({message:"请上传附件",type:"warning"}))})},printDocument:function(){this.$alert("打印文档资料功能暂未开放","提示")},downDocument:function(){var e=this;this.documentAll.forEach(function(t){window.location=e.ftpPrefix+"gyhl/apis/document/downloads?assocType=DEVICE_ARTECLE_IMAGE&id="+t.id})},facilityFun:function(){var e=this;this.$api.deviceCapacityAPI.deviceCapacityList(this.searchData_Facility).then(function(t){0===t.code&&(e.facilityList=t.data?t.data.datas:[],e.facilityTotal=t.data?t.data.totalRows:0)})},getPart:function(e){console.log(e),e&&(this.$set(this.facilityInfo,"materielSerialNo",e.serialNo),this.$set(this.facilityInfo,"materielName",e.name),this.$set(this.facilityInfo,"specification",e.specification),this.$set(this.facilityInfo,"unitUomName",e.unitUomName),this.$set(this.facilityInfo,"materielId",e.id))},addFacility:function(){this.$alert("新增设备参数功能暂未开放","提示")},saveFacilityAndClose:function(e){var t=this;this.facilityInfo.deviceId=this.formData.id,this.$refs[e].validate(function(e){e&&t.$api.deviceCapacityAPI.deviceCapacitySave(t.facilityInfo).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.facilityVisible=!1,t.facilityFun()):t.$message({message:e.msg,type:"error"})})})},saveFacilityAndOn:function(e){var t=this;this.facilityInfo.deviceId=this.formData.id,this.$refs[e].validate(function(e){e&&t.$api.deviceCapacityAPI.deviceCapacitySave(t.facilityInfo).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.clearFacility()):t.$message({message:e.msg,type:"error"})})})},clearFacility:function(){this.facilityInfo={materielId:"",materielName:"",materielSerialNo:"",specification:"",unitUomName:"",standardCapacity:""},this.$set(this.facilityInfo,"createByName",this.userInfo.name),this.$set(this.facilityInfo,"createTime",Object(y.c)()),this.$refs.facilityInfoform.resetFields()}},h()(i,"addFacility",function(){this.facilityVisible=!0,this.clearFacility()}),h()(i,"editFacility",function(){var e=this;this.facilityVisible=!0;var t=this.facilityAll[0].id;this.$api.deviceCapacityAPI.deviceCapacityDetail(t).then(function(t){0==t.code&&(console.log(t.data),e.facilityInfo=t.data)})}),h()(i,"removeFacility",function(){var e=this,t=[];this.facilityAll.forEach(function(e){t.push(e.id)}),this.$confirm("确认删除选中的记录吗?","提示",{type:"warning"}).then(function(){e.$api.deviceCapacityAPI.deviceCapacityBatchRemove(t).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.facilityFun()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})}),h()(i,"ckFacilityAll",function(e){this.facilityAll=e;var t=!0,a=!0;e.length>0?(a=!1,1==e.length&&(t=!1)):(t=!0,a=!0),this.btnDelDisabled=a,this.btnOtherDisabled=t}),h()(i,"facilityCurrentChange",function(e){this.searchData_Facility.pageno=e,this.facilityFun()}),h()(i,"facilitySizeChange",function(e){this.searchData_Facility.pagesize=e,this.facilityFun()}),h()(i,"superviseFun",function(){var e=this;this.$api.deviceAPI.listSupervise(this.searchData_Supervise).then(function(t){0===t.code&&(e.superviseList=t.data?t.data.datas:[],e.superviseTotal=t.data?t.data.totalRows:0)})}),h()(i,"superviseSizeChange",function(e){this.searchData_Supervise.pagesize=e,this.superviseFun()}),h()(i,"superviseCurrentChange",function(e){this.searchData_Supervise.pageno=e,this.superviseFun()}),h()(i,"ckSuperviseAll",function(e){this.superviseAll=e,this.superviseAll.length>=1?this.btnSupervise=!1:this.btnSupervise=!0}),h()(i,"saveSupervise",function(e){var t=this;this.superviseInfo.deviceid=this.formData.id,this.$refs[e].validate(function(e){e&&t.$api.deviceAPI.addSupervise(t.superviseInfo).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.superviseVisible=!1,t.superviseFun()):t.$message({message:e.msg,type:"error"})})})}),h()(i,"addSupervise",function(){this.$alert("新增安监管理功能暂未开放","提示")}),h()(i,"printSupervise",function(){this.$alert("打印安监管理功能暂未开放","提示")}),h()(i,"removeSupervise",function(){var e=this,t=[];this.superviseAll.forEach(function(e){t.push(e.id)}),this.$confirm("确认删除选中的记录吗?","提示",{type:"warning"}).then(function(){e.$api.deviceAPI.removeSupervise(t).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.superviseFun()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})}),h()(i,"insuranceFun",function(){var e=this;this.$api.deviceAPI.listPage(this.searchData_Insurance).then(function(t){0===t.code&&(e.insuranceList=t.data?t.data.datas:[],e.insuranceTotal=t.data?t.data.totalRows:0)})}),h()(i,"insuranceSizeChange",function(e){this.searchData_Insurance.pagesize=e,this.insuranceFun()}),h()(i,"insuranceCurrentChange",function(e){this.searchData_Insurance.pageno=e,this.insuranceFun()}),h()(i,"ckInsuranceAll",function(e){this.insuranceAll=e,this.insuranceAll.length>=1?this.btnInsurance=!1:this.btnInsurance=!0}),h()(i,"addInsurance",function(){this.$alert("新增保险记录功能暂未开放","提示")}),h()(i,"saveInsurance",function(e){var t=this;this.insuranceInfo.deviceid=this.formData.id,this.$refs[e].validate(function(e){e&&t.$api.deviceAPI.addInsurance(t.insuranceInfo).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.insuranceVisible=!1,t.insuranceFun()):t.$message({message:e.msg,type:"error"})})})}),h()(i,"removeInsurance",function(){var e=this,t=[];this.insuranceAll.forEach(function(e){t.push(e.id)}),this.$confirm("确认删除选中的保险记录吗?","提示",{type:"warning"}).then(function(){e.$api.deviceAPI.deleteMore(t).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.insuranceFun()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})}),h()(i,"standardFun",function(){var e=this;this.$api.standardAPI.standardPageList(this.searchData_Standard).then(function(t){0===t.code&&(e.standardList=t.data?t.data.datas:[],e.standardTotal=t.data?t.data.totalRows:0)})}),h()(i,"standardSizeChange",function(e){this.searchData_Standard.pagesize=e,this.standardFun()}),h()(i,"standardCurrentChange",function(e){this.searchData_Standard.pageno=e,this.standardFun()}),h()(i,"ckStandardAll",function(e){this.standardAll=e,this.standardAll.length>=1?this.btnStandard=!1:this.btnStandard=!0}),h()(i,"getStandard",function(e){console.log(e);var t=[];e.forEach(function(e){e.patrolProjectName=e.name,e.patrolProjectId=e.id,e.patrolProjectFunction=e.function,delete e.name,delete e.id,delete e.function,delete e.code,t.push(e.patrolProjectId)}),this.thisIds=t,console.log(this.thisIds),this.standardList=this.standardList.concat(e),this.saveStandard()}),h()(i,"removeStandard",function(){var e=this,t=[];this.standardAll.forEach(function(e){t.push(e.id)}),console.log(t),this.$confirm("确认删除选中的巡检标准吗?","提示",{type:"warning"}).then(function(){e.$api.standardAPI.standardBatchRemove(t).then(function(t){0==t.code?(e.$message({message:t.msg,type:"success"}),e.standardFun()):e.$message({message:t.msg,type:"error"})})})}),h()(i,"saveStandard",function(){var e=this;this.$api.standardAPI.standardSave({deviceId:this.formData.id,patrolProjectIds:this.thisIds}).then(function(t){0==t.code?(e.$message({message:t.msg,type:"success"}),e.standardFun()):(e.$message({message:t.msg,type:"error"}),e.standardFun())})}),i))},z={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box plan-box"},[a("div",{staticClass:"sys-tabs"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"设备资料详情",name:"first"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.back()}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isDisabled},on:{click:function(t){return e.saveBaseInfo("form")}}},[e._v("保存")])],1),e._v(" "),a("div",{staticClass:"sys-form"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{"label-width":"110px",model:e.formData,rules:e.rulesForm}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"设备编号",prop:"serialno"}},[a("el-input",{attrs:{placeholder:"请输入设备编号"},model:{value:e.formData.serialno,callback:function(t){e.$set(e.formData,"serialno",t)},expression:"formData.serialno"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"设备名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入设备名称"},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"机台号",prop:"jth"}},[a("el-input",{attrs:{placeholder:"机台号"},model:{value:e.formData.jth,callback:function(t){e.$set(e.formData,"jth",t)},expression:"formData.jth"}})],1)],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"设备类别",prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择设备类别"},model:{value:e.formData.type,callback:function(t){e.$set(e.formData,"type",t)},expression:"formData.type"}},e._l(e.deviceType,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"品牌"}},[a("el-input",{attrs:{placeholder:"请输入品牌"},model:{value:e.formData.factory,callback:function(t){e.$set(e.formData,"factory",t)},expression:"formData.factory"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"规格型号"}},[a("el-input",{attrs:{placeholder:"请输入规格型号"},model:{value:e.formData.model,callback:function(t){e.$set(e.formData,"model",t)},expression:"formData.model"}})],1)],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"主设备"}},[a("btn-input",{attrs:{valueText:e.formData.parentName,valueId:e.formData.parentId,chooseVisible:e.chooseDevicesVisible},on:{"update:valueText":function(t){return e.$set(e.formData,"parentName",t)},"update:value-text":function(t){return e.$set(e.formData,"parentName",t)},"update:valueId":function(t){return e.$set(e.formData,"parentId",t)},"update:value-id":function(t){return e.$set(e.formData,"parentId",t)},"update:chooseVisible":function(t){e.chooseDevicesVisible=t},"update:choose-visible":function(t){e.chooseDevicesVisible=t}}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"购置时间"}},[a("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.formData.buyTime,callback:function(t){e.$set(e.formData,"buyTime",t)},expression:"formData.buyTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"使用年限(年)",prop:"serviceYear"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入使用年限",min:0},model:{value:e.formData.serviceYear,callback:function(t){e.$set(e.formData,"serviceYear",t)},expression:"formData.serviceYear"}})],1)],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"设备来源"}},[a("el-select",{attrs:{placeholder:"请选择使用状况",clearable:""},model:{value:e.formData.souceId,callback:function(t){e.$set(e.formData,"souceId",t)},expression:"formData.souceId"}},e._l(e.deviceSource,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"启用时间"}},[a("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.formData.usingTime,callback:function(t){e.$set(e.formData,"usingTime",t)},expression:"formData.usingTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",staticStyle:{width:"30%"},attrs:{label:"是否联网"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#EAECF0"},model:{value:e.formData.networkingFlag,callback:function(t){e.$set(e.formData,"networkingFlag",t)},expression:"formData.networkingFlag"}})],1),e._v(" "),a("el-divider"),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"使用部门"}},[a("el-cascader",{attrs:{clearable:"",options:e.depOptions,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:e.handleChange},model:{value:e.selectDeptId,callback:function(t){e.selectDeptId=t},expression:"selectDeptId"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"负责人",prop:"userId"}},[a("btn-input",{attrs:{valueText:e.formData.userName,valueId:e.formData.userId,chooseVisible:e.chooseUserVisible},on:{"update:valueText":function(t){return e.$set(e.formData,"userName",t)},"update:value-text":function(t){return e.$set(e.formData,"userName",t)},"update:valueId":function(t){return e.$set(e.formData,"userId",t)},"update:value-id":function(t){return e.$set(e.formData,"userId",t)},"update:chooseVisible":function(t){e.chooseUserVisible=t},"update:choose-visible":function(t){e.chooseUserVisible=t}}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"使用状况",prop:"usingStatus"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择使用状况"},model:{value:e.formData.usingStatus,callback:function(t){e.$set(e.formData,"usingStatus",t)},expression:"formData.usingStatus"}},e._l(e.deviceStatus,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"设备用途"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择设备用途"},model:{value:e.formData.deviceUse,callback:function(t){e.$set(e.formData,"deviceUse",t)},expression:"formData.deviceUse"}},e._l(e.devicePurpose,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"安装地点"}},[a("el-input",{model:{value:e.formData.site,callback:function(t){e.$set(e.formData,"site",t)},expression:"formData.site"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"维修负责人",prop:"engineerName"}},[a("btn-input",{attrs:{valueText:e.formData.engineerName,valueId:e.formData.engineerId,chooseVisible:e.chooseUserVisible1},on:{"update:valueText":function(t){return e.$set(e.formData,"engineerName",t)},"update:value-text":function(t){return e.$set(e.formData,"engineerName",t)},"update:valueId":function(t){return e.$set(e.formData,"engineerId",t)},"update:value-id":function(t){return e.$set(e.formData,"engineerId",t)},"update:chooseVisible":function(t){e.chooseUserVisible1=t},"update:choose-visible":function(t){e.chooseUserVisible1=t}}})],1)],1),e._v(" "),a("el-divider"),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"生产商"}},[a("btn-input",{attrs:{valueText:e.formData.factoryName,valueId:e.formData.factoryId,chooseVisible:e.chooseSupplierVisible},on:{"update:valueText":function(t){return e.$set(e.formData,"factoryName",t)},"update:value-text":function(t){return e.$set(e.formData,"factoryName",t)},"update:valueId":function(t){return e.$set(e.formData,"factoryId",t)},"update:value-id":function(t){return e.$set(e.formData,"factoryId",t)},"update:chooseVisible":function(t){e.chooseSupplierVisible=t},"update:choose-visible":function(t){e.chooseSupplierVisible=t}}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"联系人"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formData.producerLegalperson,callback:function(t){e.$set(e.formData,"producerLegalperson",t)},expression:"formData.producerLegalperson"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"联系电话"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formData.producerPhone,callback:function(t){e.$set(e.formData,"producerPhone",t)},expression:"formData.producerPhone"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"生产商地址"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formData.producerAddress,callback:function(t){e.$set(e.formData,"producerAddress",t)},expression:"formData.producerAddress"}})],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"供应商"}},[a("btn-input",{attrs:{valueText:e.formData.supplierName,valueId:e.formData.supplierId,chooseVisible:e.chooseSupplierVisible1},on:{"update:valueText":function(t){return e.$set(e.formData,"supplierName",t)},"update:value-text":function(t){return e.$set(e.formData,"supplierName",t)},"update:valueId":function(t){return e.$set(e.formData,"supplierId",t)},"update:value-id":function(t){return e.$set(e.formData,"supplierId",t)},"update:chooseVisible":function(t){e.chooseSupplierVisible1=t},"update:choose-visible":function(t){e.chooseSupplierVisible1=t}}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"联系人"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formData.supplierLegalperson,callback:function(t){e.$set(e.formData,"supplierLegalperson",t)},expression:"formData.supplierLegalperson"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"联系电话"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formData.supplierPhone,callback:function(t){e.$set(e.formData,"supplierPhone",t)},expression:"formData.supplierPhone"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"供应商地址"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formData.supplierAddress,callback:function(t){e.$set(e.formData,"supplierAddress",t)},expression:"formData.supplierAddress"}})],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"服务商"}},[a("btn-input",{attrs:{valueText:e.formData.serviceName,valueId:e.formData.serviceId,chooseVisible:e.chooseSupplierVisible2},on:{"update:valueText":function(t){return e.$set(e.formData,"serviceName",t)},"update:value-text":function(t){return e.$set(e.formData,"serviceName",t)},"update:valueId":function(t){return e.$set(e.formData,"serviceId",t)},"update:value-id":function(t){return e.$set(e.formData,"serviceId",t)},"update:chooseVisible":function(t){e.chooseSupplierVisible2=t},"update:choose-visible":function(t){e.chooseSupplierVisible2=t}}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"联系人"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formData.facilitatorLegalperson,callback:function(t){e.$set(e.formData,"facilitatorLegalperson",t)},expression:"formData.facilitatorLegalperson"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"联系电话"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formData.facilitatorPhone,callback:function(t){e.$set(e.formData,"facilitatorPhone",t)},expression:"formData.facilitatorPhone"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"服务商地址"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formData.facilitatorAddress,callback:function(t){e.$set(e.formData,"facilitatorAddress",t)},expression:"formData.facilitatorAddress"}})],1),e._v(" "),a("el-divider"),e._v(" "),a("el-form-item",{staticClass:"form-block",attrs:{label:"备注"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:4},placeholder:"请填写备注"},model:{value:e.formData.desc,callback:function(t){e.$set(e.formData,"desc",t)},expression:"formData.desc"}})],1)],1)],1)]),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"维修记录",name:"second"}},[a("div",{staticClass:"sys-operate"}),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"维修时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"—","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.searchData_Maintain.time,callback:function(t){e.$set(e.searchData_Maintain,"time",t)},expression:"searchData_Maintain.time"}})],1),e._v(" "),a("el-form-item",[a("el-form-item",{staticClass:"form-inline",attrs:{label:"故障类型",prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择故障类型"},model:{value:e.searchData_Maintain.type,callback:function(t){e.$set(e.searchData_Maintain,"type",t)},expression:"searchData_Maintain.type"}},e._l(e.device_malfunctionTypes,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.maintainFun(1)}}},[e._v("查询")])],1)],1)],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{attrs:{data:e.maintainList,"summary-method":e.getMaintainSummaries,"show-summary":"","header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.ckMaintainAll}},[a("el-table-column",{attrs:{align:"center",label:"任务单号",width:"180px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.openMaintainDetails(t.row)}}},[e._v(e._s(t.row.workOrederNo))])]}}],null,!1,1474536863)}),e._v(" "),a("el-table-column",{attrs:{prop:"typeName",align:"center","show-overflow-tooltip":"",label:"故障类型"}}),e._v(" "),a("el-table-column",{attrs:{prop:"usageName",align:"center","show-overflow-tooltip":"",label:"使用状况"}}),e._v(" "),a("el-table-column",{attrs:{prop:"offHour",align:"center",label:"停机时长","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"cost",align:"center",label:"维修成本(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"startTime",align:"center","show-overflow-tooltip":"",label:"维修开始时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"endTime",align:"center","show-overflow-tooltip":"",label:"维修完成时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"manHour",align:"center",label:"维修工时(小时)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"cause",align:"center","show-overflow-tooltip":"",label:"故障原因"}}),e._v(" "),a("el-table-column",{attrs:{prop:"solution",align:"center","show-overflow-tooltip":"",label:"维修方案"}}),e._v(" "),a("el-table-column",{attrs:{prop:"heldPersonName",align:"center",label:"维修人","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"statusName",align:"center",label:"维修结果","show-overflow-tooltip":""}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Maintain.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_Maintain.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.maintainTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Maintain,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Maintain,"pageno",t)},"size-change":e.maintainSizeChange,"current-change":e.maintainCurrentChange}})],1)]):e._e(),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"保养记录",name:"third"}},[a("div",{staticClass:"sys-operate"}),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"保养时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"—","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.searchData_Upkeep.time,callback:function(t){e.$set(e.searchData_Upkeep,"time",t)},expression:"searchData_Upkeep.time"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.upKeepFun(1)}}},[e._v("查询")])],1)],1)],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{attrs:{"summary-method":e.getUpkeepSummaries,"show-summary":"",data:e.upkeepList,"span-method":e.arrayUpKeepSpanMethod,border:"","header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}}},[a("el-table-column",{attrs:{prop:"planCode","show-overflow-tooltip":"",label:"保养单号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.openUpkeepDetails(t.row)}}},[e._v(e._s(t.row.planCode))])]}}],null,!1,2858466765)}),e._v(" "),a("el-table-column",{attrs:{prop:"startTime",label:"保养时间",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"proName","show-overflow-tooltip":"",label:"保养项目",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"function","show-overflow-tooltip":"",label:"保养方法",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"resultName","show-overflow-tooltip":"",label:"任务状态",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"endTime",label:"保养完成时间",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"manhourCost","show-overflow-tooltip":"",label:"保养工时(小时)",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"cost","show-overflow-tooltip":"",label:"保养费用(元)",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"result","show-overflow-tooltip":"",label:"保养结果",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Upkeep.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_Upkeep.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.upkeepTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Upkeep,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Upkeep,"pageno",t)},"size-change":e.upkeepSizeChange,"current-change":e.upkeepCurrentChange}})],1)]):e._e(),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"巡检记录",name:"fourth"}},[a("div",{staticClass:"sys-search"},[a("el-form",{attrs:{inline:""}},[a("el-form-item",{staticClass:"search-line",attrs:{label:"实际完成巡检日期"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"—",placeholder:"请输入日期","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.searchData_Polling.time,callback:function(t){e.$set(e.searchData_Polling,"time",t)},expression:"searchData_Polling.time"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.pollingFun(1)}}},[e._v("查询")])],1)],1)],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{attrs:{data:e.pollingList,"span-method":e.arraySpanMethod,border:"","header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}}},[a("el-table-column",{attrs:{prop:"workOrderNo","show-overflow-tooltip":"",label:"巡检单号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.openPollingDetails(t.row)}}},[e._v(e._s(t.row.workOrderNo))])]}}],null,!1,2929831612)}),e._v(" "),a("el-table-column",{attrs:{prop:"patrolpersonName",label:"巡检人员",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"recordName",label:"记录名称",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"projectName",label:"巡检项目",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"projectFunction","show-overflow-tooltip":"",label:"巡检标准",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"projectResult","show-overflow-tooltip":"",label:"巡检结果",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.projectResult?a("p",{staticClass:"success"},[e._v("\n 正常\n ")]):0===t.row.projectResult?a("p",{staticClass:"error"},[e._v("\n 异常\n ")]):e._e()]}}],null,!1,432837240)}),e._v(" "),a("el-table-column",{attrs:{prop:"recordStatusName","show-overflow-tooltip":"",label:"任务状态",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"completeTime","show-overflow-tooltip":"",label:"计划完成时间",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Polling.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_Polling.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.pollingTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Polling,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Polling,"pageno",t)},"size-change":e.pollingSizeChange,"current-change":e.pollingCurrentChange}})],1)]):e._e(),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"附属子设备",name:"five"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.attachAuxiliary()}}},[e._v("附加子设备")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.btnAuxiliary},on:{click:function(t){return e.removeAuxiliary()}}},[e._v("删除")])],1),e._v(" "),a("div",{staticClass:"sys-table",staticStyle:{"margin-top":"10px"}},[a("el-table",{attrs:{data:e.auxiliaryList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.ckAuxiliaryAll}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"serialno","show-overflow-tooltip":"",label:"设备编号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"设备名称","show-overflow-tooltip":"",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"model",label:"规格型号","show-overflow-tooltip":"",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"typen_dicames",width:"100",label:"设备类型",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"status_dicname",width:"100",label:"使用状况",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"site",width:"120","show-overflow-tooltip":"",label:"安装地点",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{width:"100",prop:"dept_name","show-overflow-tooltip":"",label:"使用部门",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"user_dicname",width:"100","show-overflow-tooltip":"",label:"负责人",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Auxiliary.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_Auxiliary.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.auxiliaryTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Auxiliary,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Auxiliary,"pageno",t)},"size-change":e.auxiliarySizeChange,"current-change":e.auxiliaryCurrentChange}})],1)]):e._e(),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"关联备件",name:"six"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.chooseSparePartsBtn()}}},[e._v("选择备件")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.btnSparePart},on:{click:function(t){return e.removeSpareParts()}}},[e._v("删除")])],1),e._v(" "),a("div",{staticClass:"sys-table",staticStyle:{"margin-top":"10px"}},[a("el-table",{attrs:{data:e.sparePartsList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.ckSparePartAll}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"code","show-overflow-tooltip":"",label:"备件编号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"备件名称","show-overflow-tooltip":"",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"type",label:"备件型号","show-overflow-tooltip":"",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"partCount",label:"即时库存",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_SparePart.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_SparePart.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.sparePartTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_SparePart,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_SparePart,"pageno",t)},"size-change":e.sparePartsSizeChange,"current-change":e.sparePartsCurrentChange}})],1)]):e._e(),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"文档资料",name:"seven"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addDocument()}}},[e._v("新增")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.btnDocument},on:{click:function(t){return e.removeDocument()}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.btnDocument},on:{click:function(t){return e.downDocument()}}},[e._v("下载")])],1),e._v(" "),a("div",{staticClass:"sys-table",staticStyle:{"margin-top":"10px"}},[a("el-table",{attrs:{data:e.documentList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.ckDocumentAll}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name","show-overflow-tooltip":"",label:"文档名称",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"typename",label:"文档类型",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sourcename",label:"来源",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"version",label:"版本号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"upname",label:"上传人",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"up_time","show-overflow-tooltip":"",label:"上传时间",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Document.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_Document.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.documentTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Document,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Document,"pageno",t)},"size-change":e.documentSizeChange,"current-change":e.documentCurrentChange}})],1)]):e._e(),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"设备产能",name:"eight"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addFacility()}}},[e._v("增加")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.btnDelDisabled},on:{click:function(t){return e.removeFacility()}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.btnOtherDisabled},on:{click:function(t){return e.editFacility()}}},[e._v("编辑")])],1),e._v(" "),a("div",{staticClass:"sys-table",staticStyle:{"margin-top":"10px"}},[a("el-table",{attrs:{data:e.facilityList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.ckFacilityAll}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"materielSerialNo","show-overflow-tooltip":"",label:"产品编码",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"materielName",label:"产品名称",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"specification",label:"规格型号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"unitUomName",label:"计量单位",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"standardCapacity",label:"单件工时(秒)",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"createByName","show-overflow-tooltip":"",label:"录入人",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Facility.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_Facility.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.facilityTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Facility,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Facility,"pageno",t)},"size-change":e.facilitySizeChange,"current-change":e.facilityCurrentChange}})],1)]):e._e(),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"安监管理",name:"nine"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:e.setSuperviseVisible}},[e._v("新增")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.btnSupervise},on:{click:function(t){return e.removeSupervise()}}},[e._v("删除")])],1),e._v(" "),a("div",{staticClass:"sys-table",staticStyle:{"margin-top":"10px"}},[a("el-table",{attrs:{data:e.superviseList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.ckSuperviseAll}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"checkitem",label:"检查事项",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"regulatorname",label:"监关机构",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"checktime",label:"检查时间",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"period",label:"检查周期(天)",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rummager",label:"检查人",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"nextchecktime",label:"下次检查时间",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"remark","show-overflow-tooltip":"",label:"备注",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Supervise.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_Supervise.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.superviseTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Supervise,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Supervise,"pageno",t)},"size-change":e.superviseSizeChange,"current-change":e.superviseCurrentChange}})],1)]):e._e(),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"保险记录",name:"ten"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:e.setInsuranceVisible}},[e._v("新增")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.btnInsurance},on:{click:function(t){return e.removeInsurance()}}},[e._v("删除")])],1),e._v(" "),a("div",{staticClass:"sys-table",staticStyle:{"margin-top":"10px"}},[a("el-table",{attrs:{data:e.insuranceList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.ckInsuranceAll}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"insurancesort_name",label:"承保险别",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"amount",label:"保险金额/理赔限额",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"charge",label:"保险费",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"starttime",label:"投保开始时间","show-overflow-tooltip":"",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"endtime",label:"投保结束时间","show-overflow-tooltip":"",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"insurcompany",label:"保险公司名称",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"settlementdate","show-overflow-tooltip":"",label:"理赔日期",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"settleamount","show-overflow-tooltip":"",label:"理赔金额",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"insursalesman","show-overflow-tooltip":"",label:"保险业务员",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"agentName","show-overflow-tooltip":"",label:"经办人",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Insurance.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_Insurance.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.insuranceTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Insurance,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Insurance,"pageno",t)},"size-change":e.insuranceSizeChange,"current-change":e.insuranceCurrentChange}})],1)]):e._e(),e._v(" "),0==e.isNew?a("el-tab-pane",{attrs:{label:"巡检标准",name:"eleven"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.chooseStandardVisible=!0}}},[e._v("新增")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.btnStandard},on:{click:function(t){return e.removeStandard()}}},[e._v("删除")])],1),e._v(" "),a("div",{staticClass:"sys-table",staticStyle:{"margin-top":"10px"}},[a("el-table",{attrs:{data:e.standardList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.ckStandardAll}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"patrolProjectName",label:"巡检项目",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"patrolProjectFunction",label:"巡检标准",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Standard.pageno,"page-sizes":[10,20,50],"page-size":e.searchData_Standard.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.standardTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Standard,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Standard,"pageno",t)},"size-change":e.standardSizeChange,"current-change":e.standardCurrentChange}})],1)]):e._e()],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"附加子设备",center:"",visible:e.dialogAuxiliary,width:"1000px"},on:{"update:visible":function(t){e.dialogAuxiliary=t}}},[a("div",[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"设备名称"}},[a("el-input",{attrs:{placeholder:"设备名字或编码"},model:{value:e.formData_child.name,callback:function(t){e.$set(e.formData_child,"name",t)},expression:"formData_child.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备类型"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择设备类型"},model:{value:e.formData_child.type,callback:function(t){e.$set(e.formData_child,"type",t)},expression:"formData_child.type"}},e._l(e.deviceType,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"使用部门"}},[a("el-cascader",{attrs:{clearable:"",options:e.depOptions,props:{expandTrigger:"hover",label:"text",value:"id"}},on:{change:e.handleChangeChild},model:{value:e.selectDeptIdChild,callback:function(t){e.selectDeptIdChild=t},expression:"selectDeptIdChild"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.searchSubset(1)}}},[e._v("查询")])],1)],1)],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{attrs:{data:e.subsetList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.ckSubsetAll}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"serialno",label:"设备编号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name","show-overflow-tooltip":"",label:"设备名称",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"model",label:"规格型号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"typen_dicames",label:"设备类型",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"dept_name",label:"使用部门",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.formData_child.pageno,"page-sizes":[5,10,20],"page-size":e.formData_child.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.subsetTotal},on:{"update:currentPage":function(t){return e.$set(e.formData_child,"pageno",t)},"update:current-page":function(t){return e.$set(e.formData_child,"pageno",t)},"size-change":e.subsetSizeChange,"current-change":e.subsetCurrentChange}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogAuxiliary=!1}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.auxiliaySave()}}},[e._v("确定")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"选择备件",center:"",visible:e.dialogSpareParts,width:"1000px"},on:{"update:visible":function(t){e.dialogSpareParts=t}}},[a("div",[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"名称"}},[a("el-input",{attrs:{placeholder:"备件名称"},model:{value:e.formDataSP.name,callback:function(t){e.$set(e.formDataSP,"name",t)},expression:"formDataSP.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"类型"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择类型"},model:{value:e.formDataSP.type,callback:function(t){e.$set(e.formDataSP,"type",t)},expression:"formDataSP.type"}},e._l(e.materielTypes,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.searchSubsetSP(1)}}},[e._v("查询")])],1)],1)],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{ref:"tb",attrs:{data:e.subsetSPList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"row-click":e.clickSubsetSPRow,"selection-change":e.ckSubsetSPAll}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"serialNo",label:"备件编号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"备件名称",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"specification",label:"规格型号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"typeName",label:"备件类型",align:"center"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.formDataSP.pageno,"page-sizes":[5,10,20],"page-size":e.formDataSP.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.subsetSPTotal},on:{"update:currentPage":function(t){return e.$set(e.formDataSP,"pageno",t)},"update:current-page":function(t){return e.$set(e.formDataSP,"pageno",t)},"size-change":e.subsetSPSizeChange,"current-change":e.subsetSPCurrentChange}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogSpareParts=!1}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.sparePartSave()}}},[e._v("确定")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"安监资料",center:"",visible:e.superviseVisible,width:"800px"},on:{"update:visible":function(t){e.superviseVisible=t}}},[a("div",{staticClass:"sys-form",staticStyle:{padding:"0"}},[a("el-form",{ref:"superviseInfoform",attrs:{"label-width":"120px",model:e.superviseInfo,rules:e.rulesuperviseInfoform}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-half",attrs:{required:"",label:"检查事项",prop:"checkitem"}},[a("el-input",{attrs:{placeholder:"请输入检查事项"},model:{value:e.superviseInfo.checkitem,callback:function(t){e.$set(e.superviseInfo,"checkitem",t)},expression:"superviseInfo.checkitem"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{required:"",label:"监管机构",prop:"regulatorname"}},[a("el-input",{attrs:{placeholder:"请输入监管机构"},model:{value:e.superviseInfo.regulatorname,callback:function(t){e.$set(e.superviseInfo,"regulatorname",t)},expression:"superviseInfo.regulatorname"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"检查时间"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择投检查时间",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.superviseInfo.checktime,callback:function(t){e.$set(e.superviseInfo,"checktime",t)},expression:"superviseInfo.checktime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"检查周期(天)"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"检查周期(天)",min:0},model:{value:e.superviseInfo.period,callback:function(t){e.$set(e.superviseInfo,"period",t)},expression:"superviseInfo.period"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"检查人"}},[a("el-input",{attrs:{placeholder:"检查人"},model:{value:e.superviseInfo.rummager,callback:function(t){e.$set(e.superviseInfo,"rummager",t)},expression:"superviseInfo.rummager"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"下次检查时间"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择下次检查时间",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.superviseInfo.nextchecktime,callback:function(t){e.$set(e.superviseInfo,"nextchecktime",t)},expression:"superviseInfo.nextchecktime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"序号"}},[a("el-input",{attrs:{placeholder:"系统自动产生",readonly:""}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"备注说明"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4}},model:{value:e.superviseInfo.remark,callback:function(t){e.$set(e.superviseInfo,"remark",t)},expression:"superviseInfo.remark"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.superviseVisible=!1}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveSupervise("superviseInfoform")}}},[e._v("保存")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"保险资料",center:"",visible:e.insuranceVisible,width:"800px"},on:{"update:visible":function(t){e.insuranceVisible=t}}},[a("div",{staticClass:"sys-form",staticStyle:{padding:"0"}},[a("el-form",{ref:"insuranceInfoform",attrs:{"label-width":"110px",model:e.insuranceInfo,rules:e.ruleinsuranceInfoform}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-half",attrs:{required:"",label:"承保险别",prop:"sortid"}},[a("el-select",{staticStyle:{display:"block"},attrs:{placeholder:"承保险别"},model:{value:e.insuranceInfo.sortid,callback:function(t){e.$set(e.insuranceInfo,"sortid",t)},expression:"insuranceInfo.sortid"}},e._l(e.sortid_list,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{required:"",label:"保险金额(元)",prop:"amount"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,placeholder:"保险金额"},model:{value:e.insuranceInfo.amount,callback:function(t){e.$set(e.insuranceInfo,"amount",t)},expression:"insuranceInfo.amount"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"保险费(元)"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,placeholder:"保险费"},model:{value:e.insuranceInfo.charge,callback:function(t){e.$set(e.insuranceInfo,"charge",t)},expression:"insuranceInfo.charge"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"投保开始时间"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择投保开始时间",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.insuranceInfo.starttime,callback:function(t){e.$set(e.insuranceInfo,"starttime",t)},expression:"insuranceInfo.starttime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"投保结束时间"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择投保结束时间",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.insuranceInfo.endtime,callback:function(t){e.$set(e.insuranceInfo,"endtime",t)},expression:"insuranceInfo.endtime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"保险公司名称"}},[a("el-input",{attrs:{placeholder:"保险公司名称"},model:{value:e.insuranceInfo.insurcompany,callback:function(t){e.$set(e.insuranceInfo,"insurcompany",t)},expression:"insuranceInfo.insurcompany"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"理赔日期"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择理赔日期",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.insuranceInfo.settlementdate,callback:function(t){e.$set(e.insuranceInfo,"settlementdate",t)},expression:"insuranceInfo.settlementdate"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"理赔金额(元)"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,placeholder:"理赔金额"},model:{value:e.insuranceInfo.settleamount,callback:function(t){e.$set(e.insuranceInfo,"settleamount",t)},expression:"insuranceInfo.settleamount"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"保险业务员"}},[a("el-input",{attrs:{placeholder:"保险业务员"},model:{value:e.insuranceInfo.insursalesman,callback:function(t){e.$set(e.insuranceInfo,"insursalesman",t)},expression:"insuranceInfo.insursalesman"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"经办人"}},[a("el-input",{attrs:{placeholder:"经办人"},model:{value:e.insuranceInfo.agent,callback:function(t){e.$set(e.insuranceInfo,"agent",t)},expression:"insuranceInfo.agent"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"序号"}},[a("el-input",{attrs:{placeholder:"系统自动产生",readonly:""}})],1)],1)])],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.insuranceVisible=!1}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveInsurance("insuranceInfoform")}}},[e._v("保存")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"设备产能",center:"",visible:e.facilityVisible,width:"800px"},on:{"update:visible":function(t){e.facilityVisible=t}}},[a("div",{staticClass:"sys-form",staticStyle:{padding:"0"}},[a("el-form",{ref:"facilityInfoform",attrs:{"label-width":"120px",model:e.facilityInfo,rules:e.rulefacilityInfoform}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-half",attrs:{required:"",label:"产品代码",prop:"materielSerialNo"}},[a("btn-input",{attrs:{valueText:e.facilityInfo.materielSerialNo,valueId:e.facilityInfo.materielId,chooseVisible:e.chooseMaterielsVisible},on:{"update:valueText":function(t){return e.$set(e.facilityInfo,"materielSerialNo",t)},"update:value-text":function(t){return e.$set(e.facilityInfo,"materielSerialNo",t)},"update:valueId":function(t){return e.$set(e.facilityInfo,"materielId",t)},"update:value-id":function(t){return e.$set(e.facilityInfo,"materielId",t)},"update:chooseVisible":function(t){e.chooseMaterielsVisible=t},"update:choose-visible":function(t){e.chooseMaterielsVisible=t}}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"产品名称"}},[a("el-input",{attrs:{readonly:""},model:{value:e.facilityInfo.materielName,callback:function(t){e.$set(e.facilityInfo,"materielName",t)},expression:"facilityInfo.materielName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"规格型号"}},[a("el-input",{attrs:{readonly:""},model:{value:e.facilityInfo.specification,callback:function(t){e.$set(e.facilityInfo,"specification",t)},expression:"facilityInfo.specification"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"计量单位"}},[a("el-input",{attrs:{readonly:""},model:{value:e.facilityInfo.unitUomName,callback:function(t){e.$set(e.facilityInfo,"unitUomName",t)},expression:"facilityInfo.unitUomName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{required:"",label:"单件工时(秒)",prop:"standardCapacity"}},[a("el-input",{attrs:{placeholder:"请输入单件工时"},model:{value:e.facilityInfo.standardCapacity,callback:function(t){e.$set(e.facilityInfo,"standardCapacity",t)},expression:"facilityInfo.standardCapacity"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"备注"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4}},model:{value:e.facilityInfo.remarks,callback:function(t){e.$set(e.facilityInfo,"remarks",t)},expression:"facilityInfo.remarks"}})],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-half",attrs:{label:"录入人"}},[a("el-input",{attrs:{readonly:""},model:{value:e.facilityInfo.createByName,callback:function(t){e.$set(e.facilityInfo,"createByName",t)},expression:"facilityInfo.createByName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"录入时间"}},[a("el-input",{attrs:{readonly:""},model:{value:e.facilityInfo.createTime,callback:function(t){e.$set(e.facilityInfo,"createTime",t)},expression:"facilityInfo.createTime"}})],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveFacilityAndOn("facilityInfoform")}}},[e._v("保存并继续")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveFacilityAndClose("facilityInfoform")}}},[e._v("保存并关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"文档资料",center:"",visible:e.docVisible,width:"900px"},on:{"update:visible":function(t){e.docVisible=t}}},[a("div",{staticClass:"sys-form",staticStyle:{padding:"0"}},[a("el-form",{ref:"documentInfoform",attrs:{"label-width":"120px",model:e.documentInfo,rules:e.ruledocumentInfoform}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-half",attrs:{label:"文档名称",required:"",prop:"name"}},[a("el-input",{attrs:{placeholder:"文档名称"},model:{value:e.documentInfo.name,callback:function(t){e.$set(e.documentInfo,"name",t)},expression:"documentInfo.name"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"文档类型",required:"",prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.documentInfo.type,callback:function(t){e.$set(e.documentInfo,"type",t)},expression:"documentInfo.type"}},e._l(e.docTypeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-half",attrs:{label:"上传人",prop:"up_user"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择"},on:{change:e.docUpUserChange},model:{value:e.documentInfo.up_user,callback:function(t){e.$set(e.documentInfo,"up_user",t)},expression:"documentInfo.up_user"}},e._l(e.deviceUser,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"所属设备",prop:"device_name"}},[a("el-input",{attrs:{readonly:""},model:{value:e.documentInfo.device_name,callback:function(t){e.$set(e.documentInfo,"device_name",t)},expression:"documentInfo.device_name"}})],1)],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-half",attrs:{label:"所属部门",prop:"deptid"}},[a("el-cascader",{attrs:{options:e.deviceDept,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:e.handleChangeAll},model:{value:e.documentInfo_deptid,callback:function(t){e.documentInfo_deptid=t},expression:"documentInfo_deptid"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"来源",prop:"source"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.documentInfo.source,callback:function(t){e.$set(e.documentInfo,"source",t)},expression:"documentInfo.source"}},e._l(e.docSourceList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-half",attrs:{label:"上传时间"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.documentInfo.up_time,callback:function(t){e.$set(e.documentInfo,"up_time",t)},expression:"documentInfo.up_time"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-half",attrs:{label:"版本号"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.documentInfo.version,callback:function(t){e.$set(e.documentInfo,"version",t)},expression:"documentInfo.version"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"备注说明"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4}},model:{value:e.documentInfo.description,callback:function(t){e.$set(e.documentInfo,"description",t)},expression:"documentInfo.description"}})],1),e._v(" "),a("el-form-item",{staticClass:"fileDocList",attrs:{label:"附件上传"}},[a("el-upload",{directives:[{name:"loading",rawName:"v-loading.lock",value:e.fullscreenLoading,expression:"fullscreenLoading",modifiers:{lock:!0}}],ref:"upload",staticClass:"upload-demo",attrs:{action:e.uploadUrl,"on-success":e.uploadSuccess,"on-remove":e.handleRemove,"on-preview":e.onPreview,"file-list":e.fileDocList,"auto-upload":e.auto_upload,"on-change":e.onChange,accept:".pdf,.doc,.docx,.xls,.xlsx,.txt,.bmp,.gif,.rar,.zip,.png,.jpg,.jpeg"}},[a("el-button",{attrs:{type:"primary"}},[a("i",{staticClass:"el-icon-plus"}),e._v("添加文件\n ")]),e._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("\n 附件最大5M支持格式PDF、Word、Excel、Txt、JPG、PNG、BMP、GIF、RAR\n ")])],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.docVisible=!1}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveDocument("documentInfoform")}}},[e._v("保存")])],1)]),e._v(" "),a("ChooseParts",{attrs:{visible:e.chooseMaterielsVisible},on:{"update:visible":function(t){e.chooseMaterielsVisible=t},change:e.getPart}}),e._v(" "),a("dialogChooseSingleUser",{attrs:{visible:e.chooseUserVisible},on:{"update:visible":function(t){e.chooseUserVisible=t},change:e.getUser}}),e._v(" "),a("dialogChooseSingleUser1",{attrs:{visible:e.chooseUserVisible1},on:{"update:visible":function(t){e.chooseUserVisible1=t},change:e.getUser1}}),e._v(" "),a("dialogChooseSingleSupplier",{attrs:{visible:e.chooseSupplierVisible},on:{"update:visible":function(t){e.chooseSupplierVisible=t},change:e.getSupplier}}),e._v(" "),a("dialogChooseSingleSupplier1",{attrs:{visible:e.chooseSupplierVisible1},on:{"update:visible":function(t){e.chooseSupplierVisible1=t},change:e.getSupplier1}}),e._v(" "),a("dialogChooseSingleSupplier2",{attrs:{visible:e.chooseSupplierVisible2},on:{"update:visible":function(t){e.chooseSupplierVisible2=t},change:e.getSupplier2}}),e._v(" "),a("ChooseDevices",{attrs:{visible:e.chooseDevicesVisible},on:{"update:visible":function(t){e.chooseDevicesVisible=t},change:e.getDevice}}),e._v(" "),a("dialogChooseStandard",{attrs:{visible:e.chooseStandardVisible},on:{"update:visible":function(t){e.chooseStandardVisible=t},change:e.getStandard}})],1)},staticRenderFns:[]};var F=a("VU/8")(N,z,!1,function(e){a("9uzq"),a("lyl9"),a("VFpq")},"data-v-5ba50f5f",null);t.default=F.exports}});