修改触发条件
This commit is contained in:
parent
0efcc624da
commit
8af54e4a47
@ -7,6 +7,13 @@ export function taskPartitionList(taskTypeId) {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getList(dictType,dictDataType) {
|
||||||
|
return request({
|
||||||
|
url: `/system/dict/data/getList?dictType=${dictType}&dictDataType=${dictDataType}`,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
export function triggerCondition(data) {
|
export function triggerCondition(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/system/triggerCondition/edit`,
|
url: `/system/triggerCondition/edit`,
|
||||||
|
|||||||
@ -1,403 +1,621 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container" ref="layout">
|
<div class="app-container" ref="layout">
|
||||||
<el-tabs v-model="queryParams.routeCheckStatus" @tab-click="handleClick" style="flex: 1;">
|
<el-tabs
|
||||||
<el-tab-pane label="未审核" name="UNAUDITED"></el-tab-pane>
|
v-model="queryParams.routeCheckStatus"
|
||||||
<el-tab-pane label="已审核" name="AGREE"></el-tab-pane>
|
@tab-click="handleClick"
|
||||||
<el-tab-pane label="已忽略" name="DISAGREE"></el-tab-pane>
|
style="flex: 1"
|
||||||
</el-tabs>
|
>
|
||||||
<div ref="topform" class="form">
|
<el-tab-pane label="未审核" name="UNAUDITED"></el-tab-pane>
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="80px">
|
<el-tab-pane label="已审核" name="AGREE"></el-tab-pane>
|
||||||
<el-form-item label="患者姓名" prop="patientName">
|
<el-tab-pane label="已忽略" name="DISAGREE"></el-tab-pane>
|
||||||
<el-input v-model="queryParams.patientName" placeholder="请输入患者姓名" clearable
|
</el-tabs>
|
||||||
@keyup.enter.native="handleQuery" style="width:200px" />
|
<div ref="topform" class="form">
|
||||||
</el-form-item>
|
<el-form
|
||||||
<el-form-item label="患者电话" prop="patientPhone">
|
:model="queryParams"
|
||||||
<el-input v-model="queryParams.patientPhone" placeholder="请输入患者电话" clearable
|
ref="queryForm"
|
||||||
@keyup.enter.native="handleQuery" style="width:200px" />
|
size="small"
|
||||||
</el-form-item>
|
:inline="true"
|
||||||
<el-form-item label="出院/就诊时间" prop="dischargeTimeStart" label-width="120px">
|
label-width="80px"
|
||||||
<el-date-picker v-model="dischargeTime" type="daterange" range-separator="至"
|
>
|
||||||
start-placeholder="开始日期" style="width:300px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
|
<el-form-item label="患者姓名" prop="patientName">
|
||||||
</el-date-picker>
|
<el-input
|
||||||
</el-form-item>
|
v-model="queryParams.patientName"
|
||||||
<el-form-item label="诊断" prop="mainDiagnosis">
|
placeholder="请输入患者姓名"
|
||||||
<el-input v-model="queryParams.mainDiagnosis" placeholder="请选择诊断" clearable style="width:200px"
|
clearable
|
||||||
@keyup.enter.native="handleQuery" />
|
@keyup.enter.native="handleQuery"
|
||||||
</el-form-item>
|
style="width: 200px"
|
||||||
<el-form-item label="患者来源" prop="patientSource">
|
/>
|
||||||
<el-select v-model="queryParams.patientSource" placeholder="请选择患者来源" clearable style="width:200px">
|
</el-form-item>
|
||||||
<el-option v-for="dict in dict.type.patient_source" :key="dict.value" :label="dict.label"
|
<el-form-item label="患者电话" prop="patientPhone">
|
||||||
:value="dict.value" />
|
<el-input
|
||||||
</el-select>
|
v-model="queryParams.patientPhone"
|
||||||
</el-form-item>
|
placeholder="请输入患者电话"
|
||||||
<el-form-item label="医院" prop="hospitalAgencyId">
|
clearable
|
||||||
<el-select v-model="queryParams.hospitalAgencyId" filterable placeholder="请选择医院" style="width:200px"
|
@keyup.enter.native="handleQuery"
|
||||||
clearable @clear="clearhospitalAgency" @change="changehospitalAgency">
|
style="width: 200px"
|
||||||
<el-option v-for="item in hospitalAgencylist" :key="item.id" :label="item.agencyName"
|
/>
|
||||||
:value="item.id">
|
</el-form-item>
|
||||||
</el-option>
|
<!-- <el-form-item
|
||||||
</el-select>
|
label="出院/就诊时间"
|
||||||
</el-form-item>
|
prop="dischargeTimeStart"
|
||||||
<el-form-item label="院区" prop="campusAgencyId" v-if="queryParams.hospitalAgencyId">
|
label-width="120px"
|
||||||
<el-select v-model="queryParams.campusAgencyId" filterable placeholder="请选择院区" style="width:200px"
|
>
|
||||||
clearable @clear="clearcampusAgency" @change="changecampusAgency">
|
<el-date-picker
|
||||||
<el-option v-for="item in campusAgencylist" :key="item.id" :label="item.agencyName"
|
v-model="dischargeTime"
|
||||||
:value="item.id">
|
type="daterange"
|
||||||
</el-option>
|
range-separator="至"
|
||||||
</el-select>
|
start-placeholder="开始日期"
|
||||||
</el-form-item>
|
style="width: 300px"
|
||||||
<el-form-item label="科室" prop="departmentId" v-if="queryParams.hospitalAgencyId">
|
value-format="yyyy-MM-dd"
|
||||||
<el-select v-model="queryParams.departmentId" filterable placeholder="请选择科室" style="width:200px"
|
end-placeholder="结束日期"
|
||||||
clearable @clear="cleardepartment" @change="changedepartment">
|
>
|
||||||
<el-option v-for="item in departmentlist" :key="item.id" :label="item.departmentName"
|
</el-date-picker>
|
||||||
:value="item.id">
|
</el-form-item> -->
|
||||||
</el-option>
|
<el-form-item label="签约时间" prop="signTimeStart">
|
||||||
</el-select>
|
<el-date-picker
|
||||||
</el-form-item>
|
v-model="signTime"
|
||||||
<el-form-item label="病区" prop="wardId" v-if="queryParams.hospitalAgencyId">
|
type="daterange"
|
||||||
<el-select v-model="queryParams.wardId" filterable placeholder="请选择病区" style="width:200px"
|
range-separator="至"
|
||||||
clearable>
|
start-placeholder="开始日期"
|
||||||
<el-option v-for="item in wardlist" :key="item.id" :label="item.departmentName"
|
style="width: 300px"
|
||||||
:value="item.id">
|
value-format="yyyy-MM-dd"
|
||||||
</el-option>
|
end-placeholder="结束日期"
|
||||||
</el-select>
|
>
|
||||||
</el-form-item>
|
</el-date-picker>
|
||||||
<el-form-item>
|
</el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-form-item label="诊断" prop="mainDiagnosis">
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-input
|
||||||
</el-form-item>
|
v-model="queryParams.mainDiagnosis"
|
||||||
</el-form>
|
placeholder="请选择诊断"
|
||||||
</div>
|
clearable
|
||||||
<div ref="table">
|
style="width: 200px"
|
||||||
<el-table :max-height="maxTableHeight" v-loading="loading" :data="patientInfoList">
|
@keyup.enter.native="handleQuery"
|
||||||
<el-table-column label="序号" type="index" width="50" align="center" />
|
/>
|
||||||
<el-table-column label="患者姓名" align="center" prop="patientName" width="80"/>
|
</el-form-item>
|
||||||
<el-table-column label="患者电话" align="center" prop="patientPhone" width='120' />
|
<el-form-item label="患者来源" prop="patientSource">
|
||||||
<el-table-column label="性别" align="center" prop="sex" width='50'>
|
<el-select
|
||||||
<template slot-scope="scope">
|
v-model="queryParams.patientSource"
|
||||||
{{ scope.row.sex == 'MALE' ? '男' : '' }}
|
placeholder="请选择患者来源"
|
||||||
{{ scope.row.sex == 'FEMALE' ? '女' : '' }}
|
clearable
|
||||||
</template>
|
style="width: 200px"
|
||||||
</el-table-column>
|
>
|
||||||
<el-table-column label="年龄" align="center" prop="age" width='50'/>
|
<el-option
|
||||||
<el-table-column label="出生日期" align="center" prop="birthDate" width='100' />
|
v-for="dict in dict.type.patient_source"
|
||||||
<el-table-column label="医院" align="center" prop="hospitalAgencyName" :show-overflow-tooltip="true"/>
|
:key="dict.value"
|
||||||
<el-table-column label="院区" align="center" prop="campusAgencyName" :show-overflow-tooltip="true"/>
|
:label="dict.label"
|
||||||
<el-table-column label="科室名称" align="center" prop="departmentName" :show-overflow-tooltip="true"/>
|
:value="dict.value"
|
||||||
<el-table-column label="病区名称" align="center" prop="wardName" />
|
/>
|
||||||
<el-table-column label="住院/门诊号" align="center" prop="inHospitalNumber" width='105' :show-overflow-tooltip="true" />
|
</el-select>
|
||||||
<el-table-column label="患者来源" align="center" prop="patientSource" width="80">
|
</el-form-item>
|
||||||
<template slot-scope="scope">
|
<el-form-item label="医院" prop="hospitalAgencyId">
|
||||||
<dict-tag :options="dict.type.patient_source" :value="scope.row.patientSource" />
|
<el-select
|
||||||
</template>
|
v-model="queryParams.hospitalAgencyId"
|
||||||
</el-table-column>
|
filterable
|
||||||
<el-table-column label="医生" align="center" prop="attendingPhysicianName" width="80" :show-overflow-tooltip="true"/>
|
placeholder="请选择医院"
|
||||||
<el-table-column label="诊断" align="center" prop="mainDiagnosis" :show-overflow-tooltip="true" width='100'/>
|
style="width: 200px"
|
||||||
<el-table-column label="手术名称" align="center" prop="surgicalName" />
|
clearable
|
||||||
<el-table-column label="出院/就诊时间" align="center" prop="dischargeTime" width="105">
|
@clear="clearhospitalAgency"
|
||||||
<template slot-scope="scope">
|
@change="changehospitalAgency"
|
||||||
<span>{{ parseTime(scope.row.dischargeTime, '{y}-{m}-{d}') }}</span>
|
>
|
||||||
</template>
|
<el-option
|
||||||
</el-table-column>
|
v-for="item in hospitalAgencylist"
|
||||||
<!-- <el-table-column label="就诊方式" align="center" prop="visitMethod">
|
:key="item.id"
|
||||||
|
:label="item.agencyName"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="院区"
|
||||||
|
prop="campusAgencyId"
|
||||||
|
v-if="queryParams.hospitalAgencyId"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.campusAgencyId"
|
||||||
|
filterable
|
||||||
|
placeholder="请选择院区"
|
||||||
|
style="width: 200px"
|
||||||
|
clearable
|
||||||
|
@clear="clearcampusAgency"
|
||||||
|
@change="changecampusAgency"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in campusAgencylist"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.agencyName"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="科室"
|
||||||
|
prop="departmentId"
|
||||||
|
v-if="queryParams.hospitalAgencyId"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.departmentId"
|
||||||
|
filterable
|
||||||
|
placeholder="请选择科室"
|
||||||
|
style="width: 200px"
|
||||||
|
clearable
|
||||||
|
@clear="cleardepartment"
|
||||||
|
@change="changedepartment"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in departmentlist"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.departmentName"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="病区"
|
||||||
|
prop="wardId"
|
||||||
|
v-if="queryParams.hospitalAgencyId"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.wardId"
|
||||||
|
filterable
|
||||||
|
placeholder="请选择病区"
|
||||||
|
style="width: 200px"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in wardlist"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.departmentName"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</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-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<div ref="table">
|
||||||
|
<el-table
|
||||||
|
:max-height="maxTableHeight"
|
||||||
|
v-loading="loading"
|
||||||
|
:data="patientInfoList"
|
||||||
|
>
|
||||||
|
<el-table-column label="序号" type="index" width="50" align="center" />
|
||||||
|
<el-table-column
|
||||||
|
label="患者姓名"
|
||||||
|
align="center"
|
||||||
|
prop="patientName"
|
||||||
|
width="80"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="患者电话"
|
||||||
|
align="center"
|
||||||
|
prop="patientPhone"
|
||||||
|
width="120"
|
||||||
|
/>
|
||||||
|
<el-table-column label="性别" align="center" prop="sex" width="50">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.sex == "MALE" ? "男" : "" }}
|
||||||
|
{{ scope.row.sex == "FEMALE" ? "女" : "" }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="年龄" align="center" prop="age" width="50" />
|
||||||
|
<el-table-column
|
||||||
|
label="出生日期"
|
||||||
|
align="center"
|
||||||
|
prop="birthDate"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="医院"
|
||||||
|
align="center"
|
||||||
|
prop="hospitalAgencyName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="院区"
|
||||||
|
align="center"
|
||||||
|
prop="campusAgencyName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="科室名称"
|
||||||
|
align="center"
|
||||||
|
prop="departmentName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column label="病区名称" align="center" prop="wardName" />
|
||||||
|
<el-table-column
|
||||||
|
label="住院/门诊号"
|
||||||
|
align="center"
|
||||||
|
prop="inHospitalNumber"
|
||||||
|
width="105"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<!-- <el-table-column label="就诊方式" align="center" prop="visitMethod" width="80"> -->
|
||||||
|
<!-- <template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.patient_source" :value="scope.row.visitMethod" />
|
||||||
|
</template> -->
|
||||||
|
<!-- </el-table-column> -->
|
||||||
|
<el-table-column label="就诊方式" align="center" prop="visitMethod">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag
|
||||||
|
:options="dict.type.visit_method"
|
||||||
|
:value="scope.row.visitMethod"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column label="医生" align="center" prop="attendingPhysicianName" width="80" :show-overflow-tooltip="true"/> -->
|
||||||
|
<el-table-column
|
||||||
|
label="主要诊断"
|
||||||
|
align="center"
|
||||||
|
prop="signDiagnosis"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<!-- <el-table-column label="手术名称" align="center" prop="surgicalName" /> -->
|
||||||
|
<el-table-column
|
||||||
|
label="签约时间"
|
||||||
|
align="center"
|
||||||
|
prop="signTime"
|
||||||
|
width="105"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.signTime, "{y}-{m}-{d}") }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column label="就诊方式" align="center" prop="visitMethod">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.visit_method" :value="scope.row.visitMethod" />
|
<dict-tag :options="dict.type.visit_method" :value="scope.row.visitMethod" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="住址" align="center" prop="address" /> -->
|
<el-table-column label="住址" align="center" prop="address" /> -->
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
<el-table-column
|
||||||
<template slot-scope="scope">
|
label="操作"
|
||||||
<el-button size="mini" type="text" @click="handleAuthRole(scope.row)"
|
align="center"
|
||||||
v-if="queryParams.routeCheckStatus == 'UNAUDITED'">审核</el-button>
|
class-name="small-padding fixed-width"
|
||||||
<el-button size="mini" type="text" @click="handleLook(scope.row)"
|
fixed="right"
|
||||||
v-if="queryParams.routeCheckStatus != 'UNAUDITED'">查看</el-button>
|
>
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
<el-button
|
||||||
</el-table>
|
size="mini"
|
||||||
</div>
|
type="text"
|
||||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
@click="handleAuthRole(scope.row)"
|
||||||
:limit.sync="queryParams.pageSize" @pagination="getList" />
|
v-if="queryParams.routeCheckStatus == 'UNAUDITED'"
|
||||||
|
>审核</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
@click="handleLook(scope.row)"
|
||||||
|
v-if="queryParams.routeCheckStatus != 'UNAUDITED'"
|
||||||
|
>查看</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { tasklist } from "@/api/manage/manualReview";
|
import { tasklist } from "@/api/manage/manualReview";
|
||||||
import { getAge } from "@/utils/age";
|
import { getAge } from "@/utils/age";
|
||||||
import { selectAgencyList, getDepartmentList, getAgencyList } from "@/api/manage/selectAgencyList";
|
import {
|
||||||
|
selectAgencyList,
|
||||||
|
getDepartmentList,
|
||||||
|
getAgencyList,
|
||||||
|
} from "@/api/manage/selectAgencyList";
|
||||||
import { usergetList } from "@/api/unitconfig/patientConfiguration";
|
import { usergetList } from "@/api/unitconfig/patientConfiguration";
|
||||||
export default {
|
export default {
|
||||||
name: "manualReview",
|
name: "manualReview",
|
||||||
dicts: ['patient_type', 'visit_method', 'sign_status', 'patient_source'],
|
dicts: ["patient_type", "visit_method", "sign_status", "patient_source"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
maxTableHeight: undefined,
|
maxTableHeight: undefined,
|
||||||
attendingPhysicianlist: [],
|
attendingPhysicianlist: [],
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
// 患者信息表格数据
|
// 患者信息表格数据
|
||||||
patientInfoList: [],
|
patientInfoList: [],
|
||||||
// 查询参数
|
signTime: [],
|
||||||
queryParams: {
|
|
||||||
pageNum: 1,
|
// 查询参数
|
||||||
pageSize: 10,
|
queryParams: {
|
||||||
patientName: null,
|
pageNum: 1,
|
||||||
patientPhone: null,
|
pageSize: 10,
|
||||||
birthDate: null,
|
patientName: null,
|
||||||
patientType: null,
|
patientPhone: null,
|
||||||
visitMethod: null,
|
birthDate: null,
|
||||||
mainDiagnosis: null,
|
patientType: null,
|
||||||
attendingPhysicianId: null,
|
visitMethod: null,
|
||||||
hospitalAgencyId: null,
|
mainDiagnosis: null,
|
||||||
hospitalAgencyName: null,
|
attendingPhysicianId: null,
|
||||||
campusAgencyId: null,
|
hospitalAgencyId: null,
|
||||||
|
hospitalAgencyName: null,
|
||||||
campusAgencyName: null,
|
campusAgencyId: null,
|
||||||
departmentId: null,
|
signTimeStart: null,
|
||||||
departmentName: null,
|
signTimeEnd: null,
|
||||||
wardId: null,
|
|
||||||
wardName: null,
|
campusAgencyName: null,
|
||||||
surgicalName: null,
|
departmentId: null,
|
||||||
admissionTimeStart: null,
|
departmentName: null,
|
||||||
admissionTimeEnd: null,
|
wardId: null,
|
||||||
outpatientNumber: null,
|
wardName: null,
|
||||||
dischargeTimeStart: null,
|
surgicalName: null,
|
||||||
dischargeTimeEnd: null,
|
admissionTimeStart: null,
|
||||||
dischargeMethod: null,
|
admissionTimeEnd: null,
|
||||||
patientSource: null,
|
outpatientNumber: null,
|
||||||
routeCheckStatus: 'UNAUDITED',
|
dischargeTimeStart: null,
|
||||||
},
|
dischargeTimeEnd: null,
|
||||||
dischargeTime: [],
|
dischargeMethod: null,
|
||||||
admissionTime: [],
|
patientSource: null,
|
||||||
//医院list
|
routeCheckStatus: "UNAUDITED",
|
||||||
hospitalAgencylist: [],
|
},
|
||||||
// 院区list
|
dischargeTime: [],
|
||||||
campusAgencylist: [],
|
admissionTime: [],
|
||||||
//科室list
|
//医院list
|
||||||
departmentlist: [],
|
hospitalAgencylist: [],
|
||||||
//病区list
|
// 院区list
|
||||||
wardlist: [],
|
campusAgencylist: [],
|
||||||
};
|
//科室list
|
||||||
|
departmentlist: [],
|
||||||
|
//病区list
|
||||||
|
wardlist: [],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
this.selectAgencyinfo();
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getMaxTableHeight();
|
||||||
|
this.screenChange();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleClick(tab, event) {
|
||||||
|
this.dischargeTime = [];
|
||||||
|
this.queryParams.dischargeTimeStart = null;
|
||||||
|
this.queryParams.dischargeTimeEnd = null;
|
||||||
|
this.admissionTime = [];
|
||||||
|
this.queryParams.admissionTimeStart = null;
|
||||||
|
this.queryParams.admissionTimeEnd = null;
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
},
|
},
|
||||||
created() {
|
//主治医生
|
||||||
this.getList();
|
usergetListinfo() {
|
||||||
this.selectAgencyinfo();
|
usergetList({
|
||||||
|
hospitalAgencyId: this.queryParams.hospitalAgencyId,
|
||||||
|
postName: "DOCTOR",
|
||||||
|
}).then((res) => {
|
||||||
|
this.attendingPhysicianlist = res.data;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
mounted() {
|
//查看操作
|
||||||
this.getMaxTableHeight()
|
handleLook(row) {
|
||||||
this.screenChange()
|
this.$router.push({
|
||||||
|
path: "/task/LookAuditing",
|
||||||
|
query: {
|
||||||
|
patientId: row.patientId,
|
||||||
|
routeCheckStatus: this.queryParams.routeCheckStatus,
|
||||||
|
},
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
/** 审核操作 */
|
||||||
handleClick(tab, event) {
|
handleAuthRole(row) {
|
||||||
this.dischargeTime = []
|
this.$router.push({
|
||||||
this.queryParams.dischargeTimeStart = null
|
path: "/task/Auditing",
|
||||||
this.queryParams.dischargeTimeEnd = null
|
query: {
|
||||||
this.admissionTime = []
|
patientId: row.patientId,
|
||||||
this.queryParams.admissionTimeStart = null
|
|
||||||
this.queryParams.admissionTimeEnd = null
|
|
||||||
this.queryParams.pageNum = 1
|
|
||||||
this.getList();
|
|
||||||
},
|
},
|
||||||
//主治医生
|
});
|
||||||
usergetListinfo() {
|
},
|
||||||
usergetList({
|
/** 查询患者信息列表 */
|
||||||
hospitalAgencyId: this.queryParams.hospitalAgencyId,
|
getList() {
|
||||||
postName: 'DOCTOR'
|
this.loading = true;
|
||||||
}).then(res => {
|
// this.queryParams.taskCreateType = 'MANUAL_CREATE's
|
||||||
this.attendingPhysicianlist = res.data
|
tasklist(this.queryParams).then((response) => {
|
||||||
})
|
response.rows.forEach((e) => {
|
||||||
},
|
e.birthDate ? (e.age = getAge(e.birthDate)) : "";
|
||||||
//查看操作
|
});
|
||||||
handleLook(row) {
|
this.patientInfoList = response.rows;
|
||||||
this.$router.push({
|
this.total = response.total;
|
||||||
path: "/task/LookAuditing",
|
this.loading = false;
|
||||||
query: {
|
});
|
||||||
patientId: row.patientId,
|
},
|
||||||
routeCheckStatus: this.queryParams.routeCheckStatus,
|
/** 搜索按钮操作 */
|
||||||
},
|
handleQuery() {
|
||||||
});
|
if (this.dischargeTime?.length > 0) {
|
||||||
},
|
this.queryParams.dischargeTimeStart = this.dischargeTime[0];
|
||||||
/** 审核操作 */
|
this.queryParams.dischargeTimeEnd = this.dischargeTime[1];
|
||||||
handleAuthRole(row) {
|
} else {
|
||||||
this.$router.push({
|
this.queryParams.dischargeTimeStart = null;
|
||||||
path: "/task/Auditing",
|
this.queryParams.dischargeTimeEnd = null;
|
||||||
query: {
|
}
|
||||||
patientId: row.patientId,
|
if (this.admissionTime?.length > 0) {
|
||||||
},
|
this.queryParams.admissionTimeStart = this.admissionTime[0];
|
||||||
});
|
this.queryParams.admissionTimeEnd = this.admissionTime[1];
|
||||||
},
|
} else {
|
||||||
/** 查询患者信息列表 */
|
this.queryParams.admissionTimeStart = null;
|
||||||
getList() {
|
this.queryParams.admissionTimeEnd = null;
|
||||||
this.loading = true;
|
}
|
||||||
// this.queryParams.taskCreateType = 'MANUAL_CREATE's
|
if (this.signTime?.length > 0) {
|
||||||
tasklist(this.queryParams).then(response => {
|
this.queryParams.signTimeStart = this.signTime[0];
|
||||||
response.rows.forEach(e => {
|
this.queryParams.signTimeEnd = this.signTime[1];
|
||||||
e.birthDate ? e.age = getAge(e.birthDate) : ''
|
} else {
|
||||||
})
|
this.queryParams.signTimeStart = null;
|
||||||
this.patientInfoList = response.rows;
|
this.queryParams.signTimeEnd = null;
|
||||||
this.total = response.total;
|
}
|
||||||
this.loading = false;
|
this.queryParams.pageNum = 1;
|
||||||
});
|
this.getList();
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 重置按钮操作 */
|
||||||
handleQuery() {
|
resetQuery() {
|
||||||
if (this.dischargeTime?.length > 0) {
|
this.signTime = [];
|
||||||
this.queryParams.dischargeTimeStart = this.dischargeTime[0]
|
this.admissionTime = [];
|
||||||
this.queryParams.dischargeTimeEnd = this.dischargeTime[1]
|
this.queryParams.signTimeStart = null;
|
||||||
} else {
|
this.queryParams.signTimeEnd = null;
|
||||||
this.queryParams.dischargeTimeStart = null
|
this.queryParams.admissionTimeStart = null;
|
||||||
this.queryParams.dischargeTimeEnd = null
|
this.queryParams.admissionTimeEnd = null;
|
||||||
}
|
this.dischargeTime = [];
|
||||||
if (this.admissionTime?.length > 0) {
|
this.queryParams.dischargeTimeStart = null;
|
||||||
this.queryParams.admissionTimeStart = this.admissionTime[0]
|
this.queryParams.dischargeTimeEnd = null;
|
||||||
this.queryParams.admissionTimeEnd = this.admissionTime[1]
|
this.resetForm("queryForm");
|
||||||
} else {
|
this.handleQuery();
|
||||||
this.queryParams.admissionTimeStart = null
|
},
|
||||||
this.queryParams.admissionTimeEnd = null
|
selectAgencyinfo() {
|
||||||
}
|
let query = {
|
||||||
this.queryParams.pageNum = 1;
|
agencyStatus: "ON",
|
||||||
this.getList();
|
nodeType: "HOSPITAL",
|
||||||
},
|
};
|
||||||
/** 重置按钮操作 */
|
selectAgencyList(query).then((res) => {
|
||||||
resetQuery() {
|
this.hospitalAgencylist = res.data;
|
||||||
this.admissionTime = [];
|
});
|
||||||
this.queryParams.admissionTimeStart = null
|
},
|
||||||
this.queryParams.admissionTimeEnd = null
|
//获取下级单位
|
||||||
this.dischargeTime = []
|
getAgencyListinfo(nodeType, id) {
|
||||||
this.queryParams.dischargeTimeStart = null
|
let query = {
|
||||||
this.queryParams.dischargeTimeEnd = null
|
nodeType: nodeType,
|
||||||
this.resetForm("queryForm");
|
};
|
||||||
this.handleQuery();
|
if (nodeType == "HOSPITAL") {
|
||||||
},
|
query.hospitalId = id;
|
||||||
selectAgencyinfo() {
|
} else if (nodeType == "CAMPUS") {
|
||||||
let query = {
|
query.campusId = id;
|
||||||
agencyStatus: 'ON',
|
} else if (nodeType == "DEPARTMENT") {
|
||||||
nodeType: 'HOSPITAL',
|
query.departmentId = id;
|
||||||
}
|
}
|
||||||
selectAgencyList(query).then(res => {
|
getAgencyList(query).then((res) => {
|
||||||
this.hospitalAgencylist = res.data
|
if (nodeType == "HOSPITAL") {
|
||||||
})
|
this.campusAgencylist = res.data.campusList;
|
||||||
},
|
this.departmentlist = res.data.departmentList;
|
||||||
//获取下级单位
|
} else if (nodeType == "CAMPUS") {
|
||||||
getAgencyListinfo(nodeType, id) {
|
this.departmentlist = res.data.departmentList;
|
||||||
let query = {
|
}
|
||||||
nodeType: nodeType,
|
this.wardlist = res.data.wardList;
|
||||||
}
|
});
|
||||||
if (nodeType == 'HOSPITAL') {
|
},
|
||||||
query.hospitalId = id
|
//选中医院获取院区
|
||||||
} else if (nodeType == 'CAMPUS') {
|
changehospitalAgency(id) {
|
||||||
query.campusId = id
|
this.getAgencyListinfo("HOSPITAL", id);
|
||||||
} else if (nodeType == 'DEPARTMENT') {
|
// let query = {
|
||||||
query.departmentId = id
|
// agencyStatus: 'ON',
|
||||||
}
|
// nodeType: 'CAMPUS',
|
||||||
getAgencyList(query).then(res => {
|
// parentId: id,
|
||||||
if (nodeType == 'HOSPITAL') {
|
// }
|
||||||
this.campusAgencylist = res.data.campusList
|
// selectAgencyList(query).then(res => {
|
||||||
this.departmentlist = res.data.departmentList
|
// this.campusAgencylist = res.data
|
||||||
} else if (nodeType == 'CAMPUS') {
|
this.queryParams.campusAgencyId = null;
|
||||||
this.departmentlist = res.data.departmentList
|
this.queryParams.departmentId = null;
|
||||||
}
|
this.queryParams.wardId = null;
|
||||||
this.wardlist = res.data.wardList
|
this.queryParams.attendingPhysicianId = null;
|
||||||
})
|
// })
|
||||||
},
|
//医生
|
||||||
//选中医院获取院区
|
this.usergetListinfo();
|
||||||
changehospitalAgency(id) {
|
},
|
||||||
this.getAgencyListinfo('HOSPITAL', id)
|
//选中院区获取科室
|
||||||
// let query = {
|
changecampusAgency(id) {
|
||||||
// agencyStatus: 'ON',
|
this.getAgencyListinfo("CAMPUS", id);
|
||||||
// nodeType: 'CAMPUS',
|
// let query = {
|
||||||
// parentId: id,
|
// nodeType: 'DEPARTMENT',
|
||||||
// }
|
// hospitalAgencyId: id,
|
||||||
// selectAgencyList(query).then(res => {
|
// }
|
||||||
// this.campusAgencylist = res.data
|
// getDepartmentList(query).then(res => {
|
||||||
this.queryParams.campusAgencyId = null
|
// this.departmentlist = res.data
|
||||||
this.queryParams.departmentId = null
|
this.queryParams.departmentId = null;
|
||||||
this.queryParams.wardId = null
|
this.queryParams.wardId = null;
|
||||||
this.queryParams.attendingPhysicianId = null
|
// })
|
||||||
// })
|
},
|
||||||
//医生
|
//选中科室获取病区
|
||||||
this.usergetListinfo();
|
changedepartment(id) {
|
||||||
},
|
this.getAgencyListinfo("DEPARTMENT", id);
|
||||||
//选中院区获取科室
|
// let query = {
|
||||||
changecampusAgency(id) {
|
// nodeType: 'WARD',
|
||||||
this.getAgencyListinfo('CAMPUS', id)
|
// parentDepartmentId: id,
|
||||||
// let query = {
|
// }
|
||||||
// nodeType: 'DEPARTMENT',
|
// getDepartmentList(query).then(res => {
|
||||||
// hospitalAgencyId: id,
|
// this.wardlist = res.data
|
||||||
// }
|
this.queryParams.wardId = null;
|
||||||
// getDepartmentList(query).then(res => {
|
// })
|
||||||
// this.departmentlist = res.data
|
},
|
||||||
this.queryParams.departmentId = null
|
//清空医院
|
||||||
this.queryParams.wardId = null
|
clearhospitalAgency() {
|
||||||
// })
|
this.queryParams.campusAgencyId = null;
|
||||||
},
|
this.queryParams.departmentId = null;
|
||||||
//选中科室获取病区
|
this.queryParams.wardId = null;
|
||||||
changedepartment(id) {
|
this.queryParams.attendingPhysicianId = null;
|
||||||
this.getAgencyListinfo('DEPARTMENT', id)
|
},
|
||||||
// let query = {
|
//清空院区
|
||||||
// nodeType: 'WARD',
|
clearcampusAgency() {
|
||||||
// parentDepartmentId: id,
|
this.queryParams.departmentId = null;
|
||||||
// }
|
this.queryParams.wardId = null;
|
||||||
// getDepartmentList(query).then(res => {
|
this.getAgencyListinfo("HOSPITAL", this.queryParams.hospitalAgencyId);
|
||||||
// this.wardlist = res.data
|
},
|
||||||
this.queryParams.wardId = null
|
//清空科室
|
||||||
// })
|
cleardepartment() {
|
||||||
},
|
this.queryParams.wardId = null;
|
||||||
//清空医院
|
if (this.queryParams.departmentId) {
|
||||||
clearhospitalAgency() {
|
this.getAgencyListinfo("DEPARTMENT", this.queryParams.departmentId);
|
||||||
this.queryParams.campusAgencyId = null
|
} else if (this.queryParams.campusAgencyId) {
|
||||||
this.queryParams.departmentId = null
|
this.getAgencyListinfo("CAMPUS", this.queryParams.campusAgencyId);
|
||||||
this.queryParams.wardId = null
|
} else if (this.queryParams.hospitalAgencyId) {
|
||||||
this.queryParams.attendingPhysicianId = null
|
this.getAgencyListinfo("HOSPITAL", this.queryParams.hospitalAgencyId);
|
||||||
},
|
}
|
||||||
//清空院区
|
},
|
||||||
clearcampusAgency() {
|
// 获取表格最高高度
|
||||||
this.queryParams.departmentId = null
|
getMaxTableHeight() {
|
||||||
this.queryParams.wardId = null
|
const windowInnerHeight = window.innerHeight; // 屏幕可视高度
|
||||||
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
|
const layoutDiv = this.$refs.layout;
|
||||||
},
|
const formDiv = this.$refs.topform;
|
||||||
//清空科室
|
this.maxTableHeight =
|
||||||
cleardepartment() {
|
windowInnerHeight -
|
||||||
this.queryParams.wardId = null
|
134 -
|
||||||
if (this.queryParams.departmentId) {
|
54 -
|
||||||
this.getAgencyListinfo('DEPARTMENT', this.queryParams.departmentId)
|
this.getBoxPadding(layoutDiv) -
|
||||||
} else if (this.queryParams.campusAgencyId) {
|
this.getBoxHeight(formDiv);
|
||||||
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId)
|
},
|
||||||
} else if (this.queryParams.hospitalAgencyId) {
|
// 屏幕resize监听
|
||||||
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
|
screenChange() {
|
||||||
}
|
// 屏幕resize监听事件:一旦屏幕宽高发生变化,就会执行resize
|
||||||
},
|
window.addEventListener("resize", this.getMaxTableHeight, true);
|
||||||
// 获取表格最高高度
|
// 将屏幕监听事件移除
|
||||||
getMaxTableHeight() {
|
// 这步是必须的。离开页面时不移除,再返回,或者进入到别的有相同元素的页面会报错
|
||||||
const windowInnerHeight = window.innerHeight // 屏幕可视高度
|
// 或者将这里的方法直接写在beforeDestroy函数中也可以
|
||||||
const layoutDiv = this.$refs.layout
|
this.$once("hook:beforeDestroy", () => {
|
||||||
const formDiv = this.$refs.topform
|
window.removeEventListener("resize", this.getMaxTableHeight, true);
|
||||||
this.maxTableHeight =
|
});
|
||||||
windowInnerHeight - 134 - 54 -
|
},
|
||||||
this.getBoxPadding(layoutDiv) -
|
},
|
||||||
this.getBoxHeight(formDiv)
|
|
||||||
},
|
|
||||||
// 屏幕resize监听
|
|
||||||
screenChange() {
|
|
||||||
// 屏幕resize监听事件:一旦屏幕宽高发生变化,就会执行resize
|
|
||||||
window.addEventListener('resize', this.getMaxTableHeight, true)
|
|
||||||
// 将屏幕监听事件移除
|
|
||||||
// 这步是必须的。离开页面时不移除,再返回,或者进入到别的有相同元素的页面会报错
|
|
||||||
// 或者将这里的方法直接写在beforeDestroy函数中也可以
|
|
||||||
this.$once('hook:beforeDestroy', () => {
|
|
||||||
window.removeEventListener('resize', this.getMaxTableHeight, true)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep .el-table {
|
::v-deep .el-table {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-container {
|
.app-container {
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -9,30 +9,30 @@
|
|||||||
<div class="node" v-if="updata">
|
<div class="node" v-if="updata">
|
||||||
<!-- {{ updata.length }} -->
|
<!-- {{ updata.length }} -->
|
||||||
<el-select
|
<el-select
|
||||||
v-model="updata.triggerConditionCode"
|
v-model="updata.triggerConditionName"
|
||||||
style="width: 120px"
|
style="width: 120px"
|
||||||
disabled
|
disabled
|
||||||
@change="changetriggerConditionName($event, index)"
|
@change="changetriggerConditionName($event, index)"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in optionsname"
|
v-for="item in optionsname"
|
||||||
:key="item.value"
|
:key="item.dictValue"
|
||||||
:label="item.label"
|
:label="item.dictLabel"
|
||||||
:value="item.value"
|
:value="item.dictValue"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-select
|
<el-select
|
||||||
disabled
|
disabled
|
||||||
v-model="updata.triggerConditionOperator"
|
v-model="updata.triggerConditionOperatorName"
|
||||||
style="width: 100px"
|
style="width: 100px"
|
||||||
@change="changetriggerLogic($event, index)"
|
@change="changetriggerLogic($event, index)"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in optionstriggerConditionOperator"
|
v-for="item in optionstriggerConditionOperator"
|
||||||
:key="item.value"
|
:key="item.dictValue"
|
||||||
:label="item.label"
|
:label="item.dictLabel"
|
||||||
:value="item.value"
|
:value="item.dictValue"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -81,7 +81,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="item.triggerConditionCode"
|
v-model="item.triggerConditionName"
|
||||||
style="width: 120px"
|
style="width: 120px"
|
||||||
disabled
|
disabled
|
||||||
@change="changetriggerConditionName($event, index)"
|
@change="changetriggerConditionName($event, index)"
|
||||||
@ -96,7 +96,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<el-select
|
<el-select
|
||||||
disabled
|
disabled
|
||||||
v-model="item.triggerConditionOperator"
|
v-model="item.triggerConditionOperatorName"
|
||||||
style="width: 100px"
|
style="width: 100px"
|
||||||
@change="changetriggerLogic($event, index)"
|
@change="changetriggerLogic($event, index)"
|
||||||
>
|
>
|
||||||
@ -169,7 +169,7 @@
|
|||||||
>
|
>
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="toptop">
|
<div class="toptop">
|
||||||
<el-select v-model="item.routeNodeName" style="width: 100px">
|
<el-select v-model="item.routeNodeName" style="width: 100px" @change="changetoday">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in parentDictCodelist"
|
v-for="item in parentDictCodelist"
|
||||||
:key="item.dictValue"
|
:key="item.dictValue"
|
||||||
@ -541,6 +541,7 @@
|
|||||||
v-for="(item, index) in openlist.triggerConditionList"
|
v-for="(item, index) in openlist.triggerConditionList"
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
|
<!-- 且或 -->
|
||||||
<div
|
<div
|
||||||
style="width: 60px; position: absolute; left: 2%; top: 57%"
|
style="width: 60px; position: absolute; left: 2%; top: 57%"
|
||||||
v-if="openlist.triggerConditionList.length === 3"
|
v-if="openlist.triggerConditionList.length === 3"
|
||||||
@ -563,6 +564,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 诊断 -->
|
||||||
<el-select
|
<el-select
|
||||||
v-model="item.triggerConditionCode"
|
v-model="item.triggerConditionCode"
|
||||||
style="width: 120px"
|
style="width: 120px"
|
||||||
@ -570,12 +572,13 @@
|
|||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in optionsname"
|
v-for="item in optionsname"
|
||||||
:key="item.value"
|
:key="item.dictValue"
|
||||||
:label="item.label"
|
:label="item.dictLabel"
|
||||||
:value="item.value"
|
:value="item.dictValue"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
<!-- 包含 -->
|
||||||
<el-select
|
<el-select
|
||||||
v-model="item.triggerConditionOperator"
|
v-model="item.triggerConditionOperator"
|
||||||
style="width: 100px"
|
style="width: 100px"
|
||||||
@ -583,21 +586,22 @@
|
|||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in optionstriggerConditionOperator"
|
v-for="item in optionstriggerConditionOperator"
|
||||||
:key="item.value"
|
:key="item.dictValue"
|
||||||
:label="item.label"
|
:label="item.dictLabel"
|
||||||
:value="item.value"
|
:value="item.dictValue"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<el-input
|
<el-input
|
||||||
v-if="item.triggerConditionCode != 'DRESSING_CHANGE_DATE'"
|
v-if="item.dictDataType == 'STRING'"
|
||||||
v-model="item.triggerConditionValue"
|
v-model="item.triggerConditionValue"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
placeholder="请输入触发条件"
|
placeholder="请输入触发条件"
|
||||||
|
maxlength="100"
|
||||||
></el-input>
|
></el-input>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-if="item.triggerConditionCode == 'DRESSING_CHANGE_DATE'"
|
v-if="item.dictDataType == 'DATE'"
|
||||||
v-model="item.triggerConditionValue"
|
v-model="item.triggerConditionValue"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
type="date"
|
type="date"
|
||||||
@ -605,6 +609,14 @@
|
|||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
|
<!-- {{ item }} -->
|
||||||
|
<el-input
|
||||||
|
v-if="item.dictDataType == 'DECIMAL'"
|
||||||
|
style="width: 300px"
|
||||||
|
v-model="item.triggerConditionValue"
|
||||||
|
type="number"
|
||||||
|
:min="0"
|
||||||
|
></el-input>
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
@ -699,6 +711,7 @@ import {
|
|||||||
updateRouteCheckStatus,
|
updateRouteCheckStatus,
|
||||||
list,
|
list,
|
||||||
triggerConditionList,
|
triggerConditionList,
|
||||||
|
getList,
|
||||||
} from "@/api/system/specialDiseaseNode";
|
} from "@/api/system/specialDiseaseNode";
|
||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
|
|
||||||
@ -715,6 +728,7 @@ export default {
|
|||||||
name: "specialDiseaseNode",
|
name: "specialDiseaseNode",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dictDataType: "",
|
||||||
openlist: {
|
openlist: {
|
||||||
suitRange: "",
|
suitRange: "",
|
||||||
routeId: "",
|
routeId: "",
|
||||||
@ -728,50 +742,12 @@ export default {
|
|||||||
routeCheckRemark: "",
|
routeCheckRemark: "",
|
||||||
},
|
},
|
||||||
optionslist: [],
|
optionslist: [],
|
||||||
|
// 包含
|
||||||
optionstriggerConditionOperator: [
|
optionstriggerConditionOperator: [],
|
||||||
{
|
|
||||||
value: "CONTAIN",
|
|
||||||
label: "包含",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "NOT_CONTAIN",
|
|
||||||
label: "不包含",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "EQUAL_TO",
|
|
||||||
label: "等于",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "NOT_EQUAL_TO",
|
|
||||||
label: "不等于",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
optionslistS: [],
|
optionslistS: [],
|
||||||
optionslistSname: [],
|
optionslistSname: [],
|
||||||
|
// 诊断
|
||||||
optionsname: [
|
optionsname: [],
|
||||||
{
|
|
||||||
value: "DIAGNOSIS",
|
|
||||||
label: "诊断",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "DRESSING_CHANGE_DATE",
|
|
||||||
label: "换药日期",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "TREATMENT_METHOD",
|
|
||||||
label: "治疗方式",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "SURGICAL_NAME",
|
|
||||||
label: "手术名称",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "DRUG_NAME",
|
|
||||||
label: "药品名称",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
routeName: "",
|
routeName: "",
|
||||||
updata: [],
|
updata: [],
|
||||||
updatalists: [],
|
updatalists: [],
|
||||||
@ -833,10 +809,14 @@ export default {
|
|||||||
this.openlist.routeId = this.$route.query.id;
|
this.openlist.routeId = this.$route.query.id;
|
||||||
}
|
}
|
||||||
this.taskinfo();
|
this.taskinfo();
|
||||||
|
this.infolistname();
|
||||||
|
|
||||||
this.infolists();
|
this.infolists();
|
||||||
this.infolistoptionslistS();
|
this.infolistoptionslistS();
|
||||||
this.infolistMESSAGE();
|
this.infolistMESSAGE();
|
||||||
this.infolistword();
|
this.infolistword();
|
||||||
|
this.optiononditionOperator();
|
||||||
|
this.optiononditionOperators();
|
||||||
},
|
},
|
||||||
beforeDestroy() {},
|
beforeDestroy() {},
|
||||||
watch: {
|
watch: {
|
||||||
@ -882,10 +862,16 @@ export default {
|
|||||||
e.routeId = this.$route.query.id;
|
e.routeId = this.$route.query.id;
|
||||||
e.routeName = this.$route.query.routeName;
|
e.routeName = this.$route.query.routeName;
|
||||||
});
|
});
|
||||||
|
console.log(
|
||||||
|
this.openlist.triggerConditionList,
|
||||||
|
" this.openlist.triggerConditionList"
|
||||||
|
);
|
||||||
|
loading.close();
|
||||||
|
|
||||||
triggerCondition(this.openlist).then((res) => {
|
triggerCondition(this.openlist).then((res) => {
|
||||||
loading.close();
|
|
||||||
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|
||||||
this.$notify({
|
this.$notify({
|
||||||
type: "success",
|
type: "success",
|
||||||
title: "提示",
|
title: "提示",
|
||||||
@ -895,28 +881,30 @@ export default {
|
|||||||
Cookies.remove("routeName");
|
Cookies.remove("routeName");
|
||||||
|
|
||||||
Cookies.set("routeName", this.routeName);
|
Cookies.set("routeName", this.routeName);
|
||||||
// Cookies.set("username", this.loginForm.username, { expires: 30 });
|
|
||||||
}
|
}
|
||||||
this.infolist();
|
this.infolist();
|
||||||
|
this.handlelist();
|
||||||
|
|
||||||
this.openfalse();
|
this.openfalse();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 关闭弹框
|
// 关闭弹框
|
||||||
openfalse() {
|
openfalse() {
|
||||||
// this.openlist.triggerConditionList = [
|
this.openlist.triggerConditionList = [
|
||||||
// {
|
{
|
||||||
// routeId: "",
|
routeId: "",
|
||||||
// routeName: "",
|
routeName: "",
|
||||||
// triggerConditionName: "",
|
triggerConditionName: "",
|
||||||
// triggerConditionOperator: "",
|
triggerConditionOperator: "",
|
||||||
// triggerConditionValue: "",
|
triggerConditionValue: "",
|
||||||
// triggerConditionName: "",
|
triggerConditionName: "",
|
||||||
// triggerConditionOperatorName: "",
|
triggerConditionOperatorName: "",
|
||||||
|
dictDataType: "STRING",
|
||||||
|
|
||||||
// triggerLogic: "",
|
triggerLogic: "AND",
|
||||||
// triggerLogicName: "",
|
triggerLogicName: "",
|
||||||
// },
|
},
|
||||||
// ];
|
];
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.resetForm("openlist");
|
this.resetForm("openlist");
|
||||||
},
|
},
|
||||||
@ -931,13 +919,13 @@ export default {
|
|||||||
triggerConditionValue: "",
|
triggerConditionValue: "",
|
||||||
triggerConditionName: "",
|
triggerConditionName: "",
|
||||||
triggerConditionOperatorName: "",
|
triggerConditionOperatorName: "",
|
||||||
|
dictDataType: "STRING",
|
||||||
triggerLogic: "",
|
triggerLogic: "AND",
|
||||||
triggerLogicName: "",
|
triggerLogicName: "",
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.openlist.triggerConditionList.length == 3) {
|
if (this.openlist.triggerConditionList.length == 3) {
|
||||||
this.$message.error("最多批量添加2条");
|
this.$message.error("至多仅支持两种属性");
|
||||||
} else {
|
} else {
|
||||||
this.openlist.triggerConditionList.push(obj);
|
this.openlist.triggerConditionList.push(obj);
|
||||||
}
|
}
|
||||||
@ -1017,6 +1005,9 @@ export default {
|
|||||||
this.parentDictCodelist = res.rows;
|
this.parentDictCodelist = res.rows;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
changetoday(e){
|
||||||
|
console.log(e,'eeeeeeeeeeeeeooooooooooooo')
|
||||||
|
},
|
||||||
// 回显
|
// 回显
|
||||||
info() {
|
info() {
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
@ -1133,21 +1124,71 @@ export default {
|
|||||||
this.optionslistS = res.data;
|
this.optionslistS = res.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 诊断
|
||||||
|
optiononditionOperators() {
|
||||||
|
var dictType = "trigger_condition_name";
|
||||||
|
getAgencytype(dictType).then((res) => {
|
||||||
|
this.optionsname = res.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 包含
|
||||||
|
optiononditionOperator() {
|
||||||
|
var dictType = "trigger_condition_operator";
|
||||||
|
getAgencytype(dictType).then((res) => {
|
||||||
|
this.optionstriggerConditionOperator = res.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 包含或等号接口
|
||||||
|
handlelist() {
|
||||||
|
var dictType = "trigger_condition_operator";
|
||||||
|
|
||||||
|
getList(dictType, this.dictDataType).then((res) => {
|
||||||
|
console.log(res, "res");
|
||||||
|
this.optionstriggerConditionOperator = res.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
// 包含
|
// 包含
|
||||||
changetriggerLogic(e, index) {
|
changetriggerLogic(e, index) {
|
||||||
|
console.log(e, index, "e包含,index");
|
||||||
|
|
||||||
this.openlist.triggerConditionList[index].triggerConditionOperatorName =
|
this.openlist.triggerConditionList[index].triggerConditionOperatorName =
|
||||||
this.optionstriggerConditionOperator.find((el) => el.value == e).label;
|
this.optionstriggerConditionOperator.find(
|
||||||
|
(el) => el.dictValue == e
|
||||||
|
).dictLabel;
|
||||||
this.openlist.triggerConditionList[index].triggerConditionValue = null;
|
this.openlist.triggerConditionList[index].triggerConditionValue = null;
|
||||||
},
|
},
|
||||||
|
// 数值=s
|
||||||
|
// changetriggerLogics(e,index){
|
||||||
|
// console.log(e,index,'e,index')
|
||||||
|
// this.openlist.triggerConditionList[index].triggerConditionOperator =
|
||||||
|
// this.optionstriggerConditionOperator.find(
|
||||||
|
// (el) => el.dictValue == e
|
||||||
|
// ).dictLabel;
|
||||||
|
// this.openlist.triggerConditionList[index].triggerConditionValue = null;
|
||||||
|
// },
|
||||||
// 诊断
|
// 诊断
|
||||||
changetriggerConditionName(e, index) {
|
changetriggerConditionName(e, index) {
|
||||||
|
console.log(e, index, "e诊断, index");
|
||||||
|
// this.dictDataType = e;
|
||||||
this.openlist.triggerConditionList[index].triggerConditionName =
|
this.openlist.triggerConditionList[index].triggerConditionName =
|
||||||
this.optionsname.find((el) => el.value == e).label;
|
this.optionsname.find((el) => el.dictValue == e).dictLabel;
|
||||||
this.openlist.triggerConditionList[index].triggerConditionOperator = null;
|
this.openlist.triggerConditionList[index].triggerConditionOperator = null;
|
||||||
this.openlist.triggerConditionList[index].triggerConditionValue = null;
|
this.openlist.triggerConditionList[index].triggerConditionValue = null;
|
||||||
|
this.dictDataType = this.optionsname.find(
|
||||||
|
(el) => el.dictValue == e
|
||||||
|
).dictDataType;
|
||||||
|
this.openlist.triggerConditionList[index].dictDataType =
|
||||||
|
this.optionsname.find((el) => el.dictValue == e).dictDataType;
|
||||||
|
console.log(
|
||||||
|
this.openlist.triggerConditionList[index].dictDataType,
|
||||||
|
"this.dictDataType"
|
||||||
|
);
|
||||||
|
this.handlelist();
|
||||||
},
|
},
|
||||||
// 且或
|
// 且或
|
||||||
changetriggerLogicsname(e, index) {
|
changetriggerLogicsname(e, index) {
|
||||||
|
console.log(e,'qie')
|
||||||
this.openlist.triggerConditionList[index].triggerLogic = e;
|
this.openlist.triggerConditionList[index].triggerLogic = e;
|
||||||
this.openlist.triggerConditionList[index].triggerLogicName =
|
this.openlist.triggerConditionList[index].triggerLogicName =
|
||||||
this.optionslistS.find((el) => el.dictValue == e).dictLabel;
|
this.optionslistS.find((el) => el.dictValue == e).dictLabel;
|
||||||
@ -1165,13 +1206,57 @@ export default {
|
|||||||
this.routeId = this.$route.query.id;
|
this.routeId = this.$route.query.id;
|
||||||
triggerConditionList(this.routeId).then((res) => {
|
triggerConditionList(this.routeId).then((res) => {
|
||||||
this.openlist.triggerConditionList = res.data;
|
this.openlist.triggerConditionList = res.data;
|
||||||
|
this.handlelist();
|
||||||
|
|
||||||
|
// this.openlist.triggerConditionList.forEach((o) => {
|
||||||
|
// // this.triggerConditionCode=o.triggerConditionCode
|
||||||
|
// this.handlelist();
|
||||||
|
// // o.dictDataType = this.optionstriggerConditionOperator.find(
|
||||||
|
// // (el) => el.dictValue == o.triggerConditionOperator
|
||||||
|
// // )?.dictDataType;
|
||||||
|
// });
|
||||||
|
// console.log(
|
||||||
|
// this.openlist.triggerConditionList,
|
||||||
|
// " this.openlist.triggerConditionList"
|
||||||
|
// );
|
||||||
|
|
||||||
if (res.data.length == 1) {
|
if (res.data.length == 1) {
|
||||||
|
// 新增一条时
|
||||||
this.updata = res.data[0];
|
this.updata = res.data[0];
|
||||||
|
|
||||||
|
this.updata.triggerConditionOperatorName =
|
||||||
|
this.optionstriggerConditionOperator.find(
|
||||||
|
(el) => el.dictValue == this.updata.triggerConditionOperator
|
||||||
|
)?.dictLabel;
|
||||||
|
console.log(
|
||||||
|
this.updata.triggerConditionOperatorName,
|
||||||
|
"updata.triggerConditionOperatorName"
|
||||||
|
);
|
||||||
|
|
||||||
this.updatalist = [];
|
this.updatalist = [];
|
||||||
} else {
|
} else {
|
||||||
|
// 新增两条或者三条
|
||||||
this.updata = res.data[0];
|
this.updata = res.data[0];
|
||||||
|
// this.handlelist();
|
||||||
|
this.updata.triggerConditionOperatorName =
|
||||||
|
this.optionstriggerConditionOperator.find(
|
||||||
|
(el) => el.dictValue == this.updata.triggerConditionOperator
|
||||||
|
)?.dictLabel;
|
||||||
|
console.log(
|
||||||
|
this.updata.triggerConditionOperatorName,
|
||||||
|
"updata.triggerConditionOperatorName"
|
||||||
|
);
|
||||||
res.data.splice(0, 1);
|
res.data.splice(0, 1);
|
||||||
this.updatalist = res.data;
|
this.updatalist = res.data;
|
||||||
|
this.updatalist.forEach((e) => {
|
||||||
|
e.triggerConditionOperatorName =
|
||||||
|
this.optionstriggerConditionOperator.find(
|
||||||
|
(el) => el.dictValue == e.triggerConditionOperator
|
||||||
|
)?.dictLabel;
|
||||||
|
});
|
||||||
|
// this.updatalist.triggerConditionOperatorName = this.optionstriggerConditionOperator.find(
|
||||||
|
// (el) => el.dictValue == this.updatalist.triggerConditionOperator
|
||||||
|
// )?.dictLabel;
|
||||||
}
|
}
|
||||||
if (this.open == true) {
|
if (this.open == true) {
|
||||||
this.$set(this.openlist, "suitRange", this.$route.query.suitRange);
|
this.$set(this.openlist, "suitRange", this.$route.query.suitRange);
|
||||||
@ -1185,6 +1270,18 @@ export default {
|
|||||||
this.routeId = this.$route.query.id;
|
this.routeId = this.$route.query.id;
|
||||||
triggerConditionList(this.routeId).then((res) => {
|
triggerConditionList(this.routeId).then((res) => {
|
||||||
this.openlist.triggerConditionList = res.data;
|
this.openlist.triggerConditionList = res.data;
|
||||||
|
this.openlist.triggerConditionList.forEach((o) => {
|
||||||
|
this.optiononditionOperators();
|
||||||
|
o.dictDataType = this.optionsname.find(
|
||||||
|
(el) => el.dictValue == o.triggerConditionCode
|
||||||
|
)?.dictDataType;
|
||||||
|
console.log(o.dictDataType, "dict");
|
||||||
|
});
|
||||||
|
console.log(
|
||||||
|
this.openlist.triggerConditionList,
|
||||||
|
" this.openlist.triggerConditionList11111111111"
|
||||||
|
);
|
||||||
|
|
||||||
this.$set(this.updata, "suitRange", this.openlist.suitRange);
|
this.$set(this.updata, "suitRange", this.openlist.suitRange);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -1192,6 +1289,7 @@ export default {
|
|||||||
edit() {
|
edit() {
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.infolistname();
|
this.infolistname();
|
||||||
|
// this.infolist()
|
||||||
},
|
},
|
||||||
//wangeditor传值
|
//wangeditor传值
|
||||||
onNodeContent(item) {
|
onNodeContent(item) {
|
||||||
|
|||||||
@ -208,16 +208,11 @@
|
|||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="itemq in optionsname"
|
v-for="itemq in optionsname"
|
||||||
:key="itemq.value"
|
:key="itemq.dictValue"
|
||||||
:label="itemq.label"
|
:label="itemq.dictLabel"
|
||||||
:value="itemq.value"
|
:value="itemq.dictValue"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
<!-- <el-option label="诊断" value="DIAGNOSIS" />
|
|
||||||
<el-option label="换药日期" value="DRESSING_CHANGE_DATE" />
|
|
||||||
<el-option label="治疗方式" value="TREATMENT_METHOD" />
|
|
||||||
<el-option label="手术名称" value="SURGICAL_NAME" />
|
|
||||||
<el-option label="药品名称" value="DRUG_NAME" /> -->
|
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="item.triggerConditionOperator"
|
v-model="item.triggerConditionOperator"
|
||||||
@ -226,26 +221,22 @@
|
|||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="itemr in optionstriggerConditionOperator"
|
v-for="itemr in optionstriggerConditionOperator"
|
||||||
:key="itemr.value"
|
:key="itemr.dictValue"
|
||||||
:label="itemr.label"
|
:label="itemr.dictLabel"
|
||||||
:value="itemr.value"
|
:value="itemr.dictValue"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<!-- <el-select v-model="item.suitRange" style="width: 120px;">
|
<!-- {{ item }} -->
|
||||||
<el-option label="在院" value="IN_THE_HOSPITAL" />
|
|
||||||
<el-option label="出院" value="DISCHARGE" />
|
|
||||||
<el-option label="门诊" value="OUTPATIENT_SERVICE" />
|
|
||||||
<el-option label="门诊+出院" value="OUTPATIENT_SERVICE_DISCHARGE" />
|
|
||||||
</el-select> -->
|
|
||||||
<el-input
|
<el-input
|
||||||
v-if="item.triggerConditionCode != 'DRESSING_CHANGE_DATE'"
|
v-if="item.dictDataType == 'STRING' || item.dictDataType == ''"
|
||||||
v-model="item.triggerConditionValue"
|
v-model="item.triggerConditionValue"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
placeholder="请输入触发条件"
|
placeholder="请输入触发条件"
|
||||||
|
maxlength="100"
|
||||||
></el-input>
|
></el-input>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-if="item.triggerConditionCode == 'DRESSING_CHANGE_DATE'"
|
v-if="item.dictDataType == 'DATE'"
|
||||||
v-model="item.triggerConditionValue"
|
v-model="item.triggerConditionValue"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
type="date"
|
type="date"
|
||||||
@ -253,6 +244,14 @@
|
|||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
|
<!-- {{ item }} -->
|
||||||
|
<el-input
|
||||||
|
v-if="item.dictDataType == 'DECIMAL'"
|
||||||
|
style="width: 300px"
|
||||||
|
v-model="item.triggerConditionValue"
|
||||||
|
type="number"
|
||||||
|
:min="0"
|
||||||
|
></el-input>
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
@ -343,6 +342,7 @@ import {
|
|||||||
updateSpecialDiseaseRoute,
|
updateSpecialDiseaseRoute,
|
||||||
getById,
|
getById,
|
||||||
} from "@/api/system/specialDiseaseRoute";
|
} from "@/api/system/specialDiseaseRoute";
|
||||||
|
import { getList } from "@/api/system/specialDiseaseNode";
|
||||||
import {
|
import {
|
||||||
specialDiseaseRoute,
|
specialDiseaseRoute,
|
||||||
triggerConditiondel,
|
triggerConditiondel,
|
||||||
@ -360,47 +360,9 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
options: [],
|
options: [],
|
||||||
|
dictDataType: "",
|
||||||
optionstriggerConditionOperator: [
|
optionstriggerConditionOperator: [],
|
||||||
{
|
optionsname: [],
|
||||||
value: "CONTAIN",
|
|
||||||
label: "包含",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "NOT_CONTAIN",
|
|
||||||
label: "不包含",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "EQUAL_TO",
|
|
||||||
label: "等于",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "NOT_EQUAL_TO",
|
|
||||||
label: "不等于",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
optionsname: [
|
|
||||||
{
|
|
||||||
value: "DIAGNOSIS",
|
|
||||||
label: "诊断",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "DRESSING_CHANGE_DATE",
|
|
||||||
label: "换药日期",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "TREATMENT_METHOD",
|
|
||||||
label: "治疗方式",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "SURGICAL_NAME",
|
|
||||||
label: "手术名称",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "DRUG_NAME",
|
|
||||||
label: "药品名称",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
optionslistS: [],
|
optionslistS: [],
|
||||||
form: {
|
form: {
|
||||||
version: "",
|
version: "",
|
||||||
@ -425,7 +387,7 @@ export default {
|
|||||||
// triggerConditionName: "",
|
// triggerConditionName: "",
|
||||||
triggerConditionOperator: "",
|
triggerConditionOperator: "",
|
||||||
triggerConditionValue: "",
|
triggerConditionValue: "",
|
||||||
|
dictDataType: "STRING",
|
||||||
triggerLogic: "",
|
triggerLogic: "",
|
||||||
triggerLogicName: "",
|
triggerLogicName: "",
|
||||||
},
|
},
|
||||||
@ -455,21 +417,57 @@ export default {
|
|||||||
this.info();
|
this.info();
|
||||||
this.infolist();
|
this.infolist();
|
||||||
this.infolistoptionslistS();
|
this.infolistoptionslistS();
|
||||||
|
this.optiononditionOperator();
|
||||||
|
this.optiononditionOperators();
|
||||||
},
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 诊断
|
||||||
|
optiononditionOperators() {
|
||||||
|
var dictType = "trigger_condition_name ";
|
||||||
|
getAgencytype(dictType).then((res) => {
|
||||||
|
this.optionsname = res.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 包含
|
||||||
|
optiononditionOperator() {
|
||||||
|
var dictType = "trigger_condition_operator ";
|
||||||
|
getAgencytype(dictType).then((res) => {
|
||||||
|
this.optionstriggerConditionOperator = res.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
// 包含
|
// 包含
|
||||||
changetriggerLogic(e, index) {
|
changetriggerLogic(e, index) {
|
||||||
this.updata.triggerConditionList[index].triggerConditionOperatorName =
|
this.updata.triggerConditionList[index].triggerConditionOperatorName =
|
||||||
this.optionstriggerConditionOperator.find((el) => el.value == e).label;
|
this.optionstriggerConditionOperator.find(
|
||||||
|
(el) => el.dictValue == e
|
||||||
|
).dictLabel;
|
||||||
this.updata.triggerConditionList[index].triggerConditionValue = null;
|
this.updata.triggerConditionList[index].triggerConditionValue = null;
|
||||||
},
|
},
|
||||||
// 诊断
|
// 诊断
|
||||||
changetriggerConditionName(e, index) {
|
changetriggerConditionName(e, index) {
|
||||||
this.updata.triggerConditionList[index].triggerConditionName =
|
this.updata.triggerConditionList[index].triggerConditionName =
|
||||||
this.optionsname.find((el) => el.value == e).label;
|
this.optionsname.find((el) => el.dictValue == e).dictLabel;
|
||||||
this.updata.triggerConditionList[index].triggerConditionOperator = null;
|
this.updata.triggerConditionList[index].triggerConditionOperator = null;
|
||||||
this.updata.triggerConditionList[index].triggerConditionValue = null;
|
this.updata.triggerConditionList[index].triggerConditionValue = null;
|
||||||
|
this.dictDataType = this.optionsname.find(
|
||||||
|
(el) => el.dictValue == e
|
||||||
|
).dictDataType;
|
||||||
|
this.updata.triggerConditionList[index].dictDataType =
|
||||||
|
this.optionsname.find((el) => el.dictValue == e).dictDataType;
|
||||||
|
console.log(
|
||||||
|
this.updata.triggerConditionList[index].dictDataType,
|
||||||
|
"this.dictDataType"
|
||||||
|
);
|
||||||
|
this.handlelist();
|
||||||
|
},
|
||||||
|
// 包含或等号接口
|
||||||
|
handlelist() {
|
||||||
|
var dictType = "trigger_condition_operator";
|
||||||
|
getList(dictType, this.dictDataType).then((res) => {
|
||||||
|
console.log(res, "res");
|
||||||
|
this.optionstriggerConditionOperator = res.data;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
changeoptions() {},
|
changeoptions() {},
|
||||||
// 且或
|
// 且或
|
||||||
@ -563,8 +561,8 @@ export default {
|
|||||||
triggerConditionValue: "",
|
triggerConditionValue: "",
|
||||||
triggerConditionName: "",
|
triggerConditionName: "",
|
||||||
triggerConditionOperatorName: "",
|
triggerConditionOperatorName: "",
|
||||||
|
dictDataType: "STRING",
|
||||||
triggerLogic: "",
|
triggerLogic: "AND",
|
||||||
triggerLogicName: "",
|
triggerLogicName: "",
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -626,15 +624,18 @@ export default {
|
|||||||
e.routeId = this.$route.query.id;
|
e.routeId = this.$route.query.id;
|
||||||
e.routeName = this.$route.query.routeName;
|
e.routeName = this.$route.query.routeName;
|
||||||
});
|
});
|
||||||
|
loading.close();
|
||||||
|
|
||||||
triggerConditionadd(this.updata).then((res) => {
|
triggerConditionadd(this.updata).then((res) => {
|
||||||
loading.close();
|
if (res.code == 200) {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
type: "success",
|
type: "success",
|
||||||
title: "提示",
|
title: "提示",
|
||||||
message: "新增触发条件成功",
|
message: "新增触发条件成功",
|
||||||
});
|
});
|
||||||
this.info();
|
this.info();
|
||||||
this.openfalse();
|
this.openfalse();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//保存
|
//保存
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user