diff --git a/vue/src/router/modules/vw_menu.js b/vue/src/router/modules/vw_menu.js index 70c064b1..49df7f94 100644 --- a/vue/src/router/modules/vw_menu.js +++ b/vue/src/router/modules/vw_menu.js @@ -30,7 +30,7 @@ const vwMenudataRouter = { name: 'Invoices', meta: { title: '发票汇总', - roles: ['SettleAccount.Reports'], + roles: ['SettleAccount.Invoices'], icon: '对比' } }, diff --git a/vue/src/views/ux/billManage/kanbanOutOrder/detail.vue b/vue/src/views/ux/billManage/kanbanOutOrder/detail.vue index d5ccde75..83465868 100644 --- a/vue/src/views/ux/billManage/kanbanOutOrder/detail.vue +++ b/vue/src/views/ux/billManage/kanbanOutOrder/detail.vue @@ -32,6 +32,14 @@ @click="handleCancelBills()" >取消出库(支持批量) + 删除出库单(支持批量) + { + let id = element.id; + params.push(id); + }); + myalert = "选中项"; + } + this.listDeleteQuery.billNum = this.listQuery.billNum ; + console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); + this.$confirm("是否删除" + myalert + "?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.$axios + .posts("/api/settleaccount/wmskanbanoutput/WmsOutPutDelete", this.listDeleteQuery) + .then((response) => { + const index = this.list.indexOf(row); + this.$notify({ + title: "成功", + message: "删除成功", + type: "success", + duration: 2000, + }); + this.getList(); + }); + }) + .catch(() => { + this.$message({ + type: "info", + message: "已取消操作", + }); + }); + }, /** 刷新列表 */ handleHandle(data) { if (data.type !== "edit") { diff --git a/vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue b/vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue index 058d50e6..fca5e7c3 100644 --- a/vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue +++ b/vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue @@ -32,6 +32,14 @@ @click="handleCancelBills()" >取消出库(支持批量) + { + // let id = element.id; + // params.push(id); + // }); + // myalert = "选中项"; + // } + // this.$confirm("是否删除" + myalert + "?", "提示", { + // confirmButtonText: "确定", + // cancelButtonText: "取消", + // type: "warning", + // }) + // .then(() => { + // this.$axios + // .posts("/api/settleaccount/Job/delete", params) + // .then((response) => { + // const index = this.list.indexOf(row); + // this.$notify({ + // title: "成功", + // message: "删除成功", + // type: "success", + // duration: 2000, + // }); + // this.getList(); + // }); + // }) + // .catch(() => { + // this.$message({ + // type: "info", + // message: "已取消操作", + // }); + // }); + // }, /** 刷新列表 */ handleHandle(data) { if (data.type !== "edit") { diff --git a/vue/src/views/ux/billManage/sparepartOutOrder/detail.vue b/vue/src/views/ux/billManage/sparepartOutOrder/detail.vue index ac9479fe..6c6afa4d 100644 --- a/vue/src/views/ux/billManage/sparepartOutOrder/detail.vue +++ b/vue/src/views/ux/billManage/sparepartOutOrder/detail.vue @@ -32,6 +32,14 @@ @click="print()" >取消出库(支持批量) + 删除出库单(支持批量) + { + let id = element.id; + params.push(id); + }); + myalert = "选中项"; + } + this.listDeleteQuery.billNum = this.listQuery.billNum ; + console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); + this.$confirm("是否删除" + myalert + "?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.$axios + .posts("/api/settleaccount/wmsSharePartoutput/WmsOutPutDelete", this.listDeleteQuery) + .then((response) => { + const index = this.list.indexOf(row); + this.$notify({ + title: "成功", + message: "删除成功", + type: "success", + duration: 2000, + }); + this.getList(); + }); + }) + .catch(() => { + this.$message({ + type: "info", + message: "已取消操作", + }); + }); + }, /** 刷新列表 */ handleHandle(data) { if (data.type !== "edit") { diff --git a/vue/src/views/ux/billManage/vwOutOrder/detail.vue b/vue/src/views/ux/billManage/vwOutOrder/detail.vue index 3e501f78..4d3d14c0 100644 --- a/vue/src/views/ux/billManage/vwOutOrder/detail.vue +++ b/vue/src/views/ux/billManage/vwOutOrder/detail.vue @@ -32,6 +32,14 @@ @click="handleCancelBills()" >取消出库(支持批量) + 删除出库单(支持批量) + { + let id = element.id; + params.push(id); + }); + myalert = "选中项"; + } + this.listDeleteQuery.billNum = this.listQuery.billNum ; + console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); + this.$confirm("是否删除" + myalert + "?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.$axios + .posts("/api/settleaccount/wmsjitoutput/WmsOutPutDelete", this.listDeleteQuery) + .then((response) => { + const index = this.list.indexOf(row); + this.$notify({ + title: "成功", + message: "删除成功", + type: "success", + duration: 2000, + }); + this.getList(); + }); + }) + .catch(() => { + this.$message({ + type: "info", + message: "已取消操作", + }); + }); + }, /** 刷新列表 */ handleHandle(data) { if (data.type !== "edit") { diff --git a/vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue b/vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue index cf762e52..f4ab7262 100644 --- a/vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue +++ b/vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue @@ -32,6 +32,14 @@ @click="handleCancelBills()" >取消出库(支持批量) + 删除出库单(支持批量) + { + let id = element.id; + params.push(id); + }); + myalert = "选中项"; + } + this.listDeleteQuery.billNum = this.listQuery.billNum ; + console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); + this.$confirm("是否删除" + myalert + "?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.$axios + .posts("/api/settleaccount/WMSHQFKanbanoutput/WmsOutPutDelete", this.listDeleteQuery) + .then((response) => { + const index = this.list.indexOf(row); + this.$notify({ + title: "成功", + message: "删除成功", + type: "success", + duration: 2000, + }); + this.getList(); + }); + }) + .catch(() => { + this.$message({ + type: "info", + message: "已取消操作", + }); + }); + }, /** 刷新列表 */ handleHandle(data) { if (data.type !== "edit") { diff --git a/vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue b/vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue index be0ae196..c3895aae 100644 --- a/vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue +++ b/vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue @@ -32,6 +32,15 @@ @click="handleCancelBills()" >取消出库(支持批量) + 删除出库单(支持批量) + - - + width="100" + >