Browse Source

患者档案手机号校验代码有误

newMaster
1747191978@qq.com 4 months ago
parent
commit
b21b1c3c2d
  1. 4
      acupuncture-前台/src/views/followFile/index.vue
  2. 920
      acupuncture-前台/src/views/followFile/work.vue
  3. 2
      acupuncture-前台/src/views/medicalFile/index.vue
  4. 26
      acupuncture-前台/src/views/patientFile/index.vue

4
acupuncture-前台/src/views/followFile/index.vue

@ -119,7 +119,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status == 0" style="color: #F56C6C">禁用</span> <span v-if="scope.row.status == 0" style="color: #F56C6C">禁用</span>
<span v-else style="color: #67C23A">本院</span> <span v-else style="color: #67C23A">启用</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -130,7 +130,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.type == 1"> 公共</span> <span v-if="scope.row.type == 1"> 公共</span>
<span v-if="scope.row.status == 1" style="color: #67C23A">启用</span> <span v-if="scope.row.status == 1" style="color: #67C23A">本院</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column

920
acupuncture-前台/src/views/followFile/work.vue

@ -1,535 +1,427 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<right-toolbar <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
:showSearch.sync="showSearch" </el-row>
@queryTable="getList" <el-tabs v-model="queryParams.param.status" @tab-click="handleClick">
></right-toolbar> <el-tab-pane label="待随访" name="0"></el-tab-pane>
</el-row> <el-tab-pane label="已随访" name="1"></el-tab-pane>
<el-tabs v-model="queryParams.param.status" @tab-click="handleClick"> <el-tab-pane label="失访" name="2"></el-tab-pane>
<el-tab-pane label="待随访" name="0"></el-tab-pane> </el-tabs>
<el-tab-pane label="已随访" name="1"></el-tab-pane> <el-table v-loading="loading" :data="listDat" @selection-change="handleSelectionChange">
<el-tab-pane label="失访" name="2"></el-tab-pane> <el-table-column type="selection" width="55" align="center" />
</el-tabs> <el-table-column label="工单id" fixed show-overflow-tooltip align="center" prop="id" width="200" />
<el-table <el-table-column fixed label="随访队列" show-overflow-tooltip align="center" prop="queueName" width="150" />
v-loading="loading" <el-table-column fixed label="患者姓名" align="center" prop="name" width="100" />
:data="listDat" <el-table-column label="性别" align="center" prop="gender" show-overflow-tooltip width="60">
@selection-change="handleSelectionChange" <template slot-scope="scope">
> <span v-if="scope.row.gender == 0"></span>
<el-table-column type="selection" width="55" align="center" /> <span v-if="scope.row.gender == 1"></span>
<el-table-column </template>
label="工单id" </el-table-column>
fixed
show-overflow-tooltip
align="center"
prop="id"
width="200"
/>
<el-table-column
fixed
label="随访队列"
show-overflow-tooltip
align="center"
prop=""
width="100"
/>
<el-table-column
fixed
label="患者姓名"
align="center"
prop="name"
width="100"
/>
<el-table-column
label="性别"
align="center"
prop="gender"
show-overflow-tooltip
width="100"
>
<template slot-scope="scope">
<span v-if="scope.row.gender == 0"></span>
<span v-if="scope.row.gender == 1"></span>
</template>
</el-table-column>
<el-table-column <el-table-column label="年龄" align="center" prop="age" show-overflow-tooltip width="60" />
label="年龄" <el-table-column label="证件号码" align="center" prop="idCard" show-overflow-tooltip width="180" />
align="center" <el-table-column label="手机号码" align="center" prop="phone" show-overflow-tooltip width="150" />
prop="age" <el-table-column label="随访序号" align="center" prop="phone" show-overflow-tooltip width="150" />
show-overflow-tooltip <el-table-column label="开始时间" align="center" prop="startTime" show-overflow-tooltip width="150">
width="150" <template slot-scope="scope">
/> <span>{{
<el-table-column parseTime(scope.row.startTime, "{y}-{m}-{d} {h}:{i}")
label="证件号码" }}</span>
align="center" </template>
prop="idCard" </el-table-column>
show-overflow-tooltip <el-table-column label="结束时间" align="center" prop="endTime" show-overflow-tooltip width="150">
width="180" <template slot-scope="scope">
/> <span>{{
<el-table-column parseTime(scope.row.endTime, "{y}-{m}-{d} {h}:{i}")
label="手机号码" }}</span>
align="center" </template>
prop="phone" </el-table-column>
show-overflow-tooltip <!--待随访 随访状态待随访/即将超期/超期 -->
width="150" <!--已随访 随访状态已随访/超随访期 -->
/> <!--待随访 随访状态待随访 -->
<el-table-column <el-table-column label="随访状态" align="center" prop="phone" show-overflow-tooltip width="150">
label="随访序号" <template slot-scope="scope">
align="center" {{ status[scope.row.status] }}
prop="phone" </template>
show-overflow-tooltip </el-table-column>
width="150" <!-- <el-table-column
/>
<el-table-column
label="开始时间"
align="center"
prop="startTime"
show-overflow-tooltip
width="150"
/>
<el-table-column
label="结束时间"
align="center"
prop="endTime"
show-overflow-tooltip
width="150"
/>
<!--待随访 随访状态待随访/即将超期/超期 -->
<!--已随访 随访状态已随访/超随访期 -->
<!--待随访 随访状态待随访 -->
<el-table-column
label="随访状态"
align="center"
prop="phone"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope">
{{ status[scope.row.status] }}
</template>
</el-table-column>
<!-- <el-table-column
label="失访状态" label="失访状态"
align="center" align="center"
prop="phone" prop="phone"
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
/> --> /> -->
<el-table-column <el-table-column label="失访原因" align="center" prop="reason" show-overflow-tooltip width="150" />
label="失访原因"
align="center"
prop="reason"
show-overflow-tooltip
width="150"
/>
<el-table-column fixed="right" label="操作" align="center" width="150"> <el-table-column fixed="right" label="操作" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- :disabled="scope.row.status !== '0'" --> <!-- :disabled="scope.row.status !== '0'" -->
<el-button <el-button :disabled="scope.row.status !== '0'" size="mini" type="text" icon="el-icon-s-check"
:disabled="scope.row.status !== '0'" @click="handleFollow(scope.row)">
size="mini" 随访
type="text" </el-button>
icon="el-icon-s-check" <el-button :disabled="scope.row.status !== '0'" size="mini" type="text" icon="el-icon-s-release"
@click="handleFollow(scope.row)" @click="handleLossFollow(scope.row)">
> 失访
随访 </el-button>
</el-button> </template>
<el-button </el-table-column>
:disabled="scope.row.status !== '0'" </el-table>
size="mini"
type="text"
icon="el-icon-s-release"
@click="handleLossFollow(scope.row)"
>
失访
</el-button>
</template>
</el-table-column>
</el-table>
<pagination <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
v-show="total > 0" :limit.sync="queryParams.pageSize" @pagination="getList" />
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 失访 --> <!-- 失访 -->
<el-dialog <el-dialog class="popup" title="失访" :visible.sync="open" width="780px" append-to-body>
class="popup" <el-form class="formStep" ref="form" :model="form" :rules="rules" label-width="90px">
title="失访" <el-form-item label="随访次数" prop="times">
:visible.sync="open" <el-input v-model="form.times" placeholder="请输入" />
width="780px" </el-form-item>
append-to-body <el-form-item label="失访原因" prop="reason">
> <el-select v-model="form.reason" placeholder="请选择">
<el-form <el-option-group v-for="group in options" :key="group.label" :label="group.label">
class="formStep" <el-option v-for="item in group.options" :key="item.value" :label="item.label"
ref="form" :value="item.value">
:model="form" </el-option>
:rules="rules" </el-option-group>
label-width="90px" </el-select>
> </el-form-item>
<el-form-item label="随访次数" prop="times"> </el-form>
<el-input v-model="form.times" placeholder="请输入" /> <div slot="footer" class="dialog-footer">
</el-form-item> <el-button type="primary" @click="submitForm"> </el-button>
<el-form-item label="失访原因" prop="reason"> <el-button @click="open = false"> </el-button>
<el-select v-model="form.reason" placeholder="请选择"> </div>
<el-option-group </el-dialog>
v-for="group in options" <!-- 随访 -->
:key="group.label" <el-dialog class="popup" title="随访" :visible.sync="open1" width="780px" append-to-body>
:label="group.label" <el-form class="formStep" ref="form1" :model="form" :rules="rules" label-width="90px">
> <el-form-item label="随访人" prop="followuper">
<el-option <el-input v-model="form.followuper" placeholder="请输入" />
v-for="item in group.options" </el-form-item>
:key="item.value" <el-form-item label="随访时间" prop="followupTime">
:label="item.label" <el-date-picker format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
:value="item.value" v-model="form.followupTime" type="datetime" placeholder="选择日期">
> </el-date-picker>
</el-option> </el-form-item>
</el-option-group> <el-form-item label="随访次数" prop="times">
</el-select> <el-input v-model="form.times" placeholder="请输入" />
</el-form-item> </el-form-item>
</el-form> <el-form-item label="随访内容" prop="followupText">
<div slot="footer" class="dialog-footer"> <el-input v-model="form.followupText" placeholder="请输入" />
<el-button type="primary" @click="submitForm"> </el-button> </el-form-item>
<el-button @click="open = false"> </el-button> </el-form>
</div> <div slot="footer" class="dialog-footer">
</el-dialog> <el-button type="primary" @click="submitForm1"> </el-button>
<!-- 随访 --> <el-button @click="open1 = false"> </el-button>
<el-dialog </div>
class="popup" </el-dialog>
title="随访" </div>
:visible.sync="open1"
width="780px"
append-to-body
>
<el-form
class="formStep"
ref="form1"
:model="form"
:rules="rules"
label-width="90px"
>
<el-form-item label="随访人" prop="followuper">
<el-input v-model="form.followuper" placeholder="请输入" />
</el-form-item>
<el-form-item label="随访时间" prop="followupTime">
<el-date-picker
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
v-model="form.followupTime"
type="datetime"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item>
<el-form-item label="随访次数" prop="times">
<el-input v-model="form.times" placeholder="请输入" />
</el-form-item>
<el-form-item label="随访内容" prop="followupText">
<el-input v-model="form.followupText" placeholder="请输入" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm1"> </el-button>
<el-button @click="open1 = false"> </el-button>
</div>
</el-dialog>
</div>
</template> </template>
<script> <script>
import { queryTask, updStatus, followPatient } from "@/api/followupFile"; import {
export default { queryTask,
name: "Notice", updStatus,
data() { followPatient
return { } from "@/api/followupFile";
options: [ export default {
{ name: "Notice",
label: "患者原因", data() {
options: [ return {
{ options: [{
value: "患者病情加重或死亡,无法参与随访", label: "患者原因",
}, options: [{
{ value: "患者病情加重或死亡,无法参与随访",
value: "患者依从性差,不配合随访", },
}, {
{ value: "患者依从性差,不配合随访",
value: "患者主动退出或不愿继续随访", },
}, {
{ value: "患者主动退出或不愿继续随访",
value: "患者搬迁、工作变动、联系方式更换,无法联系到患者", },
}, {
{ value: "患者搬迁、工作变动、联系方式更换,无法联系到患者",
value: "信息记录不准确,错误记录患者联系方式或地址", },
}, {
], value: "信息记录不准确,错误记录患者联系方式或地址",
}, },
{ ],
label: "医疗机构原因", },
options: [ {
{ label: "医疗机构原因",
value: "随访管理不足,未及时安排随访", options: [{
}, value: "随访管理不足,未及时安排随访",
{ },
value: "随访人员更换,管理混乱导致遗漏", {
}, value: "随访人员更换,管理混乱导致遗漏",
{ },
value: "转诊或转院", {
}, value: "转诊或转院",
{ },
value: "医疗资源受限", {
}, value: "医疗资源受限",
], },
}, ],
{ },
label: "不可抗力", {
options: [ label: "不可抗力",
{ options: [{
value: "社会动荡或自然灾害", value: "社会动荡或自然灾害",
}, },
{ {
value: "疫情或公共卫生事件", value: "疫情或公共卫生事件",
}, },
], ],
}, },
], ],
activeName: "", activeName: "",
status: { status: {
0: "待随访", 0: "待随访",
1: "已随访", 1: "已随访",
2: "失访", 2: "失访",
3: "即将超期", 3: "即将超期",
4: "超期未随访", 4: "超期未随访",
5: "超期已随访", 5: "超期已随访",
}, },
idCardType: [{ idCardType: [{
label: "身份证", label: "身份证",
value: 0, value: 0,
}, },
{ {
label: "护照或外国人永居证", label: "护照或外国人永居证",
value: 1, value: 1,
}, },
{ {
label: "港澳居民来往内地通行", label: "港澳居民来往内地通行",
value: 2, value: 2,
}, },
{ {
label: "台湾居民来往大陆通行证", label: "台湾居民来往大陆通行证",
value: 3, value: 3,
}, },
{ {
label: "其他", label: "其他",
value: 4, value: 4,
}, },
], ],
idCardTypeValue: { idCardTypeValue: {
0: "身份证", 0: "身份证",
1: "护照或外国人永居证", 1: "护照或外国人永居证",
2: "港澳居民来往内地通行", 2: "港澳居民来往内地通行",
3: "台湾居民来往大陆通行证", 3: "台湾居民来往大陆通行证",
4: "其他", 4: "其他",
}, },
loading: false, // loading: false, //
ids: [], // ids: [], //
single: true, // single: true, //
multiple: true, // multiple: true, //
showSearch: true, // showSearch: true, //
total: 0, // total: 0, //
listDat: [{}], // listDat: [{}], //
title: "", // title: "", //
open: false, // open: false, //
open1: false, // open1: false, //
importOpen: false, // importOpen: false, //
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
param: { param: {
status: "0", status: "0",
}, },
}, },
formDisabled: false, formDisabled: false,
importform: {}, importform: {},
// //
form: {}, form: {},
// //
rules: { rules: {
followuper: [ followuper: [{
{ required: true, message: "随访人不能为空", trigger: "blur" }, required: true,
], message: "随访人不能为空",
followupTime: [ trigger: "blur"
{ required: true, message: "随访时间不能为空", trigger: "change" }, }, ],
], followupTime: [{
followupText: [ required: true,
{ required: true, message: "随访内容不能为空", trigger: "blur" }, message: "随访时间不能为空",
], trigger: "change"
times: [ }, ],
{ required: true, message: "随访次数不能为空", trigger: "blur" }, followupText: [{
], required: true,
message: "随访内容不能为空",
trigger: "blur"
}, ],
times: [{
required: true,
message: "随访次数不能为空",
trigger: "blur"
}, ],
reason: [ reason: [{
{ required: true, message: "失访原因不能为空", trigger: "change" }, required: true,
], message: "失访原因不能为空",
}, trigger: "change"
}; }, ],
}, },
created() { };
this.getList(); },
}, created() {
methods: { this.getList();
handleClick(tab, event) { },
this.getList(); methods: {
}, handleClick(tab, event) {
/** 查询公告列表 */ this.getList();
getList() { },
this.loading = true; /** 查询公告列表 */
queryTask(this.queryParams).then((res) => { getList() {
this.listDat = res.data.list; this.loading = true;
this.total = res.data.total; queryTask(this.queryParams).then((res) => {
this.loading = false; this.listDat = res.data.list;
}); this.total = res.data.total;
}, this.loading = false;
// });
cancel() { },
this.open = false; //
this.reset(); cancel() {
}, this.open = false;
// this.reset();
reset() { },
this.form = {}; //
this.resetForm("form"); reset() {
}, this.form = {};
/** 搜索按钮操作 */ this.resetForm("form");
handleQuery() { },
this.queryParams.pageNum = 1; /** 搜索按钮操作 */
this.getList(); handleQuery() {
}, this.queryParams.pageNum = 1;
/** 重置按钮操作 */ this.getList();
resetQuery() { },
this.resetForm("queryForm"); /** 重置按钮操作 */
this.handleQuery(); resetQuery() {
}, this.resetForm("queryForm");
// this.handleQuery();
handleSelectionChange(selection) { },
this.ids = selection.map((item) => item.id); //
this.single = selection.length != 1; handleSelectionChange(selection) {
this.multiple = !selection.length; this.ids = selection.map((item) => item.id);
}, this.single = selection.length != 1;
/** 新增按钮操作 */ this.multiple = !selection.length;
handleAdd() { },
this.reset(); /** 新增按钮操作 */
this.open = true; handleAdd() {
}, this.reset();
/** 随访 */ this.open = true;
handleFollow(row) { },
this.open1 = true; /** 随访 */
this.form = { handleFollow(row) {
id: row.id, this.open1 = true;
followuper: "", this.form = {
followupTime: "", id: row.id,
times: "", followuper: "",
followupText: "", followupTime: "",
}; times: "",
}, followupText: "",
/** 失访 */ };
handleLossFollow(row) { },
this.open = true; /** 失访 */
this.form = JSON.parse(JSON.stringify(row)); handleLossFollow(row) {
this.form.status = 2; this.open = true;
}, this.form = JSON.parse(JSON.stringify(row));
/** 提交按钮 */ this.form.status = 2;
submitForm: function () { },
this.$refs["form"].validate((valid) => { /** 提交按钮 */
if (valid) { submitForm: function() {
if (this.form.id != undefined) { this.$refs["form"].validate((valid) => {
patientUpd(this.form).then((response) => { if (valid) {
this.$modal.msgSuccess("修改成功"); if (this.form.id != undefined) {
this.open = false; patientUpd(this.form).then((response) => {
this.getList(); this.$modal.msgSuccess("修改成功");
}); this.open = false;
} else { this.getList();
patientAdd(this.form).then((response) => { });
this.$modal.msgSuccess("新增成功"); } else {
this.open = false; patientAdd(this.form).then((response) => {
this.getList(); this.$modal.msgSuccess("新增成功");
}); this.open = false;
} this.getList();
} });
}); }
}, }
/** 失访 */ });
submitForm: function () { },
this.$refs["form"].validate((valid) => { /** 失访 */
if (valid) { submitForm: function() {
updStatus(this.form).then((response) => { this.$refs["form"].validate((valid) => {
this.$modal.msgSuccess("操作成功"); if (valid) {
this.open = false; updStatus(this.form).then((response) => {
this.getList(); this.$modal.msgSuccess("操作成功");
}); this.open = false;
} this.getList();
}); });
}, }
/** 随访 */ });
submitForm1: function () { },
this.$refs["form1"].validate((valid) => { /** 随访 */
if (valid) { submitForm1: function() {
followPatient(this.form).then((response) => { this.$refs["form1"].validate((valid) => {
this.$modal.msgSuccess("操作成功"); if (valid) {
this.open1 = false; followPatient(this.form).then((response) => {
this.getList(); this.$modal.msgSuccess("操作成功");
}); this.open1 = false;
} this.getList();
}); });
}, }
/** 删除按钮操作 */ });
handleDelete(row) { },
const idList = row.id ? [row.id] : this.ids; /** 删除按钮操作 */
this.$modal handleDelete(row) {
.confirm("是否确认删除当前选择的数据?") const idList = row.id ? [row.id] : this.ids;
.then(function () { this.$modal
return patientDel({ idList: idList }); .confirm("是否确认删除当前选择的数据?")
}) .then(function() {
.then(() => { return patientDel({
this.getList(); idList: idList
this.$modal.msgSuccess("删除成功"); });
}) })
.catch(() => {}); .then(() => {
}, this.getList();
/** 导出按钮操作 */ this.$modal.msgSuccess("删除成功");
handleExport() { })
this.download( .catch(() => {});
"system/user/export", },
{ /** 导出按钮操作 */
...this.queryParams.params, handleExport() {
}, this.download(
`患者档案.xlsx` "system/user/export", {
); ...this.queryParams.params,
}, },
/** 导入按钮操作 */ `患者档案.xlsx`
handleImport() { );
this.upload.title = "用户导入"; },
this.upload.open = true; /** 导入按钮操作 */
}, handleImport() {
}, this.upload.title = "用户导入";
}; this.upload.open = true;
},
},
};
</script> </script>
<style scoped src="@/assets/styles/common.css"></style> <style scoped src="@/assets/styles/common.css"></style>
<style scoped> <style scoped>
.form-item-age { .form-item-age {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.form-item-age span {
margin: 0 10px; .form-item-age span {
} margin: 0 10px;
.form-item-age >>> .el-input { }
width: 100px;
} .form-item-age>>>.el-input {
width: 100px;
}
</style> </style>
<!-- >>> .el-input__inner { <!-- >>> .el-input__inner {
padding: 0 15px !important; padding: 0 15px !important;

2
acupuncture-前台/src/views/medicalFile/index.vue

@ -471,7 +471,7 @@
</el-drawer> </el-drawer>
<!-- 导入患者信息 --> <!-- 导入患者信息 -->
<el-dialog title="导入诊疗档案" :visible.sync="importOpen" width="640px" append-to-body> <el-dialog title="导入诊疗档案" :visible.sync="importOpen" width="640px" append-to-body>
<el-form ref="form" :model="importform"> <el-form ref="form1" :model="importform">
<el-form-item prop="accessUrl"> <el-form-item prop="accessUrl">
<el-upload :limit="1" class="avatar-uploader wj-uploader" :headers="headers" <el-upload :limit="1" class="avatar-uploader wj-uploader" :headers="headers"
:action="uploadFileUrl1" accept=".xlsx, .xls" :before-upload="handleBeforePdfUpload1" :action="uploadFileUrl1" accept=".xlsx, .xls" :before-upload="handleBeforePdfUpload1"

26
acupuncture-前台/src/views/patientFile/index.vue

@ -149,7 +149,7 @@
<el-form-item label="证件号码" prop="idCard"> <el-form-item label="证件号码" prop="idCard">
<el-input v-model="form.idCard" placeholder="请输入" :disabled="formDisabled" /> <el-input v-model="form.idCard" placeholder="请输入" :disabled="formDisabled" />
</el-form-item> </el-form-item>
<el-form-item label="现病史" prop="currentIllnessHistory"> <el-form-item label="现病史" prop="">
<el-checkbox-group v-model="form.currentIllnessHistory" :disabled="formDisabled"> <el-checkbox-group v-model="form.currentIllnessHistory" :disabled="formDisabled">
<el-checkbox v-for="(item, index) in medicalHistory" :label="item"> <el-checkbox v-for="(item, index) in medicalHistory" :label="item">
</el-checkbox> </el-checkbox>
@ -164,7 +164,7 @@
</el-dialog> </el-dialog>
<!-- 导入患者信息 --> <!-- 导入患者信息 -->
<el-dialog title="导入患者档案" :visible.sync="importOpen" width="640px" append-to-body> <el-dialog title="导入患者档案" :visible.sync="importOpen" width="640px" append-to-body>
<el-form ref="form" :model="importform"> <el-form ref="importform" :model="importform">
<el-form-item prop="accessUrl"> <el-form-item prop="accessUrl">
<el-upload :limit="1" class="avatar-uploader wj-uploader" :headers="headers" <el-upload :limit="1" class="avatar-uploader wj-uploader" :headers="headers"
:action="uploadFileUrl1" accept=".xlsx, .xls" :before-upload="handleBeforePdfUpload1" :action="uploadFileUrl1" accept=".xlsx, .xls" :before-upload="handleBeforePdfUpload1"
@ -299,22 +299,7 @@
required: true, required: true,
message: "手机号码不能为空", message: "手机号码不能为空",
trigger: "blur" trigger: "blur"
},{ },{ pattern: /^1[3456789]\d{9}$/, message: '手机号码格式不正确', trigger: 'blur' }
//
validator: (rule, value, callback) => {
// truefalse
// required: falsetrue
let regs = /^1[3-9]\d{9}$/;
if (!regs.test(this.form.phone)) {
return false
}else{
return true
}
},
message: '手机号码格式不正确',
// blurchange
trigger: ['change','blur'],
}
], ],
ethnicity: [{ ethnicity: [{
required: true, required: true,
@ -456,6 +441,9 @@
this.title = "患者档案详情"; this.title = "患者档案详情";
this.formDisabled = true; this.formDisabled = true;
this.form = JSON.parse(JSON.stringify(row)); this.form = JSON.parse(JSON.stringify(row));
//
this.form.currentIllnessHistory =
this.form.currentIllnessHistory?.split(",") || []
}, },
/** 诊疗档案 */ /** 诊疗档案 */
handleArchives(row) { handleArchives(row) {
@ -465,8 +453,10 @@
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm: function() { submitForm: function() {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.form.id != undefined) { if (this.form.id != undefined) {
patientUpd(this.form).then((response) => { patientUpd(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");

Loading…
Cancel
Save