yyb
2 天以前 fcfa50cf224f515baffb647d75f53797575be8df
pages/product/report/components/saveForm.vue
@@ -112,7 +112,7 @@
<script>
export default {
  props: {
    operationTaskId: {
    operationTaskList: {
      type: Object,
      required: true,
      default: () => ({}),
@@ -151,10 +151,14 @@
        this.$refs.uModal.clearLoading(); // 清除加载状态
        return;
      }
     this.operationTaskList.operationTaskId = this.operationTaskList.id
     this.form.operationTaskId = this.operationTaskList.id
     this.operationTaskList.productOutputList = []; // 创建一个空数组
     this.operationTaskList.productOutputList.push(this.form); // 向数组中添加元素
     console.log('this.operationTaskList',this.operationTaskList)
      this.$u.api.workReporting
        .submitPDA({ ...this.form, operationTaskId: this.operationTaskId.id })
        .submitPDA(this.operationTaskList)
        .then((res) => {
          console.log("res", res);
          this.$emit('update')
          this.$refs.uModal.cancel();
        });
@@ -164,9 +168,8 @@
      this.form = {};
    },
    open(val) {
      console.log('11daidecanshuskk',val)
      this.show = true;
       this.form = val;
       this.form = val.data;
    },
  },
};