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()