| | |
| | | this.diaLoading = true |
| | | getInconsistentDistributionOne({ distributionId: row.distributionId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | this.distributionDetailList = this.form.distributionDetailList |
| | | this.distributionProportion = this.form.distributionProportion |
| | |
| | | if (this.operationType === 'add') { |
| | | addInconsistentDistribution(internalPlan).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInconsistentDistribution(internalPlan).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeDia() |
| | | }).catch(err => { |