1 line
9.8 KiB
JavaScript
1 line
9.8 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-07da"],{"4A3l":function(e,t,o){},"6wGl":function(e,t,o){"use strict";var a=o("4A3l");o.n(a).a},CvMc:function(e,t,o){"use strict";var a=o("t3Un");t.a={GetAgvsList:function(){return Object(a.a)({url:"/agv/GetAgvsList",method:"post"})},CancelTask:function(e){return Object(a.a)({url:"/agv/cancelTask",method:"post",data:e})},GetAgvStatus:function(e){return Object(a.a)({url:"/agv/getAgvStatus",method:"post",data:e})},GetTaskRecord:function(e){return Object(a.a)({url:"/agv/getTaskRecord",method:"post",data:e})},retrievePallet:function(e){return Object(a.a)({url:"/agv/retrievePallet",method:"post",data:e})},BatchRetrievePallet:function(e){return Object(a.a)({url:"/agv/BatchRetrievePallet",method:"post",data:e})},setWorkStoreTunnel:function(e){return Object(a.a)({url:"/agv/setWorkStoreTunnel",method:"post",data:e})},getWorkStoreTunnel:function(e){return Object(a.a)({url:"/agv/getWorkStoreTunnel",method:"post",data:e})},productOutStore:function(e){return Object(a.a)({url:"/agv/ProductOutStore",method:"post",data:e})},productBatchOutStore:function(e){return Object(a.a)({url:"/agv/ProductBatchOutStore",method:"post",data:e})},productBatchBackStore:function(e){return Object(a.a)({url:"/agv/ProductBatchBackStore",method:"post",data:e})},productInStoreNow:function(){return Object(a.a)({url:"/agv/productInStoreNow",method:"post"})},palletInStore:function(e){return Object(a.a)({url:"/agv/PalletOutStacker",method:"post",data:e})},palletOutStoreNow:function(){return Object(a.a)({url:"/agv/palletOutStoreNow",method:"post"})}}},MCrP:function(e,t,o){"use strict";o.r(t);var a=o("CvMc"),r={data:function(){return{guideImg:"/static/images/forklift.png",tableData:[],form:{outTunnel:1},hobby2:[],dialogVisible:!1,recovery_channel_no:"",recovery_package_cnt:""}},mounted:function(){this.getWorkStoreTunnel(2)},created:function(){},methods:{setWorkStoreTunnel:function(e){var t=this,o=this.form.outTunnel;this.$confirm("是否确认修改?","提示",{iconClass:"el-icon-question",confirmButtonText:"确认",showClose:!0,type:"warning"}).then(function(){var r={tunnel:o,type:e};a.a.setWorkStoreTunnel(r).then(function(e){t.$message("设置成功")})}).catch(function(e){console.log(e)})},getWorkStoreTunnel:function(e){var t=this,o={type:e};a.a.getWorkStoreTunnel(o).then(function(e){t.form.outTunnel=e.data.data.value})},productOutStore:function(){var e=this,t=[];this.hobby2.forEach(function(e,o,a){t.push(parseInt(e))}),console.log(t);var o={bin_no:t};a.a.productBatchOutStore(o).then(function(t){t.data.success?e.$message("下发成功"):e.$message(t.data.message),console.log(t.data)})},confirmRecovery:function(){var e=this,t=[];if(this.hobby2.forEach(function(e,o,a){t.push(parseInt(e))}),""!=this.recovery_channel_no&&""!=this.recovery_package_cnt){var o={bin_no:t,channel_no:parseInt(this.recovery_channel_no),package_cnt:parseInt(this.recovery_package_cnt)};console.log(o),a.a.productBatchBackStore(o).then(function(t){e.$message("下发成功"),console.log(t.data)}),this.dialogVisible=!1}else this.$message("请输入回库信息")},productBackStore:function(e){var t=[];this.hobby2.forEach(function(e,o,a){t.push(parseInt(e))}),1==t.length?(console.log(t),this.recovery_channel_no=this.form.outTunnel,this.dialogVisible=!0):this.$message("回库作业支持单任务作业,请重新选择回库库位")}}},n=(o("6wGl"),o("KHd+")),c=Object(n.a)(r,function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"display-flex"},[o("el-form",{ref:"form",staticClass:"fun",staticStyle:{"margin-top":"10px"},attrs:{model:e.form,"label-width":"80px"}},[o("el-card",{staticClass:"box-card",staticStyle:{width:"800px"}},[o("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[o("span",{staticStyle:{"margin-bottom":"20dp"}},[e._v("产品出库作业")])]),e._v(" "),o("el-form-item",{attrs:{label:"出库巷道"}},[o("el-input",{staticStyle:{width:"120px"},model:{value:e.form.outTunnel,callback:function(t){e.$set(e.form,"outTunnel",t)},expression:"form.outTunnel"}}),e._v(" "),o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.setWorkStoreTunnel(2)}}},[e._v("确定")])],1),e._v(" "),o("el-form-item",{attrs:{label:"接驳库位"}},[o("div",{staticClass:"button-group"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.hobby2,expression:"hobby2"}],attrs:{type:"checkbox",name:"hobby",value:"0"},domProps:{checked:Array.isArray(e.hobby2)?e._i(e.hobby2,"0")>-1:e.hobby2},on:{change:function(t){var o=e.hobby2,a=t.target,r=!!a.checked;if(Array.isArray(o)){var n=e._i(o,"0");a.checked?n<0&&(e.hobby2=o.concat(["0"])):n>-1&&(e.hobby2=o.slice(0,n).concat(o.slice(n+1)))}else e.hobby2=r}}}),e._v(" #1\n "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.hobby2,expression:"hobby2"}],staticStyle:{"margin-left":"20px"},attrs:{type:"checkbox",name:"hobby",value:"1"},domProps:{checked:Array.isArray(e.hobby2)?e._i(e.hobby2,"1")>-1:e.hobby2},on:{change:function(t){var o=e.hobby2,a=t.target,r=!!a.checked;if(Array.isArray(o)){var n=e._i(o,"1");a.checked?n<0&&(e.hobby2=o.concat(["1"])):n>-1&&(e.hobby2=o.slice(0,n).concat(o.slice(n+1)))}else e.hobby2=r}}}),e._v(" #2\n "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.hobby2,expression:"hobby2"}],staticStyle:{"margin-left":"20px"},attrs:{type:"checkbox",name:"hobby",value:"2"},domProps:{checked:Array.isArray(e.hobby2)?e._i(e.hobby2,"2")>-1:e.hobby2},on:{change:function(t){var o=e.hobby2,a=t.target,r=!!a.checked;if(Array.isArray(o)){var n=e._i(o,"2");a.checked?n<0&&(e.hobby2=o.concat(["2"])):n>-1&&(e.hobby2=o.slice(0,n).concat(o.slice(n+1)))}else e.hobby2=r}}}),e._v(" #3\n "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.hobby2,expression:"hobby2"}],staticStyle:{"margin-left":"20px"},attrs:{type:"checkbox",name:"hobby",value:"3"},domProps:{checked:Array.isArray(e.hobby2)?e._i(e.hobby2,"3")>-1:e.hobby2},on:{change:function(t){var o=e.hobby2,a=t.target,r=!!a.checked;if(Array.isArray(o)){var n=e._i(o,"3");a.checked?n<0&&(e.hobby2=o.concat(["3"])):n>-1&&(e.hobby2=o.slice(0,n).concat(o.slice(n+1)))}else e.hobby2=r}}}),e._v(" #4\n "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.hobby2,expression:"hobby2"}],staticStyle:{"margin-left":"20px"},attrs:{type:"checkbox",name:"hobby",value:"4"},domProps:{checked:Array.isArray(e.hobby2)?e._i(e.hobby2,"4")>-1:e.hobby2},on:{change:function(t){var o=e.hobby2,a=t.target,r=!!a.checked;if(Array.isArray(o)){var n=e._i(o,"4");a.checked?n<0&&(e.hobby2=o.concat(["4"])):n>-1&&(e.hobby2=o.slice(0,n).concat(o.slice(n+1)))}else e.hobby2=r}}}),e._v(" #5\n "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.hobby2,expression:"hobby2"}],staticStyle:{"margin-left":"20px"},attrs:{type:"checkbox",name:"hobby",value:"5"},domProps:{checked:Array.isArray(e.hobby2)?e._i(e.hobby2,"5")>-1:e.hobby2},on:{change:function(t){var o=e.hobby2,a=t.target,r=!!a.checked;if(Array.isArray(o)){var n=e._i(o,"5");a.checked?n<0&&(e.hobby2=o.concat(["5"])):n>-1&&(e.hobby2=o.slice(0,n).concat(o.slice(n+1)))}else e.hobby2=r}}}),e._v(" #6\n "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.hobby2,expression:"hobby2"}],staticStyle:{"margin-left":"20px"},attrs:{type:"checkbox",name:"hobby",value:"6"},domProps:{checked:Array.isArray(e.hobby2)?e._i(e.hobby2,"6")>-1:e.hobby2},on:{change:function(t){var o=e.hobby2,a=t.target,r=!!a.checked;if(Array.isArray(o)){var n=e._i(o,"6");a.checked?n<0&&(e.hobby2=o.concat(["6"])):n>-1&&(e.hobby2=o.slice(0,n).concat(o.slice(n+1)))}else e.hobby2=r}}}),e._v(" #7\n "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.hobby2,expression:"hobby2"}],staticStyle:{"margin-left":"20px"},attrs:{type:"checkbox",name:"hobby",value:"7"},domProps:{checked:Array.isArray(e.hobby2)?e._i(e.hobby2,"7")>-1:e.hobby2},on:{change:function(t){var o=e.hobby2,a=t.target,r=!!a.checked;if(Array.isArray(o)){var n=e._i(o,"7");a.checked?n<0&&(e.hobby2=o.concat(["7"])):n>-1&&(e.hobby2=o.slice(0,n).concat(o.slice(n+1)))}else e.hobby2=r}}}),e._v(" #8\n "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.hobby2,expression:"hobby2"}],staticStyle:{"margin-left":"20px"},attrs:{type:"checkbox",name:"hobby",value:"8"},domProps:{checked:Array.isArray(e.hobby2)?e._i(e.hobby2,"8")>-1:e.hobby2},on:{change:function(t){var o=e.hobby2,a=t.target,r=!!a.checked;if(Array.isArray(o)){var n=e._i(o,"8");a.checked?n<0&&(e.hobby2=o.concat(["8"])):n>-1&&(e.hobby2=o.slice(0,n).concat(o.slice(n+1)))}else e.hobby2=r}}}),e._v(" #9\n\n ")])]),e._v(" "),o("el-form-item",{attrs:{label:""}},[o("div",{staticClass:"button-group"},[o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.productOutStore()}}},[e._v("批量出库")]),e._v(" "),o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.productBackStore()}}},[e._v("尾单回库")])],1)])],1)],1),e._v(" "),o("el-dialog",{attrs:{title:"回库信息",visible:e.dialogVisible,center:"",width:"20%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},[o("el-form",{attrs:{inline:!0}},[o("el-form-item",[o("el-input",{attrs:{placeholder:"请输入回库巷道号",clearable:""},model:{value:e.recovery_channel_no,callback:function(t){e.recovery_channel_no=t},expression:"recovery_channel_no"}})],1),e._v(" "),o("el-form-item",[o("el-input",{attrs:{placeholder:"请输入回库包数",clearable:""},model:{value:e.recovery_package_cnt,callback:function(t){e.recovery_package_cnt=t},expression:"recovery_package_cnt"}})],1)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirmRecovery()}}},[e._v("确定")])],1)])],1)},[],!1,null,null,null);c.options.__file="outstore.vue";t.default=c.exports}}]); |