Commit 823ca428 authored by 周毅's avatar 周毅

调整页面显示

parent b67121c3
...@@ -5,9 +5,8 @@ ...@@ -5,9 +5,8 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <el-button @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button>
</template> </template>
</BasePage> </BasePage>
</template> </template>
...@@ -157,9 +156,30 @@ ...@@ -157,9 +156,30 @@
}, },
methods: { methods: {
/* 示例*/ /* 示例*/
// demo(basePage){ sapgz(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
// } this.$confirm('确定要过账吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
ctx.$refs.TablePager.loading = true
this.$post('lxyl/ckgl/ckdj/sapgz', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.$refs.TablePager.loading = false
ctx.refresh()
}
}).finally(res => {
ctx.$refs.TablePager.loading = false
})
})
} else {
this.$warning('请选中一条数据')
}
},
}, },
components: { components: {
Edit Edit
......
...@@ -141,10 +141,15 @@ export default { ...@@ -141,10 +141,15 @@ export default {
// width: 140 // width: 140
// }, // },
{ {
title: "货主", title: "工厂",
field: "hzName", field: "hzName",
width: 140, width: 140,
}, },
{
title: "仓库",
field: "ckName",
width: 140,
},
{ {
title: "事务类型", title: "事务类型",
field: "swlxName", field: "swlxName",
...@@ -161,16 +166,6 @@ export default { ...@@ -161,16 +166,6 @@ export default {
width: 140, width: 140,
hidden: true, hidden: true,
}, },
{
title: "仓库编码",
field: "ckCode",
width: 140,
},
{
title: "仓库",
field: "ckName",
width: 140,
},
// { // {
// title: "码盘状态", // title: "码盘状态",
// field: "mpzt", // field: "mpzt",
......
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