| | |
| | | value-format="yyyy-MM-dd HH:mm:ss" placeholder="移植时间"> |
| | | </el-date-picker> </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remark" align="center" label="备注"> |
| | | <el-table-column prop="organchargedesc" align="center" label="备注"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.remark" placeholder="备注" /> |
| | | <el-input v-model="scope.row.organchargedesc" placeholder="备注" /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | | import { regionDataPlus, CodeToText } from "element-china-area-data"; |
| | | import { getDonorcharge, addDonorcharge, updateDonorcharge, listDonorchargeorgan, getDonorchargeorgan, delDonorchargeorgan, addDonorchargeorgan, updateDonorchargeorgan, exportDonorchargeorgan } from "@/api/project/donorcharge"; |
| | | import { listDonatebaseinfo } from "@/api/project/donatebaseinfo"; |
| | | import { getDonorcharge, addDonorcharge, updateDonorcharge } from "@/api/project/donorcharge"; |
| | | import { listDonorchargeorgan, delDonorchargeorgan, saveDonorchargeorgan } from "@/api/project/donorcharge"; |
| | | import { listDonatecomporgan } from "@/api/project/donatecompletioninfo"; |
| | | import { listOrgancharge } from "@/api/project/organcharge"; |
| | | import Li_area_select from "@/components/Address"; |
| | |
| | | userprofile: {}, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 列表参数 |
| | | table: {}, |
| | | reimbursementList: [], |
| | | |
| | | // 表单校验 |
| | |
| | | this.$refs["table"].doLayout(); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | destroyed() { |
| | | window.removeEventListener("beforeunload", e => this.beforeunloadFn(e)); |
| | | }, //生命周期 - 销毁完成 |
| | |
| | | this.operationType = this.$route.query.operation; |
| | | this.curId = this.$route.query.id; |
| | | this.curCase = this.$route.query.data; |
| | | console.log("this.$route.query",this.$route.query); |
| | | console.log("this.$route.query", this.$route.query); |
| | | |
| | | if (this.operationType == "add") { |
| | | this.title = "新建案例器官费用表"; |
| | |
| | | handleUpdate() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "修改捐献案例器官费用表"; |
| | | |
| | | getDonorcharge(this.curId).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改捐献案例器官费用表"; |
| | | console.log("getDonorcharge", response); |
| | | |
| | | //器官费用信息 |
| | | this.organParams.donorchargeid = this.curId; |
| | | console.log("this.organParams", this.organParams); |
| | | listDonorchargeorgan(this.organParams).then(res => { |
| | | console.log("listDonorchargeorgan", res); |
| | | this.donorchargeorgans = res.rows; |
| | | if (this.donorchargeorgans.length > 0) { |
| | | } else { |
| | |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateDonorcharge(this.form).then(response => { |
| | | if (response.code == 200) { |
| | | this.$modal.msgSuccess("保存成功!"); |
| | | for (let k = 0; k < this.donorchargeorgans.length; k++) { |
| | | this.donorchargeorgans[k].donorchargeID = this.form.id; |
| | | } |
| | | |
| | | updateDonorcharge(this.form).then(res1 => { |
| | | if (res1.code == 200) { |
| | | saveDonorchargeorgan(this.donorchargeorgans).then(res2 => { |
| | | if (res2.code == 200) { |
| | | this.$modal.msgSuccess("保存成功!"); |
| | | this.open = false; |
| | | } |
| | | }); |
| | | } |
| | | this.open = false; |
| | | }); |
| | | } else { |
| | | addDonorcharge(this.form).then(response => { |
| | | if (response.code == 200) { |
| | | console.log(response); |
| | | this.$modal.msgSuccess("保存成功!"); |
| | | console.log("addDonorcharge", response); |
| | | //保存前校验数据 |
| | | for (let k = 0; k < this.donorchargeorgans.length; k++) { |
| | | this.donorchargeorgans[k].donorchargeid = response.data.id; |
| | | } |
| | | saveDonorchargeorgan(this.donorchargeorgans).then(res2 => { |
| | | if (res2.code == 200) { |
| | | this.$modal.msgSuccess("保存成功!"); |
| | | this.open = false; |
| | | } |
| | | }); |
| | | } |
| | | this.open = false; |
| | | }); |
| | | } |
| | | } |