Commit 8f81d4df authored by 李苏's avatar 李苏 💬

立库任务

parent 02911c72
......@@ -1272,6 +1272,19 @@ export const powerRoutes = [
name: 'wcszy',
path: "wcszy",
},
{
component: 'ccgl/wcsrwgl/lkrw/index',
hidden: false,
meta: {
"title": "立库任务",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920110300,
},
name: 'lkrw',
path: "lkrw",
}
]
},
/* 大屏看板*/
......
<template>
<BasePage :power='power' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template>
</BasePage>
</template>
<script>
export default {
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'lxyl/wcs/lkrw',
tableTitle: [{
title: "状态",
field: "zt",
"transform": {
"url": "lxyl/wcs/lkrw/init/zt",
"label": "name",
"value": "id"
},
width: 120
},
{
title: "任务类型",
field: "type",
"transform": {
"url": "lxyl/wcs/lkrw/init/type",
"label": "name",
"value": "id"
},
width: 120
}, {
title: "单号",
field: "djid",
fieldType: "upper",
width: 140
},
{
title: "工位",
field: "gwName",
width: 140
},
{
title: "库位",
field: "kwCode",
width: 140
},
{
title: "目标库位",
field: "mbkwCode",
width: 140
},
{
title: "容器",
field: "rqCode",
width: 140
},
{
title: "设备",
field: "deviceName",
width: 140
},
{
title: "单据来源",
field: "djly",
"transform": {
"url": "lxyl/wcs/lkrw/init/djly",
"label": "name",
"value": "id"
},
width: 120
},
{
title: "开始时间",
field: "kssj",
fieldType: "ftDateTime"
},
{
title: "结束时间",
field: "jssj",
fieldType: "ftDateTime"
},
{
title: "耗时",
field: "timespan",
width: 240,
formatter(a, b, duration) {
if (duration == 0 || !duration) {
return "0";
} else {
var days = Math.floor(duration / (1000 * 60 * 60 * 24));
var hours = Math.floor((duration % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((duration % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((duration % (1000 * 60)) / 1000);
var result = "";
if (days > 0) {
result += days + " 天 ";
}
if (hours > 0) {
result += hours + " 小时 ";
}
if (minutes > 0) {
result += minutes + " 分钟 ";
}
if (seconds > 0) {
result += seconds + " 秒 ";
}
return result;
}
}
},
{
title: "异常消息",
field: "message",
width: 200
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '状态',
prop: 'zt',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'lxyl/wcs/lkrw/init/zt'
}
},
{
label: '类型',
prop: 'type',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'lxyl/wcs/lkrw/init/zt'
}
},
{
label: '单号',
prop: 'djid',
span: 6,
type: 'input',
value: ''
}
]
],
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
}
}
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment