给7种单据增加强制结单的按钮

This commit is contained in:
jishenghua
2025-04-08 22:29:11 +08:00
parent 65c517b335
commit 338f9ffd5d
8 changed files with 53 additions and 0 deletions

View File

@@ -231,6 +231,37 @@ export const JeecgListMixin = {
}); });
} }
}, },
batchForceClose: function () {
if(!this.url.forceCloseBatch){
this.$message.error("请设置url.forceCloseBatch属性!")
return
}
if (this.selectedRowKeys.length <= 0) {
this.$message.warning('请选择一条记录')
} else {
let ids = "";
for (let a = 0; a < this.selectedRowKeys.length; a++) {
ids += this.selectedRowKeys[a] + ","
}
let that = this
this.$confirm({
title: "确认强制结单",
content: "是否强制结单选中数据?",
onOk: function () {
that.loading = true
postAction(that.url.forceCloseBatch, {ids: ids}).then((res) => {
if(res.code === 200){
that.loadData()
} else {
that.$message.warning(res.data.message)
}
}).finally(() => {
that.loading = false
});
}
});
}
},
handleDelete: function (id) { handleDelete: function (id) {
if(!this.url.delete){ if(!this.url.delete){
this.$message.error("请设置url.delete属性!") this.$message.error("请设置url.delete属性!")

View File

@@ -75,6 +75,7 @@
<div class="table-operator" style="margin-top: 5px"> <div class="table-operator" style="margin-top: 5px">
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button> <a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
@@ -214,6 +215,7 @@
list: "/depotHead/list", list: "/depotHead/list",
delete: "/depotHead/delete", delete: "/depotHead/delete",
deleteBatch: "/depotHead/deleteBatch", deleteBatch: "/depotHead/deleteBatch",
forceCloseBatch: "/depotHead/forceCloseBatch",
batchSetStatusUrl: "/depotHead/batchSetStatus" batchSetStatusUrl: "/depotHead/batchSetStatus"
} }
} }

View File

@@ -107,6 +107,7 @@
<div class="table-operator" style="margin-top: 5px"> <div class="table-operator" style="margin-top: 5px">
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button> <a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
@@ -218,6 +219,8 @@
remark: "" remark: ""
}, },
prefixNo: 'CGTH', prefixNo: 'CGTH',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: { labelCol: {
span: 5 span: 5
}, },
@@ -279,6 +282,7 @@
list: "/depotHead/list", list: "/depotHead/list",
delete: "/depotHead/delete", delete: "/depotHead/delete",
deleteBatch: "/depotHead/deleteBatch", deleteBatch: "/depotHead/deleteBatch",
forceCloseBatch: "/depotHead/forceCloseBatch",
batchSetStatusUrl: "/depotHead/batchSetStatus" batchSetStatusUrl: "/depotHead/batchSetStatus"
} }
} }

View File

@@ -115,6 +115,7 @@
<div class="table-operator" style="margin-top: 5px"> <div class="table-operator" style="margin-top: 5px">
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button> <a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
@@ -238,6 +239,8 @@
remark: "" remark: ""
}, },
prefixNo: 'CGRK', prefixNo: 'CGRK',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: { labelCol: {
span: 5 span: 5
}, },
@@ -303,6 +306,7 @@
list: "/depotHead/list", list: "/depotHead/list",
delete: "/depotHead/delete", delete: "/depotHead/delete",
deleteBatch: "/depotHead/deleteBatch", deleteBatch: "/depotHead/deleteBatch",
forceCloseBatch: "/depotHead/forceCloseBatch",
batchSetStatusUrl: "/depotHead/batchSetStatus" batchSetStatusUrl: "/depotHead/batchSetStatus"
} }
} }

View File

@@ -94,6 +94,7 @@
<div class="table-operator" style="margin-top: 5px"> <div class="table-operator" style="margin-top: 5px">
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button> <a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
@@ -271,6 +272,7 @@
list: "/depotHead/list", list: "/depotHead/list",
delete: "/depotHead/delete", delete: "/depotHead/delete",
deleteBatch: "/depotHead/deleteBatch", deleteBatch: "/depotHead/deleteBatch",
forceCloseBatch: "/depotHead/forceCloseBatch",
batchSetStatusUrl: "/depotHead/batchSetStatus" batchSetStatusUrl: "/depotHead/batchSetStatus"
} }
} }

View File

@@ -108,6 +108,7 @@
<div class="table-operator" style="margin-top: 5px"> <div class="table-operator" style="margin-top: 5px">
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button> <a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
@@ -218,6 +219,8 @@
remark: "" remark: ""
}, },
prefixNo: 'XSTH', prefixNo: 'XSTH',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: { labelCol: {
span: 5 span: 5
}, },
@@ -280,6 +283,7 @@
list: "/depotHead/list", list: "/depotHead/list",
delete: "/depotHead/delete", delete: "/depotHead/delete",
deleteBatch: "/depotHead/deleteBatch", deleteBatch: "/depotHead/deleteBatch",
forceCloseBatch: "/depotHead/forceCloseBatch",
batchSetStatusUrl: "/depotHead/batchSetStatus" batchSetStatusUrl: "/depotHead/batchSetStatus"
} }
} }

View File

@@ -85,6 +85,7 @@
<div class="table-operator" style="margin-top: 5px"> <div class="table-operator" style="margin-top: 5px">
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button> <a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
@@ -256,6 +257,7 @@
list: "/depotHead/list", list: "/depotHead/list",
delete: "/depotHead/delete", delete: "/depotHead/delete",
deleteBatch: "/depotHead/deleteBatch", deleteBatch: "/depotHead/deleteBatch",
forceCloseBatch: "/depotHead/forceCloseBatch",
batchSetStatusUrl: "/depotHead/batchSetStatus" batchSetStatusUrl: "/depotHead/batchSetStatus"
} }
} }

View File

@@ -116,6 +116,7 @@
<div class="table-operator" style="margin-top: 5px"> <div class="table-operator" style="margin-top: 5px">
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button> <a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button> <a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button> <a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
@@ -238,6 +239,8 @@
remark: "" remark: ""
}, },
prefixNo: 'XSCK', prefixNo: 'XSCK',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: { labelCol: {
span: 5 span: 5
}, },
@@ -304,6 +307,7 @@
list: "/depotHead/list", list: "/depotHead/list",
delete: "/depotHead/delete", delete: "/depotHead/delete",
deleteBatch: "/depotHead/deleteBatch", deleteBatch: "/depotHead/deleteBatch",
forceCloseBatch: "/depotHead/forceCloseBatch",
batchSetStatusUrl: "/depotHead/batchSetStatus" batchSetStatusUrl: "/depotHead/batchSetStatus"
} }
} }