| | |
| | | // 工作日历提交 |
| | | CapacityPlanningGivePlanSubmit() { |
| | | const formData = new FormData() |
| | | formData.append('CaptPlanId', this.rowData.CaptPlanId)// 产能资源id |
| | | formData.append('WkshopCode', this.rowData.CaptPlanWorkShopid)// 车间编码 |
| | | formData.append('CapUnitCode', this.rowData.CaptPlanDeviceTypeid)// 生产单元(产线编码) |
| | | formData.append('CaptSetupCode', '') |
| | | formData.append('CaptPlanType', this.rowData.CaptPlanType)// 产能类型 |
| | | console.log(this.defArr, 555) |
| | | formData.append('WorkList', JSON.stringify(this.defArr)) |
| | | console.log(formData, 666) |
| | | |
| | | for (const [a, b] of formData.entries()) { |
| | | console.log(a, ':', b) |
| | | } |
| | | |
| | | formData.append('wkshopcode', this.rowData.CaptPlanWorkShopid)// 车间编码 |
| | | formData.append('capunitcode', this.rowData.CaptPlanDeviceTypeid)// 生产单元编码(产线编码) |
| | | formData.append('captplanid', this.rowData.CaptPlanId)// 产能资源id |
| | | formData.append('capsetupcode', this.rowData.CaptPlanWorkShiftCode) // 默认方案编码 |
| | | formData.append('captplantype', this.rowData.CaptPlanType)// 资源类型 |
| | | formData.append('worklist', JSON.stringify(this.defArr))// 工作日历数据集 |
| | | // for (const [a, b] of formData.entries()) { |
| | | // console.log(a, ':', b) |
| | | // } |
| | | CapacityPlanningGivePlanSubmit(formData).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('保存成功!') |