|
|
@ -172,18 +172,18 @@ |
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowCloseButton = (row) => { |
|
|
|
if (row.status == 1) { |
|
|
|
return false |
|
|
|
} else { |
|
|
|
if (row.status == 4) { |
|
|
|
return true |
|
|
|
} else { |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const isShowApproveButton = (row) => { |
|
|
|
if (row.isApprove == 'FALSE') { |
|
|
|
return false |
|
|
|
} else { |
|
|
|
if (row.status == 4 || row.isApprove == 'TRUE') { |
|
|
|
return true |
|
|
|
} else { |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -191,7 +191,7 @@ |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.approveBtn({ hide: isShowApproveButton(row) ,hasPermi:'item:itemApplyMain:approve'}), // 审批 |
|
|
|
defaultButtons.mainListOrderCloBtn({ hasPermi:'item:itemApplyMain:close'}), // 关闭 |
|
|
|
defaultButtons.mainListOrderCloBtn({ hide: isShowCloseButton(row), hasPermi:'item:itemApplyMain:close'}), // 关闭 |
|
|
|
// defaultButtons.mainListEditBtn(null), // 编辑 |
|
|
|
// defaultButtons.mainListDeleteBtn(null), // 删除 |
|
|
|
] |
|
|
|