|
|
@ -116,6 +116,14 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="top-item"> |
|
|
<div class="top-item"> |
|
|
|
|
|
<el-text style="width:4vw;" size="small">永久金币</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.permanentGold" size="small" style="width:10vw;" disabled /> 个 |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="top-item"> |
|
|
|
|
|
<el-text style="width:4vw;" size="small">免费金币</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.freeGold" size="small" style="width:10vw;" disabled /> 个 |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="top-item"> |
|
|
<el-text style="width:4vw;" size="small">退款理由</el-text> |
|
|
<el-text style="width:4vw;" size="small">退款理由</el-text> |
|
|
<el-input v-model="auditRow.refundReason" size="small" style="width:10vw;" :rows="3" maxlength="100" |
|
|
<el-input v-model="auditRow.refundReason" size="small" style="width:10vw;" :rows="3" maxlength="100" |
|
|
show-word-limit type="textarea" disabled /> |
|
|
show-word-limit type="textarea" disabled /> |
|
|
@ -137,20 +145,20 @@ |
|
|
<el-input v-model="auditRow.goodsName" size="small" style="width:10vw;" disabled /> |
|
|
<el-input v-model="auditRow.goodsName" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="center-item"> |
|
|
<div class="center-item"> |
|
|
<el-text style="width:4vw;" size="small">付款金额</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.paymentAmount" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">付款币种</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.paymentCurrency" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="center-item"> |
|
|
<div class="center-item"> |
|
|
<el-text style="width:4vw;" size="small">到账金额</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.receivedAmount" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">付款金额</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.paymentAmount" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="center-item"> |
|
|
<div class="center-item"> |
|
|
<el-text style="width:4vw;" size="small">支付方式</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.payType" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">付款时间</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.payTime" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="center-item"> |
|
|
<div class="center-item"> |
|
|
<el-text style="width:4vw;">转账凭证</el-text> |
|
|
<el-text style="width:4vw;">转账凭证</el-text> |
|
|
<img v-if="auditRow.voucher" :src="auditRow.voucher" |
|
|
|
|
|
|
|
|
<img v-if="auditRow.payVoucher" :src="auditRow.payVoucher" |
|
|
style="width: 80px; height: 80px; object-fit: cover;"> |
|
|
style="width: 80px; height: 80px; object-fit: cover;"> |
|
|
<div v-else> |
|
|
<div v-else> |
|
|
无转账凭证 |
|
|
无转账凭证 |
|
|
@ -167,28 +175,28 @@ |
|
|
<el-input v-model="auditRow.activity" size="small" style="width:10vw;" disabled /> |
|
|
<el-input v-model="auditRow.activity" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">付款币种</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.paymentCurrency" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">支付方式</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.payType" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">到账币种</el-text> |
|
|
<el-text style="width:4vw;" size="small">到账币种</el-text> |
|
|
<el-input v-model="auditRow.receivedCurrency" size="small" style="width:10vw;" disabled /> |
|
|
<el-input v-model="auditRow.receivedCurrency" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">手续费</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.handlingCharge" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">到账金额</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.receivedAmount" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">付款时间</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.payTime" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">到账时间</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.receivedTime" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">提交人</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.submitter" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">手续费</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.handlingCharge" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">到账时间</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.receivedTime" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">提交人</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.submitter" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">备注</el-text> |
|
|
<el-text style="width:4vw;" size="small">备注</el-text> |
|
|
@ -256,8 +264,8 @@ |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<img v-if="currentStep === 4" src="@/assets/images/refund-rejected.png" alt="已驳回"> |
|
|
<img v-if="currentStep === 4" src="@/assets/images/refund-rejected.png" alt="已驳回"> |
|
|
<img v-else-if="currentStep === 3" src="@/assets/images/refund-approving.png" alt="待审核"> |
|
|
<img v-else-if="currentStep === 3" src="@/assets/images/refund-approving.png" alt="待审核"> |
|
|
<img v-else-if="currentStep > 3 && currentStep != 4" src="@/assets/images/refund-approved.png" |
|
|
|
|
|
alt="已审核"> |
|
|
|
|
|
|
|
|
<img v-else-if="currentStep > 3 && currentStep != 4" |
|
|
|
|
|
src="@/assets/images/refund-approved.png" alt="已审核"> |
|
|
<img v-else-if="currentStep < 3" src="@/assets/images/refund-waiting.png" alt="未开始"> |
|
|
<img v-else-if="currentStep < 3" src="@/assets/images/refund-waiting.png" alt="未开始"> |
|
|
</template> |
|
|
</template> |
|
|
</el-step> |
|
|
</el-step> |
|
|
@ -271,8 +279,8 @@ |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<img v-if="currentStep === 6" src="@/assets/images/refund-rejected.png" alt="已驳回"> |
|
|
<img v-if="currentStep === 6" src="@/assets/images/refund-rejected.png" alt="已驳回"> |
|
|
<img v-else-if="currentStep === 5" src="@/assets/images/refund-approving.png" alt="待审核"> |
|
|
<img v-else-if="currentStep === 5" src="@/assets/images/refund-approving.png" alt="待审核"> |
|
|
<img v-else-if="currentStep > 5 && currentStep != 6" src="@/assets/images/refund-approved.png" |
|
|
|
|
|
alt="已审核"> |
|
|
|
|
|
|
|
|
<img v-else-if="currentStep > 5 && currentStep != 6" |
|
|
|
|
|
src="@/assets/images/refund-approved.png" alt="已审核"> |
|
|
<img v-else-if="currentStep < 5" src="@/assets/images/refund-waiting.png" alt="未开始"> |
|
|
<img v-else-if="currentStep < 5" src="@/assets/images/refund-waiting.png" alt="未开始"> |
|
|
</template> |
|
|
</template> |
|
|
</el-step> |
|
|
</el-step> |
|
|
@ -298,35 +306,35 @@ |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<el-dialog v-model="exportListVisible" title="导出列表" width="80%"> |
|
|
<el-dialog v-model="exportListVisible" title="导出列表" width="80%"> |
|
|
<el-table :data="exportList" style="width: 100% ;height: 60vh;" :loading="exportListLoading"> |
|
|
|
|
|
<el-table-column prop="fileName" label="文件名" /> |
|
|
|
|
|
<el-table-column prop="state" label="状态"> |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
<el-tag :type="getTagType(scope.row.state)" :effect="scope.row.state === 3 ? 'light' : 'plain'"> |
|
|
|
|
|
{{ getTagText(scope.row.state) }} |
|
|
|
|
|
</el-tag> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="createTime" label="创建时间"> |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
{{ moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column label="操作"> |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
<el-button type="primary" size="small" @click="downloadExportFile(scope.row)" |
|
|
|
|
|
:disabled="scope.row.state !== 2"> |
|
|
|
|
|
下载 |
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
<el-table :data="exportList" style="width: 100% ;height: 60vh;" :loading="exportListLoading"> |
|
|
|
|
|
<el-table-column prop="fileName" label="文件名" /> |
|
|
|
|
|
<el-table-column prop="state" label="状态"> |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
<el-tag :type="getTagType(scope.row.state)" :effect="scope.row.state === 3 ? 'light' : 'plain'"> |
|
|
|
|
|
{{ getTagText(scope.row.state) }} |
|
|
|
|
|
</el-tag> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="createTime" label="创建时间"> |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
{{ moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column label="操作"> |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
<el-button type="primary" size="small" @click="downloadExportFile(scope.row)" |
|
|
|
|
|
:disabled="scope.row.state !== 2"> |
|
|
|
|
|
下载 |
|
|
|
|
|
</el-button> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
<template #footer> |
|
|
|
|
|
<div class="dialog-footer"> |
|
|
|
|
|
<el-button text @click="exportListVisible = false">关闭</el-button> |
|
|
|
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
<template #footer> |
|
|
|
|
|
<div class="dialog-footer"> |
|
|
|
|
|
<el-button text @click="exportListVisible = false">关闭</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
</el-dialog> |
|
|
</template> |
|
|
</template> |
|
|
<script setup> |
|
|
<script setup> |
|
|
import { ref, onMounted } from 'vue' |
|
|
import { ref, onMounted } from 'vue' |
|
|
@ -476,6 +484,11 @@ const getRefund = async function () { |
|
|
} else { |
|
|
} else { |
|
|
statuses.value = [20, 22, 30, 32, 40, 41] |
|
|
statuses.value = [20, 22, 30, 32, 40, 41] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (searchForm.value.goodsName) { |
|
|
|
|
|
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const params = { |
|
|
const params = { |
|
|
pageNum: pagination.value.pageNum, |
|
|
pageNum: pagination.value.pageNum, |
|
|
pageSize: pagination.value.pageSize, |
|
|
pageSize: pagination.value.pageSize, |
|
|
@ -483,7 +496,7 @@ const getRefund = async function () { |
|
|
jwcode: searchForm.value.jwcode,//精网号 |
|
|
jwcode: searchForm.value.jwcode,//精网号 |
|
|
name: searchForm.value.name,//姓名 |
|
|
name: searchForm.value.name,//姓名 |
|
|
markets: searchForm.value.markets,//地区 |
|
|
markets: searchForm.value.markets,//地区 |
|
|
goodsNames: searchForm.value.goodsName,//商品名 |
|
|
|
|
|
|
|
|
goodsName: searchForm.value.goodsName,//商品名 |
|
|
statuses: statuses.value,//10:地区财务待审核;12:地区财务驳回; |
|
|
statuses: statuses.value,//10:地区财务待审核;12:地区财务驳回; |
|
|
// 20:地区负责人待审核;22:地区负责人驳回; |
|
|
// 20:地区负责人待审核;22:地区负责人驳回; |
|
|
// 30:总部财务待审核;32:总部财务驳回; |
|
|
// 30:总部财务待审核;32:总部财务驳回; |
|
|
@ -520,7 +533,8 @@ const handlePass = async function () { |
|
|
status: 30, |
|
|
status: 30, |
|
|
rejectReason: addForm.value.remark, |
|
|
rejectReason: addForm.value.remark, |
|
|
areaCharge: adminData.value.adminName, |
|
|
areaCharge: adminData.value.adminName, |
|
|
auditId: auditRow.value.auditId |
|
|
|
|
|
|
|
|
auditId: auditRow.value.auditId, |
|
|
|
|
|
relatedId: auditRow.value.relatedId |
|
|
} |
|
|
} |
|
|
const result = await API({ |
|
|
const result = await API({ |
|
|
url: '/Money/review', |
|
|
url: '/Money/review', |
|
|
@ -548,7 +562,8 @@ const handleReject = async function () { |
|
|
rejectReason: addForm.value.remark, |
|
|
rejectReason: addForm.value.remark, |
|
|
areaCharge: adminData.value.adminName, |
|
|
areaCharge: adminData.value.adminName, |
|
|
auditId: auditRow.value.auditId, |
|
|
auditId: auditRow.value.auditId, |
|
|
orderCode: auditRow.value.orderCode |
|
|
|
|
|
|
|
|
orderCode: auditRow.value.orderCode, |
|
|
|
|
|
relatedId: auditRow.value.relatedId |
|
|
} |
|
|
} |
|
|
const result = await API({ |
|
|
const result = await API({ |
|
|
url: '/Money/review', |
|
|
url: '/Money/review', |
|
|
@ -620,103 +635,109 @@ const getMarket = async function () { |
|
|
} |
|
|
} |
|
|
const exportExcel = async function () { |
|
|
const exportExcel = async function () { |
|
|
const statuses = ref([20, 22, 30, 32, 40, 41]) // 看不到进度没到这里的 |
|
|
const statuses = ref([20, 22, 30, 32, 40, 41]) // 看不到进度没到这里的 |
|
|
if (searchForm.value.statuses === '审核通过') { |
|
|
|
|
|
statuses.value = [30, 40] |
|
|
|
|
|
} else if (searchForm.value.statuses === '已驳回') { |
|
|
|
|
|
statuses.value = [22, 32] |
|
|
|
|
|
} else if (searchForm.value.statuses === '待审核') { |
|
|
|
|
|
statuses.value = [20] |
|
|
|
|
|
} else if (searchForm.value.statuses === '退款成功') { |
|
|
|
|
|
statuses.value = [41] |
|
|
|
|
|
} else { |
|
|
|
|
|
statuses.value = [20, 22, 30, 32, 40, 41] |
|
|
|
|
|
} |
|
|
|
|
|
const params = { |
|
|
|
|
|
pageNum: pagination.value.pageNum, |
|
|
|
|
|
pageSize: pagination.value.pageSize, |
|
|
|
|
|
cashRecordDTO: { |
|
|
|
|
|
jwcode: searchForm.value.jwcode,//精网号 |
|
|
|
|
|
name: searchForm.value.name,//姓名 |
|
|
|
|
|
markets: searchForm.value.markets,//地区 |
|
|
|
|
|
goodsNames: searchForm.value.goodsName,//商品名 |
|
|
|
|
|
statuses: statuses.value,//10:地区财务待审核;12:地区财务驳回; |
|
|
|
|
|
// 20:地区负责人待审核;22:地区负责人驳回; |
|
|
|
|
|
// 30:总部财务待审核;32:总部财务驳回; |
|
|
|
|
|
// 40:执行人待处理;41:执行人已处理,退款完成; |
|
|
|
|
|
paymentCurrency: searchForm.value.paymentCurrency,//付款币种 |
|
|
|
|
|
payType: searchForm.value.payType,//支付方式 |
|
|
|
|
|
startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
|
|
|
endTime: dateRange.value && dateRange.value[1] ? dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
|
|
|
adminId: adminData.value.id |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (searchForm.value.statuses === '审核通过') { |
|
|
|
|
|
statuses.value = [30, 40] |
|
|
|
|
|
} else if (searchForm.value.statuses === '已驳回') { |
|
|
|
|
|
statuses.value = [22, 32] |
|
|
|
|
|
} else if (searchForm.value.statuses === '待审核') { |
|
|
|
|
|
statuses.value = [20] |
|
|
|
|
|
} else if (searchForm.value.statuses === '退款成功') { |
|
|
|
|
|
statuses.value = [41] |
|
|
|
|
|
} else { |
|
|
|
|
|
statuses.value = [20, 22, 30, 32, 40, 41] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (searchForm.value.goodsName) { |
|
|
|
|
|
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const params = { |
|
|
|
|
|
pageNum: pagination.value.pageNum, |
|
|
|
|
|
pageSize: pagination.value.pageSize, |
|
|
|
|
|
cashRecordDTO: { |
|
|
|
|
|
jwcode: searchForm.value.jwcode,//精网号 |
|
|
|
|
|
name: searchForm.value.name,//姓名 |
|
|
|
|
|
markets: searchForm.value.markets,//地区 |
|
|
|
|
|
goodsName: searchForm.value.goodsName,//商品名 |
|
|
|
|
|
statuses: statuses.value,//10:地区财务待审核;12:地区财务驳回; |
|
|
|
|
|
// 20:地区负责人待审核;22:地区负责人驳回; |
|
|
|
|
|
// 30:总部财务待审核;32:总部财务驳回; |
|
|
|
|
|
// 40:执行人待处理;41:执行人已处理,退款完成; |
|
|
|
|
|
paymentCurrency: searchForm.value.paymentCurrency,//付款币种 |
|
|
|
|
|
payType: searchForm.value.payType,//支付方式 |
|
|
|
|
|
startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
|
|
|
endTime: dateRange.value && dateRange.value[1] ? dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
|
|
|
adminId: adminData.value.id |
|
|
} |
|
|
} |
|
|
const res = await API({ url: '/export/exportFinance', data: params }) |
|
|
|
|
|
if (res.code === 200) { |
|
|
|
|
|
ElMessage.success('导出成功') |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
const res = await API({ url: '/export/exportFinance', data: params }) |
|
|
|
|
|
if (res.code === 200) { |
|
|
|
|
|
ElMessage.success('导出成功') |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
const openExportList = () => { |
|
|
const openExportList = () => { |
|
|
getExportList() |
|
|
|
|
|
exportListVisible.value = true |
|
|
|
|
|
|
|
|
getExportList() |
|
|
|
|
|
exportListVisible.value = true |
|
|
} |
|
|
} |
|
|
const getExportList = async () => { |
|
|
const getExportList = async () => { |
|
|
exportListLoading.value = true |
|
|
|
|
|
try { |
|
|
|
|
|
const result = await API({ url: '/export/export' }) |
|
|
|
|
|
if (result.code === 200) { |
|
|
|
|
|
const filteredData = result.data.filter(item => { |
|
|
|
|
|
return item.type === 12 |
|
|
|
|
|
}) |
|
|
|
|
|
exportList.value = filteredData |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.error(result.msg || '获取导出列表失败') |
|
|
|
|
|
|
|
|
exportListLoading.value = true |
|
|
|
|
|
try { |
|
|
|
|
|
const result = await API({ url: '/export/export' }) |
|
|
|
|
|
if (result.code === 200) { |
|
|
|
|
|
const filteredData = result.data.filter(item => { |
|
|
|
|
|
return item.type === 12 |
|
|
|
|
|
}) |
|
|
|
|
|
exportList.value = filteredData |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.error(result.msg || '获取导出列表失败') |
|
|
|
|
|
} |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.error('获取导出列表出错:', error) |
|
|
|
|
|
ElMessage.error('获取导出列表失败,请稍后重试') |
|
|
|
|
|
} finally { |
|
|
|
|
|
exportListLoading.value = false |
|
|
} |
|
|
} |
|
|
} catch (error) { |
|
|
|
|
|
console.error('获取导出列表出错:', error) |
|
|
|
|
|
ElMessage.error('获取导出列表失败,请稍后重试') |
|
|
|
|
|
} finally { |
|
|
|
|
|
exportListLoading.value = false |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
const downloadExportFile = (item) => { |
|
|
const downloadExportFile = (item) => { |
|
|
if (item.state === 2) { |
|
|
|
|
|
const link = document.createElement('a') |
|
|
|
|
|
link.href = item.url |
|
|
|
|
|
link.download = item.fileName |
|
|
|
|
|
link.click() |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.warning('文件还在导出中,请稍后再试') |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (item.state === 2) { |
|
|
|
|
|
const link = document.createElement('a') |
|
|
|
|
|
link.href = item.url |
|
|
|
|
|
link.download = item.fileName |
|
|
|
|
|
link.click() |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.warning('文件还在导出中,请稍后再试') |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
//根据状态返回对应的标签类型 |
|
|
//根据状态返回对应的标签类型 |
|
|
const getTagType = (state) => { |
|
|
const getTagType = (state) => { |
|
|
switch (state) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
return 'info'; |
|
|
|
|
|
case 1: |
|
|
|
|
|
return 'primary'; |
|
|
|
|
|
case 2: |
|
|
|
|
|
return 'success'; |
|
|
|
|
|
case 3: |
|
|
|
|
|
return 'danger'; |
|
|
|
|
|
default: |
|
|
|
|
|
return 'info'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
switch (state) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
return 'info'; |
|
|
|
|
|
case 1: |
|
|
|
|
|
return 'primary'; |
|
|
|
|
|
case 2: |
|
|
|
|
|
return 'success'; |
|
|
|
|
|
case 3: |
|
|
|
|
|
return 'danger'; |
|
|
|
|
|
default: |
|
|
|
|
|
return 'info'; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
//根据状态返回对应的标签文案 |
|
|
//根据状态返回对应的标签文案 |
|
|
const getTagText = (state) => { |
|
|
const getTagText = (state) => { |
|
|
switch (state) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
return '待执行'; |
|
|
|
|
|
case 1: |
|
|
|
|
|
return '执行中'; |
|
|
|
|
|
case 2: |
|
|
|
|
|
return '执行完成'; |
|
|
|
|
|
case 3: |
|
|
|
|
|
return '执行出错'; |
|
|
|
|
|
default: |
|
|
|
|
|
return '未知状态'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
switch (state) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
return '待执行'; |
|
|
|
|
|
case 1: |
|
|
|
|
|
return '执行中'; |
|
|
|
|
|
case 2: |
|
|
|
|
|
return '执行完成'; |
|
|
|
|
|
case 3: |
|
|
|
|
|
return '执行出错'; |
|
|
|
|
|
default: |
|
|
|
|
|
return '未知状态'; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
const hideReject = function () { |
|
|
const hideReject = function () { |
|
|
showReject.value = false |
|
|
showReject.value = false |
|
|
@ -811,7 +832,7 @@ onMounted(() => { |
|
|
|
|
|
|
|
|
.top { |
|
|
.top { |
|
|
width: 30vw; |
|
|
width: 30vw; |
|
|
height: 17vh; |
|
|
|
|
|
|
|
|
height: 22vh; |
|
|
|
|
|
|
|
|
.top-item { |
|
|
.top-item { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|