给所有单据都增加审核功能

This commit is contained in:
季圣华
2021-09-05 20:25:55 +08:00
parent 56cc93b59a
commit 5ffed191f3
23 changed files with 239 additions and 60 deletions

View File

@@ -31,8 +31,19 @@ export const FinancialListMixin = {
this.handleAdd();
},
myHandleEdit(record) {
this.$refs.modalForm.action = "edit";
this.handleEdit(record);
if(record.status === '0') {
this.$refs.modalForm.action = "edit";
this.handleEdit(record);
} else {
this.$message.warning("抱歉,只有未审核的单据才能编辑!")
}
},
myHandleDelete(record) {
if(record.status === '0') {
this.handleDelete(record.id)
} else {
this.$message.warning("抱歉,只有未审核的单据才能删除!")
}
},
myHandleDetail(record, type) {
this.handleDetail(record, type);