| | |
| | | <div> |
| | | <!-- <el-button @click="testMove()">测试移动车</el-button>--> |
| | | <el-button @click="resetMap()">重置地图</el-button> |
| | | <el-button @click="initLoc()">初始化库位</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | }) |
| | | }, |
| | | initLoc() { |
| | | //初始化库位 |
| | | let that = this |
| | | $.ajax({ |
| | | url:baseUrl+"/locMast/init", |
| | | headers:{ |
| | | 'token': localStorage.getItem('token') |
| | | }, |
| | | data:{}, |
| | | method:'post', |
| | | success:function (res) { |
| | | that.$message({ |
| | | message: '初始化完成', |
| | | type: 'success' |
| | | }); |
| | | } |
| | | }) |
| | | }, |
| | | getCodeData(){ |
| | | this.sendWs(JSON.stringify({ |
| | | "url": "/console/barcode/output/site", |