Commit aad77f44 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫
parents 1b78c324 12a5fea1
......@@ -184,9 +184,11 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
if (item.products.find((d) => d.productId === record.productId)) {
let parentArr = [...selectedRowKeys];
let parentRowArr = [...selectedRows];
if (item.products.length === selectedRow.length) {
parentArr.push(item.billId);
parentRowArr.push(item)
if (selectedRow.length > 0) {
if (!parentArr.includes(item.billId)) {
parentArr.push(item.billId);
parentRowArr.push(item)
}
} else {
if (parentArr.length && parentArr.find((d) => d === item.billId)) {
parentArr.splice(
......
......@@ -188,9 +188,11 @@ const ReadyReconciliation: React.FC = () => {
if (item.products.find((d) => d.productId === record.productId)) {
let parentArr = [...selectedRowKeys];
let parentRowArr = [...selectedRows];
if (item.products.length === selectedRow.length) {
parentArr.push(item.billId);
parentRowArr.push(item)
if (selectedRow.length > 0) {
if (!parentArr.includes(item.billId)) {
parentArr.push(item.billId);
parentRowArr.push(item)
}
} else {
if (parentArr.length && parentArr.find((d) => d === item.billId)) {
parentArr.splice(
......
......@@ -831,6 +831,13 @@ const Add = () => {
<Link>{dataSource['reconciliationNo']}</Link>
</Form.Item>
</Row>
<Row>
<Form.Item
label='发票号码'
>
{dataSource?.invoiceMessages ? <>{dataSource?.invoiceMessages?.numbers.map((item) => <div>{item.invoiceNumber}({item.invoiceDate})</div>)}</> : '-'}
</Form.Item>
</Row>
</>}
</Col>
</Row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment