Browse Source

[SBBJ-932] 关闭、审批按钮 显隐

master
zengqinyuan 4 weeks ago
parent
commit
50d116e28a
  1. 14
      src/views/eam/item/applicationRecord/index.vue

14
src/views/eam/item/applicationRecord/index.vue

@ -172,18 +172,18 @@
// //
const isShowCloseButton = (row) => { const isShowCloseButton = (row) => {
if (row.status == 1) { if (row.status == 4) {
return false
} else {
return true return true
} else {
return false
} }
} }
const isShowApproveButton = (row) => { const isShowApproveButton = (row) => {
if (row.isApprove == 'FALSE') { if (row.status == 4 || row.isApprove == 'TRUE') {
return false
} else {
return true return true
} else {
return false
} }
} }
@ -191,7 +191,7 @@
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.approveBtn({ hide: isShowApproveButton(row) ,hasPermi:'item:itemApplyMain:approve'}), // 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.mainListEditBtn(null), //
// defaultButtons.mainListDeleteBtn(null), // // defaultButtons.mainListDeleteBtn(null), //
] ]

Loading…
Cancel
Save