|
|
@ -273,50 +273,17 @@ const searchTableRef = ref() |
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainListCloseBtn({ |
|
|
|
hide: isShowMainButton(row, ['1', '2', '3', '4', '6']), |
|
|
|
hasPermi: 'wms:count-request-main:close' |
|
|
|
}), // 关闭 |
|
|
|
defaultButtons.mainListReAddBtn({ |
|
|
|
hide: isShowMainButton(row, ['5']), |
|
|
|
hasPermi: 'wms:count-request-main:reAdd' |
|
|
|
}), //重新添加 |
|
|
|
defaultButtons.mainListSubmitBtn({ |
|
|
|
hide: isShowMainButton(row, ['1']), |
|
|
|
hasPermi: 'wms:count-request-main:submit' |
|
|
|
}), // 提交审批 |
|
|
|
defaultButtons.mainListTurnDownBtn({ |
|
|
|
hide: isShowMainButton(row, ['2']), |
|
|
|
hasPermi: 'wms:count-request-main:refused' |
|
|
|
}), // 驳回 |
|
|
|
defaultButtons.mainListApproveBtn({ |
|
|
|
hide: isShowMainButton(row, ['2']), |
|
|
|
hasPermi: 'wms:count-request-main:agree' |
|
|
|
}), // 审批通过 |
|
|
|
defaultButtons.mainListHandleBtn({ |
|
|
|
hide: isShowMainButton(row, ['3']), |
|
|
|
hasPermi: 'wms:count-request-main:handle' |
|
|
|
}), // 处理 |
|
|
|
defaultButtons.mainListEditBtn({ |
|
|
|
hide: isShowMainButton(row, ['1']), |
|
|
|
hasPermi: 'wms:count-request-main:update' |
|
|
|
}), // 编辑 |
|
|
|
defaultButtons.mainReCountBtn({ |
|
|
|
hide: isShowReCountMainButton(row, ['1']), |
|
|
|
hasPermi: 'wms:count-request-main:reCount' |
|
|
|
}), // 重盘 |
|
|
|
defaultButtons.mainSuperviseCountBtn({ |
|
|
|
hide: isShowReCountMainButton(row, ['1']), |
|
|
|
hasPermi: 'wms:count-request-main:supervise' |
|
|
|
}), // 监盘 |
|
|
|
defaultButtons.mainCountAdjustRequesttBtn({ |
|
|
|
hide: isShowGenerateMainButton(row, ['2']), |
|
|
|
hasPermi: 'wms:count-request-main:generate' |
|
|
|
}), // 生成盘点调整 |
|
|
|
defaultButtons.mainThawRequesttBtn({ |
|
|
|
hide: isShowGenerateMainButton(row, ['3']), |
|
|
|
hasPermi: 'wms:count-request-main:thaw' |
|
|
|
}) // 解冻 |
|
|
|
defaultButtons.mainListCloseBtn({hide: isShowMainButton(row, ['1', '2', '3', '4', '6']),hasPermi: 'wms:count-request-main:close'}), // 关闭 |
|
|
|
defaultButtons.mainListReAddBtn({hide: isShowMainButton(row, ['5']),hasPermi: 'wms:count-request-main:reAdd'}), //重新添加 |
|
|
|
defaultButtons.mainListSubmitBtn({hide: isShowMainButton(row, ['1']),hasPermi: 'wms:count-request-main:submit'}), // 提交审批 |
|
|
|
defaultButtons.mainListTurnDownBtn({hide: isShowMainButton(row, ['2']),hasPermi: 'wms:count-request-main:refused'}), // 驳回 |
|
|
|
defaultButtons.mainListApproveBtn({hide: isShowMainButton(row, ['2']),hasPermi: 'wms:count-request-main:agree'}), // 审批通过 |
|
|
|
defaultButtons.mainListHandleBtn({hide: isShowMainButton(row, ['3']),hasPermi: 'wms:count-request-main:handle'}), // 处理 |
|
|
|
// defaultButtons.mainListEditBtn({hide: isShowMainButton(row, ['1']),hasPermi: 'wms:count-request-main:update'}), // 编辑 |
|
|
|
defaultButtons.mainReCountBtn({hide: isShowReCountMainButton(row, ['1']),hasPermi: 'wms:count-request-main:reCount'}), // 重盘 |
|
|
|
defaultButtons.mainSuperviseCountBtn({hide: isShowReCountMainButton(row, ['1']),hasPermi: 'wms:count-request-main:supervise'}), // 监盘 |
|
|
|
defaultButtons.mainCountAdjustRequesttBtn({hide: isShowGenerateMainButton(row, ['2']),hasPermi: 'wms:count-request-main:generate'}), // 生成盘点调整 |
|
|
|
defaultButtons.mainThawRequesttBtn({hide: isShowGenerateMainButton(row, ['3']),hasPermi: 'wms:count-request-main:thaw'}) // 解冻 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|