4月24
This commit is contained in:
parent
94fcdd879e
commit
a4a156101d
BIN
dist.tar.gz
BIN
dist.tar.gz
Binary file not shown.
@ -49,7 +49,7 @@
|
||||
</el-table-column>
|
||||
|
||||
<!-- 动态列 -->
|
||||
<template v-for="column in columns" :key="column.prop">
|
||||
<template v-for="column in displayColumns" :key="column.prop">
|
||||
<el-table-column
|
||||
v-if="column.prop"
|
||||
:prop="column.prop"
|
||||
@ -130,12 +130,73 @@
|
||||
@current-change="handlePageChange"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<el-dialog
|
||||
v-model="columnConfigDialogVisible"
|
||||
title="字段设置"
|
||||
width="560px"
|
||||
align-center
|
||||
append-to-body
|
||||
>
|
||||
<div class="column-config-toolbar">
|
||||
<el-button size="small" @click="resetColumnConfig">恢复默认</el-button>
|
||||
<el-button size="small" @click="exportGlobalColumnConfig">导出全局配置</el-button>
|
||||
<el-upload
|
||||
accept=".json"
|
||||
:show-file-list="false"
|
||||
:auto-upload="false"
|
||||
:on-change="handleImportColumnConfig"
|
||||
>
|
||||
<el-button size="small">导入全局配置</el-button>
|
||||
</el-upload>
|
||||
<el-button size="small" type="danger" plain @click="handleRepairColumnConfig">故障修复</el-button>
|
||||
</div>
|
||||
<div class="column-config-list">
|
||||
<div
|
||||
v-for="(item, idx) in editableColumnConfigs"
|
||||
:key="item.prop"
|
||||
class="column-config-item"
|
||||
>
|
||||
<div class="column-config-main">
|
||||
<el-checkbox
|
||||
:model-value="item.visible"
|
||||
:disabled="item.lockVisible"
|
||||
@change="(val: any) => onToggleColumnVisible(item.prop, !!val)"
|
||||
>
|
||||
{{ item.label || item.prop }}
|
||||
</el-checkbox>
|
||||
</div>
|
||||
<div class="column-config-actions">
|
||||
<el-button
|
||||
text
|
||||
:disabled="idx === 0 || item.lockOrder"
|
||||
@click="moveColumn(item.prop, 'up')"
|
||||
>
|
||||
上移
|
||||
</el-button>
|
||||
<el-button
|
||||
text
|
||||
:disabled="idx === editableColumnConfigs.length - 1 || item.lockOrder"
|
||||
@click="moveColumn(item.prop, 'down')"
|
||||
>
|
||||
下移
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button @click="columnConfigDialogVisible = false">关闭</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue'
|
||||
import { ref, computed, watch, onMounted } from 'vue'
|
||||
import { Box } from '@element-plus/icons-vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import type { UploadFile } from 'element-plus'
|
||||
import { useUserStore } from '@/stores/modules/user'
|
||||
|
||||
defineOptions({
|
||||
name: 'UpperTable'
|
||||
@ -270,6 +331,18 @@ const props = defineProps({
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
enableColumnConfig: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
tableId: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
columnConfigSchemaVersion: {
|
||||
type: Number,
|
||||
default: 1,
|
||||
}
|
||||
})
|
||||
|
||||
const emit = defineEmits([
|
||||
@ -287,7 +360,37 @@ const emit = defineEmits([
|
||||
|
||||
// Refs
|
||||
const tableRef = ref<any>(null)
|
||||
const scrollContainer = ref<HTMLElement | null>(null)
|
||||
const userStore = useUserStore()
|
||||
|
||||
type ColumnItem = {
|
||||
prop?: string
|
||||
label?: string
|
||||
width?: number | string
|
||||
fixed?: 'left' | 'right' | boolean
|
||||
lockVisible?: boolean
|
||||
lockOrder?: boolean
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
type ColumnConfigItem = {
|
||||
prop: string
|
||||
label?: string
|
||||
visible: boolean
|
||||
order: number
|
||||
width?: number | string
|
||||
fixed?: 'left' | 'right' | false
|
||||
lockVisible?: boolean
|
||||
lockOrder?: boolean
|
||||
}
|
||||
|
||||
type TableColumnProfile = {
|
||||
schemaVersion: number
|
||||
tableId: string
|
||||
userId: string
|
||||
roleId: string | number
|
||||
updatedAt: number
|
||||
columns: ColumnConfigItem[]
|
||||
}
|
||||
|
||||
// State
|
||||
// const visibleData = ref<any[]>([]) // Removed
|
||||
@ -301,6 +404,55 @@ const selectedRowKeys = ref<Set<any>>(new Set())
|
||||
// const lastScrollTop = ref(0) // Removed
|
||||
// let scrollTimer: any = null // Removed
|
||||
const checkboxUpdateKey = ref<number | null>(null)
|
||||
const columnConfigDialogVisible = ref(false)
|
||||
const editableColumnConfigs = ref<ColumnConfigItem[]>([])
|
||||
const columnConfigMap = ref<Record<string, ColumnConfigItem>>({})
|
||||
|
||||
const normalizedColumns = computed<ColumnItem[]>(() => {
|
||||
return (props.columns || []).filter((column: ColumnItem) => !!column?.prop)
|
||||
})
|
||||
|
||||
const effectiveTableId = computed(() => props.tableId?.trim())
|
||||
|
||||
const columnConfigStorageKey = computed(() => {
|
||||
if (!props.enableColumnConfig || !effectiveTableId.value) return ''
|
||||
const userId = userStore.user?.username || userStore.user?.id || 'unknown'
|
||||
const roleId = userStore.roleId || 'default'
|
||||
return `upper_table_columns_${userId}_${roleId}_${effectiveTableId.value}`
|
||||
})
|
||||
|
||||
const globalColumnConfigStoragePrefix = computed(() => {
|
||||
const userId = userStore.user?.username || userStore.user?.id || 'unknown'
|
||||
const roleId = userStore.roleId || 'default'
|
||||
return `upper_table_columns_${userId}_${roleId}_`
|
||||
})
|
||||
|
||||
const displayColumns = computed(() => {
|
||||
if (!props.enableColumnConfig || !effectiveTableId.value) {
|
||||
return normalizedColumns.value
|
||||
}
|
||||
const configMap = columnConfigMap.value
|
||||
return normalizedColumns.value
|
||||
.filter((column) => {
|
||||
const prop = String(column.prop || '')
|
||||
const cfg = configMap[prop]
|
||||
return cfg ? cfg.visible !== false : true
|
||||
})
|
||||
.sort((a, b) => {
|
||||
const aOrder = configMap[String(a.prop || '')]?.order ?? Number.MAX_SAFE_INTEGER
|
||||
const bOrder = configMap[String(b.prop || '')]?.order ?? Number.MAX_SAFE_INTEGER
|
||||
return aOrder - bOrder
|
||||
})
|
||||
.map((column) => {
|
||||
const cfg = configMap[String(column.prop || '')]
|
||||
if (!cfg) return column
|
||||
return {
|
||||
...column,
|
||||
width: cfg.width ?? column.width,
|
||||
fixed: cfg.fixed === false ? undefined : (cfg.fixed ?? column.fixed)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
// Computed
|
||||
const total = computed(() => {
|
||||
@ -340,6 +492,14 @@ watch(() => props.data, () => {
|
||||
clearSelection()
|
||||
}, { deep: true })
|
||||
|
||||
watch(
|
||||
[() => props.columns, () => props.enableColumnConfig, () => props.tableId, () => userStore.roleId, () => userStore.user],
|
||||
() => {
|
||||
rebuildColumnConfig()
|
||||
},
|
||||
{ immediate: true, deep: true }
|
||||
)
|
||||
|
||||
watch(() => props.defaultSelected, (newVal) => {
|
||||
if (props.autoSyncSelection) {
|
||||
setSelectionFromExternal(newVal)
|
||||
@ -357,10 +517,273 @@ onMounted(() => {
|
||||
}
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
})
|
||||
|
||||
// Methods
|
||||
function getDefaultColumnConfigs() {
|
||||
return normalizedColumns.value.map((column, index) => ({
|
||||
prop: String(column.prop),
|
||||
label: column.label,
|
||||
visible: true,
|
||||
order: index,
|
||||
width: column.width,
|
||||
fixed: column.fixed === true ? 'left' : (column.fixed as 'left' | 'right' | undefined),
|
||||
lockVisible: !!column.lockVisible,
|
||||
lockOrder: !!column.lockOrder
|
||||
}))
|
||||
}
|
||||
|
||||
function applyColumnConfigMap(configs: ColumnConfigItem[]) {
|
||||
const map: Record<string, ColumnConfigItem> = {}
|
||||
configs.forEach((item) => {
|
||||
map[item.prop] = item
|
||||
})
|
||||
columnConfigMap.value = map
|
||||
editableColumnConfigs.value = [...configs].sort((a, b) => a.order - b.order)
|
||||
}
|
||||
|
||||
function saveColumnConfig(configs: ColumnConfigItem[]) {
|
||||
if (!columnConfigStorageKey.value) return
|
||||
const userId = String(userStore.user?.username || userStore.user?.id || 'unknown')
|
||||
const roleId = userStore.roleId || 'default'
|
||||
const payload: TableColumnProfile = {
|
||||
schemaVersion: props.columnConfigSchemaVersion,
|
||||
tableId: effectiveTableId.value,
|
||||
userId,
|
||||
roleId,
|
||||
updatedAt: Date.now(),
|
||||
columns: configs
|
||||
}
|
||||
localStorage.setItem(columnConfigStorageKey.value, JSON.stringify(payload))
|
||||
}
|
||||
|
||||
function buildMergedColumnConfigs(raw?: Partial<ColumnConfigItem>[]) {
|
||||
const defaults = getDefaultColumnConfigs()
|
||||
const defaultMap = new Map(defaults.map((item) => [item.prop, item]))
|
||||
const merged: ColumnConfigItem[] = []
|
||||
const used = new Set<string>()
|
||||
|
||||
;(raw || []).forEach((item, index) => {
|
||||
if (!item?.prop) return
|
||||
const prop = String(item.prop)
|
||||
const base = defaultMap.get(prop)
|
||||
if (!base) return
|
||||
used.add(prop)
|
||||
merged.push({
|
||||
...base,
|
||||
visible: item.visible ?? base.visible,
|
||||
order: Number.isFinite(item.order as number) ? Number(item.order) : index,
|
||||
width: item.width ?? base.width,
|
||||
fixed: item.fixed ?? base.fixed
|
||||
})
|
||||
})
|
||||
|
||||
defaults.forEach((item) => {
|
||||
if (!used.has(item.prop)) {
|
||||
merged.push({ ...item, order: merged.length })
|
||||
}
|
||||
})
|
||||
|
||||
merged.sort((a, b) => a.order - b.order)
|
||||
return merged.map((item, index) => ({ ...item, order: index }))
|
||||
}
|
||||
|
||||
function readStoredColumnConfigs() {
|
||||
if (!columnConfigStorageKey.value) return null
|
||||
const raw = localStorage.getItem(columnConfigStorageKey.value)
|
||||
if (!raw) return null
|
||||
try {
|
||||
const parsed = JSON.parse(raw) as TableColumnProfile
|
||||
if (!parsed || !Array.isArray(parsed.columns)) return null
|
||||
return parsed.columns
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
function rebuildColumnConfig() {
|
||||
const merged = buildMergedColumnConfigs(readStoredColumnConfigs() || undefined)
|
||||
applyColumnConfigMap(merged)
|
||||
if (props.enableColumnConfig && effectiveTableId.value) {
|
||||
saveColumnConfig(merged)
|
||||
}
|
||||
}
|
||||
|
||||
function persistEditableConfigs() {
|
||||
const normalized = [...editableColumnConfigs.value]
|
||||
.sort((a, b) => a.order - b.order)
|
||||
.map((item, index) => ({ ...item, order: index }))
|
||||
applyColumnConfigMap(normalized)
|
||||
saveColumnConfig(normalized)
|
||||
}
|
||||
|
||||
function openColumnConfig() {
|
||||
editableColumnConfigs.value = Object.values(columnConfigMap.value).sort((a, b) => a.order - b.order)
|
||||
columnConfigDialogVisible.value = true
|
||||
}
|
||||
|
||||
function onToggleColumnVisible(prop: string, visible: boolean) {
|
||||
const next = editableColumnConfigs.value.map((item) => {
|
||||
if (item.prop !== prop) return item
|
||||
if (item.lockVisible) return item
|
||||
return { ...item, visible }
|
||||
})
|
||||
editableColumnConfigs.value = next
|
||||
persistEditableConfigs()
|
||||
}
|
||||
|
||||
function moveColumn(prop: string, direction: 'up' | 'down') {
|
||||
const list = [...editableColumnConfigs.value].sort((a, b) => a.order - b.order)
|
||||
const index = list.findIndex((item) => item.prop === prop)
|
||||
if (index === -1) return
|
||||
const current = list[index]
|
||||
if (current?.lockOrder) return
|
||||
const targetIndex = direction === 'up' ? index - 1 : index + 1
|
||||
if (targetIndex < 0 || targetIndex >= list.length) return
|
||||
const target = list[targetIndex]
|
||||
if (target?.lockOrder) return
|
||||
list[index] = target as ColumnConfigItem
|
||||
list[targetIndex] = current as ColumnConfigItem
|
||||
editableColumnConfigs.value = list.map((item, idx) => ({ ...item, order: idx }))
|
||||
persistEditableConfigs()
|
||||
}
|
||||
|
||||
function resetColumnConfig() {
|
||||
const defaults = getDefaultColumnConfigs()
|
||||
applyColumnConfigMap(defaults)
|
||||
saveColumnConfig(defaults)
|
||||
ElMessage.success('已恢复默认字段配置')
|
||||
}
|
||||
|
||||
function exportGlobalColumnConfig() {
|
||||
const userId = String(userStore.user?.username || userStore.user?.id || 'unknown')
|
||||
const roleId = userStore.roleId || 'default'
|
||||
const tableProfiles: TableColumnProfile[] = []
|
||||
const prefix = globalColumnConfigStoragePrefix.value
|
||||
Object.keys(localStorage).forEach((key) => {
|
||||
if (!key.startsWith(prefix)) return
|
||||
try {
|
||||
const parsed = JSON.parse(localStorage.getItem(key) || '{}') as TableColumnProfile
|
||||
if (parsed && parsed.tableId && Array.isArray(parsed.columns)) {
|
||||
tableProfiles.push(parsed)
|
||||
}
|
||||
} catch {
|
||||
// ignore invalid profile
|
||||
}
|
||||
})
|
||||
const payload = {
|
||||
format: 'upper-table-global-columns',
|
||||
schemaVersion: props.columnConfigSchemaVersion,
|
||||
userId,
|
||||
roleId,
|
||||
updatedAt: Date.now(),
|
||||
tables: tableProfiles
|
||||
}
|
||||
const blob = new Blob([JSON.stringify(payload, null, 2)], { type: 'application/json;charset=utf-8' })
|
||||
const url = URL.createObjectURL(blob)
|
||||
const link = document.createElement('a')
|
||||
link.href = url
|
||||
link.download = `upper-table-global-columns-config.json`
|
||||
link.click()
|
||||
URL.revokeObjectURL(url)
|
||||
}
|
||||
|
||||
function handleImportColumnConfig(file: UploadFile) {
|
||||
if (!file.raw) return
|
||||
const reader = new FileReader()
|
||||
reader.onload = () => {
|
||||
try {
|
||||
const parsed = JSON.parse(String(reader.result || '{}')) as {
|
||||
tables?: TableColumnProfile[]
|
||||
tableId?: string
|
||||
columns?: ColumnConfigItem[]
|
||||
}
|
||||
if (!parsed) {
|
||||
ElMessage.error('配置文件格式不正确')
|
||||
return
|
||||
}
|
||||
|
||||
const importProfiles: TableColumnProfile[] = []
|
||||
if (Array.isArray(parsed.tables)) {
|
||||
importProfiles.push(...parsed.tables)
|
||||
} else if (parsed.tableId && Array.isArray(parsed.columns)) {
|
||||
importProfiles.push({
|
||||
schemaVersion: props.columnConfigSchemaVersion,
|
||||
tableId: parsed.tableId,
|
||||
userId: String(userStore.user?.username || userStore.user?.id || 'unknown'),
|
||||
roleId: userStore.roleId || 'default',
|
||||
updatedAt: Date.now(),
|
||||
columns: parsed.columns
|
||||
})
|
||||
}
|
||||
|
||||
if (importProfiles.length === 0) {
|
||||
ElMessage.error('未找到可导入的全局配置')
|
||||
return
|
||||
}
|
||||
|
||||
const prefix = globalColumnConfigStoragePrefix.value
|
||||
let importedCount = 0
|
||||
importProfiles.forEach((profile) => {
|
||||
if (!profile?.tableId || !Array.isArray(profile.columns)) return
|
||||
const key = `${prefix}${profile.tableId}`
|
||||
const payload: TableColumnProfile = {
|
||||
schemaVersion: profile.schemaVersion ?? props.columnConfigSchemaVersion,
|
||||
tableId: profile.tableId,
|
||||
userId: String(userStore.user?.username || userStore.user?.id || 'unknown'),
|
||||
roleId: userStore.roleId || 'default',
|
||||
updatedAt: Date.now(),
|
||||
columns: profile.columns
|
||||
}
|
||||
localStorage.setItem(key, JSON.stringify(payload))
|
||||
importedCount += 1
|
||||
})
|
||||
|
||||
rebuildColumnConfig()
|
||||
ElMessage.success(`全局配置导入成功,已更新 ${importedCount} 个表`)
|
||||
} catch {
|
||||
ElMessage.error('配置文件解析失败')
|
||||
}
|
||||
}
|
||||
reader.readAsText(file.raw)
|
||||
}
|
||||
|
||||
async function handleRepairColumnConfig() {
|
||||
try {
|
||||
await ElMessageBox.confirm(
|
||||
'故障修复会清除当前电脑中此账号的全部字段配置,并恢复各页面默认字段。是否继续?',
|
||||
'确认故障修复',
|
||||
{
|
||||
type: 'warning',
|
||||
confirmButtonText: '确认清除',
|
||||
cancelButtonText: '取消'
|
||||
}
|
||||
)
|
||||
|
||||
await ElMessageBox.confirm(
|
||||
'请再次确认:该操作不可撤销,确定清除所有字段配置吗?',
|
||||
'二次确认',
|
||||
{
|
||||
type: 'warning',
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '返回'
|
||||
}
|
||||
)
|
||||
|
||||
const prefix = globalColumnConfigStoragePrefix.value
|
||||
const removeKeys: string[] = []
|
||||
Object.keys(localStorage).forEach((key) => {
|
||||
if (key.startsWith(prefix)) {
|
||||
removeKeys.push(key)
|
||||
}
|
||||
})
|
||||
removeKeys.forEach((key) => localStorage.removeItem(key))
|
||||
|
||||
rebuildColumnConfig()
|
||||
ElMessage.success(`故障修复完成,已清除 ${removeKeys.length} 个字段配置`)
|
||||
} catch {
|
||||
// user cancelled
|
||||
}
|
||||
}
|
||||
|
||||
function getRowKey(row: any) {
|
||||
if (typeof props.rowKey === 'function') {
|
||||
return props.rowKey(row)
|
||||
@ -571,6 +994,7 @@ defineExpose({
|
||||
getSelectionKeys,
|
||||
toggleRowSelection,
|
||||
toggleAllSelection,
|
||||
openColumnConfig,
|
||||
clearSelection,
|
||||
getTableRef,
|
||||
setCurrentRow,
|
||||
@ -684,6 +1108,36 @@ defineExpose({
|
||||
pointer-events: none; /* 让父元素处理点击事件 */
|
||||
}
|
||||
|
||||
.column-config-toolbar {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.column-config-list {
|
||||
max-height: 380px;
|
||||
overflow: auto;
|
||||
border: 1px solid #ebeef5;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.column-config-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid #f2f3f5;
|
||||
}
|
||||
|
||||
.column-config-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.column-config-main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* 表格尺寸样式 */
|
||||
.upper-table-container.small :deep(.el-table) {
|
||||
font-size: 12px;
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
>
|
||||
下载导入模板
|
||||
</el-button>
|
||||
<el-button size="small" @click="triggerImportFileSelect">选择Excel文件</el-button>
|
||||
<el-button size="small" :loading="encodeImportFileLoading" @click="triggerImportFileSelect">选择Excel文件</el-button>
|
||||
<span class="import-file-name">{{ importOrderFile?.name || '未选择文件' }}</span>
|
||||
</div>
|
||||
<input
|
||||
@ -54,7 +54,7 @@
|
||||
</el-table>
|
||||
<template #footer>
|
||||
<el-button @click="visible = false">关闭</el-button>
|
||||
<el-button type="primary" :loading="importOrderLoading" @click="submitImportOrdersFromExcel">
|
||||
<el-button type="primary" :loading="importOrderLoading" :disabled="encodeImportFileLoading" @click="submitImportOrdersFromExcel">
|
||||
开始导入
|
||||
</el-button>
|
||||
</template>
|
||||
@ -74,12 +74,15 @@ const emit = defineEmits<{
|
||||
|
||||
const importOrderLoading = ref(false)
|
||||
const downloadTemplateLoading = ref(false)
|
||||
const encodeImportFileLoading = ref(false)
|
||||
const importFileInputRef = ref<HTMLInputElement | null>(null)
|
||||
const importOrderFile = ref<File | null>(null)
|
||||
const importOrderFileBase64 = ref('')
|
||||
const importOrderResult = ref<any>(null)
|
||||
|
||||
function resetImportOrderDialog() {
|
||||
importOrderFile.value = null
|
||||
importOrderFileBase64.value = ''
|
||||
importOrderResult.value = null
|
||||
if (importFileInputRef.value) {
|
||||
importFileInputRef.value.value = ''
|
||||
@ -90,7 +93,7 @@ function triggerImportFileSelect() {
|
||||
importFileInputRef.value?.click()
|
||||
}
|
||||
|
||||
function handleImportFileChange(event: Event) {
|
||||
async function handleImportFileChange(event: Event) {
|
||||
const input = event.target as HTMLInputElement
|
||||
const file = input?.files?.[0]
|
||||
if (!file) return
|
||||
@ -100,17 +103,34 @@ function handleImportFileChange(event: Event) {
|
||||
input.value = ''
|
||||
return
|
||||
}
|
||||
importOrderFileBase64.value = ''
|
||||
importOrderFile.value = file
|
||||
try {
|
||||
encodeImportFileLoading.value = true
|
||||
importOrderFileBase64.value = await fileToUtf8Base64(file)
|
||||
ElMessage.success('文件已就绪,点击“开始导入”执行导入')
|
||||
} catch {
|
||||
importOrderFile.value = null
|
||||
input.value = ''
|
||||
ElMessage.error('文件编码失败,请重新选择文件')
|
||||
} finally {
|
||||
encodeImportFileLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function fileToBase64(file: File): Promise<string> {
|
||||
function fileToUtf8Base64(file: File): Promise<string> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const reader = new FileReader()
|
||||
reader.onload = () => {
|
||||
const result = String(reader.result || '')
|
||||
const raw = String(reader.result || '')
|
||||
const marker = 'base64,'
|
||||
const idx = result.indexOf(marker)
|
||||
resolve(idx >= 0 ? result.slice(idx + marker.length) : result)
|
||||
const idx = raw.indexOf(marker)
|
||||
if (idx < 0) {
|
||||
reject(new Error('base64 解析失败'))
|
||||
return
|
||||
}
|
||||
// DataURL 内的 base64 可安全通过 UTF-8 的 JSON 文本传输
|
||||
resolve(raw.slice(idx + marker.length).trim())
|
||||
}
|
||||
reader.onerror = () => reject(reader.error || new Error('读取文件失败'))
|
||||
reader.readAsDataURL(file)
|
||||
@ -166,9 +186,7 @@ async function handleDownloadCreateTemplate() {
|
||||
)
|
||||
const blob = base64ToBlob(base64, mime)
|
||||
saveBlob(blob, filename)
|
||||
importOrderFile.value = new File([blob], filename, { type: mime || 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' })
|
||||
ElMessage.success('模板下载成功,已自动选择并开始导入')
|
||||
await submitImportOrdersFromExcel(importOrderFile.value)
|
||||
ElMessage.success('模板下载成功')
|
||||
} catch {
|
||||
ElMessage.error('下载模板失败')
|
||||
} finally {
|
||||
@ -177,17 +195,21 @@ async function handleDownloadCreateTemplate() {
|
||||
}
|
||||
|
||||
async function submitImportOrdersFromExcel(targetFile?: File | null) {
|
||||
if (importOrderLoading.value) return
|
||||
if (importOrderLoading.value || encodeImportFileLoading.value) return
|
||||
const file = targetFile || importOrderFile.value
|
||||
if (!file) {
|
||||
ElMessage.warning('请先选择要导入的 .xlsx 文件')
|
||||
return
|
||||
}
|
||||
const fileBase64 = importOrderFileBase64.value
|
||||
if (!fileBase64) {
|
||||
ElMessage.warning('文件还未完成编码,请稍后再试')
|
||||
return
|
||||
}
|
||||
importOrderFile.value = file
|
||||
importOrderLoading.value = true
|
||||
try {
|
||||
const file_base64 = await fileToBase64(file)
|
||||
const res = await orderPendingOrder.importOrdersFromExcel({ file_base64 })
|
||||
const res = await orderPendingOrder.importOrdersFromExcel({ file_base64: fileBase64 })
|
||||
const ok = res && (res.code === 1 || res.code === 200 || res.flag === 'success')
|
||||
if (!ok) {
|
||||
ElMessage.error(res?.message || '导入失败')
|
||||
|
||||
@ -189,18 +189,18 @@
|
||||
<el-button size="small" type="primary" link @click="addCreateOrderItem">新增空白明细</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="createOrderForm.items" border size="small" max-height="216">
|
||||
<el-table :data="visibleCreateOrderItems" border size="small" max-height="216">
|
||||
<el-table-column label="商品编码" min-width="160">
|
||||
<template #default="{ row, $index }">
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-model.trim="row.item_code"
|
||||
maxlength="64"
|
||||
placeholder="点击选择商品"
|
||||
readonly
|
||||
@click="openStockSelectorDialog('single', $index)"
|
||||
@click="openStockSelectorDialog('single', getVisibleItemSourceIndex(row))"
|
||||
>
|
||||
<template #append>
|
||||
<el-button @click.stop="openStockSelectorDialog('single', $index)">选择</el-button>
|
||||
<el-button @click.stop="openStockSelectorDialog('single', getVisibleItemSourceIndex(row))">选择</el-button>
|
||||
</template>
|
||||
</el-input>
|
||||
</template>
|
||||
@ -220,11 +220,24 @@
|
||||
<template #default="{ row }"><el-input-number v-model="row.actual_price" :min="0" :precision="2" :step="0.01" controls-position="right" style="width: 100%" /></template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="90" fixed="right">
|
||||
<template #default="{ $index }">
|
||||
<el-button type="danger" link @click="removeCreateOrderItem($index)">删除</el-button>
|
||||
<template #default="{ row }">
|
||||
<el-button type="danger" link @click="removeCreateOrderItem(getVisibleItemSourceIndex(row))">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="create-order-items-pagination">
|
||||
<el-pagination
|
||||
background
|
||||
small
|
||||
layout="total, sizes, prev, pager, next"
|
||||
:total="createOrderForm.items.length"
|
||||
:current-page="createOrderItemsPagination.currentPage"
|
||||
:page-size="createOrderItemsPagination.pageSize"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
@current-change="handleCreateOrderItemsPageChange"
|
||||
@size-change="handleCreateOrderItemsPageSizeChange"
|
||||
/>
|
||||
</div>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
@ -367,6 +380,10 @@ const stockSelectorStagedCodeMap = ref<Map<string, any>>(new Map())
|
||||
const stockSelectorSingleSelected = ref<any>(null)
|
||||
const createOrderFormRef = ref<FormInstance>()
|
||||
const stockSelectorTableRef = ref<any>(null)
|
||||
const createOrderItemsPagination = reactive({
|
||||
currentPage: 1,
|
||||
pageSize: 20
|
||||
})
|
||||
|
||||
const createOrderForm = reactive({
|
||||
store_id: undefined as number | undefined,
|
||||
@ -423,6 +440,11 @@ const createOrderRules: FormRules = {
|
||||
|
||||
const createOrderExpressCodeOptions = computed(() => expressCodeOptions.value)
|
||||
const createOrderPlatformCodeOptions = computed(() => platformCodeOptions.value)
|
||||
const visibleCreateOrderItems = computed(() => {
|
||||
const start = (createOrderItemsPagination.currentPage - 1) * createOrderItemsPagination.pageSize
|
||||
const end = start + createOrderItemsPagination.pageSize
|
||||
return createOrderForm.items.slice(start, end)
|
||||
})
|
||||
|
||||
function normalizeCode(value: unknown) {
|
||||
return String(value ?? '').trim()
|
||||
@ -593,6 +615,28 @@ function resequenceCreateOrderItems() {
|
||||
createOrderForm.items.forEach((item, index) => {
|
||||
item.order_line_no = String(index + 1)
|
||||
})
|
||||
const maxPage = Math.max(1, Math.ceil(createOrderForm.items.length / createOrderItemsPagination.pageSize))
|
||||
if (createOrderItemsPagination.currentPage > maxPage) {
|
||||
createOrderItemsPagination.currentPage = maxPage
|
||||
}
|
||||
}
|
||||
|
||||
function getVisibleItemSourceIndex(row: any) {
|
||||
const pageStart = (createOrderItemsPagination.currentPage - 1) * createOrderItemsPagination.pageSize
|
||||
const localIndex = visibleCreateOrderItems.value.indexOf(row)
|
||||
return localIndex < 0 ? pageStart : pageStart + localIndex
|
||||
}
|
||||
|
||||
function handleCreateOrderItemsPageChange(page: number) {
|
||||
createOrderItemsPagination.currentPage = page
|
||||
}
|
||||
|
||||
function handleCreateOrderItemsPageSizeChange(size: number) {
|
||||
createOrderItemsPagination.pageSize = size
|
||||
const maxPage = Math.max(1, Math.ceil(createOrderForm.items.length / size))
|
||||
if (createOrderItemsPagination.currentPage > maxPage) {
|
||||
createOrderItemsPagination.currentPage = maxPage
|
||||
}
|
||||
}
|
||||
|
||||
function resetCreateOrderDialog() {
|
||||
@ -617,6 +661,7 @@ function resetCreateOrderDialog() {
|
||||
createOrderForm.is_urgency = 'N'
|
||||
createOrderForm.invoice_flag = 'N'
|
||||
createOrderForm.items = [{ item_code: '', plan_qty: 1, item_name: '', order_line_no: '1', actual_price: undefined }]
|
||||
createOrderItemsPagination.currentPage = 1
|
||||
createOrderRegionCodes.provinceCode = ''
|
||||
createOrderRegionCodes.cityCode = ''
|
||||
createOrderRegionCodes.areaCode = ''
|
||||
@ -632,6 +677,10 @@ function addCreateOrderItem() {
|
||||
actual_price: undefined
|
||||
})
|
||||
resequenceCreateOrderItems()
|
||||
createOrderItemsPagination.currentPage = Math.max(
|
||||
1,
|
||||
Math.ceil(createOrderForm.items.length / createOrderItemsPagination.pageSize)
|
||||
)
|
||||
}
|
||||
|
||||
function removeCreateOrderItem(index: number) {
|
||||
@ -992,6 +1041,12 @@ async function submitCreateOrder() {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.create-order-items-pagination {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.ai-address-placeholder {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
||||
@ -51,7 +51,6 @@ import DeliveryOrder from './deliveryOrder.vue'
|
||||
import EntrustWarehouse from './entrustWarehouse.vue'
|
||||
import DeliveryException from './deliveryException.vue'
|
||||
import ArchiveOrder from './archiveOrder.vue'
|
||||
import OrderWorkbench from './orderWorkbench.vue'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@ -61,7 +60,7 @@ const badgeLoading = ref(false)
|
||||
const shortcutExpanded = computed(() => settingsStore.shortcutExpanded)
|
||||
const containerHeight = computed(() => shortcutExpanded.value ? 'calc(100vh - 150px)' : 'calc(100vh - 100px)')
|
||||
|
||||
const activeTab = ref('reviewOrder')
|
||||
const activeTab = ref('pendingOrder')
|
||||
const forceRenderAll = ref(false) // 只有 activeTab 对应的组件会被渲染
|
||||
|
||||
type OrderTabItem = {
|
||||
@ -72,12 +71,6 @@ type OrderTabItem = {
|
||||
}
|
||||
|
||||
const tabs = ref<OrderTabItem[]>([
|
||||
{
|
||||
name: 'orderWorkbench',
|
||||
label: '订单工作台',
|
||||
count: 0,
|
||||
component: OrderWorkbench
|
||||
},
|
||||
{
|
||||
name: 'reviewOrder',
|
||||
label: '待审核订单',
|
||||
@ -173,14 +166,12 @@ const initFromRoute = () => {
|
||||
if (tabFromUrl && validTabs.includes(tabFromUrl)) {
|
||||
activeTab.value = tabFromUrl
|
||||
} else {
|
||||
// 如果没有tab参数或参数无效,设置默认值
|
||||
activeTab.value = 'orderWorkbench'
|
||||
// 更新URL参数
|
||||
if (!route.query.tab) {
|
||||
activeTab.value = 'pendingOrder'
|
||||
if (!route.query.tab || !validTabs.includes(tabFromUrl)) {
|
||||
router.replace({
|
||||
query: {
|
||||
...route.query,
|
||||
tab: 'orderWorkbench'
|
||||
tab: 'pendingOrder'
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -195,12 +186,12 @@ watch(
|
||||
if (newTab && validTabs.includes(newTab as string)) {
|
||||
activeTab.value = newTab as string
|
||||
} else {
|
||||
activeTab.value = 'orderWorkbench'
|
||||
if (!newTab) {
|
||||
activeTab.value = 'pendingOrder'
|
||||
if (!newTab || !validTabs.includes(newTab as string)) {
|
||||
router.replace({
|
||||
query: {
|
||||
...route.query,
|
||||
tab: 'orderWorkbench'
|
||||
tab: 'pendingOrder'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -1,468 +0,0 @@
|
||||
<template>
|
||||
<div class="order-sub-container workbench-container">
|
||||
<scan-box
|
||||
ref="scanBox"
|
||||
width="320px"
|
||||
:tree-props="{ children: 'children', label: 'label' }"
|
||||
:auto-submit="false"
|
||||
:preset-tree="presetTree"
|
||||
:available-fields="availableFieldsRef"
|
||||
@condition-change="handleConditionChange"
|
||||
@reset="handleConditionReset"
|
||||
@condition-clear="handleConditionClear"
|
||||
@submit="handleSubmit"
|
||||
/>
|
||||
|
||||
<div class="main-content">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" :loading="loading" @click="loadWorkbenchData">刷新数据</el-button>
|
||||
<el-button size="small" type="primary" plain @click="manualCreateDialogVisible = true">手动建单</el-button>
|
||||
</div>
|
||||
<div class="toolbar-right">
|
||||
<span class="overview-title">订单工作台总列表</span>
|
||||
<div class="overview-list">
|
||||
<div v-for="item in badgeItems" :key="item.key" class="overview-item">
|
||||
<span class="item-label">{{ item.label }}</span>
|
||||
<span class="item-value">{{ item.value }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <el-input
|
||||
v-model="quickSearch"
|
||||
size="small"
|
||||
clearable
|
||||
placeholder="搜索订单号"
|
||||
style="width: 240px;"
|
||||
@keyup.enter.native="onQuickSearch"
|
||||
/> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="upper-wrapper">
|
||||
<upper-table
|
||||
title="订单工作台列表"
|
||||
:data="orderListData"
|
||||
:columns="columns"
|
||||
:table-size="tableSize"
|
||||
:pagination="pagination"
|
||||
:show-index="true"
|
||||
:show-selection="true"
|
||||
:loading="loading"
|
||||
:queryTime="queryTime"
|
||||
@current-change="handleCurrentChange"
|
||||
@page-change="handlePageChange"
|
||||
@page-size-change="handlePageSizeChange"
|
||||
@selection-change="handleSelectionChange"
|
||||
@refresh="loadWorkbenchData"
|
||||
>
|
||||
<template #column-sync_status="{ row }">
|
||||
<el-tag :type="getTagType('sync_status', row.sync_status)" size="small">
|
||||
{{ translateOrderField('sync_status', row.sync_status) || row.sync_status || '-' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-inspection_status="{ row }">
|
||||
<el-tag :type="getTagType('inspection_status', row.inspection_status)" size="small">
|
||||
{{ translateOrderField('inspection_status', row.inspection_status) || row.inspection_status || '-' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-status="{ row }">
|
||||
<el-tag :type="getTagType('status', row.status)" size="small">
|
||||
{{ translateOrderField('status', row.status) || row.status }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-is_urgency="{ row }">
|
||||
<el-tag :type="getTagType('is_urgency', row.is_urgency)" size="small">
|
||||
{{ translateOrderField('is_urgency', row.is_urgency) || row.is_urgency || '-' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-outbound_status="{ row }">
|
||||
<el-tag :type="getTagType('outbound_status', row.outbound_status)" size="small">
|
||||
{{ translateOrderField('outbound_status', row.outbound_status) || row.outbound_status || '-' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-total_amount="{ row }">
|
||||
<span>{{ formatAmount(row.total_amount) }}</span>
|
||||
</template>
|
||||
|
||||
<template #column-create_at="{ row }">
|
||||
<span>{{ formatDisplayTime(row.create_at) }}</span>
|
||||
</template>
|
||||
|
||||
<template #column-updated_at="{ row }">
|
||||
<span>{{ formatDisplayTime(row.updated_at) }}</span>
|
||||
</template>
|
||||
|
||||
<template #empty>
|
||||
<div class="empty-tip">暂无订单</div>
|
||||
</template>
|
||||
</upper-table>
|
||||
</div>
|
||||
|
||||
<div class="lower-level">
|
||||
<div class="detail-header">
|
||||
<el-tabs v-model="activeTab" class="detail-tab">
|
||||
<el-tab-pane label="商品明细" name="items" />
|
||||
<el-tab-pane label="日志" name="logs" />
|
||||
<el-tab-pane label="手动出库迁移" name="manualOutbound" />
|
||||
</el-tabs>
|
||||
</div>
|
||||
<div class="detail-container">
|
||||
<div v-show="activeTab === 'items'" class="detail-page items-detail-wrapper">
|
||||
<workbench-order-detail :row="selectedRow" mode="items" />
|
||||
</div>
|
||||
<div v-show="activeTab === 'logs'" class="detail-page order-log-wrapper">
|
||||
<log v-if="selectedRow" :data="selectedRow" />
|
||||
<div v-else class="no-selection-tip">请从上方列表中选择一项查看日志</div>
|
||||
</div>
|
||||
<div v-show="activeTab === 'manualOutbound'" class="detail-page manual-outbound-wrapper">
|
||||
<keep-alive>
|
||||
<component :is="activeComponent" @refresh-data="loadWorkbenchData" />
|
||||
</keep-alive>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<manual-create-pending-order-dialog v-model="manualCreateDialogVisible" @success="loadWorkbenchData" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import ScanBox from '@/components/ScanBox/index.vue'
|
||||
import UpperTable from '@/components/UpperTable/index.vue'
|
||||
import ManualOutboundPanel from './component/ManualOutboundPanel.vue'
|
||||
import ManualCreatePendingOrderDialog from './component/ManualCreatePendingOrderDialog.vue'
|
||||
import WorkbenchOrderDetail from './component/WorkbenchOrderDetail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { orderBadgeCount, orderList } from '@/api/order.index/orderindex'
|
||||
import {
|
||||
formatOrderTime,
|
||||
getTagType,
|
||||
translateOrderField,
|
||||
workbenchAvailableFields,
|
||||
workbenchBadgeItems,
|
||||
workbenchColumns
|
||||
} from './config/order-common-config'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const manualCreateDialogVisible = ref(false)
|
||||
const loading = ref(false)
|
||||
const queryTime = ref(0)
|
||||
const quickSearch = ref('')
|
||||
const activeTab = ref('items')
|
||||
const tableSize = ref('small')
|
||||
const presetTree = ref<any[]>([])
|
||||
const selectionRows = ref<any[]>([])
|
||||
const selectedRow = ref<any>(null)
|
||||
|
||||
const currentCondition = ref<Record<string, any>>({})
|
||||
|
||||
const availableFieldsRef = reactive<any[]>(workbenchAvailableFields)
|
||||
const columns = ref(workbenchColumns)
|
||||
|
||||
const orderListData = ref<any[]>([])
|
||||
const badgeData = ref<Record<string, number | string>>({
|
||||
reviewOrder: 0,
|
||||
pendingOrder: 0,
|
||||
outboundOrder: 0,
|
||||
expectionOrder: 0,
|
||||
entrustOrder: 0,
|
||||
deliveryOrder: 0,
|
||||
deliveryExpectionOrder: 0,
|
||||
archiveOrder: 0
|
||||
})
|
||||
|
||||
const pagination = reactive({
|
||||
currentPage: 1,
|
||||
pageSize: 20,
|
||||
total: 0
|
||||
})
|
||||
|
||||
const badgeItems = computed(() =>
|
||||
workbenchBadgeItems.map((item) => ({
|
||||
...item,
|
||||
value: badgeData.value[item.key as keyof typeof badgeData.value] ?? 0
|
||||
}))
|
||||
)
|
||||
|
||||
const activeComponent = computed(() => ManualOutboundPanel)
|
||||
function normalizeToWhere(condition: any) {
|
||||
if (!condition || typeof condition !== 'object') return {}
|
||||
const where: Record<string, any> = {}
|
||||
Object.keys(condition).forEach((key) => {
|
||||
const item = condition[key]
|
||||
if (!item) return
|
||||
if (item.operator) {
|
||||
where[key] = item
|
||||
return
|
||||
}
|
||||
if (item.value !== undefined && item.value !== null && item.value !== '') {
|
||||
where[key] = {
|
||||
operator: item.operator || 'eq',
|
||||
value: item.value,
|
||||
type: item.type || 'text'
|
||||
}
|
||||
}
|
||||
})
|
||||
return where
|
||||
}
|
||||
|
||||
function buildWhere() {
|
||||
const where: Record<string, any> = {
|
||||
...(currentCondition.value || {})
|
||||
}
|
||||
if (quickSearch.value) {
|
||||
where.delivery_order_code = {
|
||||
operator: 'like',
|
||||
value: quickSearch.value,
|
||||
type: 'text'
|
||||
}
|
||||
}
|
||||
return where
|
||||
}
|
||||
|
||||
function formatDisplayTime(value: unknown) {
|
||||
return formatOrderTime(value)
|
||||
}
|
||||
|
||||
function formatAmount(value: unknown) {
|
||||
if (value === undefined || value === null || value === '') return '-'
|
||||
const amount = Number(value)
|
||||
if (!Number.isFinite(amount)) return String(value)
|
||||
return amount.toFixed(2)
|
||||
}
|
||||
|
||||
async function loadOrderListData() {
|
||||
const response: any = await orderList({
|
||||
pagination: {
|
||||
page: pagination.currentPage,
|
||||
pageSize: pagination.pageSize
|
||||
},
|
||||
where: buildWhere(),
|
||||
sort: {
|
||||
sortField: 'updated_at',
|
||||
sortOrder: 'DESC'
|
||||
}
|
||||
})
|
||||
|
||||
if (!response || ![1, 200].includes(response.code)) {
|
||||
throw new Error(response?.message || 'order.list 请求失败')
|
||||
}
|
||||
|
||||
const responseData = response.data || {}
|
||||
orderListData.value = responseData.list || []
|
||||
pagination.total = responseData.pagination?.total || 0
|
||||
}
|
||||
|
||||
async function loadBadgeData() {
|
||||
const response: any = await orderBadgeCount()
|
||||
if (!response || ![1, 200].includes(response.code)) {
|
||||
throw new Error(response?.message || 'order.badgeCount 请求失败')
|
||||
}
|
||||
badgeData.value = {
|
||||
...badgeData.value,
|
||||
...(response.data || {})
|
||||
}
|
||||
}
|
||||
|
||||
async function loadWorkbenchData() {
|
||||
if (loading.value) return
|
||||
loading.value = true
|
||||
const start = Date.now()
|
||||
try {
|
||||
await Promise.all([loadOrderListData(), loadBadgeData()])
|
||||
} catch (error: any) {
|
||||
ElMessage.error(error?.message || '加载订单工作台数据失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
queryTime.value = Date.now() - start
|
||||
}
|
||||
}
|
||||
|
||||
function handleConditionChange(condition: any) {
|
||||
currentCondition.value = normalizeToWhere(condition)
|
||||
pagination.currentPage = 1
|
||||
loadWorkbenchData()
|
||||
}
|
||||
|
||||
function handleConditionClear() {
|
||||
currentCondition.value = {}
|
||||
pagination.currentPage = 1
|
||||
loadWorkbenchData()
|
||||
}
|
||||
|
||||
function handleConditionReset() {
|
||||
currentCondition.value = {}
|
||||
quickSearch.value = ''
|
||||
pagination.currentPage = 1
|
||||
scanBox.value?.reset?.()
|
||||
loadWorkbenchData()
|
||||
}
|
||||
|
||||
function handleSubmit() {
|
||||
pagination.currentPage = 1
|
||||
loadWorkbenchData()
|
||||
}
|
||||
|
||||
function onQuickSearch() {
|
||||
pagination.currentPage = 1
|
||||
loadWorkbenchData()
|
||||
}
|
||||
|
||||
function handlePageChange(page: number) {
|
||||
pagination.currentPage = page
|
||||
loadWorkbenchData()
|
||||
}
|
||||
|
||||
function handlePageSizeChange(size: number) {
|
||||
pagination.pageSize = size
|
||||
pagination.currentPage = 1
|
||||
loadWorkbenchData()
|
||||
}
|
||||
|
||||
function handleSelectionChange(rows: any[]) {
|
||||
selectionRows.value = rows || []
|
||||
}
|
||||
|
||||
function handleCurrentChange(row: any) {
|
||||
selectedRow.value = row || null
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadWorkbenchData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@use "./styles/order-sub.scss";
|
||||
|
||||
.workbench-container {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.workbench-container .main-content {
|
||||
.toolbar {
|
||||
margin-bottom: 3px;
|
||||
padding: 6px 10px;
|
||||
|
||||
.toolbar-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.toolbar-right {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.overview-title {
|
||||
flex-shrink: 0;
|
||||
color: #606266;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.overview-list {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
overflow-x: auto;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.overview-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 2px 8px;
|
||||
border: 1px solid #ebeef5;
|
||||
border-radius: 12px;
|
||||
background: #fafafa;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.item-label {
|
||||
color: #909399;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.item-value {
|
||||
color: #409eff;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.lower-level {
|
||||
flex: 0 0 38%;
|
||||
height: 38%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
|
||||
.detail-header {
|
||||
flex: 0 0 auto;
|
||||
background-color: #fafafa;
|
||||
border-bottom: 1px solid #ebeef5;
|
||||
}
|
||||
|
||||
.detail-container {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-page {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.order-detail-wrapper {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.order-log-wrapper {
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.items-detail-wrapper {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.manual-outbound-wrapper {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.urgency-yes {
|
||||
color: #f56c6c;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.no-selection-tip {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #909399;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -25,6 +25,7 @@
|
||||
>
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" :disabled="!hasSelection" :loading="actionLoading" @click="handleReverseReview">反审回待审核</el-button>
|
||||
<el-button size="small" type="warning" :disabled="!hasSelection" :loading="actionLoading" @click="handleMarkPendingOutbound">标记待出库</el-button>
|
||||
<el-button
|
||||
@ -103,6 +104,8 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="待处理订单列表"
|
||||
:enable-column-config="true"
|
||||
table-id="order-management-pending-order"
|
||||
:data="list"
|
||||
:columns="columns"
|
||||
:table-size="tableSize"
|
||||
@ -585,6 +588,10 @@ function onQuickSearch() {
|
||||
loadData()
|
||||
}
|
||||
|
||||
function openColumnConfigPanel() {
|
||||
upperTable.value?.openColumnConfig?.()
|
||||
}
|
||||
|
||||
function normalizeCode(value: unknown) {
|
||||
return String(value ?? '').trim()
|
||||
}
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" type="primary" plain @click="manualCreateDialogVisible = true">手动建单</el-button>
|
||||
<el-button size="small" type="success" :disabled="!hasSelection" :loading="reviewSubmitting" @click="handleBatchReview">批量审核通过</el-button>
|
||||
</div>
|
||||
@ -31,6 +32,8 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="待审核订单列表"
|
||||
:enable-column-config="true"
|
||||
table-id="order-management-review-order"
|
||||
:data="list"
|
||||
:columns="columns"
|
||||
:table-size="tableSize"
|
||||
@ -273,6 +276,10 @@ function onQuickSearch() {
|
||||
loadData()
|
||||
}
|
||||
|
||||
function openColumnConfigPanel() {
|
||||
upperTable.value?.openColumnConfig?.()
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选要导出的订单')
|
||||
|
||||
@ -25,6 +25,8 @@
|
||||
打印收货单
|
||||
</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" @click="toggleDetailVisible">{{ detailVisible ? '隐藏详情' : '显示详情' }}</el-button>
|
||||
</div>
|
||||
|
||||
<!-- <div class="toolbar-right">
|
||||
@ -33,7 +35,7 @@
|
||||
</div>
|
||||
|
||||
<div class="upper-wrapper">
|
||||
<upper-table ref="upperTable" title="收货单列表" :data="list" :columns="columns" :table-size="tableSize"
|
||||
<upper-table ref="upperTable" title="收货单列表" :enable-column-config="true" table-id="storage-receiving-list" :data="list" :columns="columns" :table-size="tableSize"
|
||||
:pagination="pagination" :show-index="true" :show-actions="true" :show-selection="true" :loading="loading"
|
||||
:queryTime="queryTime" @current-change="handleRowClick" @page-change="handlePageChange"
|
||||
@page-size-change="handlePageSizeChange" @sort-change="handleSortChange" @refresh="loadData"
|
||||
@ -86,7 +88,7 @@
|
||||
</upper-table>
|
||||
</div>
|
||||
|
||||
<div class="lower-level" v-if="selectedReceivingId" :class="tableSize">
|
||||
<div class="lower-level" v-if="detailVisible && selectedReceivingId" :class="tableSize">
|
||||
<div class="detail-header">
|
||||
<el-tabs v-model="activeTab" class="detail-tab">
|
||||
<el-tab-pane label="收货明细" name="details" />
|
||||
@ -105,7 +107,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="no-selection" v-else>
|
||||
<div class="no-selection" v-else-if="detailVisible">
|
||||
<div class="empty-tip">
|
||||
<p>请从上方列表中选择一项查看详情</p>
|
||||
</div>
|
||||
@ -264,7 +266,7 @@ import {
|
||||
printFormConfig,
|
||||
addReceivingFields
|
||||
} from './receiving-config'
|
||||
import * as templateApi from '@/api/setting.printTemplate/printTemplate'
|
||||
import * as templateApi from '@/api/setting.printtemplate/printTemplate'
|
||||
import * as stationApi from '@/api/print/print'
|
||||
import JsBarcode from 'jsbarcode'
|
||||
import * as XLSX from 'xlsx'
|
||||
@ -299,6 +301,7 @@ const columns = ref(receivingColumns)
|
||||
const selectionRows = ref<any[]>([])
|
||||
const hasSelection = ref(false)
|
||||
const selectedReceivingId = ref<number | string | null>(null)
|
||||
const detailVisible = ref(true)
|
||||
|
||||
const quickSearch = ref('')
|
||||
const currentSort = reactive({ prop: '', order: '' })
|
||||
@ -319,6 +322,10 @@ const selectedRow = computed(() => {
|
||||
return list.value.find((i: any) => i.id === selectedReceivingId.value) || null
|
||||
})
|
||||
|
||||
function toggleDetailVisible() {
|
||||
detailVisible.value = !detailVisible.value
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
// 先加载筛选相关数据(例如 store options、presetTree),保证 ScanBox options 可用
|
||||
loadFilterData()
|
||||
@ -619,6 +626,10 @@ function onQuickSearch() {
|
||||
loadData()
|
||||
}
|
||||
|
||||
function openColumnConfigPanel() {
|
||||
upperTable.value?.openColumnConfig?.()
|
||||
}
|
||||
|
||||
function handleCreateReceiving() {
|
||||
// 重置表单并打开对话框
|
||||
Object.keys(createForm).forEach(key => createForm[key] = '')
|
||||
|
||||
@ -53,7 +53,7 @@ import { ref, computed, onMounted } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Document, Folder } from '@element-plus/icons-vue'
|
||||
import TemplateEditor from './components/TemplateEditor.vue'
|
||||
import * as TemplatesApi from '@/api/setting.printTemplate/printTemplate'
|
||||
import * as TemplatesApi from '@/api/setting.printtemplate/printTemplate'
|
||||
import { usePrintTemplateStore } from '@/stores/modules/printTemplate'
|
||||
import { storeToRefs } from 'pinia'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 19:37:49",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 20:21:27",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 19:16:50",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-23 10:06:38",
|
||||
"updatedAt": "2026-04-24 09:07:34",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-23 10:06:38",
|
||||
"generatedAtLocal": "2026-04-23 10:06:38",
|
||||
"generatedAt": "2026-04-24 09:07:34",
|
||||
"generatedAtLocal": "2026-04-24 09:07:34",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user