yyb
2 天以前 76486524892abdfd3039eedc28d83cbbfb56d042
pages/product/report/components/saveForm.vue
@@ -100,7 +100,10 @@
              <text class="item-one item-two">生产速度</text>
            </view>
            <view class="packing-registration-param-item-right">
              <u-input class="item-one item-two" v-model="form.productionSpeed" />
              <u-input
                class="item-one item-two"
                v-model="form.productionSpeed"
              />
            </view>
          </view>
        </view>
@@ -151,15 +154,15 @@
        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.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.operationTaskList)
        .then((res) => {
          this.$emit('update')
          this.$emit("update");
          this.$refs.uModal.cancel();
        });
    },
@@ -169,7 +172,7 @@
    },
    open(val) {
      this.show = true;
       this.form = val.data;
      this.form = val.data;
    },
  },
};