Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
闫晓茹 2024-05-13 17:12:14 +08:00
commit e3e89ccbda
25 changed files with 533 additions and 1269 deletions

View File

@ -29,12 +29,19 @@ export function addVisitRecord(data) {
// 保存修改患者就诊记录基本信息
export function updateVisitRecord(data) {
return request({
url: '/manage/patientInfo',
url: '/manage/patientInfo/updateBaseInfo',
method: 'put',
data: data
})
}
// 就诊记录修改保存
export function updateRecord(data) {
return request({
url: 'manage/visitRecord/updateRecord',
method: 'put',
data: data
})
}
// 删除患者就诊记录基本信息
export function delVisitRecord(id) {
return request({

View File

@ -76,13 +76,13 @@
</el-descriptions>
<el-collapse v-model="activeNames">
<el-collapse-item title="入院记录" name="-1">
<div>{{ list.inHospitalInfo }}</div>
<div v-html="list.inHospitalInfo"></div>
</el-collapse-item>
<el-collapse-item title="手术记录" name="-2" v-if="list.visitMethod != 'OUTPATIENT_SERVICE'">
<div>{{ list.surgicalRecord }}</div>
<div v-html="list.surgicalRecord"></div>
</el-collapse-item>
<el-collapse-item title="出院记录" name="-3" v-if="list.visitMethod != 'OUTPATIENT_SERVICE'">
<div>{{ list.outHospitalInfo }}</div>
<div v-html="list.outHospitalInfo"></div>
</el-collapse-item>
</el-collapse>
</div>

View File

@ -74,13 +74,13 @@
</el-descriptions>
<el-collapse v-model="activeNames">
<el-collapse-item title="入院记录" name="-1">
<div>{{ list.inHospitalInfo }}</div>
<div v-html="list.inHospitalInfo"></div>
</el-collapse-item>
<el-collapse-item title="手术记录" name="-2" v-if="list.visitMethod != 'OUTPATIENT_SERVICE'">
<div>{{ list.surgicalRecord }}</div>
<div v-html="list.surgicalRecord"></div>
</el-collapse-item>
<el-collapse-item title="出院记录" name="-3" v-if="list.visitMethod != 'OUTPATIENT_SERVICE'">
<div>{{ list.outHospitalInfo }}</div>
<div v-html="list.outHospitalInfo"></div>
</el-collapse-item>
</el-collapse>
</div>

View File

@ -147,11 +147,11 @@
align="center"
prop="infoCategoryName"
/>
<el-table-column
<!-- <el-table-column
label="资讯分类类型"
align="center"
prop="infoCategoryType"
/>
/> -->
<el-table-column
label="资讯分类排序"
align="center"

View File

@ -49,16 +49,16 @@
</div>
<div class="righttext" v-if="categoryItem">
<div v-if="recordindex == 0">
<p>{{ categoryItem.inHospitalInfo }}</p>
<p v-html="categoryItem.inHospitalInfo"></p>
</div>
<div v-if="recordindex == 1">
<p>{{ categoryItem.outHospitalInfo }}</p>
<p v-html="categoryItem.outHospitalInfo"></p>
</div>
<div v-if="recordindex == 2">
<p>{{ categoryItem.surgicalRecord }}</p>
<p v-html="categoryItem.surgicalRecord"></p>
</div>
<div v-if="recordindex == 3">
<p>{{ categoryItem.inHospitalInfo }}</p>
<p v-html="categoryItem.inHospitalInfo"></p>
</div>
</div>
</div>

View File

@ -1,111 +1,51 @@
<template>
<div class="app-container">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="68px"
>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="资讯标题" prop="infoTitle">
<el-input
v-model="queryParams.infoTitle"
placeholder="请输入资讯标题"
maxlength="100"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input v-model="queryParams.infoTitle" placeholder="请输入资讯标题" maxlength="100" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="资讯分类" prop="infoCategoryId">
<el-button
type=""
v-if="infoCategoryName == '请选择资讯分类'"
@click="clickitem()"
style="
<el-button type="" v-if="infoCategoryName == '请选择资讯分类'" @click="clickitem()" style="
width: 250px;
text-align: left;
height: 36px;
color: #c0c4cc;
overflow: hidden;
"
>{{ infoCategoryName }}</el-button
>
<el-button
@click="clickitem()"
type=""
v-else
style="
">{{ infoCategoryName }}</el-button>
<el-button @click="clickitem()" type="" v-else style="
width: 250px;
text-align: left;
height: 36px;
padding-left: -10px;
overflow: hidden;
"
>{{ infoCategoryName }}</el-button
>
">{{ infoCategoryName }}</el-button>
</el-form-item>
<!-- </el-form-item> -->
<el-form-item label="资讯编码" prop="infoCode">
<el-input
v-model="queryParams.infoCode"
placeholder="请输入资讯编码"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input v-model="queryParams.infoCode" placeholder="请输入资讯编码" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['manage:info:add']"
>新增</el-button
>
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['manage:info:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['manage:info:edit']"
>修改</el-button
>
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
v-hasPermi="['manage:info:edit']">修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['manage:info:remove']"
>删除</el-button
>
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
v-hasPermi="['manage:info:remove']">删除</el-button>
</el-col>
<!-- <el-col :span="1.5">
<el-button
@ -117,17 +57,10 @@
v-hasPermi="['manage:info:export']"
>导出</el-button>
</el-col> -->
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="infoList"
@selection-change="handleSelectionChange"
>
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="主键id" align="center" prop="id" /> -->
<el-table-column label="资讯标题" align="center" prop="infoTitle" />
@ -136,113 +69,53 @@
<el-table-column label="资讯排序" align="center" prop="infoSort" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['manage:info:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['manage:info:remove']"
>删除</el-button
>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['manage:info:edit']">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['manage:info:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" />
<!-- 添加或修改资讯信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="140px"
:inline="true"
>
<el-form ref="form" :model="form" :rules="rules" label-width="140px" :inline="true">
<el-form-item label="资讯标题" prop="infoTitle">
<el-input
v-model="form.infoTitle"
maxlength="100"
placeholder="请输入资讯标题"
/>
<el-input v-model="form.infoTitle" maxlength="100" placeholder="请输入资讯标题" />
</el-form-item>
<el-form-item label="资讯分类" prop="infoCategoryId">
<el-button
type=""
v-if="form.infoCategoryName == '请选择资讯分类'"
@click="clickinnerVisible()"
style="
<el-button type="" v-if="form.infoCategoryName == '请选择资讯分类'" @click="clickinnerVisible()" style="
width: 250px;
text-align: left;
height: 36px;
color: #c0c4cc;
overflow: hidden;
"
>{{ form.infoCategoryName }}</el-button
>
<el-button
@click="clickinnerVisible()"
type=""
v-else
style="
">{{ form.infoCategoryName }}</el-button>
<el-button @click="clickinnerVisible()" type="" v-else style="
width: 250px;
text-align: left;
height: 36px;
padding-left: -10px;
overflow: hidden;
"
>{{ form.infoCategoryName }}</el-button
>
">{{ form.infoCategoryName }}</el-button>
</el-form-item>
<el-form-item label="资讯图标" prop="infoLargePictureUrl">
<stationAcatar
style="width: 208px"
@imgUrl="imgUrl"
:img="form.infoLargePictureUrl"
:type="'infoMainThumbnailUrl'"
/>
<stationAcatar style="width: 208px" @imgUrl="imgUrl" :img="form.infoLargePictureUrl"
:type="'infoMainThumbnailUrl'" />
<!-- <el-input v-model="form.leadThumbnailUrl" placeholder="请输入资讯主缩略图地址" /> -->
</el-form-item>
<el-form-item label="显示顺序" prop="infoSort">
<el-input
v-model="form.infoSort"
placeholder="请输入显示顺序"
style="width: 250px"
oninput="value=value.replace(/[^\d]/g,'')"
maxLength="5"
/>
<el-input v-model="form.infoSort" placeholder="请输入显示顺序" style="width: 250px" type="number"
oninput="value=value.replace(/[^\d]/g,'')" maxLength="5" />
</el-form-item>
<el-form-item label="资讯图文内容" prop="infoContent">
<editor
@imgs="imgs"
maxlength="300"
:min-height="102"
placeholder="请输入资讯图文内容"
style="width: 80%; margin-left: 18%; margin-top: -5%"
v-model="form.infoContent"
/>
<editor @imgs="imgs" maxlength="300" :min-height="102" placeholder="请输入资讯图文内容"
style="width: 80%; margin-left: 18%; margin-top: -5%" v-model="form.infoContent" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
@ -251,92 +124,32 @@
</div>
</el-dialog>
<!-- 选择资讯 -->
<el-dialog
title="选择资讯"
:visible.sync="innerVisible"
width="1000px"
append-to-body
:before-close="innerVisiblecancel"
>
<el-form
ref="queryForm"
:model="informationqueryParams"
label-width="80px"
:inline="true"
>
<el-form-item
label="资讯分类编码"
prop="infoCategoryCode"
label-width="120"
>
<el-input
v-model="informationqueryParams.infoCategoryCode"
placeholder="请输入资讯分类编码"
clearable
/>
<el-dialog title="选择资讯" :visible.sync="innerVisible" width="1000px" append-to-body
:before-close="innerVisiblecancel">
<el-form ref="queryForm" :model="informationqueryParams" label-width="80px" :inline="true">
<el-form-item label="资讯分类编码" prop="infoCategoryCode" label-width="120">
<el-input v-model="informationqueryParams.infoCategoryCode" placeholder="请输入资讯分类编码" clearable />
</el-form-item>
<el-form-item
label="资讯分类名称"
label-width="120"
>
<el-input
v-model="informationqueryParams.infoCategoryName"
placeholder="请输入资讯分类名称"
clearable
/>
<el-form-item label="资讯分类名称" label-width="120">
<el-input v-model="informationqueryParams.infoCategoryName" placeholder="请输入资讯分类名称" clearable />
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="informationInfoinfo"
>搜索</el-button
>
<el-button
icon="el-icon-refresh"
size="mini"
@click="addresetQuerylist"
>重置</el-button
>
<el-button type="primary" icon="el-icon-search" size="mini" @click="informationInfoinfo">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</el-button>
</el-form-item>
</el-form>
<el-table
:data="infolist"
@cell-dblclick="nurseclick"
v-loading="loading"
>
<el-table :data="infolist" @cell-dblclick="nurseclick" v-loading="loading">
<el-table-column label="请选择" width="100" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.infoCategoryId == scope.row.id"
circle
@click="nurseclick(scope.row)"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="nurseclick(scope.row)"
></el-button>
<el-button type="primary" style="width: 15px; height: 15px" v-if="form.infoCategoryId == scope.row.id"
circle @click="nurseclick(scope.row)"></el-button>
<el-button v-else style="width: 15px; height: 15px" circle @click="nurseclick(scope.row)"></el-button>
</template>
</el-table-column>
<el-table-column
property="infoCategoryCode"
label="资讯分类编码"
align="center"
>
<el-table-column property="infoCategoryCode" label="资讯分类编码" align="center">
</el-table-column>
<el-table-column
property="infoCategoryName"
label="资讯名称"
align="center"
:show-overflow-tooltip="true"
>
<el-table-column property="infoCategoryName" label="资讯名称" align="center" :show-overflow-tooltip="true">
</el-table-column>
<!-- <el-table-column
@ -360,109 +173,40 @@
>
</el-table-column> -->
</el-table>
<pagination
v-show="total2 > 0"
:total="total2"
:page.sync="informationqueryParams.pageNum"
:limit.sync="informationqueryParams.pageSize"
@pagination="informationInfoinfo"
/>
<pagination v-show="total2 > 0" :total="total2" :page.sync="informationqueryParams.pageNum"
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" />
</el-dialog>
<!-- 搜索选择资讯 -->
<el-dialog
title="选择资讯"
:visible.sync="innerVisiblezx"
width="1000px"
append-to-body
:before-close="innerVisiblecancelzx"
>
<el-form
ref="queryForm"
:model="informationqueryParams"
label-width="80px"
:inline="true"
>
<el-form-item
label="资讯分类编码"
prop="infoCategoryCode"
label-width="120"
>
<el-input
v-model="informationqueryParams.infoCategoryCode"
placeholder="请输入资讯分类编码"
clearable
/>
<el-dialog title="选择资讯" :visible.sync="innerVisiblezx" width="1000px" append-to-body
:before-close="innerVisiblecancelzx">
<el-form ref="queryForm" :model="informationqueryParams" label-width="80px" :inline="true">
<el-form-item label="资讯分类编码" prop="infoCategoryCode" label-width="120">
<el-input v-model="informationqueryParams.infoCategoryCode" placeholder="请输入资讯分类编码" clearable />
</el-form-item>
<el-form-item
label="资讯分类名称"
label-width="120"
>
<el-input
v-model="informationqueryParams.infoCategoryName"
placeholder="请输入资讯分类名称"
clearable
/>
<el-form-item label="资讯分类名称" label-width="120">
<el-input v-model="informationqueryParams.infoCategoryName" placeholder="请输入资讯分类名称" clearable />
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="informationInfoinfo"
>搜索</el-button
>
<el-button
icon="el-icon-refresh"
size="mini"
@click="addresetQuerylist"
>重置</el-button
>
<el-button type="primary" icon="el-icon-search" size="mini" @click="informationInfoinfo">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</el-button>
</el-form-item>
</el-form>
<el-table
:data="infolist"
@cell-dblclick="nurseclickzx"
v-loading="loading"
>
<el-table :data="infolist" @cell-dblclick="nurseclickzx" v-loading="loading">
<el-table-column label="请选择" width="100" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="queryParams.infoCategoryId == scope.row.id"
circle
@click="nurseclickzx(scope.row)"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="nurseclickzx(scope.row)"
></el-button>
<el-button type="primary" style="width: 15px; height: 15px"
v-if="queryParams.infoCategoryId == scope.row.id" circle @click="nurseclickzx(scope.row)"></el-button>
<el-button v-else style="width: 15px; height: 15px" circle @click="nurseclickzx(scope.row)"></el-button>
</template>
</el-table-column>
<el-table-column
property="infoCategoryCode"
label="资讯分类编码"
align="center"
>
<el-table-column property="infoCategoryCode" label="资讯分类编码" align="center">
</el-table-column>
<el-table-column
property="infoCategoryName"
label="资讯名称"
align="center"
:show-overflow-tooltip="true"
>
<el-table-column property="infoCategoryName" label="资讯名称" align="center" :show-overflow-tooltip="true">
</el-table-column>
</el-table>
<pagination
v-show="total2 > 0"
:total="total2"
:page.sync="informationqueryParams.pageNum"
:limit.sync="informationqueryParams.pageSize"
@pagination="informationInfoinfo"
/>
<pagination v-show="total2 > 0" :total="total2" :page.sync="informationqueryParams.pageNum"
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" />
</el-dialog>
</div>
</template>
@ -483,11 +227,11 @@ export default {
return {
innerVisible: false,
innerVisiblezx: false,
imgs:'',
infoCategoryName:'请选择资讯分类',
imgs: '',
infoCategoryName: '请选择资讯分类',
informationqueryParams: {
pageNum: 1,
pageSize: 10,
@ -519,8 +263,8 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
infoCategoryName:"",
infoCategoryName: "",
infoCategoryId: null,
infoTitle: null,
infoCode: null,
@ -586,20 +330,20 @@ export default {
this.getList();
},
methods: {
//
clickinnerVisible() {
//
clickinnerVisible() {
this.informationInfoinfo();
this.innerVisible = true;
},
imgUrl(imgUrl) {
console.log(imgUrl,'imgUrl')
console.log(imgUrl, 'imgUrl')
this.form.infoLargePictureUrl = imgUrl;
},
// imgs(item) {
// this.imgsurl.pictureUrlList.push(item);
// },
innerVisiblecancel() {
this.innerVisible = false;
},
@ -615,7 +359,7 @@ export default {
informationTitle: "",
infoCategoryName: "",
};
this.getList();
},
@ -687,18 +431,18 @@ export default {
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum= 1
this.queryParams.pageNum = 1
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.queryParams= {
this.queryParams = {
pageNum: 1,
pageSize: 10,
infoCategoryName:null,
infoCategoryId:null,
infoCategoryName: null,
infoCategoryId: null,
infoCategoryId: null,
infoTitle: null,
infoCode: null,
@ -714,7 +458,7 @@ export default {
infoReviser: null,
infoModifyTime: null
}
this.infoCategoryName="请选择资讯分类"
this.infoCategoryName = "请选择资讯分类"
this.getList();
@ -731,7 +475,7 @@ export default {
this.reset();
this.open = true;
this.title = "添加资讯信息";
this.form.infoCategoryName= "请选择资讯分类";
this.form.infoCategoryName = "请选择资讯分类";
},
/** 修改按钮操作 */
@ -746,8 +490,9 @@ export default {
},
/** 提交按钮 */
submitForm() {
console.log(this.form,'this.form')
// return
if (this.form.infoSort) {
this.form.infoSort = Number(this.form.infoSort)
}
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {

View File

@ -162,6 +162,7 @@
:title="title"
:visible.sync="open"
width="1200px"
v-if="open"
append-to-body
>
<el-form

View File

@ -433,7 +433,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.departmentId == scope.row.departmentCode"
v-if="form.departmentId == scope.row.id"
circle
@click="nurseclick(scope.row)"
></el-button>
@ -508,7 +508,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.diseaseTypeId == scope.row.diseaseTypeCode"
v-if="form.diseaseTypeId == scope.row.id"
circle
@click="nurseclickdisease(scope.row)"
></el-button>
@ -786,7 +786,7 @@ export default {
},
//
nurseclick(row) {
this.form.departmentId = row.departmentCode;
this.form.departmentId = row.id;
this.departmentName = row.departmentName;
this.form.diseaseTypeId = '';
this.diseaseTypeName = '请选择病种';
@ -819,7 +819,7 @@ export default {
},
//
nurseclickdisease(row) {
this.form.diseaseTypeId = row.diseaseTypeCode;
this.form.diseaseTypeId = row.id;
this.diseaseTypeName = row.diseaseTypeName;
this.diseaseshowst = false;
console.log(this.diseaseTypeName, '1121000')
@ -909,7 +909,11 @@ export default {
// this.getDisease();
getMessage(id).then(response => {
this.form = response.data;
this.diseaseTypeName = response.data.diseaseTypeName
if (!response.data.diseaseTypeName || response.data.diseaseTypeName == "") {
this.diseaseTypeName = "请选择病种"
} else {
this.diseaseTypeName = response.data.diseaseTypeName
}
this.departmentName = response.data.departmentName
this.form.suitTaskTypeIds = response.data.suitTaskTypeIds
if (!this.form.textMessageSort) {
@ -933,7 +937,12 @@ export default {
} else {
if (this.form.id != null) {
this.form.departmentName = this.departmentName
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
updateMessage(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
@ -941,7 +950,7 @@ export default {
});
} else {
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName == null
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}

View File

@ -619,7 +619,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.diseaseTypeId == scope.row.diseaseTypeCode"
v-if="form.diseaseTypeId == scope.row.id"
circle
@click="nurseclickdisease(scope.row)"
></el-button>
@ -1099,7 +1099,7 @@ export default {
//
changeDepartment(e) {
this.form.departmentId = e
this.form.departmentName = this.Departmentdata.find(f => f.departmentCode == e).departmentName
this.form.departmentName = this.Departmentdata.find(f => f.id == e).departmentName
this.diseaseTypeName = '请选择病种'
this.form.diseaseTypeId = '';
console.log(this.form)
@ -1368,7 +1368,7 @@ export default {
},
//
nurseclickdisease(row) {
this.form.diseaseTypeId = row.diseaseTypeCode;
this.form.diseaseTypeId = row.id;
this.diseaseTypeName = row.diseaseTypeName;
this.diseaseshowst = false;
},
@ -1469,7 +1469,11 @@ export default {
getPropaganda(id).then(response => {
this.form = response.data;
this.form.suitTaskTypeIds = response.data.suitTaskTypeIds
this.diseaseTypeName = response.data.diseaseTypeName
if (!response.data.diseaseTypeName || response.data.diseaseTypeName == "") {
this.diseaseTypeName = "请选择病种"
} else {
this.diseaseTypeName = response.data.diseaseTypeName
}
// this.form.agencyName = response.data.hospitalAgencyName
this.form.imgPath = response.data.materialsInfoList[0]?.materialsFilePath
this.querymaterial.materialsType = response.data.materialsInfoList[0]?.materialsType
@ -1500,8 +1504,12 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName = null
this.form.diseaseTypeName = this.diseaseTypeName
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
updatePropaganda(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;

View File

@ -225,7 +225,6 @@
:visible.sync="open"
width="700px"
append-to-body
v-if="open"
>
<el-form
ref="form"
@ -418,7 +417,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.departmentId == scope.row.departmentCode"
v-if="form.departmentId == scope.row.id"
circle
@click="nurseclick(scope.row)"
></el-button>
@ -493,7 +492,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.diseaseTypeId == scope.row.diseaseTypeCode"
v-if="form.diseaseTypeId == scope.row.id"
circle
@click="nurseclickdisease(scope.row)"
></el-button>
@ -822,7 +821,7 @@ export default {
},
//
nurseclick(row) {
this.form.departmentId = row.departmentCode;
this.form.departmentId = row.id;
this.departmentName = row.departmentName;
this.form.diseaseTypeId = '';
this.diseaseTypeName = '请选择病种';
@ -852,7 +851,7 @@ export default {
//
nurseclickdisease(row) {
// this.diseaseshowst = false;
this.form.diseaseTypeId = row.diseaseTypeCode;
this.form.diseaseTypeId = row.id;
this.diseaseTypeName = row.diseaseTypeName;
this.diseaseshowst = false;
},
@ -1020,7 +1019,11 @@ export default {
// this.getDisease();
getScript(id).then(response => {
this.form = response.data;
this.diseaseTypeName = response.data.diseaseTypeName
if (!response.data.diseaseTypeName || response.data.diseaseTypeName == "") {
this.diseaseTypeName = "请选择病种"
} else {
this.diseaseTypeName = response.data.diseaseTypeName
}
this.departmentName = response.data.departmentName
if (!this.form.scriptSort) {
this.form.scriptSort = undefined
@ -1041,7 +1044,13 @@ export default {
}else{
if (this.form.id != null) {
this.form.departmentName = this.departmentName
this.form.diseaseTypeName = this.diseaseTypeName
// this.form.diseaseTypeName = this.diseaseTypeName
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
updateScript(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
@ -1049,7 +1058,7 @@ export default {
});
} else {
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName == null
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
@ -1062,6 +1071,8 @@ export default {
this.form.departmentName = this.departmentName
}
// console.log(this.form,'this.form')
// return
addScript(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;

View File

@ -544,7 +544,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.departmentId == scope.row.departmentCode"
v-if="form.departmentId == scope.row.id"
circle
@click="nurseclick(scope.row)"
></el-button>
@ -619,7 +619,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.diseaseTypeId == scope.row.diseaseTypeCode"
v-if="form.diseaseTypeId == scope.row.id"
circle
@click="nurseclickdisease(scope.row)"
></el-button>
@ -667,21 +667,24 @@
</el-form-item>
<el-form-item label="服务包名称:" prop="packageVersion">
<div class="container">
<el-tooltip class="item" effect="dark" :content="formdetail.packageName" placement="top-start">
<span >{{ formdetail.packageName }}</span>
</el-tooltip>
<el-tooltip
class="item"
effect="dark"
:content="formdetail.packageName"
placement="top-start"
>
<span>{{ formdetail.packageName }}</span>
</el-tooltip>
</div>
<!-- <span class="container" v-tooltip="formdetail.packageName">{{ formdetail.packageName }}</span> -->
<!-- <span class="container">
<el-tooltip>
<template slot="title">
{{ formdetail.packageName ? formdetail.packageName : '-' }}
</template>
{{ formdetail.packageName ? formdetail.packageName : '-' }}
</el-tooltip>
</span> -->
@ -1185,7 +1188,7 @@ export default {
},
//
nurseclick(row) {
this.form.departmentId = row.departmentCode;
this.form.departmentId = row.id;
this.departmentName = row.departmentName;
this.form.diseaseTypeId = '';
this.diseaseTypeName = '请选择病种';
@ -1214,7 +1217,7 @@ export default {
},
//
nurseclickdisease(row) {
this.form.diseaseTypeId = row.diseaseTypeCode;
this.form.diseaseTypeId = row.id;
this.diseaseTypeName = row.diseaseTypeName;
this.diseaseshowst = false;
},
@ -1343,13 +1346,15 @@ export default {
this.form.voList.forEach(el => {
if (!el.serviceFrequencyText) {
el.serviceFrequencyText = el.serviceFrequencyStart + '~' + el.serviceFrequencyEnd
} else {
el.serviceFrequencyText = el.serviceFrequencyText
}
})
this.diseaseTypeName = response.data.diseaseTypeName
if (!response.data.diseaseTypeName || response.data.diseaseTypeName == "") {
this.diseaseTypeName = "请选择病种"
} else {
this.diseaseTypeName = response.data.diseaseTypeName
}
this.departmentName = response.data.departmentName
this.open = true;
this.title = "修改服务包基础信息";
@ -1420,7 +1425,11 @@ export default {
if (valid) {
if (this.form.id != null) {
this.form.departmentName = this.departmentName
this.form.diseaseTypeName = this.diseaseTypeName
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
if (this.form.voList) {
var obj = JSON.parse(JSON.stringify(this.form))
obj.voList.forEach(e => {
@ -1443,7 +1452,7 @@ export default {
} else {
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName == null
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
@ -1513,12 +1522,11 @@ export default {
// text-overflow:ellipsis
// white-space: nowrap;
// overflow: hidden;
}
// .container:hover {
// text-overflow:inherit;
// overflow: visible;
// white-space: pre-line;
// text-overflow:inherit;
// overflow: visible;
// white-space: pre-line;
// }
.leftserv {

View File

@ -360,7 +360,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.departmentId == scope.row.departmentCode"
v-if="form.departmentId == scope.row.id"
circle
@click="nurseclick(scope.row)"
></el-button>
@ -435,7 +435,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.diseaseTypeId == scope.row.diseaseTypeCode"
v-if="form.diseaseTypeId == scope.row.id"
circle
@click="nurseclickdisease(scope.row)"
></el-button>
@ -720,7 +720,7 @@ export default {
},
//
nurseclick(row) {
this.form.departmentId = row.departmentCode;
this.form.departmentId = row.id;
this.departmentName = row.departmentName;
this.form.diseaseTypeId = '';
this.diseaseTypeName = '请选择病种';
@ -747,7 +747,7 @@ export default {
},
//
nurseclickdisease(row) {
this.form.diseaseTypeId = row.diseaseTypeCode;
this.form.diseaseTypeId = row.id;
this.diseaseTypeName = row.diseaseTypeName;
this.diseaseshowst = false;
@ -837,7 +837,11 @@ export default {
getTemplate(id).then(response => {
this.form = response.data;
this.form.suitTaskTypeIds = response.data.suitTaskTypeIds
this.diseaseTypeName = response.data.diseaseTypeName
if (!response.data.diseaseTypeName || response.data.diseaseTypeName == "") {
this.diseaseTypeName = "请选择病种"
} else {
this.diseaseTypeName = response.data.diseaseTypeName
}
this.departmentName = response.data.departmentName
if (!this.form.templateSort) {
this.form.templateSort = undefined
@ -862,16 +866,23 @@ export default {
if (this.form.id != null) {
this.form.departmentName = this.departmentName
this.form.diseaseTypeName = this.diseaseTypeName
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
console.log(this.form,'this.form')
// return
updateTemplate(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
this.Departmentlist();
});
} else {
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName == null
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
@ -887,7 +898,7 @@ export default {
this.getList();
this.Departmentlist();
});
}
}

View File

@ -283,7 +283,7 @@
<el-input v-model="form.surgicalName" placeholder="请输入手术名称" style="width:200px" />
</el-form-item>
<el-form-item label="手术记录" prop="surgicalRecord" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
<el-input type="textarea" v-model="form.surgicalRecord" style="width:800px" placeholder="请输入手术记录" :rows="8" />
<editor v-model="form.surgicalRecord" :min-height="192" />
</el-form-item>
<el-form-item label="病历内容">
<editor v-model="form.inHospitalInfo" :min-height="192" />

View File

@ -301,7 +301,7 @@
<el-input v-model="form.surgicalName" placeholder="请输入手术名称" style="width:200px" />
</el-form-item>
<el-form-item label="手术记录" prop="surgicalRecord" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
<el-input type="textarea" v-model="form.surgicalRecord" style="width:800px" placeholder="请输入手术记录" :rows="8" />
<editor v-model="form.surgicalRecord" :min-height="192" />
</el-form-item>
<el-form-item label="入院病历">
<editor v-model="form.inHospitalInfo" :min-height="192" />

View File

@ -167,9 +167,9 @@ export default {
this.$emit("on-template", { templateId: '', templateName: '', templateContent: "" });
},
handleselect(item) {
this.handleselectId = item.textMessageId
this.handleselectId = item.id
this.handleselectName = item.textMessageName
this.$emit("on-template", { templateId: item.textMessageId, templateName: item.textMessageName, templateContent: item.templateContent });
this.$emit("on-template", { templateId: item.id, templateName: item.textMessageName, templateContent: item.templateContent });
this.classificationOpen = false
},
classificationOpenfalse() {

View File

@ -170,9 +170,9 @@ export default {
this.$emit("on-template", { templateId: '', templateName: '', templateContent: "" });
},
handleselect(item) {
this.handleselectId = item.templateId
this.handleselectId = item.id
this.handleselectName = item.wechatTemplateName
this.$emit("on-template", { templateId: item.templateId, templateName: item.wechatTemplateName, templateContent: item.textMessageContent });
this.$emit("on-template", { templateId: item.id, templateName: item.wechatTemplateName, templateContent: item.textMessageContent });
this.classificationOpen = false
},
/** 查询微信模板信息列表 */

View File

@ -170,9 +170,9 @@ export default {
this.$emit("on-template", { templateId: '', templateName: '', templateContent: "" });
},
handleselect(item) {
this.handleselectId = item.templateId
this.handleselectId = item.id
this.handleselectName = item.wechatTemplateName
this.$emit("on-template", { templateId: item.templateId, templateName: item.wechatTemplateName, templateContent: item.textMessageContent });
this.$emit("on-template", { templateId: item.id, templateName: item.wechatTemplateName, templateContent: item.textMessageContent });
this.classificationOpen = false
},
/** 查询微信模板信息列表 */

View File

@ -13,282 +13,150 @@
/>
</div>-->
<div class="head-container" style="height: 580px; width: 100%">
<el-tree
:data="deptOptions"
:props="defaultProps"
:expand-on-click-node="false"
:filter-node-method="filterNode"
ref="tree"
highlight-current
@node-click="handleNodeClick"
/>
<el-tree :data="deptOptions" :props="defaultProps" :expand-on-click-node="false"
:filter-node-method="filterNode" ref="tree" highlight-current @node-click="handleNodeClick" />
</div>
</el-col>
<el-col :span="20" :xs="24">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="68px"
>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
label-width="68px">
<el-form-item label="科室名称" prop="departmentName">
<el-input
maxlength="100"
v-model="queryParams.departmentName"
placeholder="请输入科室名称"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input maxlength="100" v-model="queryParams.departmentName" placeholder="请输入科室名称" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="科室代码" prop="departmentCode">
<el-input
maxlength="30"
v-model="queryParams.departmentCode"
placeholder="请输入科室代码"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input maxlength="30" v-model="queryParams.departmentCode" placeholder="请输入科室代码" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:department:add']"
>新增</el-button
>
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['system:department:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:department:edit']"
>修改</el-button
>
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
v-hasPermi="['system:department:edit']">修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:department:remove']"
>删除</el-button
>
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
v-hasPermi="['system:department:remove']">删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="info"
plain
icon="el-icon-upload2"
size="mini"
@click="handleImport"
v-hasPermi="['system:person:importStationPerson']"
>导入</el-button
>
<el-button type="info" plain icon="el-icon-upload2" size="mini" @click="handleImport"
v-hasPermi="['system:person:importStationPerson']">导入</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['system:department:export']"
>导出</el-button
>
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
v-hasPermi="['system:department:export']">导出</el-button>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="departmentList"
@selection-change="handleSelectionChange"
>
<el-table v-loading="loading" :data="departmentList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="主键id" align="center" prop="id" /> -->
<!-- <el-table-column label="上级科室id" align="center" prop="parentDepartmentId" />
<el-table-column label="所属机构id" align="center" prop="hospitalAgencyId" /> -->
<!-- <el-table-column label="所属机构名称" align="center" prop="agencyName" /> -->
<el-table-column
label="科室名称"
align="center"
prop="departmentName"
/>
<el-table-column
label="科室代码"
align="center"
prop="departmentCode"
/>
<el-table-column
label="科室类型"
align="center"
prop="departmentType"
>
<el-table-column label="科室名称" align="center" prop="departmentName" />
<el-table-column label="科室代码" align="center" prop="departmentCode" />
<el-table-column label="科室类型" align="center" prop="departmentType">
<template slot-scope="scope">
{{
scope.row.departmentType == "ADMINISTRATION_LOGISTICS"
? "行政后勤类"
: ""
}}
scope.row.departmentType == "ADMINISTRATION_LOGISTICS"
? "行政后勤类"
: ""
}}
{{
scope.row.departmentType == "MEDICAL_ASSISTANCE"
? "医疗辅助类"
: ""
}}
scope.row.departmentType == "MEDICAL_ASSISTANCE"
? "医疗辅助类"
: ""
}}
{{
scope.row.departmentType == "MEDICAL_TECHNOLOGY"
? "医疗技术类"
: ""
}}
scope.row.departmentType == "MEDICAL_TECHNOLOGY"
? "医疗技术类"
: ""
}}
{{
scope.row.departmentType == "CLINICAL_SERVICES"
? "临床服务类"
: ""
}}
scope.row.departmentType == "CLINICAL_SERVICES"
? "临床服务类"
: ""
}}
</template>
</el-table-column>
<el-table-column
label="提供服务类别"
align="center"
prop="provideServiceCategory"
>
<template slot-scope="scope"
>{{
scope.row.provideServiceCategory == "OUTPATIENT_SERVICE"
? "门诊"
: ""
}}
<el-table-column label="提供服务类别" align="center" prop="provideServiceCategory">
<template slot-scope="scope">{{
scope.row.provideServiceCategory == "OUTPATIENT_SERVICE"
? "门诊"
: ""
}}
{{
scope.row.provideServiceCategory == "EMERGENCY_TREATMENT"
? "急诊"
: ""
}}
scope.row.provideServiceCategory == "EMERGENCY_TREATMENT"
? "急诊"
: ""
}}
{{
scope.row.provideServiceCategory == "BE_HOSPITALIZED"
? "住院"
: ""
}}
scope.row.provideServiceCategory == "BE_HOSPITALIZED"
? "住院"
: ""
}}
{{ scope.row.provideServiceCategory == "WARD" ? "病区" : "" }}
{{
scope.row.provideServiceCategory == "MEDICAL_TECHNOLOGY"
? "医技"
: ""
}}
scope.row.provideServiceCategory == "MEDICAL_TECHNOLOGY"
? "医技"
: ""
}}
{{ scope.row.provideServiceCategory == "DRUG" ? "药剂" : "" }}
{{ scope.row.provideServiceCategory == "FINANCE" ? "财务" : "" }}
{{
scope.row.provideServiceCategory == "ADMINISTRATION"
? "行政"
: ""
}}
scope.row.provideServiceCategory == "ADMINISTRATION"
? "行政"
: ""
}}
{{ scope.row.provideServiceCategory == "PHARMACY" ? "药房" : "" }}
{{
scope.row.provideServiceCategory == "DRUG_STORAGE" ? "药库" : ""
}}
scope.row.provideServiceCategory == "DRUG_STORAGE" ? "药库" : ""
}}
{{
scope.row.provideServiceCategory == "PUBLIC_HEALTH"
? "公卫"
: ""
}}
</template></el-table-column
>
scope.row.provideServiceCategory == "PUBLIC_HEALTH"
? "公卫"
: ""
}}
</template></el-table-column>
<!-- <el-table-column label="细分类别id" align="center" prop="subdivisionCategoryId" />
<el-table-column label="细分类别名称" align="center" prop="subdivisionCategoryName" />
<el-table-column label="标准科室对照id" align="center" prop="normDepartmentCompareId" />
<el-table-column label="标准科室对照名称" align="center" prop="normDepartmentCompareName" />
<el-table-column label="编制床位数" align="center" prop="prepareBedsCount" /> -->
<el-table-column
label="科室电话"
align="center"
prop="departmentPhone"
/>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<el-table-column label="科室电话" align="center" prop="departmentPhone" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:department:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:department:remove']"
>删除</el-button
>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['system:department:edit']">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['system:department:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getList" />
</el-col>
</el-row>
<!-- 导入 -->
<el-dialog
:title="upload.title"
:visible.sync="upload.open"
width="400px"
append-to-body
>
<el-upload
ref="upload"
:limit="1"
accept=".xlsx, .xls"
:headers="upload.headers"
:action="upload.url"
:disabled="upload.isUploading"
:on-progress="handleFileUploadProgress"
:on-success="handleFileSuccess"
:auto-upload="false"
drag
>
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
<el-upload ref="upload" :limit="1" accept=".xlsx, .xls" :headers="upload.headers" :action="upload.url"
:disabled="upload.isUploading" :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess"
:auto-upload="false" drag>
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处
@ -296,13 +164,8 @@
</div>
<div class="el-upload__tip text-center" slot="tip">
<span>仅允许导入xlsxlsx格式文件</span>
<el-link
type="primary"
:underline="false"
style="font-size: 12px; vertical-align: baseline"
@click="importTemplate"
>下载模板</el-link
>
<el-link type="primary" :underline="false" style="font-size: 12px; vertical-align: baseline"
@click="importTemplate">下载模板</el-link>
</div>
</el-upload>
<div slot="footer" class="dialog-footer">
@ -311,19 +174,8 @@
</div>
</el-dialog>
<!-- 添加或修改科室信息对话框 -->
<el-dialog
:title="title"
:visible.sync="open"
width="1000px"
append-to-body
>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="120px"
:inline="true"
>
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px" :inline="true">
<!-- <el-form-item label="上级科室id" prop="parentDepartmentId">
<el-input
v-model="form.parentDepartmentId"
@ -342,40 +194,19 @@
<div class="nameinformation">基本信息</div>
<div class="content">
<el-form-item label="科室名称" prop="departmentName">
<el-input
maxlength="100"
v-model="form.departmentName"
placeholder="请输入科室名称"
/>
<el-input maxlength="100" v-model="form.departmentName" placeholder="请输入科室名称" />
</el-form-item>
<el-form-item label="科室代码" prop="departmentCode">
<el-input
maxlength="30"
onKeyUp="value=value.replace(/[\W]/g,'')"
v-model="form.departmentCode"
placeholder="请输入科室代码"
/>
<el-input maxlength="30" onKeyUp="value=value.replace(/[\W]/g,'')" v-model="form.departmentCode"
placeholder="请输入科室代码" />
</el-form-item>
<el-form-item label="科室简称" prop="departmentAbbreviation">
<el-input
maxlength="100"
v-model="form.departmentAbbreviation"
placeholder="请输入科室简称"
/>
<el-input maxlength="100" v-model="form.departmentAbbreviation" placeholder="请输入科室简称" />
</el-form-item>
<el-form-item label="科室类型" prop="departmentType">
<el-select
v-model="form.departmentType"
placeholder="请选择"
style="width: 205px"
clearable=""
>
<el-option
v-for="item in departmentoptions"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
<el-select v-model="form.departmentType" placeholder="请选择" style="width: 205px" clearable="">
<el-option v-for="item in departmentoptions" :key="item.dictValue" :label="item.dictLabel"
:value="item.dictValue">
</el-option>
</el-select>
</el-form-item>
@ -386,58 +217,26 @@
/>
</el-form-item> -->
<el-form-item label="科室负责人姓名" prop="departmentPersonName">
<el-input
maxlength="20"
v-model="form.departmentPersonName"
placeholder="请输入科室负责人姓名"
/>
<el-input maxlength="20" v-model="form.departmentPersonName" placeholder="请输入科室负责人姓名" />
</el-form-item>
<el-form-item label="节点类型" prop="nodeType">
<el-select
v-model="form.nodeType"
placeholder="请选择"
style="width: 205px"
clearable
>
<el-option
v-for="item in nodeTypeoptions"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
<el-select v-model="form.nodeType" placeholder="请选择" style="width: 205px" clearable>
<el-option v-for="item in nodeTypeoptions" :key="item.dictValue" :label="item.dictLabel"
:value="item.dictValue">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="所属机构" prop="hospitalAgencyName">
<el-cascader
clearable
:props="{ checkStrictly: true }"
:options="treeOptions"
@change="change($event)"
style="width: 205px; color: black"
v-model="form.hospitalAgencyId"
:show-all-levels="false"
:placeholder="
form.hospitalAgencyName ? form.hospitalAgencyName : '请选择所属机构'
"
ref="cascader"
:key="isResouceShow"
></el-cascader>
<el-cascader clearable :props="{ checkStrictly: true }" :options="treeOptions" @change="change"
style="width: 205px; color: black" v-model="form.hospitalAgencyIdtwo" :show-all-levels="false"
:placeholder="form.hospitalAgencyName ? form.hospitalAgencyName : ''" ref="cascader"
:key="isResouceShow"></el-cascader>
</el-form-item>
<el-form-item label="上级科室" prop="parentDepartmentId">
<el-select
v-model="form.parentDepartmentName"
placeholder="请选择"
style="width: 205px"
@change="changeparentDepartment"
clearable
>
<el-option
v-for="item in optionsparentDepartment"
:key="item.id"
:label="item.departmentName"
:value="item.departmentCode"
>
<el-select v-model="form.parentDepartmentName" placeholder="请选择" style="width: 205px"
@change="changeparentDepartment" clearable>
<el-option v-for="item in optionsparentDepartment" :key="item.id" :label="item.departmentName"
:value="item.id">
</el-option>
</el-select>
<!-- <el-cascader
@ -460,35 +259,16 @@
<div class="nameinformation">扩展信息</div>
<div class="content">
<el-form-item label="提供服务类别" prop="provideServiceCategory">
<el-select
clearable
v-model="form.provideServiceCategory"
placeholder="请选择"
style="width: 205px"
>
<el-option
v-for="item in options"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
<el-select clearable v-model="form.provideServiceCategory" placeholder="请选择" style="width: 205px">
<el-option v-for="item in options" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="细分类别" prop="subdivisionCategoryId">
<el-select
v-model="form.subdivisionCategoryName"
placeholder="请选择"
style="width: 205px"
clearable
@change="optionsubdivision"
>
<el-option
v-for="item in optionsubdivisionCategory"
:key="item.subdivisionCategoryCode"
:label="item.subdivisionCategoryName"
:value="item.subdivisionCategoryCode"
>
<el-select v-model="form.subdivisionCategoryName" placeholder="请选择" style="width: 205px" clearable
@change="optionsubdivision">
<el-option v-for="item in optionsubdivisionCategory" :key="item.subdivisionCategoryCode"
:label="item.subdivisionCategoryName" :value="item.subdivisionCategoryCode">
</el-option>
</el-select>
</el-form-item>
@ -499,18 +279,9 @@
/>
</el-form-item> -->
<el-form-item label="标准科室对照" prop="normDepartmentCompareId">
<el-select
v-model="form.normDepartmentCompareId"
placeholder="请选择"
style="width: 205px"
clearable
>
<el-option
v-for="item in compareList"
:key="item.departmentId"
:label="item.departmentName"
:value="item.departmentId"
>
<el-select v-model="form.normDepartmentCompareId" placeholder="请选择" style="width: 205px" clearable>
<el-option v-for="item in compareList" :key="item.departmentId" :label="item.departmentName"
:value="item.departmentId">
</el-option>
</el-select>
<!-- <el-input
@ -525,48 +296,24 @@
/>
</el-form-item> -->
<el-form-item label="编制床位数" prop="prepareBedsCount">
<el-input
maxlength="8"
onKeyUp="value=value.replace(/[\W]/g,'')"
v-model="form.prepareBedsCount"
placeholder="请输入编制床位数"
/>
<el-input maxlength="8" onKeyUp="value=value.replace(/[\W]/g,'')" v-model="form.prepareBedsCount"
placeholder="请输入编制床位数" />
</el-form-item>
<el-form-item label="科室电话" prop="departmentPhone">
<el-input
maxlength="12"
onKeyUp="value=value.replace(/[\W]/g,'')"
v-model="form.departmentPhone"
placeholder="请输入科室电话"
/>
<el-input maxlength="12" onKeyUp="value=value.replace(/[\W]/g,'')" v-model="form.departmentPhone"
placeholder="请输入科室电话" />
</el-form-item>
<el-form-item label="科室邮箱" prop="departmentMail">
<el-input
maxlength="20"
v-model="form.departmentMail"
placeholder="请输入科室邮箱"
/>
<el-input maxlength="20" v-model="form.departmentMail" placeholder="请输入科室邮箱" />
</el-form-item>
<el-form-item label="成立日期" prop="establishDate">
<el-date-picker
clearable
v-model="form.establishDate"
type="date"
style="width: 205px"
value-format="yyyy-MM-dd"
placeholder="请选择成立日期"
>
<el-date-picker clearable v-model="form.establishDate" type="date" style="width: 205px"
value-format="yyyy-MM-dd" placeholder="请选择成立日期">
</el-date-picker>
</el-form-item>
<el-form-item label="撤销日期" prop="revokeDate">
<el-date-picker
clearable
v-model="form.revokeDate"
type="date"
style="width: 205px"
value-format="yyyy-MM-dd"
placeholder="请选择撤销日期"
>
<el-date-picker clearable v-model="form.revokeDate" type="date" style="width: 205px"
value-format="yyyy-MM-dd" placeholder="请选择撤销日期">
</el-date-picker>
</el-form-item>
</div>
@ -775,17 +522,14 @@ export default {
},
methods: {
optionsubdivision(e) {
console.log(e);
// this.form.subdivisionCategoryId = this.optionsubdivisionCategory.find(
// (e) => e.id == this.form.subdivisionCategoryId
// ).subdivisionCategoryName;
// console.log(this.form.subdivisionCategoryName)
// console.log(this.form.subdivisionCategoryName)
},
//
changeparentDepartment(e) {
this.form.parentDepartmentId = e;
console.log(e);
},
/** 查询标准科室对照信息列表 */
infocompare() {
@ -805,7 +549,6 @@ export default {
//
getinfo() {
getDepartmentList().then((res) => {
console.log(res, "666");
this.optionsparentDepartment = res.data;
});
},
@ -832,20 +575,28 @@ export default {
},
//
change(e) {
console.log(e, "78");
console.log(this.form.hospitalAgencyIdtwo)
if (e) {
this.form.hospitalAgencyId = e[e.length - 1];
if (this.form.hospitalAgencyId) {
const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels;
// console.log(arr, "5555555");
this.form.hospitalAgencyName = arr.slice(-1).join(",");
// console.log(this.form.agencyName);
this.gethaveinfo(e[e.length - 1])
this.form.parentDepartmentId = ''
this.form.parentDepartmentName = ''
} else {
this.form.parentDepartmentId = ''
this.form.hospitalAgencyName = "";
}
} else {
this.getinfo();
}
},
gethaveinfo(id) {
getDepartmentList({ hospitalAgencyId: id }).then((res) => {
this.optionsparentDepartment = res.data;
});
},
// changeagencyCategoryId(e) {
// this.form.parentDepartmentId = e[e.length - 1];
// },
@ -880,7 +631,6 @@ export default {
`科室下载模板.xlsx`
);
},
//
submitFileForm() {
this.$refs.upload.submit();
@ -892,8 +642,8 @@ export default {
this.$refs.upload.clearFiles();
this.$alert(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
response.msg +
"</div>",
response.msg +
"</div>",
"导入结果",
{ dangerouslyUseHTMLString: true }
);
@ -903,7 +653,6 @@ export default {
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
//
filterNode(value, data) {
if (!value) return true;
@ -935,6 +684,7 @@ export default {
id: null,
parentDepartmentId: null,
hospitalAgencyId: null,
hospitalAgencyIdtwo: null,
hospitalAgencyName: null,
departmentName: null,
departmentCode: null,
@ -981,6 +731,7 @@ export default {
this.reset();
this.open = true;
this.title = "添加科室信息";
this.getinfo()
},
/** 修改按钮操作 */
handleUpdate(row) {
@ -988,8 +739,10 @@ export default {
const id = row.id || this.ids;
getDepartment(id).then((response) => {
this.form = response.data;
this.form.hospitalAgencyIdtwo = this.form.hospitalAgencyId
this.form.parentDepartmentName = response.data.parentDepartmentName;
this.open = true;
this.gethaveinfo(this.form.hospitalAgencyId)
this.title = "修改科室信息";
});
},
@ -997,10 +750,10 @@ export default {
submitForm() {
let reg = new RegExp("-", "g");
if (this.form.establishDate && this.form.revokeDate && new Date(this.form.establishDate.replace(reg, "/")) >
new Date(this.form.revokeDate.replace(reg, "/"))) {
this.$message.error("撤销日期要大于成立日期");
}
else {
new Date(this.form.revokeDate.replace(reg, "/"))) {
this.$message.error("撤销日期要大于成立日期");
}
else {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
@ -1032,7 +785,7 @@ export default {
this.getList();
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
.catch(() => { });
},
/** 导出按钮操作 */
handleExport() {
@ -1051,6 +804,7 @@ export default {
.el-cascader .el-input input::-webkit-input-placeholder {
color: black;
}
.nameinformation {
border-left: 3px solid #4d9de7;
width: 200px;
@ -1060,6 +814,7 @@ export default {
// margin-top: 8px;
color: black;
}
.content {
margin: 22px;
}

View File

@ -395,7 +395,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="form.departmentId == scope.row.departmentCode"
v-if="form.departmentId == scope.row.id"
circle
@click="nurseclick(scope.row)"
></el-button>
@ -563,9 +563,8 @@ export default {
},
//
nurseclick(row) {
this.form.departmentId = row.departmentCode;
this.form.departmentId = row.id;
this.form.departmentName = row.departmentName;
// console.log(this.departmentName, "0000");
this.innerVisibleshow = false;
},
//

View File

@ -1,248 +1,104 @@
<template>
<div class="app-container">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="100px"
>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="任务细分名称" prop="taskPartitionName">
<el-input
v-model="queryParams.taskPartitionName"
placeholder="请输入任务细分名称"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input v-model="queryParams.taskPartitionName" placeholder="请输入任务细分名称" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="任务细分编码" prop="taskPartitionCode">
<el-input
v-model="queryParams.taskPartitionCode"
placeholder="请输入任务细分编码"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input v-model="queryParams.taskPartitionCode" placeholder="请输入任务细分编码" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:partition:add']"
>新增</el-button
>
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['system:partition:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:partition:edit']"
>修改</el-button
>
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
v-hasPermi="['system:partition:edit']">修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:partition:remove']"
>删除</el-button
>
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
v-hasPermi="['system:partition:remove']">删除</el-button>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="partitionList"
@selection-change="handleSelectionChange"
>
<el-table v-loading="loading" :data="partitionList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="主键id" align="center" prop="id" /> -->
<!-- <el-table-column label="任务类型表id" align="center" prop="taskTypeId" /> -->
<el-table-column
label="任务类型名称"
align="center"
prop="taskTypeName"
/>
<el-table-column
label="任务细分名称"
align="center"
prop="taskPartitionName"
/>
<el-table-column
label="任务细分编码"
align="center"
prop="taskPartitionCode"
/>
<el-table-column
label="二级分类描述"
align="center"
prop="secondClassifyDescribe"
:show-overflow-tooltip="true"
/>
<el-table-column
label="执行时间"
align="center"
prop="executionTime"
width="180"
>
<el-table-column label="任务类型名称" align="center" prop="taskTypeName" />
<el-table-column label="任务细分名称" align="center" prop="taskPartitionName" />
<el-table-column label="任务细分编码" align="center" prop="taskPartitionCode" />
<el-table-column label="二级分类描述" align="center" prop="secondClassifyDescribe" :show-overflow-tooltip="true" />
<el-table-column label="执行时间" align="center" prop="executionTime" width="180">
</el-table-column>
<el-table-column
label="任务细分排序"
align="center"
prop="taskPartitionSort"
/>
<el-table-column
label="任务细分备注"
align="center"
prop="taskPartitionRemark"
:show-overflow-tooltip="true"
/>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<el-table-column label="任务细分排序" align="center" prop="taskPartitionSort" />
<el-table-column label="任务细分备注" align="center" prop="taskPartitionRemark" :show-overflow-tooltip="true" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:partition:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:partition:remove']"
>删除</el-button
>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['system:partition:edit']">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['system:partition:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" />
<!-- 添加或修改任务细分字典对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
<!-- <el-form-item label="任务类型表id" prop="taskTypeId">
<el-input v-model="form.taskTypeId" placeholder="请输入任务类型表id" />
</el-form-item> -->
<el-form-item
label="任务细分编码"
prop="taskPartitionCode"
v-if="form.taskPartitionCode"
>
<el-input
disabled
v-model="form.taskPartitionCode"
placeholder="请输入任务细分编码"
/>
<el-form-item label="任务细分编码" prop="taskPartitionCode" v-if="form.taskPartitionCode">
<el-input disabled v-model="form.taskPartitionCode" placeholder="请输入任务细分编码" />
</el-form-item>
<el-form-item label="任务类型名称" prop="taskTypeName">
<el-select
v-model="form.taskTypeId"
placeholder="请选择"
@change="change"
style="width: 350px"
>
<el-option
v-for="item in options"
:key="item.id"
:label="item.taskTypeName"
:value="item.id"
>
<el-select v-model="form.taskTypeId" placeholder="请选择" @change="change" style="width: 350px">
<el-option v-for="item in options" :key="item.id" :label="item.taskTypeName" :value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="任务细分名称" prop="taskPartitionName">
<el-input
v-model="form.taskPartitionName"
placeholder="请输入任务细分名称"
/>
<el-input v-model="form.taskPartitionName" placeholder="请输入任务细分名称" />
</el-form-item>
<el-form-item label="执行时间" prop="executionTime">
<el-time-select
style="width: 350px"
placeholder="执行时间"
v-model="form.executionTime"
:picker-options="{
start: '08:00',
step: '00:30',
end: '23:30',
}"
></el-time-select>
<el-time-select style="width: 350px" placeholder="执行时间" v-model="form.executionTime" :picker-options="{
start: '08:00',
step: '00:30',
end: '23:30',
}"></el-time-select>
</el-form-item>
<el-form-item label="任务细分排序" prop="taskPartitionSort">
<el-input-number
v-model="form.taskPartitionSort"
controls-position="right"
:min="0"
placeholder="请输入任务细分排序"
style="width: 350px"
/>
<el-input-number v-model="form.taskPartitionSort" controls-position="right" :min="0" placeholder="请输入任务细分排序"
style="width: 350px" />
</el-form-item>
<el-form-item label="任务细分备注" prop="taskPartitionRemark">
<el-input
v-model="form.taskPartitionRemark"
placeholder="请输入任务细分备注"
/>
<el-input v-model="form.taskPartitionRemark" placeholder="请输入任务细分备注" />
</el-form-item>
<el-form-item label="模板类型" prop="templateType">
<el-select v-model="form.templateType" placeholder="请选择模板类型" style="width: 350px;">
<el-option v-for="dict in dict.type.template_type" :key="dict.value" :label="dict.label"
:value="dict.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="二级分类描述" prop="secondClassifyDescribe">
<el-input
type="textarea"
v-model="form.secondClassifyDescribe"
placeholder="请输入二级分类描述"
/>
<el-input type="textarea" v-model="form.secondClassifyDescribe" placeholder="请输入二级分类描述" />
</el-form-item>
<div class="textareanew">
<el-form-item label="文本类型" prop="taskPartitionContent">
<el-input
type="textarea"
v-model="form.taskPartitionContent"
placeholder="请输入文本类型"
/>
<el-input type="textarea" v-model="form.taskPartitionContent" placeholder="请输入文本类型" />
</el-form-item>
</div>
</el-form>
@ -259,6 +115,7 @@ import { listPartition, getPartition, delPartition, addPartition, updatePartitio
export default {
name: "Partition",
dicts: ['template_type'],
data() {
return {
//
@ -297,6 +154,9 @@ export default {
options: [],
//
rules: {
templateType: [
{ required: true, message: "模板类型不能为空", trigger: "blur" }
],
taskTypeId: [
{ required: true, message: "任务细分名称不能为空", trigger: "blur" }
],
@ -439,6 +299,7 @@ export default {
.el-input-number .el-input__inner {
text-align: left;
}
.textareanew .el-textarea__inner {
height: 100px;
}

View File

@ -308,6 +308,7 @@ export default {
this.$modal.confirm('是否确认删除问卷?').then(function () {
return delQuestion(ids);
}).then(() => {
this.getTreeselect();
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => { });

View File

@ -2,18 +2,8 @@
<div class="header">
<div class="topheader">
<div class="user">
<img
class="headsculpture"
src="../../../assets/manage/touxiang.png"
alt=""
v-if="list.sex == 'MALE'"
/>
<img
class="headsculpture"
src="../../../assets/manage/nvtouxiang.png"
alt=""
v-if="list.sex == 'FEMALE'"
/>
<img class="headsculpture" src="../../../assets/manage/touxiang.png" alt="" v-if="list.sex == 'MALE'" />
<img class="headsculpture" src="../../../assets/manage/nvtouxiang.png" alt="" v-if="list.sex == 'FEMALE'" />
<div class="name">
{{ list.patientName }}
</div>
@ -24,31 +14,16 @@
{{ list.age }}
</div>
<div class="source">
<div
class="item"
style="color: #00e06e; border-color: #00e06e"
v-if="list.patientSource == 'WE_CHAT_OFFICIAL_ACCOUNT'"
>
<img
src="../../../assets/manage/gzh.png"
alt=""
style="width: 24px"
/>
<div class="item" style="color: #00e06e; border-color: #00e06e"
v-if="list.patientSource == 'WE_CHAT_OFFICIAL_ACCOUNT'">
<img src="../../../assets/manage/gzh.png" alt="" style="width: 24px" />
<div>公众号</div>
</div>
<div
class="item"
style="color: #339de5; border-color: #339de5"
v-if="list.patientSource == 'WE_CHAT_APPLET'"
>
<div class="item" style="color: #339de5; border-color: #339de5" v-if="list.patientSource == 'WE_CHAT_APPLET'">
<img src="../../../assets/manage/xcx.png" alt="" />
<div>小程序</div>
</div>
<div
class="item"
style="color: #f4881f; border-color: #f4881f"
v-if="list.patientSource == 'MANAGE_END'"
>
<div class="item" style="color: #f4881f; border-color: #f4881f" v-if="list.patientSource == 'MANAGE_END'">
<img src="../../../assets/manage/gld.png" alt="" />
<div>管理端</div>
</div>
@ -105,15 +80,13 @@
<div style="width: 30%; overflow: auto">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="入院记录" name="first">
<div>
{{ list.inHospitalInfo }}
</div></el-tab-pane
>
<el-tab-pane label="手术记录" name="second">
<div>{{ list.surgicalRecord }}</div>
<div v-html="list.inHospitalInfo"></div>
</el-tab-pane>
<el-tab-pane label="出院记录" name="third"
><div>{{ list.outHospitalInfo }}</div>
<el-tab-pane label="手术记录" name="second">
<div v-html="list.surgicalRecord"></div>
</el-tab-pane>
<el-tab-pane label="出院记录" name="third">
<div v-html="list.outHospitalInfo"></div>
</el-tab-pane>
</el-tabs>
</div>
@ -127,202 +100,88 @@
{{ formview.propagandaContent }}
</div>
<img :src="baseUrl + formview.propagandaCoverPath" alt="" />
<video
v-if="materialsType == 'VIDEO'"
ref="myVideo"
:src="baseUrl + materialsFilePath"
controls
></video>
<video v-if="materialsType == 'VIDEO'" ref="myVideo" :src="baseUrl + materialsFilePath" controls></video>
</div>
</div>
</div>
<!-- 问卷模板 -->
<div
class="right"
v-if="
$route.query.taskType == 'QUESTIONNAIRE_SCALE' ||
$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'
"
>
<div
style="float: right; margin-top: 20px"
v-if="
$route.query.taskType == 'QUESTIONNAIRE_SCALE' ||
$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'
"
>
<el-form
:inline="true"
class="demo-form-inline"
:model="questiondata"
ref="questiondata"
>
<div class="right" v-if="$route.query.taskType == 'QUESTIONNAIRE_SCALE' ||
$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'
">
<div style="float: right; margin-top: 20px" v-if="$route.query.taskType == 'QUESTIONNAIRE_SCALE' ||
$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'
">
<el-form :inline="true" class="demo-form-inline" :model="questiondata" ref="questiondata">
<el-form-item label="任务处理信息" prop="routeHandleRemark">
<el-input
type="textarea"
disabled
placeholder="请输入任务处理信息"
v-model="questiondata.routeHandleRemark"
/>
<el-input type="textarea" disabled placeholder="请输入任务处理信息" v-model="questiondata.routeHandleRemark" />
</el-form-item>
</el-form>
</div>
<div
class="sport"
v-if="$route.query.taskType == 'QUESTIONNAIRE_SCALE'"
>
<div class="sport" v-if="$route.query.taskType == 'QUESTIONNAIRE_SCALE'">
问卷模板: Barthel指数评定问卷
</div>
<div
class="words"
v-if="$route.query.taskType == 'QUESTIONNAIRE_SCALE'"
>
<div class="words" v-if="$route.query.taskType == 'QUESTIONNAIRE_SCALE'">
您好!本问卷用于评估日常生活能力请根据自身日常实际表现选择合适的选项
</div>
<div
class="sport"
v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'"
>
<div class="sport" v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'">
人工随访模板: 神经内科人工随访
</div>
<div
class="words"
v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'"
>
<div class="words" v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'">
**您好!
</div>
<div
class="words"
v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'"
>
<div class="words" v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'">
我是医院的工作人员今天给您打电话想要了解一下您的恢复情况
</div>
<div
class="words"
v-for="(item, index) in questiondata.subjectResultList"
:key="index"
>
<div class="words" v-for="(item, index) in questiondata.subjectResultList" :key="index">
{{ index + 1 }}.{{ item.questionName }}
<span v-if="item.questionType == 'MULTIPLE_CHOICE'"
>单选题</span
>
<span v-if="item.questionType == 'MULTIPLE_CHOICE_QUESTIONS'"
>多选题</span
>
<span v-if="item.questionType == 'SCORING_QUESTIONS'"
>打分题</span
>
<span v-if="item.questionType == 'COMBINATION_RADIO_SUBJECT'"
>组合单选题</span
>
<span v-if="item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'"
>组合多选题</span
>
<span v-if="item.questionType == 'COMBINATION_BLANKS_SUBJECT'"
>组合填空题</span
>
<span v-if="item.questionType == 'FILL_IN_THE_BLANKS'"
>填空题</span
>
<span v-if="item.questionType == 'COMBINATION_SCORING_SUBJECT'"
>组合打分题</span
>
<span v-if="item.questionType == 'DATE_BLANKS_SUBJECT'"
>日期填空题</span
>
<span v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
>时间填空题</span
>
<el-radio-group
v-if="
item.questionType == 'MULTIPLE_CHOICE' ||
item.questionType == 'COMBINATION_RADIO_SUBJECT' ||
item.questionType == 'SCORING_QUESTIONS' ||
item.questionType == 'COMBINATION_SCORING_SUBJECT'
"
v-model="item.checked"
class="custom-radio-group"
@change="radioGroupChange($event, item)"
>
<el-radio
disabled
class="custom"
v-for="(aitem, aindex) in item.optionResults"
:key="aindex"
:label="aitem.id"
@change="radioChange($event, aitem, index)"
>{{ aitem.optionName }}</el-radio
>
<span v-if="item.questionType == 'MULTIPLE_CHOICE'">单选题</span>
<span v-if="item.questionType == 'MULTIPLE_CHOICE_QUESTIONS'">多选题</span>
<span v-if="item.questionType == 'SCORING_QUESTIONS'">打分题</span>
<span v-if="item.questionType == 'COMBINATION_RADIO_SUBJECT'">组合单选题</span>
<span v-if="item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'">组合多选题</span>
<span v-if="item.questionType == 'COMBINATION_BLANKS_SUBJECT'">组合填空题</span>
<span v-if="item.questionType == 'FILL_IN_THE_BLANKS'">填空题</span>
<span v-if="item.questionType == 'COMBINATION_SCORING_SUBJECT'">组合打分题</span>
<span v-if="item.questionType == 'DATE_BLANKS_SUBJECT'">日期填空题</span>
<span v-if="item.questionType == 'TIME_BLANKS_SUBJECT'">时间填空题</span>
<el-radio-group v-if="item.questionType == 'MULTIPLE_CHOICE' ||
item.questionType == 'COMBINATION_RADIO_SUBJECT' ||
item.questionType == 'SCORING_QUESTIONS' ||
item.questionType == 'COMBINATION_SCORING_SUBJECT'
" v-model="item.checked" class="custom-radio-group" @change="radioGroupChange($event, item)">
<el-radio disabled class="custom" v-for="(aitem, aindex) in item.optionResults" :key="aindex"
:label="aitem.id" @change="radioChange($event, aitem, index)">{{ aitem.optionName }}</el-radio>
</el-radio-group>
<!-- 多选组合多选 -->
<el-checkbox-group
v-model="checkeddata"
@change="radioGroupChange($event, item, 'checkbox')"
v-if="
item.questionType == 'MULTIPLE_CHOICE_QUESTIONS' ||
item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'
"
>
<el-checkbox
disabled
v-for="(aitem, aindex) in item.optionResults"
:key="aindex"
:label="aitem.id"
@change="radioChangecheck($event, aitem, index, aindex)"
>{{ aitem.optionName }}</el-checkbox
>
<el-checkbox-group v-model="checkeddata" @change="radioGroupChange($event, item, 'checkbox')" v-if="item.questionType == 'MULTIPLE_CHOICE_QUESTIONS' ||
item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'
">
<el-checkbox disabled v-for="(aitem, aindex) in item.optionResults" :key="aindex" :label="aitem.id"
@change="radioChangecheck($event, aitem, index, aindex)">{{ aitem.optionName }}</el-checkbox>
</el-checkbox-group>
<!-- 填空题组合填空 -->
<div
v-if="
item.questionType == 'FILL_IN_THE_BLANKS' ||
item.questionType == 'COMBINATION_BLANKS_SUBJECT'
"
class="tk"
>
<el-input
disabled
v-model="item.fillBlanksAnswer"
placeholder="请输入答案"
type="textarea"
/>
<div v-if="item.questionType == 'FILL_IN_THE_BLANKS' ||
item.questionType == 'COMBINATION_BLANKS_SUBJECT'
" class="tk">
<el-input disabled v-model="item.fillBlanksAnswer" placeholder="请输入答案" type="textarea" />
<!-- <el-input></el-input> -->
</div>
<!-- 日期填空题 -->
<div
v-if="item.questionType == 'DATE_BLANKS_SUBJECT'"
style="margin: 20px 0 10px 30px"
>
<el-date-picker
disabled
@change="timepicker($event, index)"
clearable
v-model="item.fillBlanksAnswer"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期"
>
<div v-if="item.questionType == 'DATE_BLANKS_SUBJECT'" style="margin: 20px 0 10px 30px">
<el-date-picker disabled @change="timepicker($event, index)" clearable v-model="item.fillBlanksAnswer"
type="date" value-format="yyyy-MM-dd" placeholder="选择日期">
</el-date-picker>
</div>
<!-- 时间填空题 -->
<div
style="margin: 20px 0 10px 30px"
v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
>
<el-time-select
disabled
@change="timepickerselect($event, index)"
clearable
v-model="item.fillBlanksAnswer"
:picker-options="{
start: '08:30',
step: '00:30',
end: '23:30',
}"
placeholder="选择时间"
>
<div style="margin: 20px 0 10px 30px" v-if="item.questionType == 'TIME_BLANKS_SUBJECT'">
<el-time-select disabled @change="timepickerselect($event, index)" clearable
v-model="item.fillBlanksAnswer" :picker-options="{
start: '08:30',
step: '00:30',
end: '23:30',
}" placeholder="选择时间">
</el-time-select>
</div>
</div>
@ -332,43 +191,20 @@
<div class="sport">电话外呼</div>
<div class="nexttime">
<el-form
ref="form"
:model="formlist"
label-width="110px"
:inline="true"
>
<el-form ref="form" :model="formlist" label-width="110px" :inline="true">
<el-form-item label="话术名称" prop="scriptName">
<el-input
disabled
v-model="formlist.scriptName"
placeholder="请输入话术名称"
/>
<el-input disabled v-model="formlist.scriptName" placeholder="请输入话术名称" />
</el-form-item>
<br />
<el-form-item label="通用话术名称" prop="commonScriptName">
<el-input
disabled
v-model="formlist.commonScriptName"
placeholder="请输入通用话术名称"
/>
<el-input disabled v-model="formlist.commonScriptName" placeholder="请输入通用话术名称" />
</el-form-item>
<br />
<el-form-item label="话术简介" prop="scriptIntroduction">
<el-input
disabled
type="textarea"
v-model="formlist.scriptIntroduction"
placeholder="请输入话术简介"
/>
<el-input disabled type="textarea" v-model="formlist.scriptIntroduction" placeholder="请输入话术简介" />
</el-form-item>
<el-form-item label="任务处理信息" prop="routeHandleRemark">
<el-input
type="textarea"
disabled
placeholder="请输入任务处理信息"
v-model="formlist.routeHandleRemark"
/>
<el-input type="textarea" disabled placeholder="请输入任务处理信息" v-model="formlist.routeHandleRemark" />
</el-form-item>
</el-form>
</div>
@ -378,20 +214,10 @@
<div class="sport">文字提醒</div>
<div class="nexttime">
<el-form
ref="form"
:model="formlists"
label-width="110px"
:inline="true"
>
<el-form ref="form" :model="formlists" label-width="110px" :inline="true">
<el-form-item label="提醒内容" prop="textRemindContent">
<el-input
disabled
type="textarea"
style="width: 500px"
v-model="formlists.textRemindContent"
placeholder="请输入提醒内容"
/>
<el-input disabled type="textarea" style="width: 500px" v-model="formlists.textRemindContent"
placeholder="请输入提醒内容" />
</el-form-item>
</el-form>
</div>
@ -401,7 +227,7 @@
</div>
</template>
<script>
<script>
import { getPropaganda } from "@/api/manage/propaganda";
import {
@ -520,7 +346,7 @@ export default {
this.questiondata.questionSubjectList[index].optionAnswer = e;
},
radioGroupChange(e, item) {},
radioGroupChange(e, item) { },
// radio
radioChange(e, item, index) {
console.log(e, item, index, "选中某个单选框时");
@ -561,40 +387,48 @@ export default {
},
};
</script>
<style lang="scss" scoped>
<style lang="scss" scoped>
.tk {
::v-deep .el-textarea__inner {
margin: 20px 0 10px 30px;
}
}
::v-deep .el-radio {
padding: 10px;
}
::v-deep .el-checkbox-group {
display: flex;
flex-direction: column;
padding: 10px 0px 10px 24px;
}
::v-deep .el-checkbox {
padding: 10px 0 10px 0px;
// padding: 10px;
}
.custom-radio-group {
display: flex;
flex-direction: column;
padding: 10px 0 10px 10px;
.custom {
padding: 10px 0 10px 10px;
}
}
.custom-radio-group {
display: flex;
flex-direction: column;
padding: 10px 0 10px 10px;
.custom {
padding: 10px 0 10px 10px;
}
}
.bodytop {
position: relative;
top: 20px;
@ -604,37 +438,45 @@ export default {
// background: red;f
overflow: auto;
border: 1px solid #e2e2e2;
.titledata {
margin: 30px 0px 15px 30px;
top: 14px;
font-size: 20px;
}
.audiotop {
margin: 10px 0px 10px 30px;
}
img {
// width: 362px;
// height: 127px;
margin: 0px 0px 0px 30px;
}
video {
margin: 0px 0px 0px 30px;
}
.know {
margin: 11px 0px 10px 30px;
font-size: 20px;
font-weight: 550;
}
.knowlist {
margin: 10px 0px 10px 30px;
font-size: 16px;
}
}
.right {
width: 70%;
height: 500px;
// background: yellow;
}
.header {
background-color: #f1f3f5;
padding-top: 10px;
@ -653,15 +495,18 @@ export default {
background-color: #fff;
margin: 10px auto;
padding: 10px 20px;
.sport {
padding: 10px 50px 10px 10px;
font-size: 20px;
font-weight: 600;
}
.words {
font-size: 15px;
padding: 10px 50px 10px 10px;
}
.sports {
position: absolute;
left: 50%;
@ -669,21 +514,25 @@ export default {
font-size: 18px;
font-weight: 600;
}
.word {
font-size: 14px;
font-weight: 550;
padding: 50px 50px 10px 10px;
}
.videoleft {
width: 40%;
height: 200px;
background: red;
}
.time {
font-size: 20px;
font-weight: 550;
padding: 10px 50px 10px 10px;
}
.number {
width: 25px;
height: 25px;
@ -693,21 +542,25 @@ export default {
background: blue;
border-radius: 50%;
}
.nexttime {
font-size: 15px;
padding: 10px 50px 10px 10px;
}
.images {
width: 53%;
height: 241px;
margin: 0 auto;
background: red;
}
.attention {
font-size: 14px;
font-weight: 550;
padding: 10px 50px 10px 10px;
}
// .videobottom
// {
// font-size: 14px;

View File

@ -497,6 +497,9 @@ export default {
loading.close();
this.$modal.msgSuccess("暂存成功!");
})
setTimeout(() => {
loading.close();
}, 3000);
})
},
//

View File

@ -45,7 +45,6 @@
</el-form-item>-->
<el-form-item label="发布状态" prop="releaseStatus">
<el-select v-model="queryParams.releaseStatus" placeholder="请选择">
<el-option label="全部" value="ALL" />
<el-option label="已发布" value="PUBLISHED" />
<el-option label="未发布" value="UNPUBLISHED" />
</el-select>
@ -262,9 +261,6 @@ export default {
routeSort: [
{ required: true, message: "排序不能为空", trigger: "blur" }
],
routeRemark: [
{ required: true, message: "备注信息不能为空", trigger: "blur" }
],
},
DepartmentoList: [],
departmentName: '',

View File

@ -86,20 +86,16 @@
</el-date-picker>
</el-form-item>
<el-form-item label="手术记录" prop="surgicalRecord" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
<el-input type="textarea" v-model="form.surgicalRecord" style="width:800px"
:rows="8"></el-input>
<editor v-model="form.surgicalRecord" :min-height="192" />
</el-form-item>
<el-form-item label="入院病历" prop="inHospitalInfo" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
<el-input type="textarea" v-model="form.inHospitalInfo" style="width:800px"
:rows="8"></el-input>
<editor v-model="form.inHospitalInfo" :min-height="192" />
</el-form-item>
<el-form-item label="门诊病历" prop="inHospitalInfo" v-if="form.visitMethod == 'OUTPATIENT_SERVICE'">
<el-input type="textarea" v-model="form.inHospitalInfo" style="width:800px"
:rows="8"></el-input>
<editor v-model="form.inHospitalInfo" :min-height="192" />
</el-form-item>
<el-form-item label="出院病历" prop="outHospitalInfo" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
<el-input type="textarea" v-model="form.outHospitalInfo" style="width:800px"
:rows="8"></el-input>
<editor v-model="form.outHospitalInfo" :min-height="192" />
</el-form-item>
</el-form>
</div>
@ -108,7 +104,7 @@
</template>
<script>
import { getList, usergetList, updateVisitRecord, saveRecord } from "@/api/unitconfig/patientConfiguration";
import { getList, usergetList, updateRecord, saveRecord } from "@/api/unitconfig/patientConfiguration";
import { getDepartmentList } from "@/api/manage/selectAgencyList";
export default {
name: "PatientConfigurationVisitRecords",
@ -212,7 +208,7 @@ export default {
this.form.attendingPhysicianName = this.attendingPhysicianlist.find(e => e.userId == this.form.attendingPhysicianId)?.nickName
}
if (this.form.id) {
updateVisitRecord(this.form).then(res => {
updateRecord(this.form).then(res => {
this.$modal.msgSuccess("保存就诊记录成功");
this.info();
})