采购单审核

This commit is contained in:
Teo
2025-08-14 18:53:01 +08:00
parent a6c2df39e2
commit 8acfe27a8d
5 changed files with 510 additions and 3 deletions

View File

@ -126,7 +126,7 @@
<div class="flex flex-wrap">
<div class="flex">
<div class="w3"></div>
<el-button link type="primary" icon="Finished" @click="handleUpload(scope.row)" v-hasPermi="['cailiaoshebei:purchaseDoc:edit']">
<el-button link type="primary" icon="Finished" @click="handleAudit(scope.row)" v-hasPermi="['cailiaoshebei:purchaseDoc:edit']">
审核</el-button
>
<el-button link type="primary" icon="Upload" @click="handleUpload(scope.row)" v-hasPermi="['cailiaoshebei:purchaseDoc:edit']"
@ -428,7 +428,7 @@ const getBatchList = async () => {
planCode: undefined,
projectId: currentProject.value?.id
});
batchOptions.value = res.rows;
batchOptions.value = res.rows.filter((item) => item.status == 'finish');
};
const getSupplierList = async () => {
@ -473,6 +473,15 @@ const handleSuccess = (list, res: any) => {
form.value.feedbackUrl = res.data.url;
};
/** 审核按钮操作 */
const handleAudit = async (row?: PurchaseDocVO) => {
proxy?.$tab.closePage(route);
proxy?.$tab.openPage('/materials/purchaseDoc/indexEdit', '审核采购联系单', {
id: row.id,
type: 'update'
});
};
onMounted(() => {
getList();
getSupplierList();