|
|
|
@ -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: [
|
|
|
|
|