no message

main
HUOJIN\92525 2026-02-09 17:58:01 +08:00
parent 0267bff56c
commit f4029374a9
1 changed files with 55 additions and 5 deletions

View File

@ -6,8 +6,8 @@
<a-row :gutter="24">
<a-col :lg="6">
<a-form-item name="id">
<template #label><span title="任务ID">任务ID</span></template>
<a-input v-model:value="queryParam.id" :placeholder="'请输入任务ID'" allow-clear />
<template #label><span title="任务号">任务号</span></template>
<a-input v-model:value="queryParam.id" :placeholder="'请输入任务'" allow-clear />
</a-form-item>
</a-col>
<a-col :lg="6">
@ -38,6 +38,12 @@
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :lg="6">
<a-form-item v-if="toggleSearchStatus" name="type_MultiString">
<template #label><span title="业务类型">业务类型</span></template>
<JSelectMultiple v-model:value="queryParam.type_MultiString" dictCode="business_type" />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item v-if="toggleSearchStatus" name="createTime">
<template #label><span title="创建日期">创建日期</span></template>
@ -52,7 +58,13 @@
<!--插槽:table标题-->
<template #tableTitle>
<a-button type="primary" v-auth="'agvTask:data_agv_task:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> </a-button>
<a-button type="primary" v-auth="'agvTask:data_agv_task:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls">
<a-button
type="primary"
v-auth="'agvTask:data_agv_task:exportXls'"
preIcon="ant-design:export-outlined"
:loading="exportLoading"
@click="handleExport"
>
导出
</a-button>
<j-upload-button
@ -151,9 +163,32 @@
},
},
exportConfig: {
name: 'AGV任务表',
name: 'TES任务信息',
url: getExportUrl,
params: queryParam,
params: () => {
// beforeFetch
const newQueryParam = { ...queryParam };
//
if (newQueryParam.createTime) {
try {
const [begin, end] = newQueryParam.createTime.split(',');
if (begin !== undefined) newQueryParam.createTime_begin = begin;
if (end !== undefined) newQueryParam.createTime_end = end;
delete newQueryParam.createTime;
} catch (error) {
console.error('日期范围处理错误:', error);
}
}
// fieldPickers
for (let key in fieldPickers) {
if (newQueryParam[key] && fieldPickers[key]) {
newQueryParam[key] = getDateByPicker(newQueryParam[key], fieldPickers[key]);
}
}
return newQueryParam;
},
},
importConfig: {
url: getImportUrl,
@ -346,6 +381,21 @@
//
reload();
}
//
const exportLoading = ref(false);
//
async function handleExport() {
exportLoading.value = true;
try {
// tableContext onExportXls
// handleExportXls
await onExportXls();
} finally {
exportLoading.value = false;
}
}
</script>
<style lang="less" scoped>