diff --git a/src/pages/redReversal/components/InvoiceDetial.tsx b/src/pages/redReversal/components/InvoiceDetial.tsx index 34a30e8..6b91958 100644 --- a/src/pages/redReversal/components/InvoiceDetial.tsx +++ b/src/pages/redReversal/components/InvoiceDetial.tsx @@ -138,14 +138,38 @@ const InvoiceDetail = ({ showDetail, setShowDetail, parentRow, setParentRow, par align: 'center', width: 120, dataIndex: "ITEM_RULE", - ellipsis: true + ellipsis: true, + render: (_, record) => { + return isEdit ? { + let value: string = e.target.value || "" + let tableData: any = JSON.parse(JSON.stringify(tableEditData)) + tableData.forEach((item: any) => { + if (item.BILLDETAIL_ID === record.BILLDETAIL_ID) { + item.ITEM_RULE = value + } + }) + setTableEditData(tableData) + }} /> : record.ITEM_RULE + } }, { title:
计量单位
, align: 'center', width: 100, dataIndex: "ITEM_UNIT", - ellipsis: true + ellipsis: true, + render: (_, record) => { + return isEdit ? { + let value: string = e.target.value || "" + let tableData: any = JSON.parse(JSON.stringify(tableEditData)) + tableData.forEach((item: any) => { + if (item.BILLDETAIL_ID === record.BILLDETAIL_ID) { + item.ITEM_UNIT = value + } + }) + setTableEditData(tableData) + }} /> : record.ITEM_UNIT + } }, { title:
数量
,