yyb
2025-08-02 2182727cf18c94d94d8745e860784f5bc5f805ef
pages/product/report/components/saveForm.vue
@@ -149,6 +149,11 @@
      required: true,
      default: () => ({}),
    },
    dutyId: {
      type: String,
      required: true,
      default: '',
    },
  },
  data() {
    return {
@@ -222,6 +227,7 @@
      this.form.Persons = this.operationTaskList.Persons;
      this.form.productStaffIds = this.operationTaskList.productStaffIds;
      this.form.productStaffs = this.operationTaskList.productStaffs;
      this.form.dutyRecordId = this.dutyId;
      this.operationTaskList.productOutputList = []; // 创建一个空数组
      this.operationTaskList.productOutputList.push(this.form); // 向数组中添加元素
      console.log("this.operationTaskList", this.operationTaskList);