|
@ -248,10 +248,26 @@ const exportExcel = () => { |
|
|
XLSX.writeFile(wb, "客户金币明细.xlsx"); |
|
|
XLSX.writeFile(wb, "客户金币明细.xlsx"); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const putExcel = ref({}); |
|
|
|
|
|
|
|
|
const today = new Date(); |
|
|
|
|
|
const startDate = new Date( |
|
|
|
|
|
today.getFullYear(), |
|
|
|
|
|
today.getMonth(), |
|
|
|
|
|
today.getDate() |
|
|
|
|
|
); |
|
|
|
|
|
const endDate = new Date( |
|
|
|
|
|
today.getFullYear(), |
|
|
|
|
|
today.getMonth(), |
|
|
|
|
|
today.getDate() + 1 |
|
|
|
|
|
); |
|
|
|
|
|
const putExcel = ref({ |
|
|
|
|
|
startDate: startDate, |
|
|
|
|
|
endDate: endDate, |
|
|
|
|
|
}); |
|
|
const excelInfo = ref({}); |
|
|
const excelInfo = ref({}); |
|
|
const areyour = async function (val) { |
|
|
|
|
|
|
|
|
const loading = ref(false); |
|
|
|
|
|
const areyour = async function () { |
|
|
try { |
|
|
try { |
|
|
|
|
|
loading.value = true; |
|
|
const result = await API.post( |
|
|
const result = await API.post( |
|
|
"http://192.168.8.93:10010/detailY/searchAll", |
|
|
"http://192.168.8.93:10010/detailY/searchAll", |
|
|
{ ...putExcel.value } |
|
|
{ ...putExcel.value } |
|
@ -260,10 +276,12 @@ const areyour = async function (val) { |
|
|
areyouright.value = true; |
|
|
areyouright.value = true; |
|
|
ElMessage({ |
|
|
ElMessage({ |
|
|
type: "success", |
|
|
type: "success", |
|
|
message: "导出成功", |
|
|
|
|
|
|
|
|
message: "查询成功", |
|
|
}); |
|
|
}); |
|
|
|
|
|
loading.value = false; |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.log("请求失败", error); |
|
|
console.log("请求失败", error); |
|
|
|
|
|
loading.value = false; |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -378,6 +396,7 @@ const get30 = function () { |
|
|
> |
|
|
> |
|
|
<el-button type="success" @click="exportExcel()">导出</el-button> |
|
|
<el-button type="success" @click="exportExcel()">导出</el-button> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 这是导出excel的弹窗 --> |
|
|
<!-- 这是导出excel的弹窗 --> |
|
|
<el-dialog |
|
|
<el-dialog |
|
|
v-model="getPutEX" |
|
|
v-model="getPutEX" |
|
@ -387,6 +406,7 @@ const get30 = function () { |
|
|
> |
|
|
> |
|
|
<template #footer> |
|
|
<template #footer> |
|
|
<el-form |
|
|
<el-form |
|
|
|
|
|
v-loading="loading" |
|
|
ref="ruleFormRef" |
|
|
ref="ruleFormRef" |
|
|
style="max-width: 600px" |
|
|
style="max-width: 600px" |
|
|
:model="putExcel" |
|
|
:model="putExcel" |
|
|