调整 iam
This commit is contained in:
@@ -16,7 +16,9 @@
|
||||
><el-select v-model="query.processStatus" clearable placeholder="全部"
|
||||
><el-option label="上传中" value="上传中" /><el-option
|
||||
label="处理中"
|
||||
value="处理中" /><el-option label="处理完成" value="处理完成" /></el-select
|
||||
value="处理中" /><el-option label="处理完成" value="处理完成" /><el-option
|
||||
label="处理失败"
|
||||
value="处理失败" /></el-select
|
||||
></el-form-item>
|
||||
<el-form-item label="运单批次号"
|
||||
><el-input v-model="query.waybillBatchNo" clearable placeholder="请输入"
|
||||
@@ -84,7 +86,14 @@
|
||||
min-width="160"
|
||||
><template #default="{ row }">{{ row.carrierName || '-' }}</template></el-table-column
|
||||
>
|
||||
<el-table-column prop="processStatus" label="处理状态" width="120" /><el-table-column
|
||||
<el-table-column prop="processStatus" label="处理状态" width="120"
|
||||
><template #default="{ row }"
|
||||
><span
|
||||
:class="{ 'voucher-manage-page__process-failed': row.processStatus === '处理失败' }"
|
||||
>{{ row.processStatus }}</span
|
||||
></template
|
||||
></el-table-column
|
||||
><el-table-column
|
||||
prop="voucherCount"
|
||||
label="凭证数量"
|
||||
width="100"
|
||||
@@ -109,7 +118,7 @@
|
||||
placement="top"
|
||||
><el-icon class="voucher-manage-page__audit-reject-icon"><WarnTriangleFilled /></el-icon
|
||||
></el-tooltip></span></template
|
||||
></el-table-column><el-table-column label="操作" width="320" fixed="right" align="center"
|
||||
></el-table-column><el-table-column label="操作" width="220" fixed="right" align="center"
|
||||
><template #default="{ row }"
|
||||
><div class="voucher-manage-page__actions">
|
||||
<el-link
|
||||
@@ -130,7 +139,7 @@
|
||||
@click="download(row)"
|
||||
>下载</el-link
|
||||
><el-link
|
||||
v-if="row.auditStatus === '审核驳回'"
|
||||
v-if="row.auditStatus === '审核驳回' || row.processStatus === '处理失败'"
|
||||
type="primary"
|
||||
@click="openUpload(row, 'reupload')"
|
||||
>重新上传</el-link
|
||||
@@ -145,7 +154,7 @@
|
||||
@click="openBatchDialog(row)"
|
||||
>更换运单批次</el-link
|
||||
><el-link
|
||||
v-if="row.processStatus === '上传中' || row.auditStatus === '审核驳回'"
|
||||
v-if="row.processStatus === '上传中' || row.processStatus === '处理失败' || row.auditStatus === '审核驳回'"
|
||||
type="danger"
|
||||
@click="removeRow(row)"
|
||||
>删除</el-link
|
||||
@@ -1238,7 +1247,15 @@ const view = async row => {
|
||||
query: { id: row.id, batchNo: row.voucherBatchNo },
|
||||
});
|
||||
};
|
||||
const download = row => window.open(row.fileUrl, '_blank');
|
||||
const download = row => {
|
||||
const url = row?.fileUrl;
|
||||
if (!url) {
|
||||
ElMessage.warning('附件地址为空,无法下载');
|
||||
return;
|
||||
}
|
||||
// 去掉 URL 中 ? 后的临时鉴权参数,避免签名过期导致无法下载
|
||||
window.open(String(url).split('?')[0], '_blank');
|
||||
};
|
||||
const handleAuditPass = row =>
|
||||
ElMessageBox.confirm(`确认审核通过凭证批次"${row.voucherBatchNo}"吗?`, '提示', {
|
||||
type: 'warning',
|
||||
@@ -1329,6 +1346,9 @@ load();
|
||||
color: #f56c6c;
|
||||
cursor: help;
|
||||
}
|
||||
&__process-failed {
|
||||
color: #f56c6c;
|
||||
}
|
||||
&__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
Reference in New Issue
Block a user