1 line
43 KiB
JavaScript
1 line
43 KiB
JavaScript
|
webpackJsonp([1],{GmHr:function(e,t){},M8ec:function(e,t){},eBbZ:function(e,t){},mc36:function(e,t){},qmMI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=a("bOdI"),s=a.n(o),l=a("BO1k"),r=a.n(l),n=a("woOf"),c=a.n(n),u=a("d7EF"),d=a.n(u),h=a("//Fk"),p=a.n(h),f=a("mvHQ"),m=a.n(f),b=a("Dd8w"),v=a.n(b),g=a("Dod7"),w=a("ysqt"),D=a("bzuE"),_=a("GKmE"),y=a("lbHh"),I=a.n(y),x=a("3MlD"),P=a("0zcq"),C=a("zj8Z"),k=a("G9gL"),$=a("iDdT"),S=a("pU78"),N=a("NYxO"),L=a("Xnfr"),A={components:{btnInput:w.a,DialogChooseSingleUser:x.a,DialogChooseSingleDevice:k.a,DialogChooseProcess:C.a,DialogChooseCheckProject:$.a,tagSingleUsers:S.a,dialogChoosePoint:P.a},data:function(){return{formData:{createTime:"",code:"",name:"",auditId:"",version:"",remark:"",createBy:"",createName:"",processAndProject:[],useStatus:"1"},auditStatus:"",deletProcessCheckIds:[],initiateProList:[],deletCraftItemIds:[],currentChildIndex:0,truelabel:1,currentIndex:0,thisDeviceId:"",falselabel:0,tableData:[],ProList:[],approveList:[],selectDeptId:[],chooseParts:[],depOptions:[],uomList:[],pointList:[],pointData:[],pointProjects:[],chooseCheckProjectVisible:!1,ChoosePointDialogVisible:!1,ChoosePointVisible:!1,chooseProVisible:!1,deviceLoading:!1,chooseUserVisible:!1,chooseDevicesVisible:!1,chooseProcessVisible:!1,dialogLoading:!1,btndisabled:!0,isDisabled:!1,dialogTitle:"选择配置",options:[],loading:!1,config:D.a,deviceId:"",deviceName:"",uploadAttachment:[],fileDocList:[],uploadUrl:g.a.uploadUrl,ftpPrefix:g.a.ftpPrefix,fullscreenLoading:!1,auto_upload:!1,dialogVisible:!1,ruleForm:{name:[{required:!0,message:"请填写工艺名称",trigger:"blur"}]}}},mounted:function(){var e=I.a.get("userName");this.formData.createName=e,console.log(Object(_.c)()),console.log(/\d{4}-\d{1,2}-\d{1,2}/g.exec(Object(_.c)())),this.formData.createTime=/\d{4}-\d{1,2}-\d{1,2}/g.exec(Object(_.c)())[0],this.initData(),this.$route.query.id&&(this.formData.id=this.$route.query.id,this.getDetail())},watch:{currentIndex:function(e){console.log(e),this.currentChildIndex=e}},methods:v()({},Object(N.d)({removeTagNav:"tagNav/removeTagNav"}),(i={whetherExamineChange:function(e){var t=this;0==this.tableData[e].whetherExamine&&(this.tableData[e].pro.forEach(function(e){t.deletProcessCheckIds.push(e.id)}),console.log(this.deletProcessCheckIds),this.$set(this.tableData[e],"pro",[]),this.$set(this.tableData[e],"proDetail",[]),this.ProList=[])},whetherCollectChange:function(e){0==this.tableData[e].whetherCollect&&(this.$set(this.tableData[e],"pointList",[]),this.$set(this.tableData[e],"processAutoCollectDetail",[]),this.pointList=[])},showPoint:function(e,t){var a=this;console.log(e),this.thisDeviceId=e.deviceId,e.deviceId&&this.$api.netWorkingAPI.measurePointList({deviceId:e.deviceId}).then(function(e){0===e.code?a.pointList=e.data?e.data.datas:[]:a.pointList=[]}),e.processAutoCollectDetail?this.pointData=JSON.parse(m()(e.processAutoCollectDetail)):this.pointData=[],this.currentChildIndex=t,this.ChoosePointDialogVisible=!0},submitPoint:function(){var e=[];this.pointData.forEach(function(t){e.push(t.pointId)}),this.$set(this.tableData[this.currentChildIndex],"processAutoCollectDetail",this.pointData),this.$set(this.tableData[this.currentChildIndex],"pointList",e),this.ChoosePointDialogVisible=!1},handleSelectionChange_point:function(e){console.log(e),this.pointProjects=e},getPoint:function(e){var t=this;console.log(e),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.pointProjects&&this.$confirm("确认删除选中的联网采集配置吗?","提示",{type:"warning"}).then(function(){e.pointProjects.forEach(function(t){console.log(t);var a=e.pointData.findIndex(function(e){if(console.log(e),e.onlyId&&t.onlyId){if(e.onlyId==t.onlyId)return!0}else if(e.itemId==t.itemId)return!0});e.pointData.splice(a,1)})})},showPro1:function(e,t){if(this.uploadAttachment=[],this.ftpPrefix=[],e.uploadAttachment&&""!=e.uploadAttachment){var a=JSON.parse(e.uploadAttachment);th
|