yyb
2025-08-02 2182727cf18c94d94d8745e860784f5bc5f805ef
报工页面传递dutyRecordId,机台id
已修改2个文件
8 ■■■■■ 文件已修改
pages/product/report/components/saveForm.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/product/report/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);
pages/product/report/index.vue
@@ -153,6 +153,7 @@
    <saveForm
      ref="saveForm"
      :operationTaskList="this.form"
      :dutyId="dutyId"
      @update="handleUpdate"
    />
    <u-modal
@@ -613,6 +614,7 @@
      }
      // 如果有dutyNo,获取人员列表
      if (val.dutyId) {
        this.dutyId = val.dutyId;
        this.getPersonList(val.dutyId);
      }
    },