(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1906682e","chunk-716be8db"],{"0b9a":function(t,e,n){"use strict";n("781a")},"12ea":function(t,e,n){},"33bb":function(t,e,n){"use strict";n.r(e),n.d(e,"AlarmCleared",(function(){return r})),n.d(e,"AlarmDetected",(function(){return a})),n.d(e,"CompleteProcessFlow",(function(){return s})),n.d(e,"ControlStateLocal",(function(){return c})),n.d(e,"ControlStateRemote",(function(){return i})),n.d(e,"E10StateChanged",(function(){return l})),n.d(e,"EmptyCassettereport",(function(){return u})),n.d(e,"EquipmentOffline",(function(){return d})),n.d(e,"MaintenancePlan",(function(){return p})),n.d(e,"MaintenanceRecord",(function(){return m})),n.d(e,"MaterialReceived",(function(){return h})),n.d(e,"MaterialRemoved",(function(){return f})),n.d(e,"OKsubstratereport",(function(){return S})),n.d(e,"PowerConsumption",(function(){return b})),n.d(e,"ProcessingCompleted",(function(){return v})),n.d(e,"ProcessingStarted",(function(){return g})),n.d(e,"ProcessingStopped",(function(){return w})),n.d(e,"QCPChange",(function(){return C})),n.d(e,"RepairRecord",(function(){return E})),n.d(e,"Scrapsubstratereport",(function(){return O})),n.d(e,"ShuttleMovementFinished",(function(){return L})),n.d(e,"ShuttleMovementStart",(function(){return k})),n.d(e,"SpoolTransmitFailure",(function(){return I})),n.d(e,"SpoolingActivated",(function(){return j})),n.d(e,"SpoolingDeactivated",(function(){return q})),n.d(e,"DisableEnableCommunication",(function(){return F})),n.d(e,"getCommunicationState",(function(){return R})),n.d(e,"getcontrollerState",(function(){return D})),n.d(e,"sendControllerState",(function(){return _})),n.d(e,"sendEqpState",(function(){return A})),n.d(e,"sendReportLinkedEventAndVid",(function(){return P}));var o=n("b775");function r(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendAlarmClearedEvent",method:"post"})}function a(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendAlarmDetectedEvent",method:"post"})}function s(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendCompleteProcessFlowEvent",method:"post"})}function c(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendControlStateLocalEvent",method:"post"})}function i(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendControlStateRemoteEvent",method:"post"})}function l(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendE10StateChangedEvent",method:"post"})}function u(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendEmptyCassettereportEvent",method:"post"})}function d(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendEquipmentOfflineEvent",method:"post"})}function p(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendMaintenancePlanEvent",method:"post"})}function m(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendMaintenanceRecordEvent",method:"post"})}function h(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendMaterialReceivedEvent",method:"post"})}function f(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendMaterialRemovedEvent",method:"post"})}function S(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendOKsubstratereportEvent",method:"post"})}function b(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendPowerConsumptionEvent",method:"post"})}function v(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendProcessingCompletedEvent",method:"post"})}function g(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendProcessingStartedEvent",method:"post"})}function w(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendProcessingStoppedEvent",method:"post"})}function C(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendQCPChangeEvent",method:"post"})}function E(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendRepairRecordEvent",method:"post"})}function O(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendScrapsubstratereportEvent",method:"post"})}function L(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendShuttleMovementFinishedEvent",method:"post"})}function k(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendShuttleMovementStartEvent",method:"post"})}function I(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendSpoolTransmitFailureEvent",method:"post"})}function j(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendSpoolingActivatedEvent",method:"post"})}function q(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendSpoolingDeactivatedEvent",method:"post"})}function F(t){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendDisableEnableCommunication",method:"post",headers:{"Content-Type":"text/plain"},data:t})}function R(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/communicationState/get",method:"post"})}function D(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/controllerState/get",method:"post"})}function _(t){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendControllerState",method:"post",headers:{"Content-Type":"text/plain"},data:t})}function A(t){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendEqpState",method:"post",headers:{"Content-Type":"text/plain"},data:t})}function P(){return Object(o["a"])({url:"/cigs-00a/IL1testcontroller/post/sendReportLinkedEventAndVid",method:"post"})}},"44f2":function(t,e,n){"use strict";n("12ea")},"781a":function(t,e,n){},"90a8":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-row",{attrs:{gutter:10}},[n("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.rules,size:"medium","label-position":"left"}},[n("el-col",{attrs:{span:4}},[n("el-form-item",{attrs:{label:"communication状态",prop:"communicationState",required:""}},[n("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(e){return t.switchChange()}},model:{value:t.dataForm.communicationState,callback:function(e){t.$set(t.dataForm,"communicationState",e)},expression:"dataForm.communicationState"}})],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.communicationShow,expression:"communicationShow"}]},[t._v("Result ="+t._s(t.communicationStatus))])],1),t._v(" "),n("el-col",{attrs:{span:6,offset:1}},[n("el-form-item",{attrs:{label:"eqpState",prop:"eqpState"}},[n("el-select",{attrs:{placeholder:"请选择下拉选择",clearable:""},on:{change:t.eqpStateChange},model:{value:t.dataForm.eqpState,callback:function(e){t.$set(t.dataForm,"eqpState",e)},expression:"dataForm.eqpState"}},t._l(t.eqpStateArr,(function(t,e){return n("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.eqpStatusShow,expression:"eqpStatusShow"}]},[t._v("Result ="+t._s(t.eqpStatus))])],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"controllerState",prop:"controllerState"}},[n("el-select",{attrs:{placeholder:"请选择下拉选择",clearable:""},on:{change:t.controllerStateChange},model:{value:t.dataForm.controllerState,callback:function(e){t.$set(t.dataForm,"controllerState",e)},expression:"dataForm.controllerState"}},t._l(t.controllerStateArr,(function(t,e){return n("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),n("span",{class:1===t.dataForm.controllerState?"waring":"normal"},[t._v(t._s(t.controllerInfo))]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.controllerStatusShow,expression:"controllerStatusShow"}]},[t._v("Result ="+t._s(t.controllerStatus))])],1)],1)],1),t._v(" "),n("el-col",{attrs:{span:3}},[n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.sendReportLinkedEventAndVid()}}},[t._v(" ReportLinkedEventAndVid ")])],1)],1)],1)},r=[],a=n("9474"),s=n.n(a),c=n("33bb"),i={name:"Aspc",components:{},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{dataForm:{communicationState:0,eqpState:void 0,controllerState:void 0},controllerStatus:"",eqpStatus:"",communicationStatus:"",communicationShow:!1,eqpStatusShow:!1,controllerStatusShow:!1,controllerInfo:"",rules:{},eqpStateArr:[{label:"local",value:4},{label:"remote",value:5}],controllerStateArr:[{label:"offline",value:1},{label:"online",value:2}],websock:"",url:"",wbData:{}}},created:function(){var t=this;this.getState(),this.url="a.wms.picaiba.com",this.initWebSocket(),Object(c["getCommunicationState"])().then((function(e){t.dataForm.communicationState=e.data.communicationState}))},destroyed:function(){this.websock&&this.websock.close()},methods:{switchChange:function(){var t=this;this.communicationShow=!1,Object(c["DisableEnableCommunication"])(this.dataForm.communicationState).then((function(e){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500})}))},eqpStateChange:function(){var t=this;this.eqpStatusShow=!1,Object(c["sendEqpState"])(this.dataForm.eqpState).then((function(e){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500})}))},controllerStateChange:function(){var t=this;this.controllerStatusShow=!1,Object(c["sendControllerState"])(this.dataForm.controllerState).then((function(e){t.$message({message:t.$t("module.basicData. visual.success"),type:"success",duration:1500})}))},getState:function(){var t=this;Object(c["getcontrollerState"])().then((function(e){1===e.data.controllerState?t.controllerInfo="offline":4===e.data.eqpState?t.controllerInfo="local":5===e.data.eqpState&&(t.controllerInfo="remote"),t.dataForm.eqpState=e.data.eqpState,t.dataForm.controllerState=e.data.controllerState}))},sendReportLinkedEventAndVid:function(){var t=this;Object(c["sendReportLinkedEventAndVid"])().then((function(e){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500})}))},initWebSocket:function(){var t="ws://".concat(this.url,"/opcua/websocket/1");this.websock=new WebSocket(t),this.websock.onmessage=this.websocketonmessage,this.websock.onopen=this.websocketonopen,this.websock.onerror=this.websocketonerror,this.websock.onclose=this.websocketclose},websocketonopen:function(){},websocketonerror:function(){this.initWebSocket()},websocketonmessage:function(t){this.wbData=JSON.parse(t.data),this.wbData.eqpResult?(this.eqpStatus=this.wbData.eqpResult,this.dataForm.eqpState=s()(this.wbData.eqpState),this.eqpStatusShow=!0):this.wbData.vidResult?(this.controllerStatus=this.wbData.vidResult,this.dataForm.controllerState=s()(this.wbData.controllerState),"1"===this.wbData.controllerState?this.controllerInfo="offline":"4"===this.wbData.eqpState?this.controllerInfo="local":"5"===this.wbData.eqpState&&(this.controllerInfo="remote"),this.controllerStatusShow=!0):(this.communicationStatus=this.wbData.communicationResult,this.dataForm.communicationState=s()(this.wbData.communicationState),this.communicationShow=!0)},websocketsend:function(t){this.websock.send(t)},websocketclose:function(t){console.log("断开连接",t)}}},l=i,u=(n("0b9a"),n("2877")),d=Object(u["a"])(l,o,r,!1,null,"6d6503bb",null);e["default"]=d.exports},d190:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"btn-container"},t._l(t.btnList,(function(e,o){return n("div",{key:o,staticClass:"btndiv"},[n("el-card",{staticClass:"box-card",nativeOn:{click:function(n){return t.sendInfo(e)}}},[t._v(t._s(e))])],1)})),0),t._v(" "),n("spc-control")],1)},r=[],a=(n("7f7f"),n("33bb")),s=n("90a8"),c={name:"Aspc",components:{spcControl:s["default"]},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{btnList:["AlarmCleared","AlarmDetected","CompleteProcessFlow","ControlStateLocal","ControlStateRemote","E10StateChanged","EmptyCassettereport","EquipmentOffline","MaintenancePlan","MaintenanceRecord","MaterialReceived","MaterialRemoved","OKsubstratereport","PowerConsumption","ProcessingCompleted","ProcessingStarted","ProcessingStopped","QCPChange","RepairRecord","Scrapsubstratereport","ShuttleMovementFinished","ShuttleMovementStart","SpoolTransmitFailure","SpoolingActivated","SpoolingDeactivated"]}},created:function(){},methods:{sendInfo:function(t){var e=this;a[t]().then((function(t){e.$message({message:e.$t("module.basicData.visual.success"),type:"success",duration:1500})}))}}},i=c,l=(n("44f2"),n("2877")),u=Object(l["a"])(i,o,r,!1,null,"2ecdfc10",null);e["default"]=u.exports}}]);