From 960407a990d4a6591998945a4b66ca80854a1236 Mon Sep 17 00:00:00 2001 From: 17630416519 Date: Tue, 13 Jan 2026 16:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=8F=B0=E8=B4=A6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Material/MaterialList.vue | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/views/masterDataManagement/Material/MaterialList.vue b/src/views/masterDataManagement/Material/MaterialList.vue index 9824e9f..400001a 100644 --- a/src/views/masterDataManagement/Material/MaterialList.vue +++ b/src/views/masterDataManagement/Material/MaterialList.vue @@ -45,11 +45,11 @@ v-if="columns.showColumn('id')" /> - + - @@ -57,8 +57,10 @@ v-if="columns.showColumn('unit')" /> @@ -324,13 +326,26 @@ const state = reactive({ }) const { form, rules, options, single, multiple } = toRefs(state) +function handleDelete(row) { + const Ids = row.id || ids.value + proxy + .$confirm(`是否确认删除数据?`) + .then(function () { + return delBaseMaterialList(Ids) + }) + .then(() => { + getList() + proxy.$modal.msgSuccess('删除成功') + WorkOrderLog({ workorder: row.workorder, log: '删除' }) + }) +} function submitForm() { proxy.$refs["formRef"].validate((valid) => { if (valid) { if (form.value.id != undefined && opertype.value === 2) { - updateMaterialType(form.value).then((res) => { + updateBaseMaterialList(form.value).then((res) => { proxy.$modal.msgSuccess("修改成功") open.value = false getList()