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

发送sap + 定制接口

parent 4066e1d0
......@@ -11,6 +11,7 @@
<el-button @click="qxdj(ctx.basePage)" size='mini' type="primary">取消冻结</el-button>
<el-button @click="wc(ctx.basePage)" size='mini' type="primary">完成</el-button>
<el-button @click="qxwc(ctx.basePage)" size='mini' type="primary">取消完成</el-button>
<el-button @click="sendSap(ctx.basePage)" size='mini' type="primary">发送至sap</el-button>
</template>
</BasePage>
......@@ -25,6 +26,7 @@
queryDetail: true,
/* 基本配置*/
url: 'wms/kcgl/kcpd',
queryUrl:'lxyl/kcgl/pdgz/query',
tableTitle: [{
title: "状态",
field: "zt",
......@@ -127,6 +129,27 @@
},
methods: {
sendSap(ctx){
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/kcgl/pdgz/sync/pdgz', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
wc(ctx){
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
......
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