diff --git a/src/views/erp/product/product/ProductForm.vue b/src/views/erp/product/product/ProductForm.vue index 77918894..d8c4fd79 100644 --- a/src/views/erp/product/product/ProductForm.vue +++ b/src/views/erp/product/product/ProductForm.vue @@ -183,7 +183,7 @@ ref="deviceSelectDialogRef" title="选择设备" :columns="deviceColumns" - :fetch-api="DeviceLedgerApi.getDeviceLedgerPage" + :fetch-api="fetchDeviceLedgerPage" row-key="id" @confirm="handleDeviceSelectConfirm" /> @@ -348,6 +348,12 @@ const moldColumns = [ { label: '模具型号', prop: 'brandName', minWidth: 140 }, { label: '状态', prop: 'status', minWidth: 100 } ] +const fetchDeviceLedgerPage = (params: Record) => { + return DeviceLedgerApi.getDeviceLedgerPage({ + ...params, + isScheduled: 1 + }) +} const openDeviceSelectDialog = () => { const rows = selectedDeviceRows.value.length ? selectedDeviceRows.value.map((item) => ({ ...item, id: Number(item.id) }))