|
|
|
|
@ -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<string, any>) => {
|
|
|
|
|
return DeviceLedgerApi.getDeviceLedgerPage({
|
|
|
|
|
...params,
|
|
|
|
|
isScheduled: 1
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const openDeviceSelectDialog = () => {
|
|
|
|
|
const rows = selectedDeviceRows.value.length
|
|
|
|
|
? selectedDeviceRows.value.map((item) => ({ ...item, id: Number(item.id) }))
|
|
|
|
|
|