From ab27e3ac8c7e90fd267bd6c3f0c0e06f25469697 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 23 九月 2025 14:54:07 +0800
Subject: [PATCH] feat: 添加绞线/拉丝报工附件功能
---
src/pages/production/twist/receive/plate/form.vue | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/pages/production/twist/receive/plate/form.vue b/src/pages/production/twist/receive/plate/form.vue
index 1d584b0..8358eba 100644
--- a/src/pages/production/twist/receive/plate/form.vue
+++ b/src/pages/production/twist/receive/plate/form.vue
@@ -44,16 +44,23 @@
import { useToast } from "wot-design-uni";
const emits = defineEmits(["refresh"]);
+const paramsId = ref();
const toast = useToast();
const { form: model } = useFormData({
diskMaterial: undefined, // 鐩樺叿绫诲瀷
model: undefined, // 灏哄
amount: undefined, // 鏁伴噺
supplier: undefined,
+ type: "鐩樺叿",
});
const submit = async () => {
- const { code } = await TwistApi.addStrandedWireDish([model]);
+ const { code } = await TwistApi.addStrandedWireDish([
+ {
+ wireId: paramsId.value,
+ ...model,
+ },
+ ]);
if (code == 200) {
toast.success("鏂板鎴愬姛");
emits("refresh");
@@ -61,6 +68,10 @@
}
};
+onLoad((options: any) => {
+ paramsId.value = options.id;
+});
+
defineExpose({
submit,
});
--
Gitblit v1.9.3