| | |
| | | <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="handleUpdate(scope.row)" |
| | | v-hasPermi="['project:donatebaseinfo:edit']">修改</el-button> |
| | | v-hasPermi="['project:donatebaseinfo:edit']">详情</el-button> |
| | | |
| | | <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete" |
| | | <!-- <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" v-hasPermi="['project:donatebaseinfo:remove']">删除</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" @click="handletermination(scope.row)" |
| | | v-hasPermi="['project:donatebaseinfo:edit']">终止</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-refrigerator" @click="handledownload(scope.row)">下载</el-button> |
| | | <el-button v-if="scope.row.recordstate == 0 || scope.row.recordstate == 3" size="mini" type="text" |
| | | icon="el-icon-thumb" @click="handleapproval(scope.row)">上报审核</el-button> |
| | | icon="el-icon-thumb" @click="handleapproval(scope.row)">上报审核</el-button> --> |
| | | <!-- 撤销申请 --> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item align="left" label="姓名" prop="name"> |
| | | <el-input v-model="form.name" placeholder="请输入姓名" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="性别" prop="sex"> |
| | | <el-select v-model="form.sex" placeholder="请选择性别"> |
| | | <el-option v-for="dict in dict.type.sys_user_sex" :key="dict.label" :label="dict.label" |
| | | :value="parseInt(dict.value)"></el-option> |
| | | </el-select> |
| | | <el-input v-model="form.name" placeholder="必填项" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | |
| | | <el-input v-model="form.nativeplace" placeholder="请输入国籍" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="国籍" prop="nationality"> |
| | | <el-input v-model="form.nationality" placeholder="请输入国籍" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="证件类型" prop="idcardtype"> |
| | |
| | | <el-form-item label="证件号码" prop="idcardno"> |
| | | <el-input style="width: 174px" ref="updateBSvalue" class="sfzcode" v-model="form.idcardno" |
| | | placeholder="请输入证件号码" @blur="updateMessage" /> |
| | | </el-form-item> </el-col><el-col :span="6"> |
| | | <el-form-item label="国籍" prop="nationality"> |
| | | <el-input v-model="form.nationality" placeholder="请输入国籍" /> |
| | | </el-form-item> </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="性别" prop="sex"> |
| | | <el-select v-model="form.sex" placeholder="请输入性别"> |
| | | <el-option v-for="dict in dict.type.sys_user_sex" :key="dict.label" :label="dict.label" |
| | | :value="parseInt(dict.value)"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="年龄" prop="age"> |
| | | <el-input v-model="form.age" placeholder="请输入年龄" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="出生日期" prop="birthday"> |
| | | <el-date-picker clearable size="small" v-model="form.birthday" type="date" style="width: 174px" |
| | | value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择出生日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="年龄" prop="age"> |
| | | <el-input v-model="form.age" placeholder="请输入年龄" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="出生日期" prop="birthday"> |
| | | <el-date-picker clearable size="small" v-model="form.birthday" type="date" style="width: 174px" |
| | | value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择出生日期"> |
| | | </el-date-picker> |
| | | </el-form-item> </el-col><el-col :span="6"> |
| | | <el-form-item label="学历" prop="education"> |
| | | <el-select v-model="form.education" placeholder="请选择学历"> |
| | | <el-option v-for="dict in dict.type.sys_education" :key="dict.value" :label="dict.label" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="住址" prop="residenceaddress"> |
| | |
| | | import Li_area_select from "@/components/Address"; |
| | | import OrgSelecter from "@/views/project/components/orgselect"; |
| | | import AnnexUpload from "@/views/project/components/annexupload"; |
| | | import ReportName from "@/views/project/components/organizationUser"; |
| | | import { |
| | | listOrganization, |
| | | getOrganization, |
| | | listReportname, |
| | | listUser, |
| | | } from "@/api/project/organization"; |
| | | import ReportName from "@/views/project/components/organizationUser"; |
| | | export default { |
| | | components: { |
| | | Li_area_select, |
| | |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: "请输入捐献者姓名", trigger: "blur" }, |
| | | ], |
| | | birthday: [ |
| | | { required: true, message: "请选择出生日期", trigger: "blur" }, |
| | | ], |
| | | idcardtype: [ |
| | | { required: true, message: "请选择证件类型", trigger: "blur" }, |
| | |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | //设置报告人和部门/组 |
| | | this.form.reporterno = this.currentuser.userName; |
| | | this.form.reportername = this.currentuser.nickName; |
| | | this.form.deptid = this.currentuser.deptid; |
| | | |
| | | this.showSaveBtn = true; |
| | | //this.$refs.annex.getAnnexList(); |
| | | this.open = true; |
| | | this.$nextTick(function () { |
| | | this.$refs.annex.getAnnexList(); |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | organType: "add", |
| | | } |
| | | }); |
| | | // this.reset(); |
| | | // //设置报告人和部门/组 |
| | | // this.form.reporterno = this.currentuser.userName; |
| | | // this.form.reportername = this.currentuser.nickName; |
| | | // this.form.deptid = this.currentuser.deptid; |
| | | |
| | | this.title = "人体器官潜在捐献者登记表"; |
| | | // this.showSaveBtn = true; |
| | | // //this.$refs.annex.getAnnexList(); |
| | | // this.open = true; |
| | | // this.$nextTick(function () { |
| | | // this.$refs.annex.getAnnexList(); |
| | | // }); |
| | | |
| | | // this.title = "人体器官潜在捐献者登记表"; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | |
| | | handleUpdate(row) { |
| | | this.showSaveBtn = true; |
| | | const id = row.id || this.ids; |
| | | //this.$refs.annex.getAnnexList(); |
| | | |
| | | getDonatebaseinfo(id).then((response) => { |
| | | this.reset(); |
| | | |
| | | this.$nextTick(function () { |
| | | this.$refs.annex.getAnnexList(); |
| | | }); |
| | | this.form = response.data; |
| | | response.data.sex = parseInt(response.data.sex); |
| | | debugger; |
| | | this.form.id = response.data.id; |
| | | this.form.diseasetype = this.form.diseasetype.split(","); |
| | | this.form.infectious = this.form.infectious.split(","); |
| | | this.form.selfwill = this.form.selfwill.split(","); |
| | | this.form.othercases = this.form.othercases.split(","); |
| | | this.form.infosources = this.form.infosources.split(","); |
| | | this.form.kinship = this.form.kinship.split(","); |
| | | this.form.patientstate = this.form.patientstate.split(","); |
| | | this.open = true; |
| | | this.title = "人体器官潜在捐献者登记表"; |
| | | this.registerAddresss.sheng = response.data.registerprovincename; |
| | | this.residenceAddresss.sheng = response.data.residenceprovincename; |
| | | this.registerAddresss.shi = response.data.registercityname; |
| | | this.residenceAddresss.shi = response.data.residencecityname; |
| | | this.residenceAddresss.qu = response.data.residencetownname; |
| | | this.registerAddresss.qu = response.data.registertownname; |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: row.id, |
| | | organType: "edit", |
| | | } |
| | | }); |
| | | }, |
| | | // this.showSaveBtn = true; |
| | | // const id = row.id || this.ids; |
| | | // //this.$refs.annex.getAnnexList(); |
| | | |
| | | // getDonatebaseinfo(id).then((response) => { |
| | | // this.reset(); |
| | | |
| | | // this.$nextTick(function () { |
| | | // this.$refs.annex.getAnnexList(); |
| | | // }); |
| | | // this.form = response.data; |
| | | // response.data.sex = parseInt(response.data.sex); |
| | | // this.form.id = response.data.id; |
| | | // this.form.diseasetype = this.form.diseasetype.split(","); |
| | | // this.form.infectious = this.form.infectious.split(","); |
| | | // this.form.selfwill = this.form.selfwill.split(","); |
| | | // this.form.othercases = this.form.othercases.split(","); |
| | | // this.form.infosources = this.form.infosources.split(","); |
| | | // this.form.kinship = this.form.kinship.split(","); |
| | | // this.form.patientstate = this.form.patientstate.split(","); |
| | | // this.open = true; |
| | | // this.title = "人体器官潜在捐献者登记表"; |
| | | // this.registerAddresss.sheng = response.data.registerprovincename; |
| | | // this.residenceAddresss.sheng = response.data.residenceprovincename; |
| | | // this.registerAddresss.shi = response.data.registercityname; |
| | | // this.residenceAddresss.shi = response.data.residencecityname; |
| | | // this.residenceAddresss.qu = response.data.residencetownname; |
| | | // this.registerAddresss.qu = response.data.registertownname; |
| | | // }); |
| | | }, |
| | | // 终止案例 |
| | | handletermination(row) { |
| | | this.reset(); |
| | | this.showSaveBtn = false; |