fix
This commit is contained in:
@@ -185,19 +185,24 @@
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="purchaseType" label="采购形式" width="120" align="center">
|
||||
<el-table-column prop="purchaseMode" label="采购形式" width="130" align="center">
|
||||
<template #header>
|
||||
<el-icon><Shop /></el-icon>
|
||||
<span style="margin-left: 4px">采购形式</span>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.purchaseType === '1'" type="success">网上商城</el-tag>
|
||||
<el-tag v-else-if="scope.row.purchaseType === '2'" type="warning">市场采购</el-tag>
|
||||
<el-tag v-else-if="scope.row.purchaseType === '3'" type="danger">商务洽谈</el-tag>
|
||||
<el-tag v-else-if="scope.row.purchaseType === '4'" type="primary">委托采购</el-tag>
|
||||
<el-tag v-else-if="scope.row.purchaseType === '5'" type="info">询价</el-tag>
|
||||
<el-tag v-else-if="scope.row.purchaseType === '100'" type="success">公开招标</el-tag>
|
||||
<el-tag v-else-if="scope.row.purchaseType === '8'" type="success">网上商城</el-tag>
|
||||
<el-tag v-if="scope.row.purchaseMode === '1'" type="success">部门自行采购</el-tag>
|
||||
<el-tag v-else-if="scope.row.purchaseMode === '2'" type="primary">学校统一采购</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="purchaseType" label="采购方式" width="120" align="center">
|
||||
<template #header>
|
||||
<el-icon><Shop /></el-icon>
|
||||
<span style="margin-left: 4px">采购方式</span>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.purchaseTypeLabel" type="primary">{{ scope.row.purchaseTypeLabel }}</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -613,6 +618,7 @@ const handleSubmit = async (row: any) => {
|
||||
/** 操作栏「更多」菜单项配置 */
|
||||
const getActionMenuItems = (row: any) => {
|
||||
const isTemp = row?.status === '-1';
|
||||
const isRunning = row?.status === '0';
|
||||
const isCompleted = row?.status === '1';
|
||||
const items = [
|
||||
{
|
||||
@@ -661,13 +667,13 @@ const getActionMenuItems = (row: any) => {
|
||||
command: 'representor',
|
||||
label: '采购代表',
|
||||
icon: User,
|
||||
visible: () => isDeptAuditRole.value,
|
||||
visible: () => isCompleted && isDeptAuditRole.value,
|
||||
},
|
||||
{
|
||||
command: 'updateFiles',
|
||||
label: '更新材料',
|
||||
icon: RefreshRight,
|
||||
visible: () => isCompleted && hasAuth('purchase_purchasingapply_edit'),
|
||||
visible: () => (isCompleted || isRunning) && hasAuth('purchase_purchasingapply_edit'),
|
||||
},
|
||||
// {
|
||||
// command: 'downloadFileApply',
|
||||
@@ -933,5 +939,39 @@ onMounted(() => {
|
||||
.status-tag-clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
:deep(.el-tag) {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
:deep(.el-tag--success) {
|
||||
--el-tag-bg-color: #e8f5e9;
|
||||
--el-tag-border-color: #c8e6c9;
|
||||
--el-tag-text-color: #2e7d32;
|
||||
}
|
||||
|
||||
:deep(.el-tag--warning) {
|
||||
--el-tag-bg-color: #fff8e1;
|
||||
--el-tag-border-color: #ffecb3;
|
||||
--el-tag-text-color: #f57c00;
|
||||
}
|
||||
|
||||
:deep(.el-tag--danger) {
|
||||
--el-tag-bg-color: #ffebee;
|
||||
--el-tag-border-color: #ffcdd2;
|
||||
--el-tag-text-color: #c62828;
|
||||
}
|
||||
|
||||
:deep(.el-tag--primary) {
|
||||
--el-tag-bg-color: #e3f2fd;
|
||||
--el-tag-border-color: #bbdefb;
|
||||
--el-tag-text-color: #1565c0;
|
||||
}
|
||||
|
||||
:deep(.el-tag--info) {
|
||||
--el-tag-bg-color: #f5f5f5;
|
||||
--el-tag-border-color: #e0e0e0;
|
||||
--el-tag-text-color: #616161;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user