Commit 4c14a329 by zhangquan

无选中仍能提交bug

1 parent d34e5d18
...@@ -746,6 +746,7 @@ export default { ...@@ -746,6 +746,7 @@ export default {
}, },
batchAudit() { batchAudit() {
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || [] const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
if(!data?.length) return this.$message.error('请选择需要审批的记录')
const _target = data.find(item => item.status!=12&item.status!=26) //批量操作只操作 待审核 和 待运营经理审核 const _target = data.find(item => item.status!=12&item.status!=26) //批量操作只操作 待审核 和 待运营经理审核
if(_target) return this.$message.error('请选择待审核的记录') if(_target) return this.$message.error('请选择待审核的记录')
const parmas = { const parmas = {
......
...@@ -430,6 +430,7 @@ export default { ...@@ -430,6 +430,7 @@ export default {
}, },
batchAudit() { batchAudit() {
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || [] const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
if(!data?.length) return this.$message.error('请选择需要审批的记录')
const _target = data.find(item => item.status!=21&item.status!=23) //批量操作只操作 待审核 和 待运营经理审核 const _target = data.find(item => item.status!=21&item.status!=23) //批量操作只操作 待审核 和 待运营经理审核
if(_target) return this.$message.error('请选择待审核的记录') if(_target) return this.$message.error('请选择待审核的记录')
const parmas = { const parmas = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!