|
|
|
@ -131,18 +131,25 @@
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
v-loading="auditRecordLoading"
|
|
|
|
v-loading="auditRecordLoading"
|
|
|
|
:data="auditRecordList"
|
|
|
|
:data="auditRecordList"
|
|
|
|
|
|
|
|
border
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
:stripe="true"
|
|
|
|
:stripe="true"
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column type="index" :label="t('ErpStock.Out.index')" align="center" width="80" />
|
|
|
|
<el-table-column label="变更前状态" prop="fromStatus" align="center" min-width="110">
|
|
|
|
<el-table-column :label="t('ErpStock.Out.operator')" align="center" prop="creatorName" min-width="120" />
|
|
|
|
<template #default="scope">
|
|
|
|
<el-table-column :label="t('ErpStock.Out.operateTime')" align="center" prop="createTime" :formatter="dateFormatter" min-width="180" />
|
|
|
|
<dict-tag :type="DICT_TYPE.ERP_AUDIT_STATUS" :value="scope.row.fromStatus" />
|
|
|
|
<el-table-column :label="t('ErpStock.Out.operateAction')" align="center" min-width="120">
|
|
|
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
|
|
|
{{ formatAuditAction(row) }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column :label="t('ErpStock.Out.operateDesc')" align="center" prop="remark" min-width="180" />
|
|
|
|
<el-table-column label="变更后状态" prop="toStatus" align="center" min-width="110">
|
|
|
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
|
|
<dict-tag :type="DICT_TYPE.ERP_AUDIT_STATUS" :value="scope.row.toStatus" />
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="目标审核人" prop="targetUserName" min-width="120" />
|
|
|
|
|
|
|
|
<el-table-column label="操作人" prop="creatorName" min-width="120" />
|
|
|
|
|
|
|
|
<el-table-column label="操作时间" prop="createTime" :formatter="dateFormatter" min-width="170" />
|
|
|
|
|
|
|
|
<el-table-column label="备注" prop="remark" min-width="160" show-overflow-tooltip />
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
@ -248,12 +255,6 @@ const getAuditRecordList = async (id: number) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const formatAuditAction = (row: StockOutApproveRecordVO) => {
|
|
|
|
|
|
|
|
if (row.actionType === 'SUBMIT') return t('ErpStock.Out.submitAudit')
|
|
|
|
|
|
|
|
if (row.actionType === 'AUDIT') return t('ErpStock.Out.auditApprove')
|
|
|
|
|
|
|
|
return row.actionType || '-'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const normalizeUserId = (value: any) => {
|
|
|
|
const normalizeUserId = (value: any) => {
|
|
|
|
if (value === undefined || value === null || value === '') return undefined
|
|
|
|
if (value === undefined || value === null || value === '') return undefined
|
|
|
|
return String(value)
|
|
|
|
return String(value)
|
|
|
|
|