客户 供应商审批按钮

This commit is contained in:
‘huanghaiixia’
2026-01-05 17:17:47 +08:00
parent 32b58d7c79
commit 93c0f9fc74
16 changed files with 595 additions and 174 deletions

View File

@ -563,7 +563,7 @@
}
function setBtnStatus() {
const btnConfigs = approvalData.buttonConfigs;
let btnConfigs = approvalData.buttonConfigs;
let draftBtn = btnConfigs.find((item) => item.buttonCode === ApproveCode.DRAFT);
if (draftBtn && rDraftsId.value) {
btnConfigs.push({
@ -575,13 +575,13 @@
});
}
// 如果审批已完成,且没有保存按钮
if (rQuery.status=='COMPLETED' && btnConfigs.findIndex(v=>v.buttonCode =='draft') < 0) {
btnConfigs.unshift({
if (rQuery.status=='COMPLETED') {
btnConfigs =[{
buttonName: t('保存'),
buttonCode: 'draft',
approveType: ApproveType.DRAFT,
buttonType: 0
});
}];
}
btnConfigs.forEach((btn) => {
const index = btn.index;