yyb
2025-08-02 2182727cf18c94d94d8745e860784f5bc5f805ef
pages/product/report/components/saveForm.vue
@@ -10,7 +10,7 @@
    :loading="loading"
  >
    <view class="packing-registration-param">
      <scroll-view scroll-y="true" style="height: 100%">
      <scroll-view scroll-y="true" style="height: 100%;transform: translateZ(0);-webkit-font-smoothing: antialiased;">
        <view class="packing-registration-param-view">
          <view class="packing-registration-param-item param-extra">
            <view class="packing-registration-param-item-left">
@@ -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);