Commit ebde24eb authored by 周毅's avatar 周毅

入库登记增加 过账按钮

parent a377b2c2
......@@ -134,14 +134,7 @@
],
queryParams: [
[{
label: '物料信息',
prop: 'wlxxInfo',
span: 6,
type: 'input',
value: ''
},
[
{
"label": "仓库",
"prop": "ckid",
......@@ -157,24 +150,26 @@
}
},
{
label: '容器编码',
prop: 'rqCode',
label: '物料信息',
prop: 'wlxxInfo',
span: 6,
type: 'input',
value: ''
},
},
{
label: '唯一码',
prop: 'packCode',
label: '制令号',
prop: 'zlhInfo',
span: 6,
type: 'input',
value: ''
},
{
prop: 'flId',
value: 'L'
label: '容器编码',
prop: 'rqCode',
span: 6,
type: 'input',
value: ''
},
]
],
/* 默认启停用 */
......
......@@ -4,7 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- <el-button @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button> -->
<el-button @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button>
</template>
</BasePage>
</template>
......@@ -17,11 +17,11 @@
add: false,
copy: false,
/* 手动控制删除 */
delButton: true,
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
......@@ -172,15 +172,34 @@
},
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/rkgl/rkdj/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: {
Edit
}
// components: {
// Edit
// }
}
</script>
......
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