| | |
| | | }, |
| | | handleQuery() {}, |
| | | resetQuery() { |
| | | this.patientqueryParams.donorname = null; |
| | | this.patientqueryParams.donorno = null; |
| | | this.patientqueryParams.donorchargeid = null; |
| | | this.handleAddpatient(); |
| | | }, |
| | |
| | | if (valid) { |
| | | this.$modal.loading("正在提交,请稍候!"); |
| | | //保存 |
| | | console.log(1); |
| | | this.form.serviceFunds = this.donorchargeorgans; |
| | | console.log(2); |
| | | if (this.form.id != null) { |
| | | updateFundtax(this.form).then(res1 => { |
| | | if (res1.code == 200) { |
| | | console.log(3); |
| | | this.$modal.msgSuccess("保存成功!"); |
| | | getFundtax(this.curId).then(response => { |
| | | getFundtax(this.form.id).then(response => { |
| | | this.form = response.data; |
| | | if (this.form.serviceFunds[0]) { |
| | | this.donorchargeorgans = this.form.serviceFunds; |
| | |
| | | } else { |
| | | addFundtax(this.form).then(response => { |
| | | if (response.code == 200) { |
| | | this.form.id = response.data.fundTaxId; |
| | | this.$modal.msgSuccess("新增成功!"); |
| | | getFundtax(response.msg).then(response => { |
| | | this.form = response.data; |
| | | getFundtax(response.data.fundTaxId).then(res => { |
| | | this.form = res.data; |
| | | if (this.form.serviceFunds[0]) { |
| | | this.donorchargeorgans = this.form.serviceFunds; |
| | | this.donorchargeorgans.forEach(item => { |