| | |
| | | if (!this.formData.id) { |
| | | insertAuxiliaryWorkingHoursDay(this.formData).then((res) => { |
| | | this.addLoad = false; |
| | | if (res.code == 201) return; |
| | | this.$message.success("已提交"); |
| | | this.formData.number = ""; |
| | | this.formData.amount = ""; |
| | |
| | | } else { |
| | | updateAuxiliaryWorkingHoursDay(this.formData).then((res) => { |
| | | this.addLoad = false; |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.formData.number = ""; |
| | | this.formData.amount = ""; |
| | |
| | | }); |
| | | approve({ auxiliaryWorkingHoursDays: auxiliaryWorkingHoursDays }).then( |
| | | (res) => { |
| | | if (res.code === 201) { |
| | | return; |
| | | } |
| | | this.submitBatchCheckDialog(); |
| | | this.$message.success("操作成功"); |
| | | } |
| | |
| | | } else { |
| | | this.checkLoadY = false; |
| | | } |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.checkVisible = false; |
| | | this.refreshTable("page"); |