Commit 10c17ff7 authored by 周毅's avatar 周毅

库位增加 锁定、解锁、冻结、解冻

parent 01f6a95e
...@@ -10,7 +10,11 @@ ...@@ -10,7 +10,11 @@
<ImportButton @success="()=>{ <ImportButton @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'lxyl/jcsj/kw/import'" /> }" :url="'lxyl/jcsj/kw/import'" />
<el-button style="margin-left: 10px;" @click="qkkw(ctx.basePage)" size='mini' type="primary">清空库位</el-button> <el-button style="margin-left: 10px;" @click="qkkw(ctx.basePage)" size='mini' type="primary">清空</el-button>
<el-button style="margin-left: 10px;" @click="lock(ctx.basePage)" size='mini' type="primary">锁定</el-button>
<el-button style="margin-left: 10px;" @click="unlock(ctx.basePage)" size='mini' type="primary">解锁</el-button>
<el-button style="margin-left: 10px;" @click="freeze(ctx.basePage)" size='mini' type="primary">冻结</el-button>
<el-button style="margin-left: 10px;" @click="unfreeze(ctx.basePage)" size='mini' type="primary">解冻</el-button>
<el-button style="margin-left: 10px;" @click="ckxq(ctx.basePage)" size='mini' type="primary">查看详情</el-button> <el-button style="margin-left: 10px;" @click="ckxq(ctx.basePage)" size='mini' type="primary">查看详情</el-button>
<!-- <el-button style="margin-left: 10px;" @click="kwbg(ctx.basePage)" size='mini' <!-- <el-button style="margin-left: 10px;" @click="kwbg(ctx.basePage)" size='mini'
type="primary">库位变更</el-button> --> type="primary">库位变更</el-button> -->
...@@ -52,7 +56,7 @@ ...@@ -52,7 +56,7 @@
{ {
title: "仓库", title: "仓库",
field: "ckName", field: "ckName",
with: 120, width: 120,
}, },
{ {
title: "库区", title: "库区",
...@@ -88,7 +92,7 @@ ...@@ -88,7 +92,7 @@
}, },
{ {
title: "外库位", title: "外库位",
field: "wcKwCode", field: "wcKwCode",
width: 120, width: 120,
}, },
...@@ -97,11 +101,6 @@ ...@@ -97,11 +101,6 @@
field: "abc", field: "abc",
width: 170 width: 170
}, },
{
title: "停用日期",
field: "tyrq",
fieldType: 'ftDate'
},
{ {
title: "备注", title: "备注",
field: "bz", field: "bz",
...@@ -199,7 +198,7 @@ ...@@ -199,7 +198,7 @@
}, ] }, ]
], ],
/* 默认启停用 */ /* 默认启停用 */
showqt: true, //showqt: true,
} }
} }
...@@ -238,6 +237,90 @@ ...@@ -238,6 +237,90 @@
} }
}, },
lock(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('wms/jcsj/kw/lock', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
unlock(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('wms/jcsj/kw/unlock', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
freeze(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('wms/jcsj/kw/freeze', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
unfreeze(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('wms/jcsj/kw/unfreeze', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
ckxq(ctx) { ckxq(ctx) {
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
ctx.DialogWidth = '80vw' ctx.DialogWidth = '80vw'
......
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