Commit 9f993c59 authored by 李苏's avatar 李苏 💬

新增立库任务查询

parent 89306a32
......@@ -1154,6 +1154,19 @@ export const powerRoutes = [
},
name: 'dzcxfx',
path: "dzcxfx",
},
{
component: 'ccgl/cxfx/cxlkrw/index',
hidden: false,
meta: {
"title": "查询立库任务",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190800,
},
name: 'cxlkrw',
path: "cxlkrw",
}
]
},
......
<template>
<BasePage :power='power' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="start(ctx.basePage)" size='mini' type="primary">开始</el-button>
<el-button @click="close(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: {
cellStyle({
row,
column,
}) {
// 定义样式变量
let cellStyle;
switch (row.zt) {
case 'SW':
case 'WW':
cellStyle = 'color:#199fe8';
break;
case 'SD':
case 'WD':
cellStyle = 'color:#11b95c';
break;
case 'C':
cellStyle = 'color:#e6a700';
break;
case 'CF':
cellStyle = 'color:#ff4949';
break;
default:
cellStyle = '';
}
if (column.label) {
return cellStyle
}
},
/* 基本配置*/
url: 'lxyl/wcs/lkrw',
tableTitle: [{
title: "状态",
field: "zt",
"transform": {
"url": "lxyl/wcs/lkrw/init/zt",
"label": "name",
"value": "id"
},
width: 80
},
{
title: "类型",
field: "type",
"transform": {
"url": "lxyl/wcs/lkrw/init/type",
"label": "name",
"value": "id"
},
width: 80
}, {
title: "任务号",
field: "djid",
fieldType: "upper",
width: 140
},
{
title: "起始位",
field: "gwName",
width: 140,
formatter(a,b,v){
return a.kwName||a.gwName
}
},
{
title: "目标位",
field: "mbkwCode",
width: 140,
formatter(a,b,v){
return a.mbkwCode||a.gwName
}
},
{
title: "容器",
field: "rqCode",
width: 140
},
{
title: "垛机取/放货口",
field: "rcgwCode",
width: 140
},
{
title: "开始时间",
field: "kssj",
fieldType: "ftDateTime"
},
{
title: "结束时间",
field: "jssj",
fieldType: "ftDateTime"
},
{
title: "耗时",
field: "timespan",
width: 140,
fieldType: "timespan"
},
{
title: "巷道",
field: "hjName",
width: 140
},
{
title: "业务类型",
field: "ywlx",
"transform": {
"url": "lxyl/wcs/lkrw/init/ywlx",
"label": "name",
"value": "id"
},
width: 120
},
{
title: "业务单号",
field: "lydjCode",
width: 140
},
{
title: "异常消息",
field: "message",
width: 200
},
// {
// title: "单据来源",
// field: "djly",
// "transform": {
// "url": "lxyl/wcs/lkrw/init/djly",
// "label": "name",
// "value": "id"
// },
// width: 120
// },
{
title: "创建人",
field: "cjr"
},
{
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '日期',
startProp: "start",
endProp: "end",
span: 6,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 7,
endValue: new Date().getTime(),
},
{
label: "巷道",
prop: "deviceid",
span: 6,
type: "RelSelect",
value: "",
typeConfig: {
src: "lxyl/wcs/lkrw/init/hj",
}
},
{
label: '容器',
prop: 'rqCode',
span: 6,
type: 'input',
value: ''
},
{
label: '起始位置',
prop: 'startPos',
span: 6,
type: 'input'
}
],
[
{
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/type'
}
},
{
label: '业务单号',
prop: 'lydjCode',
span: 6,
type: 'input',
value: ''
},
{
label: '任务号',
prop: 'djid',
span: 6,
type: 'input',
value: ''
},
]
],
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
start(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$post('lxyl/wcs/lkrw/start',{
id:ctx.singleItem.id
}).then(res=>{
if(res.success){
this.$success('任务启动成功!')
ctx.refresh()
}
})
}else{
this.warning('请选择一条数据!')
}
},
close(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$post('lxyl/wcs/lkrw/close',{
id:ctx.singleItem.id
}).then(res=>{
if(res.success){
this.$success('任务关闭成功!')
ctx.refresh()
}
})
}else{
this.warning('请选择一条数据!')
}
}
},
components: {
}
}
</script>
<style>
</style>
<template>
<BasePage :power='power' class="min_full" :config="config">
<BasePage ref="basePage" :power='power' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
......@@ -49,7 +49,7 @@
field: "kczt",
width: 90,
transform: {
"url": "wms/jcsj/kw/init/kczt ",
"url": "wms/jcsj/kw/init/kczt",
"label": "name",
"value": "id"
}
......@@ -107,14 +107,34 @@
],
queryParams: [
[{
[
{
label: "仓库分类",
prop: "ckFlid",
span: 6,
type: "RelSelect",
value: "",
typeConfig: {
onChange:(e)=>{
this.$refs.basePage.queryParams.flid=e.id
},
src: "wms/common/query/ckfl",
match: {
value: "id",
label: "name"
},
}
},
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/common/query/kwgl/ck",
"src": "lxyl/jcsj/uck/ck/queryCjckid",
linkage: true,
linkParams: ['flid'],
"match": {
"value": "id",
"label": "name"
......@@ -137,13 +157,8 @@
prop: 'kwInfo',
span: 6,
type: 'input',
},
{
label: '物料信息',
prop: 'wlxxInfo',
span: 6,
type: 'input',
}
],
[{
label: '物料批号',
......@@ -170,6 +185,24 @@
span: 6,
type: 'input',
},
],
[{
"label": "存储状态",
"prop": "kczt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/kw/init/kczt",
}
},
{
label: '物料信息',
prop: 'wlxxInfo',
span: 6,
type: 'input',
}
]
],
......
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