From 8ad7614fd797123b0d19d9323c3f9a4552702c29 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期三, 16 七月 2025 10:37:38 +0800 Subject: [PATCH] 代码优化 --- rsf-admin/src/page/orders/asnOrder/OrderPrintPreview.jsx | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rsf-admin/src/page/orders/asnOrder/OrderPrintPreview.jsx b/rsf-admin/src/page/orders/asnOrder/OrderPrintPreview.jsx index 01d7eb7..6f527d1 100644 --- a/rsf-admin/src/page/orders/asnOrder/OrderPrintPreview.jsx +++ b/rsf-admin/src/page/orders/asnOrder/OrderPrintPreview.jsx @@ -171,7 +171,7 @@ resource="asnOrderItem" title={"menu.asnOrderItem"} empty={false} - filter={{ asnId: record?.id }} + filter={{ orderId: record?.id }} sort={{ field: "create_time", order: "desc" }} actions={( <></> @@ -199,8 +199,8 @@ const { data: { code, data, msg }, } = await request.get("/fields/enable/list"); if (code == 200) { const arr = [ - <NumberField source="asnId" label="table.field.asnOrderItem.asnId" />, - <TextField source="asnCode" label="table.field.asnOrderItem.asnCode" />, + <NumberField source="orderId" label="table.field.asnOrderItem.orderId" />, + <TextField source="orderCode" label="table.field.asnOrderItem.orderCode" />, <TextField source="poDetlId" label="table.field.asnOrderItem.poDetlId" />, <TextField source="poDetlCode" label="table.field.asnOrderItem.poDetlCode" />, <TextField source="platItemId" label="table.field.asnOrderItem.platItemId" />, @@ -246,7 +246,7 @@ preferenceKey='asnOrderItem' bulkActionButtons={false} rowClick={(id, resource, record) => false} - omit={['id', 'asnId', 'poDetlId', 'platItemId', 'poDetlCode', 'matnrId', 'purQty', 'splrName', 'purUnit', 'qrcode', 'packName', 'trackCode']} + omit={['id', 'orderId', 'poDetlId', 'platItemId', 'poDetlCode', 'matnrId', 'purQty', 'splrName', 'purUnit', 'qrcode', 'packName', 'trackCode']} > {columns.map((column) => column)} </StyledDatagrid>} -- Gitblit v1.9.1