1 line
3.7 KiB
JavaScript
1 line
3.7 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-258a"],{YCRZ:function(t,e,o){"use strict";var a=o("uTRX");o.n(a).a},nz5g:function(t,e,o){"use strict";o.r(e);var a=o("qpgI"),n={data:function(){return{guideImg:"/static/images/arm.jpg",form:{emptyPallet:10,palletizedPackages:4,maxPackages:4},readonly:!0,showSpeed:!1}},mounted:function(){this.getMatterCount("pallet"),this.getMatterCount("package"),this.getMatterCount("max_package")},created:function(){},methods:{getMatterCount:function(t){var e=this,o={type:t};a.a.GetRobotMatterCount(o).then(function(o){"pallet"==t?e.form.emptyPallet=o.data.data.count:"package"==t?e.form.palletizedPackages=o.data.data.count:e.form.maxPackages=o.data.data.count})},setPalletCount:function(){var t=this,e=this.form.emptyPallet;this.$confirm("是否确认修改?","提示",{iconClass:"el-icon-question",confirmButtonText:"确认",showClose:!0,type:"warning"}).then(function(){var o={count:e};a.a.SetRobotPalletCount(o).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 o={count:e};a.a.SetRobotProductCount(o).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 o={count:e};a.a.SetMaxRobotProductCount(o).then(function(e){t.$message("设置成功")})}).catch(function(t){console.log(t)})}}},c=(o("YCRZ"),o("KHd+")),l=Object(c.a)(n,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("h1",{staticClass:"title"}),t._v(" "),o("div",{staticClass:"display-flex"},[o("img",{staticStyle:{width:"150px",height:"200px"},attrs:{src:t.guideImg}}),t._v(" "),o("el-form",{ref:"form",staticClass:"fun",attrs:{model:t.form,"label-width":"120px"}},[o("el-form-item",{attrs:{label:"当前空托盘数"}},[o("el-input",{attrs:{readonly:""},model:{value:t.form.emptyPallet,callback:function(e){t.$set(t.form,"emptyPallet",e)},expression:"form.emptyPallet"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"当前码垛包数"}},[o("el-input",{attrs:{readonly:""},model:{value:t.form.palletizedPackages,callback:function(e){t.$set(t.form,"palletizedPackages",e)},expression:"form.palletizedPackages"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"最大码垛包数"}},[o("el-input",{attrs:{readonly:""},model:{value:t.form.maxPackages,callback:function(e){t.$set(t.form,"maxPackages",e)},expression:"form.maxPackages"}})],1)],1)],1)])},[],!1,null,null,null);l.options.__file="robot.vue";e.default=l.exports},qpgI:function(t,e,o){"use strict";var a=o("t3Un");e.a={SetRobotPalletCount:function(t){return Object(a.a)({url:"/device/setRobotPalletCount",method:"post",data:t})},SetRobotProductCount:function(t){return Object(a.a)({url:"/device/setRobotProductCount",method:"post",data:t})},SetMaxRobotProductCount:function(t){return Object(a.a)({url:"/device/setMaxRobotProductCount",method:"post",data:t})},SetStackerPalletCount:function(t){return Object(a.a)({url:"/device/setStackerPalletCount",method:"post",data:t})},GetRobotMatterCount:function(t){return Object(a.a)({url:"/device/getRobotMatterCount",method:"post",data:t})},GetStackerMatterCount:function(t){return Object(a.a)({url:"/device/getStackerMatterCount",method:"post",data:t})},AllowStackerGet:function(){return Object(a.a)({url:"/device/setStackerAllowGet",method:"post"})},AllowStackerPut:function(){return Object(a.a)({url:"/device/setStackerAllowPut",method:"post"})}}},uTRX:function(t,e,o){}}]); |