从页面优化单据的编辑和删除提示

This commit is contained in:
季圣华
2023-11-18 16:44:16 +08:00
parent 746dccd4b9
commit f0fa08c670
2 changed files with 4 additions and 4 deletions

View File

@@ -80,14 +80,14 @@ export const BillListMixin = {
} }
}) })
} else { } else {
this.$message.warning("抱歉,只有未审核的单据才能编辑!") this.$message.warning("抱歉,只有未审核的单据才能编辑,请先进行反审核")
} }
}, },
myHandleDelete(record) { myHandleDelete(record) {
if(record.status === '0') { if(record.status === '0') {
this.handleDelete(record.id) this.handleDelete(record.id)
} else { } else {
this.$message.warning("抱歉,只有未审核的单据才能删除!") this.$message.warning("抱歉,只有未审核的单据才能删除,请先进行反审核")
} }
}, },
myHandleDetail(record, type, prefixNo) { myHandleDetail(record, type, prefixNo) {

View File

@@ -60,14 +60,14 @@ export const FinancialListMixin = {
} }
}) })
} else { } else {
this.$message.warning("抱歉,只有未审核的单据才能编辑!") this.$message.warning("抱歉,只有未审核的单据才能编辑,请先进行反审核")
} }
}, },
myHandleDelete(record) { myHandleDelete(record) {
if(record.status === '0') { if(record.status === '0') {
this.handleDelete(record.id) this.handleDelete(record.id)
} else { } else {
this.$message.warning("抱歉,只有未审核的单据才能删除!") this.$message.warning("抱歉,只有未审核的单据才能删除,请先进行反审核")
} }
}, },
myHandleDetail(record, type, prefixNo) { myHandleDetail(record, type, prefixNo) {