fix: 审计日志跳过向量字段,修复 numpy 数组比较异常;补全三大入库单更新向量提取,统一删除确认弹窗
This commit is contained in:
@ -226,11 +226,7 @@
|
||||
<el-icon><Printer/></el-icon> 打印
|
||||
</el-button>
|
||||
<el-button link type="primary" size="default" @click="handleUpdate(row)">编辑</el-button>
|
||||
<el-popconfirm title="确定删除该条记录吗?不可恢复。" @confirm="handleDelete(row)" width="220">
|
||||
<template #reference>
|
||||
<el-button link type="danger" size="default" v-permission="'inbound_buy:delete'">删除</el-button>
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
<el-button link type="danger" size="default" @click="handleDelete(row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -1631,7 +1627,22 @@ const handleSortChange = ({ column, prop, order }: any) => {
|
||||
fetchData()
|
||||
}
|
||||
|
||||
const handleDelete = async (row: any) => { try { await deleteBuyInbound(row.id); ElMessage.success('删除成功'); fetchData() } catch (e) { ElMessage.error('删除失败') } }
|
||||
const handleDelete = (row: any) => {
|
||||
const recordName = row.sku || row.barcode || '此项';
|
||||
ElMessageBox.confirm(
|
||||
`是否确认删除采购入库记录 "${recordName}" ?`,
|
||||
"警告",
|
||||
{ confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }
|
||||
).then(async () => {
|
||||
try {
|
||||
await deleteBuyInbound(row.id);
|
||||
ElMessage.success('删除成功');
|
||||
fetchData();
|
||||
} catch (e) {
|
||||
ElMessage.error('删除失败');
|
||||
}
|
||||
}).catch(() => {});
|
||||
};
|
||||
|
||||
// ------------------------------------
|
||||
// 打印逻辑
|
||||
|
||||
Reference in New Issue
Block a user