Files
oms/back/public/static/js/chunk-6417.33cdfe89.js
2026-03-10 18:45:36 +08:00

1 line
9.5 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6417"],{"1UdO":function(t,e,a){"use strict";var o=a("mTVD");a.n(o).a},CvMc:function(t,e,a){"use strict";var o=a("t3Un");e.a={GetAgvsList:function(){return Object(o.a)({url:"/agv/GetAgvsList",method:"post"})},CancelTask:function(t){return Object(o.a)({url:"/agv/cancelTask",method:"post",data:t})},GetAgvStatus:function(t){return Object(o.a)({url:"/agv/getAgvStatus",method:"post",data:t})},GetTaskRecord:function(t){return Object(o.a)({url:"/agv/getTaskRecord",method:"post",data:t})},retrievePallet:function(t){return Object(o.a)({url:"/agv/retrievePallet",method:"post",data:t})},BatchRetrievePallet:function(t){return Object(o.a)({url:"/agv/BatchRetrievePallet",method:"post",data:t})},setWorkStoreTunnel:function(t){return Object(o.a)({url:"/agv/setWorkStoreTunnel",method:"post",data:t})},getWorkStoreTunnel:function(t){return Object(o.a)({url:"/agv/getWorkStoreTunnel",method:"post",data:t})},productOutStore:function(t){return Object(o.a)({url:"/agv/ProductOutStore",method:"post",data:t})},productBatchOutStore:function(t){return Object(o.a)({url:"/agv/ProductBatchOutStore",method:"post",data:t})},productBatchBackStore:function(t){return Object(o.a)({url:"/agv/ProductBatchBackStore",method:"post",data:t})},productInStoreNow:function(){return Object(o.a)({url:"/agv/productInStoreNow",method:"post"})},palletInStore:function(t){return Object(o.a)({url:"/agv/PalletOutStacker",method:"post",data:t})},palletOutStoreNow:function(){return Object(o.a)({url:"/agv/palletOutStoreNow",method:"post"})}}},mTVD:function(t,e,a){},qpgI:function(t,e,a){"use strict";var o=a("t3Un");e.a={SetRobotPalletCount:function(t){return Object(o.a)({url:"/device/setRobotPalletCount",method:"post",data:t})},SetRobotProductCount:function(t){return Object(o.a)({url:"/device/setRobotProductCount",method:"post",data:t})},SetMaxRobotProductCount:function(t){return Object(o.a)({url:"/device/setMaxRobotProductCount",method:"post",data:t})},SetStackerPalletCount:function(t){return Object(o.a)({url:"/device/setStackerPalletCount",method:"post",data:t})},GetRobotMatterCount:function(t){return Object(o.a)({url:"/device/getRobotMatterCount",method:"post",data:t})},GetStackerMatterCount:function(t){return Object(o.a)({url:"/device/getStackerMatterCount",method:"post",data:t})},AllowStackerGet:function(){return Object(o.a)({url:"/device/setStackerAllowGet",method:"post"})},AllowStackerPut:function(){return Object(o.a)({url:"/device/setStackerAllowPut",method:"post"})}}},xESL:function(t,e,a){"use strict";a.r(e);var o=a("CvMc"),n=a("t3Un"),r=function(t){return Object(n.a)({url:"/wcs/StackPackage",method:"post",data:t})},l=function(t){return Object(n.a)({url:"/wcs/DestackPallet",method:"post",data:t})},c=a("qpgI"),s={data:function(){return{guideImg:"/static/images/forklift.png",tableData:[],form:{outTunnel:1,inTunnel:1,palletTunnel:1,emptyPallet:10,palletizedPackages:4,maxPackages:4}}},mounted:function(){this.getWorkStoreTunnel(1),this.getWorkStoreTunnel(3),this.getMatterCount("pallet"),this.getMatterCount("package"),this.getMatterCount("max_package")},created:function(){},methods:{getMatterCount:function(t){var e=this,a={type:t};c.a.GetRobotMatterCount(a).then(function(a){"pallet"==t?e.form.emptyPallet=a.data.data.count:"package"==t?e.form.palletizedPackages=a.data.data.count:e.form.maxPackages=a.data.data.count})},setWorkStoreTunnel:function(t){var e=this,a=1;1==t?a=this.form.inTunnel:2==t?a=this.form.outTunnel:3==t&&(a=this.form.palletTunnel),this.$confirm("是否确认修改?","提示",{iconClass:"el-icon-question",confirmButtonText:"确认",showClose:!0,type:"warning"}).then(function(){var n={tunnel:a,type:t};o.a.setWorkStoreTunnel(n).then(function(t){e.$message("设置成功")})}).catch(function(t){console.log(t)})},getWorkStoreTunnel:function(t){var e=this,a={type:t};o.a.getWorkStoreTunnel(a).then(function(a){1==t?e.form.inTunnel=a.data.data.value:2==t?e.form.outTunnel=a.data.data.value:3==t&&(e.form.palletTunnel=a.data.data.value)})},productInStoreNow:function(){var t=this;o.a.productInStoreNow().then(function(e){t.$message("下发成功")})},robotStack:function(){var t=this,e={count:parseInt(this.form.palletizedPackages)};r(e).then(function(e){t.$message("下发成功")})},robotDestack:function(){var t=this,e={count:parseInt(this.form.emptyPallet)};l(e).then(function(e){t.$message("下发成功")})},palletOutStoreNow:function(){var t=this;o.a.palletOutStoreNow().then(function(e){t.$message("下发成功")})},setPalletCount:function(){var t=this,e=this.form.emptyPallet;this.$confirm("是否确认修改?","提示",{iconClass:"el-icon-question",confirmButtonText:"确认",showClose:!0,type:"warning"}).then(function(){var a={count:e};c.a.SetRobotPalletCount(a).then(function(e){t.$message("设置成功")})}).catch(function(t){console.log(t)})},setPackageCount:function(){var t=this,e=this.form.palletizedPackages;this.$confirm("是否确认修改?","提示",{iconClass:"el-icon-question",confirmButtonText:"确认",showClose:!0,type:"warning"}).then(function(){var a={count:e};c.a.SetRobotProductCount(a).then(function(e){t.$message("设置成功")})}).catch(function(t){console.log(t)})},setMaxPackageCount:function(){var t=this,e=this.form.maxPackages;this.$confirm("是否确认修改?","提示",{iconClass:"el-icon-question",confirmButtonText:"确认",showClose:!0,type:"warning"}).then(function(){var a={count:e};c.a.SetMaxRobotProductCount(a).then(function(e){t.$message("设置成功")})}).catch(function(t){console.log(t)})}}},i=(a("1UdO"),a("KHd+")),u=Object(i.a)(s,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"display-flex"},[a("el-form",{ref:"form",staticClass:"fun",staticStyle:{"margin-top":"10px"},attrs:{model:t.form,"label-width":"80px"}},[a("div",{staticClass:"box"},[a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"margin-bottom":"20dp"}},[t._v("产品入库")])]),t._v(" "),a("el-form-item",{attrs:{label:"入库巷道"}},[a("el-input",{staticStyle:{width:"120px"},model:{value:t.form.inTunnel,callback:function(e){t.$set(t.form,"inTunnel",e)},expression:"form.inTunnel"}}),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.setWorkStoreTunnel(1)}}},[t._v("确定")])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"button-group"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.productInStoreNow()}}},[t._v("立即入库")])],1)])],1),t._v(" "),a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"20px","margin-left":"40px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"margin-bottom":"20dp"}},[t._v("托盘上料")])]),t._v(" "),a("el-form-item",{attrs:{label:"出库巷道"}},[a("el-input",{staticStyle:{width:"120px"},model:{value:t.form.palletTunnel,callback:function(e){t.$set(t.form,"palletTunnel",e)},expression:"form.palletTunnel"}}),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.setWorkStoreTunnel(3)}}},[t._v("确定")])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"button-group"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.palletOutStoreNow()}}},[t._v("立即出库")])],1)])],1)],1),t._v(" "),a("div",{staticClass:"box"},[a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"40px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"margin-bottom":"20dp"}},[t._v("机械臂托盘拆垛")])]),t._v(" "),a("el-form-item",{attrs:{label:"托盘层数"}},[a("el-input",{staticStyle:{width:"120px"},model:{value:t.form.emptyPallet,callback:function(e){t.$set(t.form,"emptyPallet",e)},expression:"form.emptyPallet"}}),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.setPalletCount}},[t._v("确定")])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"button-group"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.robotDestack()}}},[t._v("托盘拆垛")])],1)])],1),t._v(" "),a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"40px","margin-left":"40px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"margin-bottom":"20dp"}},[t._v("机械臂产品码垛")])]),t._v(" "),a("el-form-item",{attrs:{label:"码包层数"}},[a("el-input",{staticStyle:{width:"120px"},model:{value:t.form.palletizedPackages,callback:function(e){t.$set(t.form,"palletizedPackages",e)},expression:"form.palletizedPackages"}}),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.setPackageCount}},[t._v("确定")])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"button-group"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.robotStack()}}},[t._v("成品码垛")])],1)])],1),t._v(" "),a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"40px","margin-left":"40px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"margin-bottom":"20dp"}},[t._v("机械臂码垛配置")])]),t._v(" "),a("el-form-item",{attrs:{label:"最大层数"}},[a("el-input",{staticStyle:{width:"120px"},model:{value:t.form.maxPackages,callback:function(e){t.$set(t.form,"maxPackages",e)},expression:"form.maxPackages"}}),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.setMaxPackageCount}},[t._v("确定")])],1)],1)],1)])],1)},[],!1,null,null,null);u.options.__file="instore.vue";e.default=u.exports}}]);