Commit ebde24eb authored by 周毅's avatar 周毅

入库登记增加 过账按钮

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