fix: 第一版错误修改前的存档。
This commit is contained in:
@@ -146,6 +146,22 @@ const remove = (row: any) => {
|
||||
useRemove(removeUrl, row.id, "_message.production.finishedproductshipment.delete_message");
|
||||
};
|
||||
|
||||
// 表单状态标签类型映射
|
||||
const getFormStatusTagType = (code: number | null): string => {
|
||||
const tagTypeMap: Record<number, string> = {
|
||||
0: "info", // 未审核
|
||||
1: "success", // 已审核
|
||||
2: "danger", // 已驳回
|
||||
3: "warning", // 未完成
|
||||
4: "success", // 已完成
|
||||
5: "primary", // 入库中
|
||||
6: "info", // 已导入
|
||||
7: "warning", // 审核中
|
||||
8: "danger", // 已退回
|
||||
};
|
||||
return tagTypeMap[code ?? -1] || "info";
|
||||
};
|
||||
|
||||
const approve = (row: any) => {
|
||||
ElMessageBox.confirm($t("_message.production.finishedproductshipment.approve_confirm"), $t("_level.warning"), {
|
||||
confirmButtonText: $t("_button.confirm"),
|
||||
@@ -265,7 +281,11 @@ const handleReset = () => {
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('_prop.production.finishedproductshipment.formMark')" prop="formMark" />
|
||||
<el-table-column :label="$t('_prop.common.createDate')" prop="createDate" :formatter="formatDate" />
|
||||
<DefaultStatusSwitchColumn status-param-name="formStatus" :status-label-mapping="getFormStatusLabel" />
|
||||
<DefaultStatusSwitchColumn
|
||||
status-param-name="formStatus"
|
||||
:status-label-mapping="getFormStatusLabel"
|
||||
:tag-type-mapping="getFormStatusTagType"
|
||||
/>
|
||||
<DefaultOperateButtonColumn @operate-button-click="operateButtonClick" :auth-show-func="authShowFunc" />
|
||||
</template>
|
||||
<template #item-content="{ itemData }">
|
||||
|
||||
Reference in New Issue
Block a user