mt-ck-wms-ui/dist/static/js/chunk-716be8db.d65d436a.js
2022-07-25 10:21:32 +08:00

1 line
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-716be8db"],{"0b9a":function(t,e,o){"use strict";o("781a")},"33bb":function(t,e,o){"use strict";o.r(e),o.d(e,"AlarmCleared",(function(){return r})),o.d(e,"AlarmDetected",(function(){return a})),o.d(e,"CompleteProcessFlow",(function(){return s})),o.d(e,"ControlStateLocal",(function(){return c})),o.d(e,"ControlStateRemote",(function(){return i})),o.d(e,"E10StateChanged",(function(){return l})),o.d(e,"EmptyCassettereport",(function(){return u})),o.d(e,"EquipmentOffline",(function(){return d})),o.d(e,"MaintenancePlan",(function(){return p})),o.d(e,"MaintenanceRecord",(function(){return m})),o.d(e,"MaterialReceived",(function(){return h})),o.d(e,"MaterialRemoved",(function(){return f})),o.d(e,"OKsubstratereport",(function(){return S})),o.d(e,"PowerConsumption",(function(){return b})),o.d(e,"ProcessingCompleted",(function(){return v})),o.d(e,"ProcessingStarted",(function(){return g})),o.d(e,"ProcessingStopped",(function(){return w})),o.d(e,"QCPChange",(function(){return E})),o.d(e,"RepairRecord",(function(){return O})),o.d(e,"Scrapsubstratereport",(function(){return I})),o.d(e,"ShuttleMovementFinished",(function(){return L})),o.d(e,"ShuttleMovementStart",(function(){return j})),o.d(e,"SpoolTransmitFailure",(function(){return k})),o.d(e,"SpoolingActivated",(function(){return C})),o.d(e,"SpoolingDeactivated",(function(){return q})),o.d(e,"DisableEnableCommunication",(function(){return F})),o.d(e,"getCommunicationState",(function(){return R})),o.d(e,"getcontrollerState",(function(){return D})),o.d(e,"sendControllerState",(function(){return _})),o.d(e,"sendEqpState",(function(){return A})),o.d(e,"sendReportLinkedEventAndVid",(function(){return y}));var n=o("b775");function r(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendAlarmClearedEvent",method:"post"})}function a(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendAlarmDetectedEvent",method:"post"})}function s(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendCompleteProcessFlowEvent",method:"post"})}function c(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendControlStateLocalEvent",method:"post"})}function i(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendControlStateRemoteEvent",method:"post"})}function l(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendE10StateChangedEvent",method:"post"})}function u(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendEmptyCassettereportEvent",method:"post"})}function d(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendEquipmentOfflineEvent",method:"post"})}function p(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendMaintenancePlanEvent",method:"post"})}function m(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendMaintenanceRecordEvent",method:"post"})}function h(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendMaterialReceivedEvent",method:"post"})}function f(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendMaterialRemovedEvent",method:"post"})}function S(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendOKsubstratereportEvent",method:"post"})}function b(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendPowerConsumptionEvent",method:"post"})}function v(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendProcessingCompletedEvent",method:"post"})}function g(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendProcessingStartedEvent",method:"post"})}function w(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendProcessingStoppedEvent",method:"post"})}function E(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendQCPChangeEvent",method:"post"})}function O(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendRepairRecordEvent",method:"post"})}function I(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendScrapsubstratereportEvent",method:"post"})}function L(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendShuttleMovementFinishedEvent",method:"post"})}function j(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendShuttleMovementStartEvent",method:"post"})}function k(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendSpoolTransmitFailureEvent",method:"post"})}function C(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendSpoolingActivatedEvent",method:"post"})}function q(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendSpoolingDeactivatedEvent",method:"post"})}function F(t){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendDisableEnableCommunication",method:"post",headers:{"Content-Type":"text/plain"},data:t})}function R(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/communicationState/get",method:"post"})}function D(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/controllerState/get",method:"post"})}function _(t){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendControllerState",method:"post",headers:{"Content-Type":"text/plain"},data:t})}function A(t){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendEqpState",method:"post",headers:{"Content-Type":"text/plain"},data:t})}function y(){return Object(n["a"])({url:"/cigs-00a/IL1testcontroller/post/sendReportLinkedEventAndVid",method:"post"})}},"781a":function(t,e,o){},"90a8":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("el-row",{attrs:{gutter:10}},[o("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.rules,size:"medium","label-position":"left"}},[o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"communication状态",prop:"communicationState",required:""}},[o("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(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.communicationShow,expression:"communicationShow"}]},[t._v("Result ="+t._s(t.communicationStatus))])],1),t._v(" "),o("el-col",{attrs:{span:6,offset:1}},[o("el-form-item",{attrs:{label:"eqpState",prop:"eqpState"}},[o("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 o("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.eqpStatusShow,expression:"eqpStatusShow"}]},[t._v("Result ="+t._s(t.eqpStatus))])],1)],1),t._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"controllerState",prop:"controllerState"}},[o("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 o("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),o("span",{class:1===t.dataForm.controllerState?"waring":"normal"},[t._v(t._s(t.controllerInfo))]),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.controllerStatusShow,expression:"controllerStatusShow"}]},[t._v("Result ="+t._s(t.controllerStatus))])],1)],1)],1),t._v(" "),o("el-col",{attrs:{span:3}},[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.sendReportLinkedEventAndVid()}}},[t._v(" ReportLinkedEventAndVid ")])],1)],1)],1)},r=[],a=o("9474"),s=o.n(a),c=o("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=(o("0b9a"),o("2877")),d=Object(u["a"])(l,n,r,!1,null,"6d6503bb",null);e["default"]=d.exports}}]);