Commit ff83b7fb authored by 李苏's avatar 李苏 💬

库区

parent 96d0a882
<template>
<BasePage :setFirstCurrent='false' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Detail :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='查看详情'" />
<BasePage :setFirstCurrent='false' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Detail :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='查看详情'" />
<Kwbg :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='库位变更'" />
</template>
<template #toolbar="ctx">
</template>
<template #toolbar="ctx">
<ImportButton @success="()=>{
<ImportButton @success="()=>{
ctx.basePage.refresh()
}" :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="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="qkkw(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'
type="primary">库位变更</el-button> -->
</template>
</template>
</BasePage>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
import Detail from './detail.vue'
import Edit from './edit.vue'
import Detail from './detail.vue'
import Kwbg from './kwbg.vue'
export default {
data() {
return {
config: {
/* 基本配置*/
url: 'wms/jcsj/kw',
tableTitle: [{
title: "状态",
field: "zt",
width: 80,
"transform": {
"url": "wms/jcsj/kw/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "库位编码",
field: "code",
width: 120
},
{
title: "库位",
field: "name",
width: 120
},
{
title: "仓库",
field: "ckName",
with: 120,
},
{
title: "库区",
field: "kqName",
width: 140,
},
{
title: "货架",
field: "hjName",
width: 140,
},
{
title: "排",
field: "kwx",
width: 80,
}, {
title: "列",
field: "kwy",
width: 80,
}, {
title: "层",
field: "kwz",
width: 80,
},
{
title: "存储状态",
field: "kczt",
"transform": {
"url": "wms/jcsj/kw/init/kczt ",
"label": "name",
"value": "id"
}
export default {
data() {
return {
config: {
/* 基本配置*/
url: 'wms/jcsj/kw',
tableTitle: [{
title: "状态",
field: "zt",
width: 80,
"transform": {
"url": "wms/jcsj/kw/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "库位编码",
field: "code",
width: 120
},
{
title: "库位",
field: "name",
width: 120
},
{
title: "仓库",
field: "ckName",
with: 120,
},
{
title: "库区",
field: "kqName",
width: 140,
},
{
title: "货架",
field: "hjName",
width: 140,
},
{
title: "排",
field: "kwx",
width: 80,
}, {
title: "列",
field: "kwy",
width: 80,
}, {
title: "层",
field: "kwz",
width: 80,
},
{
title: "存储状态",
field: "kczt",
"transform": {
"url": "wms/jcsj/kw/init/kczt ",
"label": "name",
"value": "id"
}
},
{
title: "外层库位",
field: "wcKwCode",
width: 120,
},
{
title: "ABC",
field: "abc",
width: 170
},
{
title: "停用日期",
field: "tyrq",
fieldType: 'ftDate'
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
},
{
title: "创建人",
field: "cjr",
hidden: true
},
{
title: "创建时间",
field: "cjsj",
fieldType: 'ftDateTime',
hidden: true
}
],
queryParams: [
[{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/jcsj/uck/ck/queryCjckid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "库位信息",
"prop": "kwInfo",
"span": 6,
"type": "input",
"value": "",
},
},
{
title: "外层库位",
field: "wcKwCode",
width: 120,
},
{
title: "ABC",
field: "abc",
width: 170
},
{
title: "停用日期",
field: "tyrq",
fieldType: 'ftDate'
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
},
{
title: "创建人",
field: "cjr",
hidden: true
},
{
title: "创建时间",
field: "cjsj",
fieldType: 'ftDateTime',
hidden: true
}
],
queryParams: [
[{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/jcsj/uck/ck/queryCjckid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '库区',
prop: 'kqid',
span: 6,
type: 'RelSelect',
typeConfig: {
src: "wms/jcsj/kq/query",
linkage: true,
linkParams: ['ckid']
},
},
{
"label": "货架",
"prop": "hjid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/kw/init/hj",
}
"label": "库位信息",
"prop": "kwInfo",
"span": 6,
"type": "input",
"value": "",
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/kw/init/zt",
}
}
{
"label": "货架",
"prop": "hjid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/kw/init/hj",
}
},
],[
],
[
{
"label": "状态",
"prop": "zt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/kw/init/zt",
}
},
{
"label": "存储状态",
"prop": "kczt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/kw/init/kczt",
}
},
]
],
/* 默认启停用 */
showqt: true,
}
}
"label": "存储状态",
"prop": "kczt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/kw/init/kczt",
}
}, ]
],
/* 默认启停用 */
showqt: true,
}
}
},
methods: {
kwbg(ctx){
},
methods: {
kwbg(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
ctx.DialogWidth = '30vw'
ctx.DialogTitle = '库位变更'
ctx.showDialog = true
ctx.DialogWidth = '30vw'
ctx.DialogTitle = '库位变更'
ctx.showDialog = true
} else {
this.$warning('请选中一条数据')
this.$warning('请选中一条数据')
}
},
qkkw(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('wms/jcsj/kw/clean', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
qkkw(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('wms/jcsj/kw/clean', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
} else {
this.$warning('请选中一条数据')
}
},
ckxq(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
ctx.DialogWidth = '80vw'
ctx.DialogTitle = '查看详情'
ctx.showDialog = true
},
ckxq(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
ctx.DialogWidth = '80vw'
ctx.DialogTitle = '查看详情'
ctx.showDialog = true
} else {
this.$warning('请选中一条数据')
}
}
/* 示例*/
// demo(basePage){
} else {
this.$warning('请选中一条数据')
}
}
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit,
Detail,
// }
},
components: {
Edit,
Detail,
// Kwbg
}
}
}
}
</script>
<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