| | |
| | | </el-form> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-col :span="24"> |
| | | <el-card shadow="never"> |
| | | <!-- 捐献案例列表 --> |
| | | <el-table v-loading="loading" border :data="donationCaseTableData" @row-click="selectDonotor"> |
| | | <el-table-column label="姓名" align="center" prop="name" /> |
| | | |
| | | <el-table-column label="性别" align="center" prop="sex"> |
| | | <el-table v-loading="loading" border :data="donationCaseTableData"> |
| | | <el-table-column label="案例时间" align="center" prop="donatetime" width="150"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" /> |
| | | <span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="医疗机构" width="200px" align="center" prop="treatmenthospitalname" /> |
| | | <el-table-column label="姓名" align="center" prop="name" width="120" /> |
| | | <el-table-column label="性别" align="center" prop="sex" width="100"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.sys_user_sex" :value="parseInt(scope.row.sex)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="年龄" align="center" prop="age" width="100" /> |
| | | <el-table-column label="报告人" align="center" prop="reportername" width="120" /> |
| | | <el-table-column label="案例归属" align="center" width="200px" prop="deptname" /> |
| | | <el-table-column label="医疗机构" align="center" prop="treatmenthospitalname" /> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" @click="selectDonotor(scope.row)">捐献详情</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- hide-on-single-page --> |
| | | <pagination v-show="total > 0" small layout="prev, pager, next" :total="total" :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" @pagination="getBaseInfoList" /> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="16"> |
| | | <!-- <div class="grid-content bg-purple-dark" style="width:100%;height:800px;background-color:purple"> |
| | | </div> --> |
| | | <!-- <el-col :span="16"> |
| | | <el-card shadow="never"> |
| | | <el-form ref="infoForm" :model="organalForm" label-width="80px"> |
| | | <el-row> |
| | |
| | | <el-form-item label="选择器官"> |
| | | <el-checkbox-group v-model="organalForm.organname"> |
| | | <el-checkbox v-for="dict in dict.type.sys_Organ" :key="dict.value" :label="dict.value" |
| | | @click="changeorganState(dict.value)" @change="changeorganState(dict.value)"> |
| | | @change="changeorganState(dict.value)"> |
| | | {{ dict.label }} |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-card> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | |
| | | <!-- 添加或修改器官分配对话框 --> |
| | |
| | | // this.queryParams.residencetown = this.$refs.areaSelect.getQu(); |
| | | listDonatebaseinfo(this.queryParams).then((response) => { |
| | | this.donationCaseTableData = response.rows; |
| | | console.log(this.donationCaseTableData, "Donation"); |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | |
| | | }, |
| | | //点击捐献案例列表触发方法 |
| | | selectDonotor(row, column, event) { |
| | | this.selectedRow = row; |
| | | this.curdonorno = row.donorno; |
| | | this.curdonorname = row.name; |
| | | this.curage = row.age; |
| | | this.curInfoid = row.id; |
| | | this.distributionForm.donorno = row.donorno; |
| | | this.GetDonortedList(); |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: row.id, |
| | | organType: "edit", |
| | | } |
| | | }); |
| | | // this.selectedRow = row; |
| | | // this.curdonorno = row.donorno; |
| | | // this.curdonorname = row.name; |
| | | // this.curage = row.age; |
| | | // this.curInfoid = row.id; |
| | | // this.distributionForm.donorno = row.donorno; |
| | | // this.GetDonortedList(); |
| | | }, |
| | | //获取病人已捐献的器官列表 |
| | | GetDonortedList() { |
| | |
| | | //更新捐献器官表 |
| | | this.form.allocationstatus = this.form.organstate; |
| | | updateOrganallocation(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | //获取器官信息 |
| | | getDonateorgan(this.form.organid).then((response2) => { |
| | |
| | | |
| | | organData.transplanthospitalno = this.form.transplanthospitalno; |
| | | try { |
| | | organData.transplanthospitalname = |
| | | this.$refs.tranHosSelect.getOptionByValue( |
| | | organData.transplanthospitalno |
| | | ).organizationname; |
| | | organData.transplanthospitalname = this.$refs.tranHosSelect.getOptionByValue(organData.transplanthospitalno).organizationname; |
| | | } catch { |
| | | organData.transplanthospitalname = |
| | | organData.transplanthospitalno; |
| | | organData.transplanthospitalname = organData.transplanthospitalno; |
| | | } |
| | | //更新捐献器官表 |
| | | updateDonateorgan(organData).then((response3) => { |
| | |
| | | transplantdoct: this.form.transplantdoct, |
| | | }; |
| | | try { |
| | | organaManageForm.transplanthospitalname = |
| | | this.$refs.tranHosSelect.getOptionByValue( |
| | | organaManageForm.transplanthospitalno |
| | | ).organizationname; |
| | | organaManageForm.transplanthospitalname = this.$refs.tranHosSelect.getOptionByValue(organaManageForm.transplanthospitalno).organizationname; |
| | | } catch { |
| | | organaManageForm.transplanthospitalname = |
| | | organaManageForm.transplanthospitalno; |
| | | organaManageForm.transplanthospitalname = organaManageForm.transplanthospitalno; |
| | | } |
| | | |
| | | |
| | | addDonateorgan(organaManageForm).then((response) => { |
| | | this.loading = false; |
| | |
| | | //查询获取新增的器官表id |
| | | let organSearchParam = { |
| | | infoid: this.curInfoid, |
| | | donorno: this.curdonorno, |
| | | // donorno: this.curdonorno, |
| | | organno: this.form.organnumber, |
| | | //donorname: this.curdonorname, |
| | | //organname: this.$refs.organNameSelect.label, |
| | | }; |
| | | this.loading = false; |
| | | |
| | | listDonateorgan(organSearchParam).then((response2) => { |
| | | this.showDistributionForm = false; |
| | | if (response2.code == 200 && response2.rows.length > 0) { |
| | | for (let i = 0; i < response2.rows.length; i++) { |
| | | console.log('1', this.form) |
| | | if (response2.rows[i].organstate == '2') { |
| | | this.form.organid = response2.rows[i].id; |
| | | this.form.residenceprovincename = this.defultAddress.sheng; |
| | | this.form.residencecityname = this.defultAddress.shi; |
| | | this.form.residencetownname = this.defultAddress.qu; |
| | | // this.form.residenceprovincename = this.defultAddress.sheng; |
| | | // this.form.residencecityname = this.defultAddress.shi; |
| | | // this.form.residencetownname = this.defultAddress.qu; |
| | | |
| | | console.log('2', this.form) |
| | | addOrganallocation(this.form).then((response) => { |
| | | |
| | | console.log('3', response) |
| | | //this.$modal.msgSuccess("新增成功"); |
| | | this.loading = false; |
| | | this.GetDonortedList(); |
| | | this.showDistributionForm = false; |
| | | this.$modal.msgSuccess("捐献器官分配信息保存成功!"); |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | this.GetDonortedList(); |
| | | this.showDistributionForm = false; |
| | | }); |
| | | } |
| | | }); |