Commit 4066e1d0 authored by 李苏's avatar 李苏 💬

检验单 发送sap lxyl/zlgl/ukcjyd/sap/cxzj ids

parent b8b3a427
......@@ -8,6 +8,8 @@
<el-button @click="showAdd(ctx.basePage)" size='mini' type="primary">新增</el-button>
<el-button @click="pd(ctx.basePage,'A')" size='mini' type="primary">判定合格</el-button>
<el-button @click="pd(ctx.basePage,'R')" size='mini' type="primary">判定不合格</el-button>
<el-button @click="sendSap(ctx.basePage)" size='mini' type="primary">发送至sap</el-button>
</template>
......@@ -32,8 +34,8 @@
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
showSelection: true,
saveSelected: true
},
config: {
......@@ -181,6 +183,27 @@
},
methods: {
sendSap(ctx){
let list = ctx.$refs.TablePager.selectedList || []
if (list.length > 0) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/zlgl/ukcjyd/sap/cxzj', {
ids: list.map(item => item.id)
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请至少勾选一条数据')
}
},
pd(ctx, hgbz) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$post('lxyl/zlgl/ukcjyd/doCheck', {
......
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