曹睿
2025-05-21 15d3b001720d3baa8a30f5f6a105a6809e9ec063
src/pages/production/twist/receive/steelCore/form.vue
@@ -43,6 +43,7 @@
import { useToast } from "wot-design-uni";
const emits = defineEmits(["refresh"]);
const paramsId = ref();
const toast = useToast();
const { form: model } = useFormData({
  model: undefined, // 规格型号
@@ -53,7 +54,12 @@
});
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 +67,10 @@
  }
};
onLoad((options: any) => {
  paramsId.value = options.id;
});
defineExpose({
  submit,
});