Commit 42df7299 authored by 李苏's avatar 李苏 💬

sap 取消过账/制令号变更

parent 41770a3a
......@@ -9,6 +9,7 @@
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="tbjhd(ctx.basePage)" size='mini' type="primary">同步交货单</el-button>
<el-button @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button>
<el-button @click="qxsapgz(ctx.basePage)" size='mini' type="primary">取消过账</el-button>
<el-button @click="sfsap(ctx.basePage)" size='mini' type="primary">释放SAP修改权限</el-button>
<el-button @click="ckbg(ctx.basePage)" size='mini' type="primary">仓库变更</el-button>
</template>
......@@ -384,6 +385,27 @@
this.$warning('请至少勾选一条数据')
}
},
qxsapgz(ctx){
let list = ctx.$refs.TablePager.selectedList || []
if (list.length > 0) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/ckgl/sto/usofh/sap/cancelGz', {
ids: list.map(item => item.id)
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请至少勾选一条数据')
}
},
sapgz(ctx) {
let list = ctx.$refs.TablePager.selectedList || []
if (list.length > 0) {
......
......@@ -59,6 +59,7 @@ import Cx from './cx.vue'
list.forEach(item=>{
item.lydjid=item.id
item.rqmxid=item.id
item.packmxid=item.packmxId
item.bzsl=item.packmxSl||0
delete item.id
this.formDetail.push(_.cloneDeep(item))
......
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