修改
This commit is contained in:
parent
3bb6a9cc75
commit
38ffe56664
@ -1,13 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-form
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
|
||||||
:model="queryParams"
|
|
||||||
ref="queryForm"
|
|
||||||
size="small"
|
|
||||||
:inline="true"
|
|
||||||
v-show="showSearch"
|
|
||||||
label-width="130px"
|
|
||||||
>
|
|
||||||
<el-form-item label="所属医院" prop="hospitalId">
|
<el-form-item label="所属医院" prop="hospitalId">
|
||||||
<el-button
|
<el-button
|
||||||
type
|
type
|
||||||
@ -15,7 +8,7 @@
|
|||||||
@click="clickinnerVisible(true)"
|
@click="clickinnerVisible(true)"
|
||||||
>{{ queryParams.hospitalName }}</el-button>
|
>{{ queryParams.hospitalName }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属科室" prop="departmentId" label-width="100px">
|
<el-form-item label="所属科室" prop="departmentId">
|
||||||
<el-button type class="stationbtn" @click="clicklist(true)">{{ queryParams.departmentName }}</el-button>
|
<el-button type class="stationbtn" @click="clicklist(true)">{{ queryParams.departmentName }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="人员名称" prop="personName">
|
<el-form-item label="人员名称" prop="personName">
|
||||||
@ -240,12 +233,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="身份证号">
|
<el-form-item label="身份证号">
|
||||||
<el-input
|
<el-input maxlength="18" v-model="form.cardNo" placeholder="请输入身份证号" />
|
||||||
maxlength="18"
|
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
|
||||||
v-model="form.cardNo"
|
|
||||||
placeholder="请输入身份证号"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="人员职称" prop="academicTitle">
|
<el-form-item label="人员职称" prop="academicTitle">
|
||||||
<el-select v-model="form.academicTitle" placeholder="请选择" style="width: 210px">
|
<el-select v-model="form.academicTitle" placeholder="请选择" style="width: 210px">
|
||||||
@ -427,7 +415,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table :data="hospitalDepartmentList" @cell-dblclick="nurseclick" v-loading="loading">
|
<el-table :data="hospitalDepartmentList" @cell-dblclick="departmentclick" v-loading="loading">
|
||||||
<el-table-column label="请选择" width="100" align="center">
|
<el-table-column label="请选择" width="100" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -489,20 +477,6 @@ export default {
|
|||||||
components: { editor, stationAcatar },
|
components: { editor, stationAcatar },
|
||||||
name: "HospitalPerson",
|
name: "HospitalPerson",
|
||||||
data() {
|
data() {
|
||||||
//验证身份证
|
|
||||||
var isCardId = (rule, value, callback) => {
|
|
||||||
if (!value) {
|
|
||||||
return new Error("请输入身份证号)");
|
|
||||||
} else {
|
|
||||||
const reg = /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[0-2])(([0-2][1-9])|10|20|30|31)\d{3}(\d|X|x)$/;
|
|
||||||
const card = reg.test(value);
|
|
||||||
if (!card) {
|
|
||||||
callback(new Error("身份证号格式有误!"));
|
|
||||||
} else {
|
|
||||||
callback();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
// 验证手机号的规则
|
// 验证手机号的规则
|
||||||
var checkMobile = (rule, value, cb) => {
|
var checkMobile = (rule, value, cb) => {
|
||||||
// 验证手机号的正则表达式
|
// 验证手机号的正则表达式
|
||||||
@ -907,7 +881,8 @@ export default {
|
|||||||
{
|
{
|
||||||
certificateName: null,
|
certificateName: null,
|
||||||
certificateSort: null,
|
certificateSort: null,
|
||||||
certificateUrl: null
|
certificateUrl: null,
|
||||||
|
idd: 0
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -973,6 +948,21 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
this.form.hospitalPersonCertificateList.forEach(e => {
|
||||||
|
if (!e.certificateName && !e.certificateUrl && !e.certificateSort) {
|
||||||
|
this.form.hospitalPersonCertificateList = this.form.hospitalPersonCertificateList.filter(
|
||||||
|
el => el.idd != e.idd
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (this.form.hospitalPersonCertificateList.length == 0) {
|
||||||
|
var obj = {
|
||||||
|
certificateSort: null,
|
||||||
|
certificateName: null,
|
||||||
|
certificateUrl: null
|
||||||
|
};
|
||||||
|
this.form.hospitalPersonCertificateList.push(obj);
|
||||||
|
}
|
||||||
if (this.form.consultingFee) {
|
if (this.form.consultingFee) {
|
||||||
this.form.consultingFee = Number(this.form.consultingFee);
|
this.form.consultingFee = Number(this.form.consultingFee);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user