Commit 241e9c1b by huangqy

正式的也修改

parent 34a4f341
......@@ -40,18 +40,23 @@
</el-form-item>
<el-form-item>
<a-button type="primary" ghost icon="search" @click="getQueuData()" >查询</a-button>
<a-button type="primary" ghost icon="search" @click="getQueuData()">查询</a-button>
</el-form-item>
<el-form-item>
<a-button type="primary" ghost @click="resClick()" icon="reload">重置</a-button>
</el-form-item>
<el-form-item>
<a-button type="primary" ghost @click="trajectory()" v-if="selection">轨迹模拟</a-button>
</el-form-item>
</el-form>
<el-divider style="marin-top: -10px"></el-divider>
<!-- 列表区域 -->
<!-- 主表 -->
<el-table :data="queueData" style="width: 100%;height: 486px;overflow-y: auto;" size="medium" highlight-current-row>
<el-table :data="queueData" style="width: 100%;" size="medium" highlight-current-row @row-click="rowClick">
<el-table-column prop="palletId" label="托盘号" align="center" width="120" />
<el-table-column prop="aisle" label="巷道" align="center" width="100" />
<el-table-column prop="sLayer" label="起始层" align="center" width="100" />
......@@ -129,6 +134,7 @@ export default {
workStatusList: [],
// 作业队列
queueData: [],
selection: '',
// 筛选数据
searchData: {
......@@ -283,6 +289,21 @@ export default {
},
this.getQueuData()
},
rowClick(value) {
this.selection = value
// this.selection =
},
trajectory() {
this.$router.push(
{
path: '/workQueue/moveCar',
query: {
workId: this.selection.id,
workTypeName: this.selection.workTypeName
}
}
)
}
},
computed: {
......
......@@ -1693,8 +1693,8 @@
<el-button @click="ruku">入库</el-button>
<el-button @click="chuku">出库</el-button>
<el-button @click="ruku" v-if="workTypeName == '入库'">入库</el-button>
<el-button @click="chuku" v-if="workTypeName == '出库'">出库</el-button>
<el-button @click="fuwei">复位</el-button>
......@@ -1729,21 +1729,17 @@ export default {
move1: false,
goodsLan: false,
move3: false,
goodsLan3: false
goodsLan3: false,
workTypeName: '',
workId: ''
}
},
created () {
this.workTypeName = this.$route.query.workTypeName
this.workId = this.$route.query.workId
},
mounted() {
const that = this
window.onresize = function temp() {
that.height = document.documentElement.clientHeight - 176
}
},
methods: {
ruku() {
this.move = true // 小车入库的一生走完
......@@ -1788,8 +1784,24 @@ export default {
}, 16000)
setTimeout(() => {
this.showGoods = false
let url = '/work/makeFinish'
var params = {
workId: this.workId
}
this.alertWin(url, params)
}, 20000)
},
async alertWin (url, params) {
const { data: res } = await this.$axios.get(url, {
params
})
if (res.code === 99200) {
this.$message.success(res.message)
} else {
this.$message.error(res.message)
}
},
fuwei() {
this.move = false
this.moveY = false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论