| | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | operationTaskId: { |
| | | operationTaskList: { |
| | | type: Object, |
| | | required: true, |
| | | default: () => ({}), |
| | |
| | | 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(); |
| | | }); |
| | |
| | | this.form = {}; |
| | | }, |
| | | open(val) { |
| | | console.log('11daidecanshuskk',val) |
| | | this.show = true; |
| | | this.form = val; |
| | | this.form = val.data; |
| | | }, |
| | | }, |
| | | }; |