From ced45351fc130e30d3fe47dc49ed388bb474eea8 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 24 三月 2026 13:53:21 +0800
Subject: [PATCH] fix: 出库编辑,去掉出库人
---
src/views/consumablesLogistics/dispatchLog/Record.vue | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/src/views/consumablesLogistics/dispatchLog/Record.vue b/src/views/consumablesLogistics/dispatchLog/Record.vue
index ab73b46..ebbc8f9 100644
--- a/src/views/consumablesLogistics/dispatchLog/Record.vue
+++ b/src/views/consumablesLogistics/dispatchLog/Record.vue
@@ -146,16 +146,6 @@
placeholder="璇疯緭鍏ユ暟閲�"
/>
</el-form-item>
- <el-form-item
- label="閲囪喘鍛�"
- prop="purchaser"
- :rules="[{ required: true, message: '璇疯緭鍏ラ噰璐憳', trigger: ['blur', 'change'] }]"
- >
- <el-input
- v-model="editForm.purchaser"
- placeholder="璇疯緭鍏ラ噰璐憳"
- />
- </el-form-item>
</el-form>
<template #footer>
@@ -211,13 +201,11 @@
const editForm = reactive({
id: undefined,
qualitity: undefined,
- purchaser: "",
});
const handleEdit = (row) => {
editForm.id = row.id;
editForm.qualitity = row.qualitity;
- editForm.purchaser = row.purchaser ?? "";
isShowEditModal.value = true;
};
@@ -226,7 +214,6 @@
editForm.id = undefined;
editForm.qualitity = undefined;
- editForm.purchaser = "";
editFormRef.value?.clearValidate?.();
};
@@ -234,7 +221,8 @@
const handleEditSubmit = () => {
editFormRef.value?.validate?.((valid) => {
if (!valid) return;
- editStockOut({ ...editForm }).then(() => {
+ const { purchaser, ...payload } = editForm || {};
+ editStockOut(payload).then(() => {
closeEditModal();
proxy.$modal.msgSuccess("缂栬緫鎴愬姛");
getList();
--
Gitblit v1.9.3