Commit 042ae101 by huangqy

11

parent ceabdfd5
......@@ -22,7 +22,7 @@ import { postAction } from '@/api/manage'
export default {
data() {
return {
url: '/work/getWorkPage',
url: '/big/getWorkPage',
config: {}
};
},
......@@ -35,20 +35,18 @@ export default {
},
methods: {
getWorkPage() {
let data = window._CONFIG['isLTK'] ? { pageNo: 1, pageSize: 20, condition: {}, storeCode: this.$route.query.storeCode} : { pageNo: 1, pageSize: 20, condition: {} }
postAction(window._CONFIG['domianURL'] + this.url, data).then(res => {
postAction(window._CONFIG['domianURL'] + this.url, {storeCode: this.$route.query.storeCode}).then(res => {
let arr = []
res.data.records.forEach(element => {
var itemArr = []
itemArr.push(element.aisle)
itemArr.push(element.palletId)
itemArr.push(element.workTypeName)
itemArr.push(element.positionCode)
itemArr.push(element.areaName)
itemArr.push(element.type == 'OUT'? '出库': '入库')
itemArr.push(element.positionName)
itemArr.push(element.statusName)
arr.push(itemArr)
})
this.config = {
header: ["巷道", "托盘号", "作业类型", "任务地址", "作业状态"],
header: ["区域号", "作业类型", "垛位号", "作业状态"],
data: arr,
rowNum: 5, //表格行数
headerHeight: 35,
......@@ -56,7 +54,7 @@ export default {
oddRowBGC: "rgb(15,47,130, 0.5)", //奇数行
evenRowBGC: "rgb(5,19,104, 0.5)", //偶数行
index: false,
columnWidth: [60, 75, 95, 95, 95],
columnWidth: [100],
align: ["center"]
}
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论