master
This commit is contained in:
parent
4a01942675
commit
aa1901ccb0
|
|
@ -100,14 +100,7 @@ const UnitTable: FC = (props) => {
|
|||
scroll={{ x: 1200, y: `calc(100vh - ${extraParams?.scrollHeight || 109}px)` }}
|
||||
bordered={_.some(columns, (k) => k.children)}
|
||||
rowSelection={!_.isNil(extraParams?.selectedRowKeys) ? rowSelection : undefined}
|
||||
pagination={
|
||||
!_.isNil(pageInfo)
|
||||
? {
|
||||
...paginationAction(pageInfo, i18n, onChange),
|
||||
size: "default"
|
||||
}
|
||||
: false
|
||||
}
|
||||
pagination={!_.isNil(pageInfo) ? { ...paginationAction(pageInfo, i18n, onChange), size: "default" } : false}
|
||||
summary={() =>
|
||||
!extraParams.showTotalCell ? (
|
||||
<></>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
|
|||
width: 185,
|
||||
fixed: "right",
|
||||
render: (__: string, record: any) => {
|
||||
const { billStatus } = record;
|
||||
const { billStatus, customOptAuth } = record;
|
||||
const items: MenuProps["items"] = [
|
||||
{
|
||||
key: "DeleteList",
|
||||
|
|
@ -111,9 +111,11 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
|
|||
<Button type="link" onClick={() => postMessageToParent("CALC", record)}>
|
||||
{i18n?.["核算"]}
|
||||
</Button>
|
||||
<Button type="link" onClick={() => postMessageToParent("FILE", record)}>
|
||||
{i18n?.["归档"]}
|
||||
</Button>
|
||||
{(_.isEmpty(customOptAuth) || customOptAuth.FILE) && (
|
||||
<Button type="link" onClick={() => postMessageToParent("FILE", record)}>
|
||||
{i18n?.["归档"]}
|
||||
</Button>
|
||||
)}
|
||||
<Dropdown menu={{ items }} placement="bottomRight">
|
||||
<Button type="link" icon={<MoreOutlined />} />
|
||||
</Dropdown>
|
||||
|
|
@ -124,9 +126,11 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
|
|||
<Button type="link" onClick={() => postMessageToParent("VIEW", record)}>
|
||||
{i18n?.["查看"]}
|
||||
</Button>
|
||||
<Button type="link" onClick={() => postMessageToParent("RECALC", record)}>
|
||||
{i18n?.["重新核算"]}
|
||||
</Button>
|
||||
{(_.isEmpty(customOptAuth) || customOptAuth.RECALC) && (
|
||||
<Button type="link" onClick={() => postMessageToParent("RECALC", record)}>
|
||||
{i18n?.["重新核算"]}
|
||||
</Button>
|
||||
)}
|
||||
<Dropdown
|
||||
menu={{
|
||||
items: [
|
||||
|
|
|
|||
Loading…
Reference in New Issue