release/2.19.1.2503.01-业务线个税

This commit is contained in:
lys 2025-12-03 14:14:36 +08:00
parent 5f95bab79d
commit ec76b9cdca
1 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,7 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
width: 185, width: 185,
fixed: "right", fixed: "right",
render: (__: string, record: any) => { render: (__: string, record: any) => {
const { billStatus, customOptAuth } = record; const { billStatus, customOptAuth, qzOpts = [] } = record;
const items: MenuProps["items"] = [ const items: MenuProps["items"] = [
{ {
key: "DeleteList", key: "DeleteList",
@ -134,6 +134,7 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
<Dropdown <Dropdown
menu={{ menu={{
items: [ items: [
..._.map(qzOpts, (o) => ({ ...o, onClick: () => postMessageToParent(o.key, record) })),
{ {
key: "Log", key: "Log",
label: i18n?.["操作日志"], label: i18n?.["操作日志"],
@ -517,4 +518,4 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
const postMessageToParent = (type: string, params: any) => { const postMessageToParent = (type: string, params: any) => {
window.parent.postMessage({ type: "turn", payload: { id: type, params } }, "*"); window.parent.postMessage({ type: "turn", payload: { id: type, params } }, "*");
}; };