1 line
28 KiB
JavaScript
1 line
28 KiB
JavaScript
|
webpackJsonp([95],{IiBl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("BO1k"),o=a.n(i),s=a("woOf"),r=a.n(s),l=a("d7EF"),n=a.n(l),c=a("//Fk"),d=a.n(c),u=a("mvHQ"),p=a.n(u),m=a("Dd8w"),h=a.n(m),f=a("Dod7"),v=a("Xnfr"),b=a("ysqt"),D=a("iDdT"),g=a("3MlD"),y=a("OAOF"),_=a("0zcq"),w=a("bzuE"),C=a("NYxO"),P={components:{btnInput:b.a,DialogChooseSingleUser:g.a,DialogChooseSingleDevice:y.a,DialogChooseCheckProject:D.a,dialogChoosePoint:_.a},data:function(){return{formData:{code:"",name:"",standard:"",type:"",deviceType:"",manHour:"",labourPrice:"",deptId:"",operator:"",deviceId:"",remark:"",whetherExamine:0,whetherCollect:0,processCheck:[],uploadAttachment:[],id:""},deviceLoading:!1,isDisabled:!1,pointData:[],uomList:[],pointList:[],auditStatus:"",ProcessId:"",loading:!1,options:[],btn:!1,deviceoptions:[],selectDeptId:[],getUserList:[],depOptions:[],config:w.a,pointProjects:[],whetherCollectBtn:!0,ChoosePointVisible:!1,chooseDevicesVisible:!1,chooseUserVisible:!1,ChooseCheckProjectVisible:!1,dialogTitle:"选择配置",CheckProjects:[],btnDisabled:!0,rulesForm:{name:[{required:!0,message:"请填写工序名称",trigger:"blur"}]},uploadAttachment:[],fileDocList:[],tableData:[],uploadUrl:f.a.uploadUrl,ftpPrefix:f.a.ftpPrefix,fullscreenLoading:!1,auto_upload:!1}},mounted:function(){this.initialize(),this.getDetail()},watch:{formData:{handler:function(e){e.deviceType?this.btn=!1:(this.btn=!0,this.formData.deviceId="",this.formData.deviceName="",this.formData.whetherCollect=0),e.deviceName||(this.formData.whetherCollect=0),0==this.formData.whetherCollect&&(this.pointData=[],this.whetherCollectBtn=!0),0==this.formData.whetherExamine&&(this.tableData=[])},deep:!0}},methods:h()({},Object(C.d)({removeTagNav:"tagNav/removeTagNav"}),{handleSelectionChange_point:function(e){this.pointProjects=e},getPoint:function(e){var t=this;e&&(console.log(e),e.forEach(function(e){t.$set(e,"onlyId",e.id+"_"+Date.now()),t.$set(e,"pointId",e.id),delete e.id,t.pointData.push(e)}))},removePointProjects:function(){var e=this;this.CheckProjects&&(console.log(this.pointProjects),this.pointProjects.forEach(function(t){var a=e.pointData.findIndex(function(e){if(e.onlyId==t.onlyId)return!0});e.pointData.splice(a,1)}))},whetherCollectChange:function(e){1===this.formData.whetherCollect?this.whetherCollectBtn=!1:this.whetherCollectBtn=!0},audit:function(){var e=this,t=Number(this.$route.query.id);this.$confirm("确认审核吗?","提示",{type:"warning"}).then(function(){e.$api.processAPI.audit(t).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getDetail()):e.$message({message:t.msg,type:"error"})})})},disAudit:function(){var e=this,t=Number(this.$route.query.id);this.$confirm("确认反审核吗?","提示",{type:"warning"}).then(function(){e.$api.processAPI.backToAudit(t).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getDetail()):e.$message({message:t.msg,type:"error"})})})},getName:function(e){var t;t=this.deviceoptions.find(function(t){return t.id===e}),this.formData.deviceId="",this.formData.deviceName="",this.formData.deviceTypeName=t.name},getDetail:function(){var e=this,t=Number(this.$route.query.id);this.ProcessId=t,this.$api.processAPI.detailProcess(t).then(function(t){if(t.processlist.forEach(function(t){e.$set(e.formData,"auditStatus",t.auditSign?t.auditSign:""),e.auditStatus=e.formData.auditStatus,e.formData.code=t.code,e.formData.name=t.name,e.formData.standard=t.standard?t.standard:"",e.formData.type=t.type?t.type:"",e.formData.deviceType=t.deviceType?t.deviceType:"",e.formData.manHour=t.manHour?t.manHour:"",e.formData.labourPrice=t.labourPrice?t.labourPrice:"",e.formData.deptId=t.deptId?t.deptId:"",e.formData.operatorName=t.operatorName?t.operatorName:"",e.formData.operator=t.operator?t.operator:"",e.formData.deviceId=t.deviceId?t.deviceId:"",e.formData.deviceName=t.deviceName?t.deviceName:"",e.formData.remark=t.remark?t.remark:"",e.formData.whetherExamine=t.whetherExamine?t.whetherExamine:0,e.formData.whetherCollect=t.whetherCollect?t.whetherCollect:0}),t.file
|