Commit 15dabe91 authored by 周毅's avatar 周毅

调整装包,上立库、立库任务增加关闭按钮

parent 97f41444
......@@ -118,7 +118,12 @@
type: 'inputNumber',
required: true,
},
{
label: '物料描述',
prop: 'sx01',
span: 12,
type: 'input',
}
]
......
......@@ -8,7 +8,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="sj(ctx.basePage)" size='mini' type="primary">上架</el-button>
<el-button @click="close(ctx.basePage)" size='mini' type="primary">关闭</el-button>
</template>
</BasePage>
......@@ -251,6 +251,23 @@
this.warning('请选中一条数据')
}
},
close(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$post('lxyl/ckgl/ckrw/lkck/close',{
id:ctx.singleItem.id
}).then(res=>{
if(res.success){
this.$success('任务关闭成功!')
ctx.refresh()
}
})
}else{
this.warning('请选择一条数据!')
}
}
},
......
......@@ -5,7 +5,7 @@
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<el-button @click="close(ctx.basePage)" size='mini' type="primary">关闭</el-button>
</template>
</BasePage>
......@@ -65,7 +65,7 @@
field: "gwName",
width: 140,
formatter(a,b,v){
return a.gwName||a.kwName
return a.kwName||a.gwName
}
},
// {
......@@ -74,12 +74,12 @@
// width: 140
// },
{
title: "目标位",
title: "目标位",
field: "mbkwCode",
width: 140,
// formatter(a,b,v){
// return a.gwName||a.kwName
// }
formatter(a,b,v){
return a.mbkwCode||a.gwName
}
},
{
title: "容器",
......@@ -194,6 +194,22 @@
// demo(basePage){
// }
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: {
......
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