| | |
| | | @confirm="confirm" |
| | | @cancel="cancel" |
| | | :async-close="true" |
| | | :loading="loading" |
| | | > |
| | | <view class="packing-registration-param"> |
| | | <scroll-view scroll-y="true" style="height: 100%"> |
| | |
| | | return { |
| | | show: false, |
| | | form: {}, |
| | | loading: false |
| | | }; |
| | | }, |
| | | methods: { |
| | | confirm() { |
| | | if (this.loading) return; |
| | | if (!this.form.outerDiameter) { |
| | | this.$u.toast("请输入成品外径测量值"); |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | |
| | | this.operationTaskList.productOutputList = []; // 创建一个空数组 |
| | | this.operationTaskList.productOutputList.push(this.form); // 向数组中添加元素 |
| | | console.log("this.operationTaskList", this.operationTaskList); |
| | | this.loading = true; |
| | | this.$u.api.workReporting |
| | | .submitPDA(this.operationTaskList) |
| | | .then((res) => { |
| | | this.$emit("update"); |
| | | this.$refs.uModal.cancel(); |
| | | }) |
| | | .finally(() => { |
| | | this.loading = false; |
| | | this.$refs.uModal.clearLoading(); |
| | | }); |
| | | }, |
| | | cancel() { |