| | |
| | | import type { MesWmProductSalesDetailApi } from '#/api/mes/wm/productsales/detail'; |
| | | import type { MesWmProductSalesLineApi } from '#/api/mes/wm/productsales/line'; |
| | | |
| | | import { computed, reactive } from 'vue'; |
| | | import { computed, reactive, watch } from 'vue'; |
| | | |
| | | import { useVbenModal } from '@vben/common-ui'; |
| | | |
| | |
| | | formType: FormType; |
| | | noticeId?: number; |
| | | salesId: number; |
| | | refreshKey?: number; |
| | | }>(); |
| | | |
| | | const isEditable = computed(() => |
| | |
| | | gridApi.query(); |
| | | } |
| | | |
| | | watch( |
| | | () => props.refreshKey, |
| | | (refreshKey, previousRefreshKey) => { |
| | | if (refreshKey !== undefined && refreshKey !== previousRefreshKey) { |
| | | handleRefresh(); |
| | | } |
| | | }, |
| | | ); |
| | | |
| | | /** 添加物料 */ |
| | | function handleCreate() { |
| | | lineFormModalApi |