修改手动创建任务和子路径
This commit is contained in:
parent
7b75ee9ce3
commit
c9f870ca34
@ -28,7 +28,7 @@ export function triggerConditionedit(data) {
|
||||
//删除修改触发条件id
|
||||
export function triggerConditiondel(ids) {
|
||||
return request({
|
||||
url: `/system/triggerCondition/${ids}`,
|
||||
url: `/system/specialDiseaseRoute/${ids}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
@ -13,6 +13,13 @@ export function list(parentDictCode) {
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
// 查询触发条件
|
||||
export function triggerConditionList(routeId) {
|
||||
return request({
|
||||
url: `/system/triggerCondition/triggerConditionList?routeId=${routeId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 任务类型
|
||||
export function selectTaskTypeList() {
|
||||
|
||||
@ -16,6 +16,14 @@ export function getSpecialDiseaseRoute(id) {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 查询子路径
|
||||
export function getById(id) {
|
||||
return request({
|
||||
url: '/system/specialDiseaseRoute/getById/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增专病路径信息
|
||||
export function addSpecialDiseaseRoute(data) {
|
||||
|
||||
BIN
src/assets/images/images.png
Normal file
BIN
src/assets/images/images.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
@ -2,45 +2,90 @@
|
||||
<div class="app-container">
|
||||
<el-descriptions title="编辑触发条件" />
|
||||
<div class="title">
|
||||
<div>
|
||||
触发条件
|
||||
</div>
|
||||
<div >触发条件</div>
|
||||
<div class="nodes">
|
||||
<div class="node" v-for="(item, index) in updata.triggerConditionList" :key="index"
|
||||
:style="updata.triggerConditionList.length > 1 ? '' : 'margin:0'">
|
||||
<el-select v-model="item.suitRange" style="width:120px">
|
||||
<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" />
|
||||
<div class="node" v-for="(item, index) in updata" :key="index">
|
||||
<!-- :style="updata.triggerConditionList.length > 1 ? '' : 'margin:0'" -->
|
||||
<div
|
||||
style="width: 60px; position: absolute; top: 8%;"
|
||||
v-if="updata.length === 3"
|
||||
>
|
||||
<img src="@/assets/images/images.png" class="login-code-img" />
|
||||
<el-select
|
||||
v-model="item.triggerLogic"
|
||||
style="width: 60px"
|
||||
placeholder=""
|
||||
@change="changetriggerLogicsname($event, index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionslistS"
|
||||
:key="item.dictValue"
|
||||
:label="item.dictLabel"
|
||||
:value="item.dictValue"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-select v-model="item.suitRange" style="width: 100px;">
|
||||
<el-option label="包含" value="CONTAIN" />
|
||||
<el-option label="不包含" value="NOT_CONTAIN" />
|
||||
<el-option label="等于" value="EQUAL_TO" />
|
||||
<el-option label="不等于" value="NOT_EQUAL_TO" />
|
||||
</div>
|
||||
<el-select
|
||||
v-model="item.triggerConditionCode"
|
||||
style="width: 120px"
|
||||
@change="changetriggerConditionName($event, index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionsname"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-select v-model="item.suitRange" style="width: 120px;">
|
||||
<el-select
|
||||
v-model="item.triggerConditionOperator"
|
||||
style="width: 100px"
|
||||
@change="changetriggerLogic($event, index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionstriggerConditionOperator"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<!-- <el-select v-model="item.suitRange" style="width: 120px;">
|
||||
<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 v-model="item.text" style="width: 300px;"></el-input>
|
||||
</el-select> -->
|
||||
<el-input
|
||||
v-if="item.triggerConditionCode != 'DRESSING_CHANGE_DATE'"
|
||||
v-model="item.triggerConditionValue"
|
||||
style="width: 300px"
|
||||
></el-input>
|
||||
<el-date-picker
|
||||
v-if="item.triggerConditionCode == 'DRESSING_CHANGE_DATE'"
|
||||
v-model="item.triggerConditionValue"
|
||||
style="width: 300px"
|
||||
type="date"
|
||||
placeholder="选择日期时间"
|
||||
value-format="yyyy-MM-dd"
|
||||
>
|
||||
</el-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <el-button icon="el-icon-plus" style=" font-weight: 550; font-size: 12px;padding-left:6px" type="text"
|
||||
@click="addtriggerCondition">添加属性</el-button> -->
|
||||
<div class="select">
|
||||
<span>
|
||||
适用范围
|
||||
</span>
|
||||
<el-select v-model="updata.suitRange" style="width: 180px;">
|
||||
<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" />
|
||||
<span> 适用范围 </span>
|
||||
<el-select v-model="updata.suitRange" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.dictValue"
|
||||
:label="item.dictLabel"
|
||||
:value="item.dictValue"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
@ -51,31 +96,46 @@
|
||||
<i class="el-icon-circle-plus-outline" @click="addlist"></i>
|
||||
</div>
|
||||
<el-timeline>
|
||||
<el-timeline-item v-for="(item, index) in lists" :key="index"
|
||||
:color="listindex == index ? '#409EFF' : ''">
|
||||
<el-timeline-item
|
||||
v-for="(item, index) in lists"
|
||||
:key="index"
|
||||
:color="listindex == index ? '#409EFF' : ''"
|
||||
>
|
||||
<div class="top" @click="topclickevent(index)">
|
||||
<div class="toptop">
|
||||
<el-select v-model="item.routeNodeName" style="width: 87px">
|
||||
<el-option label="出院后" value="AFTER_DISCHARGE" />
|
||||
<el-option label="入院后" value="AFTER_ADMISSION" />
|
||||
<el-option label="就诊后" value="AFTER_CONSULTATION" />
|
||||
<el-option label="就诊/出院后" value="AFTER_VISIT_DISCHARGE" />
|
||||
<el-option
|
||||
label="就诊/出院后"
|
||||
value="AFTER_VISIT_DISCHARGE"
|
||||
/>
|
||||
<el-option label="术前" value="PREOPERATIVE" />
|
||||
<el-option label="术后" value="POSTOPERATIVE" />
|
||||
</el-select>
|
||||
<el-input v-model="item.routeNodeDay" style="width: 50px;"></el-input>
|
||||
<el-input
|
||||
v-model="item.routeNodeDay"
|
||||
style="width: 50px"
|
||||
></el-input>
|
||||
<span>天</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="el-icon-delete" @click="delitem(item, index)"></i>
|
||||
<i class="el-icon-circle-plus-outline" @click="additem(item)"></i>
|
||||
<i
|
||||
class="el-icon-circle-plus-outline"
|
||||
@click="additem(item)"
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<el-card v-for="(uitem, uindex) in item.list" :key="uitem.id"
|
||||
@click.native='bottomclickevent(uitem, index, uindex)'
|
||||
:class="listindex == index && itemindex == uindex ? 'cards' : ''">
|
||||
<h3 style="height: 20px;">{{ uitem.taskTypeName }}</h3>
|
||||
<p style="height: 16px;">{{ uitem.taskSubdivisionName }}</p>
|
||||
<el-card
|
||||
v-for="(uitem, uindex) in item.list"
|
||||
:key="uitem.id"
|
||||
@click.native="bottomclickevent(uitem, index, uindex)"
|
||||
:class="listindex == index && itemindex == uindex ? 'cards' : ''"
|
||||
>
|
||||
<h3 style="height: 20px">{{ uitem.taskTypeName }}</h3>
|
||||
<p style="height: 16px">{{ uitem.taskSubdivisionName }}</p>
|
||||
</el-card>
|
||||
</el-timeline-item>
|
||||
</el-timeline>
|
||||
@ -84,106 +144,155 @@
|
||||
<div class="topform">
|
||||
<el-form ref="form" :inline="true" :model="form" class="form">
|
||||
<el-form-item label="任务类型" prop="">
|
||||
<el-select v-model="form.taskType" style="width:110px" @change="changeTaskType">
|
||||
<el-option v-for="item in selectTaskTypeList" :key="item.id" :label="item.taskTypeName"
|
||||
:value="item.id">
|
||||
<el-select
|
||||
v-model="form.taskType"
|
||||
style="width: 110px"
|
||||
@change="changeTaskType"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in selectTaskTypeList"
|
||||
:key="item.id"
|
||||
:label="item.taskTypeName"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务细分" prop="">
|
||||
<el-select v-model="form.taskSubdivision" style="width:110px"
|
||||
@change="changetaskSubdivision">
|
||||
<el-option v-for="item in taskPartitionList" :key="item.id" :label="item.taskTypeName"
|
||||
:value="item.id">
|
||||
<el-select
|
||||
v-model="form.taskSubdivision"
|
||||
style="width: 110px"
|
||||
@change="changetaskSubdivision"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in taskPartitionList"
|
||||
:key="item.id"
|
||||
:label="item.taskTypeName"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务状态" prop="">
|
||||
<el-select v-model="form.taskStatus" style="width: 100px">
|
||||
<el-option v-for="item in taskStatusDictList" :key="item.id"
|
||||
:label="item.taskStatusName" :value="item.id">
|
||||
<el-option
|
||||
v-for="item in taskStatusDictList"
|
||||
:key="item.id"
|
||||
:label="item.taskStatusName"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="二级分类描述" prop="">
|
||||
<el-input v-model="form.secondClassifyDescribe" style="width:100px"></el-input>
|
||||
<el-input
|
||||
v-model="form.secondClassifyDescribe"
|
||||
style="width: 100px"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="执行时间" prop="">
|
||||
<el-time-select v-model="form.executionTime" style="width:120px"
|
||||
:picker-options="{ start: '08:30', step: '00:30', end: '18:30' }" placeholder="选择时间">
|
||||
<el-time-select
|
||||
v-model="form.executionTime"
|
||||
style="width: 120px"
|
||||
:picker-options="{
|
||||
start: '08:30',
|
||||
step: '00:30',
|
||||
end: '18:30',
|
||||
}"
|
||||
placeholder="选择时间"
|
||||
>
|
||||
</el-time-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="问卷库模板选择" prop=""
|
||||
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'">
|
||||
<el-form-item
|
||||
label="问卷库模板选择"
|
||||
prop=""
|
||||
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'"
|
||||
>
|
||||
<question @on-template="questionontemplate"></question>
|
||||
</el-form-item>
|
||||
<el-form-item label="宣教库模板选择" prop="" v-if="form.taskSubdivisiontemplateType == 'PROPAGANDA'">
|
||||
<el-form-item
|
||||
label="宣教库模板选择"
|
||||
prop=""
|
||||
v-if="form.taskSubdivisiontemplateType == 'PROPAGANDA'"
|
||||
>
|
||||
<propaganda @on-template="propagandaontemplate"></propaganda>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<div class="bottomform">
|
||||
<wangeditor style="width:100%;" @on-nodeContent="onNodeContent" ref="wangeditor" />
|
||||
<wangeditor
|
||||
style="width: 100%"
|
||||
@on-nodeContent="onNodeContent"
|
||||
ref="wangeditor"
|
||||
/>
|
||||
<div class="card">
|
||||
<div class="flex">
|
||||
<div class="pushMethod">
|
||||
推送方式:
|
||||
<span>
|
||||
短信
|
||||
</span>
|
||||
<span> 短信 </span>
|
||||
</div>
|
||||
<div class="pushMethod">
|
||||
模板:
|
||||
<message @on-template="messageontemplate"></message>
|
||||
</div>
|
||||
<div class="pushMethod">
|
||||
<el-switch v-model="form.messagePushSign" active-color="#13ce66" active-value="1"
|
||||
inactive-value="0">
|
||||
<el-switch
|
||||
v-model="form.messagePushSign"
|
||||
active-color="#13ce66"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flextwo">
|
||||
<div class="text">
|
||||
短信预览:
|
||||
</div>
|
||||
<el-input style="border:none" class="textarea" v-model="form.messagePreview"></el-input>
|
||||
<div class="text">短信预览:</div>
|
||||
<el-input
|
||||
style="border: none"
|
||||
class="textarea"
|
||||
v-model="form.messagePreview"
|
||||
></el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="flex">
|
||||
<div class="pushMethod">
|
||||
推送方式:
|
||||
<span>
|
||||
公众号
|
||||
</span>
|
||||
<span> 公众号 </span>
|
||||
</div>
|
||||
<div class="pushMethod">
|
||||
模板:
|
||||
<span>
|
||||
<officialAccount @on-template="officialAccountontemplate"></officialAccount>
|
||||
<officialAccount
|
||||
@on-template="officialAccountontemplate"
|
||||
></officialAccount>
|
||||
</span>
|
||||
</div>
|
||||
<div class="pushMethod">
|
||||
<el-switch v-model="form.officialPushSign" active-color="#13ce66" active-value="1"
|
||||
inactive-value="0">
|
||||
<el-switch
|
||||
v-model="form.officialPushSign"
|
||||
active-color="#13ce66"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flextwo">
|
||||
<div class="text">
|
||||
提醒内容:
|
||||
</div>
|
||||
<el-input v-model="form.officialRemindContent" placeholder="" class="textarea"
|
||||
style="border: none;"></el-input>
|
||||
<div class="text">提醒内容:</div>
|
||||
<el-input
|
||||
v-model="form.officialRemindContent"
|
||||
placeholder=""
|
||||
class="textarea"
|
||||
style="border: none"
|
||||
></el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="flex">
|
||||
<div class="pushMethod">
|
||||
推送方式:
|
||||
<span>
|
||||
小程序
|
||||
</span>
|
||||
<span> 小程序 </span>
|
||||
</div>
|
||||
<div class="pushMethod">
|
||||
模板:
|
||||
@ -192,24 +301,32 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="pushMethod">
|
||||
<el-switch v-model="form.appletPushSign" active-color="#13ce66" active-value="1"
|
||||
inactive-value="0">
|
||||
<el-switch
|
||||
v-model="form.appletPushSign"
|
||||
active-color="#13ce66"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flextwo">
|
||||
<div class="text">
|
||||
提醒内容:
|
||||
</div>
|
||||
<el-input v-model="form.input" placeholder="" class="textarea"
|
||||
style="border: none;"></el-input>
|
||||
<div class="text">提醒内容:</div>
|
||||
<el-input
|
||||
v-model="form.input"
|
||||
placeholder=""
|
||||
class="textarea"
|
||||
style="border: none"
|
||||
></el-input>
|
||||
</div>
|
||||
<div class="flextwo">
|
||||
<div class="text">
|
||||
提示说明:
|
||||
</div>
|
||||
<el-input v-model="form.input" placeholder="" class="textarea"
|
||||
style="border: none;"></el-input>
|
||||
<div class="text">提示说明:</div>
|
||||
<el-input
|
||||
v-model="form.input"
|
||||
placeholder=""
|
||||
class="textarea"
|
||||
style="border: none"
|
||||
></el-input>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="card" style="height: 250px;">
|
||||
@ -282,233 +399,361 @@
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="TemporaryStorage">暂 存</el-button>
|
||||
<el-button type="primary">审核完成</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="dialogVisible = true"
|
||||
v-if="form.specialDiseaseNodeId"
|
||||
>审核完成 {{ agreeNumber ? agreeNumber : "0" }} /
|
||||
{{ totalNumber ? totalNumber : "0" }}</el-button
|
||||
>
|
||||
</div>
|
||||
<!-- <div slot="footer" class="dialog-footer">
|
||||
<el-button @click="TemporaryStorage">暂 存</el-button>
|
||||
<el-button type="primary">审核完成</el-button>
|
||||
</div> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import wangeditor from '../components/wangEditor.vue'
|
||||
import question from '../components/question.vue'
|
||||
import message from '../components/message.vue'
|
||||
import propaganda from '../components/propaganda.vue'
|
||||
import officialAccount from '../components/officialAccount.vue'
|
||||
import miniProgram from '../components/miniProgram.vue'
|
||||
import wangeditor from "../components/wangEditor.vue";
|
||||
import question from "../components/question.vue";
|
||||
import message from "../components/message.vue";
|
||||
import propaganda from "../components/propaganda.vue";
|
||||
import officialAccount from "../components/officialAccount.vue";
|
||||
import miniProgram from "../components/miniProgram.vue";
|
||||
import {
|
||||
selectTaskTypeList, taskPartitionList, taskStatusDictList
|
||||
} from '@/api/system/specialDiseaseNode'
|
||||
selectTaskTypeList,
|
||||
taskPartitionList,
|
||||
taskStatusDictList,
|
||||
triggerConditionList,
|
||||
} from "@/api/system/specialDiseaseNode";
|
||||
import {
|
||||
triggerCondition, triggerConditionedit
|
||||
triggerCondition,
|
||||
triggerConditionedit,
|
||||
} from "@/api/system/editorialSpecialization";
|
||||
import { getAgencytype } from "@/api/system/agency";
|
||||
|
||||
export default {
|
||||
components: { wangeditor, question, propaganda, message, officialAccount, miniProgram },
|
||||
components: {
|
||||
wangeditor,
|
||||
question,
|
||||
propaganda,
|
||||
message,
|
||||
officialAccount,
|
||||
miniProgram,
|
||||
},
|
||||
name: "specialDiseaseNode",
|
||||
data() {
|
||||
return {
|
||||
updata: {
|
||||
triggerConditionList: [
|
||||
optionstriggerConditionOperator: [
|
||||
{
|
||||
|
||||
}
|
||||
value: "CONTAIN",
|
||||
label: "包含",
|
||||
},
|
||||
{
|
||||
value: "NOT_CONTAIN",
|
||||
label: "不包含",
|
||||
},
|
||||
{
|
||||
value: "EQUAL_TO",
|
||||
label: "等于",
|
||||
},
|
||||
{
|
||||
value: "NOT_EQUAL_TO",
|
||||
label: "不等于",
|
||||
},
|
||||
],
|
||||
optionslistS: [],
|
||||
|
||||
optionsname: [
|
||||
{
|
||||
value: "DIAGNOSIS",
|
||||
label: "诊断",
|
||||
},
|
||||
{
|
||||
value: "DRESSING_CHANGE_DATE",
|
||||
label: "换药日期",
|
||||
},
|
||||
{
|
||||
value: "TREATMENT_METHOD",
|
||||
label: "治疗方式",
|
||||
},
|
||||
{
|
||||
value: "SURGICAL_NAME",
|
||||
label: "手术名称",
|
||||
},
|
||||
{
|
||||
value: "DRUG_NAME",
|
||||
label: "药品名称",
|
||||
},
|
||||
],
|
||||
updata: {
|
||||
triggerConditionList: [{}],
|
||||
},
|
||||
form: {
|
||||
nodeContent: '',
|
||||
templateId: '',
|
||||
templateName: '',
|
||||
taskType: '',
|
||||
taskTypeName: '',
|
||||
taskSubdivision: '',
|
||||
taskSubdivisionName: '',
|
||||
taskStatus: '',
|
||||
secondClassifyDescribe: '',
|
||||
executionTime: '',
|
||||
appletPushSign: '0',
|
||||
officialPushSign: '0',
|
||||
messagePushSign: '0',
|
||||
taskSubdivisiontemplateType: '',
|
||||
nodeContent: "",
|
||||
templateId: "",
|
||||
templateName: "",
|
||||
taskType: "",
|
||||
taskTypeName: "",
|
||||
taskSubdivision: "",
|
||||
taskSubdivisionName: "",
|
||||
taskStatus: "",
|
||||
secondClassifyDescribe: "",
|
||||
executionTime: "",
|
||||
appletPushSign: "0",
|
||||
officialPushSign: "0",
|
||||
messagePushSign: "0",
|
||||
taskSubdivisiontemplateType: "",
|
||||
},
|
||||
itemindex: 0,
|
||||
listindex: 0,
|
||||
lists: [{
|
||||
lists: [
|
||||
{
|
||||
routeNodeName: "",
|
||||
routeNodeDay: '',
|
||||
routeNodeDay: "",
|
||||
list: [
|
||||
{
|
||||
nodeContent: '',
|
||||
templateId: '',
|
||||
templateName: '',
|
||||
taskType: '',
|
||||
taskTypeName: '',
|
||||
taskSubdivision: '',
|
||||
taskSubdivisionName: '',
|
||||
taskStatus: '',
|
||||
secondClassifyDescribe: '',
|
||||
executionTime: '',
|
||||
appletPushSign: '0',
|
||||
officialPushSign: '0',
|
||||
messagePushSign: '0',
|
||||
taskSubdivisiontemplateType: '',
|
||||
nodeContent: "",
|
||||
templateId: "",
|
||||
templateName: "",
|
||||
taskType: "",
|
||||
taskTypeName: "",
|
||||
taskSubdivision: "",
|
||||
taskSubdivisionName: "",
|
||||
taskStatus: "",
|
||||
secondClassifyDescribe: "",
|
||||
executionTime: "",
|
||||
appletPushSign: "0",
|
||||
officialPushSign: "0",
|
||||
messagePushSign: "0",
|
||||
taskSubdivisiontemplateType: "",
|
||||
},
|
||||
],
|
||||
}],
|
||||
value: '',
|
||||
input: '',
|
||||
},
|
||||
],
|
||||
value: "",
|
||||
input: "",
|
||||
//任务类型
|
||||
selectTaskTypeList: [],
|
||||
//任务状态
|
||||
taskStatusDictList: [],
|
||||
//任务细分
|
||||
taskPartitionList: [],
|
||||
routeId: "",
|
||||
options: [],
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.infolists();
|
||||
this.infolist();
|
||||
|
||||
if (this.$route.query) {
|
||||
this.updata.suitRange = this.$route.query.suitRange
|
||||
triggerCondition(this.$route.query.id).then(res => { })
|
||||
this.$set(this.updata, "suitRange", this.$route.query.suitRange);
|
||||
console.log(this.updata.suitRange, "5555555555555555");
|
||||
// triggerCondition(this.$route.query.id).then(res => { })
|
||||
}
|
||||
this.taskinfo();
|
||||
},
|
||||
beforeDestroy() {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
this.form = this.lists[0].list[0]
|
||||
this.form = this.lists[0].list[0];
|
||||
},
|
||||
methods: {
|
||||
// 包含
|
||||
changetriggerLogic(e, index) {
|
||||
// console.log(e,index,'index')
|
||||
this.updata.triggerConditionList[index].triggerConditionOperatorName =
|
||||
this.optionstriggerConditionOperator.find((el) => el.value == e).label;
|
||||
// console.log( this.updata.triggerConditionList[index].triggerConditionOperatorName,"this.updata.triggerConditionList[index].triggerConditionOperatorName");
|
||||
},
|
||||
// 诊断
|
||||
changetriggerConditionName(e, index) {
|
||||
// console.log(e,index, "eeeeeeeee");
|
||||
this.updata.triggerConditionList[index].triggerConditionName =
|
||||
this.optionsname.find((el) => el.value == e).label;
|
||||
// console.log(this.updata.triggerConditionList[index].triggerConditionName, " this.form.triggerConditionName");
|
||||
},
|
||||
changeoptions() {},
|
||||
// 且或
|
||||
changetriggerLogicsname(e, index) {
|
||||
console.log(e, index, "eeeeeeeeeeeeeeeeee");
|
||||
this.updata.triggerConditionList[index].triggerLogic = e;
|
||||
this.updata.triggerConditionList[index].triggerLogicName =
|
||||
this.optionslistS.find((el) => el.dictValue == e).dictLabel;
|
||||
console.log(
|
||||
this.updata.triggerConditionList[index].triggerLogic,
|
||||
this.updata.triggerConditionList[index].triggerLogicName,
|
||||
" this.form.triggerLogicName"
|
||||
);
|
||||
},
|
||||
// 适用范围
|
||||
infolists() {
|
||||
var dictType = "suit_range";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.options = res.data;
|
||||
});
|
||||
},
|
||||
infolist() {
|
||||
this.routeId = this.$route.query.id;
|
||||
triggerConditionList(this.routeId).then((res) => {
|
||||
console.log(res, "res");
|
||||
this.updata = res.data;
|
||||
this.$set(this.updata, "suitRange", this.$route.query.suitRange);
|
||||
});
|
||||
},
|
||||
//wangeditor传值
|
||||
onNodeContent(item) {
|
||||
this.form.nodeContent = item.nodeContent
|
||||
this.form.nodeContent = item.nodeContent;
|
||||
},
|
||||
//小程序传值
|
||||
miniProgramtemplate(item) {
|
||||
this.form.appletTemplateId = item.templateId
|
||||
this.form.appletTemplateName = item.templateName
|
||||
this.form.appletRemindContent = item.templateContent
|
||||
this.form.appletTemplateId = item.templateId;
|
||||
this.form.appletTemplateName = item.templateName;
|
||||
this.form.appletRemindContent = item.templateContent;
|
||||
},
|
||||
//短信传值
|
||||
messageontemplate(item) {
|
||||
this.form.messageTemplateId = item.templateId
|
||||
this.form.messageTemplateName = item.templateName
|
||||
this.form.messagePreview = item.templateContent
|
||||
this.form.messageTemplateId = item.templateId;
|
||||
this.form.messageTemplateName = item.templateName;
|
||||
this.form.messagePreview = item.templateContent;
|
||||
},
|
||||
//公众号传值
|
||||
officialAccountontemplate() {
|
||||
this.form.officialTemplateId = item.templateId
|
||||
this.form.officialTemplateName = item.templateName
|
||||
this.form.officialRemindContent = item.templateContent
|
||||
this.form.officialTemplateId = item.templateId;
|
||||
this.form.officialTemplateName = item.templateName;
|
||||
this.form.officialRemindContent = item.templateContent;
|
||||
},
|
||||
//暂存
|
||||
TemporaryStorage() {
|
||||
this.$refs.wangeditor.emit()
|
||||
triggerConditionedit(this.lists).then(res => {
|
||||
|
||||
})
|
||||
this.$refs.wangeditor.emit();
|
||||
triggerConditionedit(this.lists).then((res) => {});
|
||||
},
|
||||
//问卷传值
|
||||
questionontemplate(item) {
|
||||
this.form.templateId = item.templateId
|
||||
this.form.templateName = item.templateName
|
||||
this.form.templateId = item.templateId;
|
||||
this.form.templateName = item.templateName;
|
||||
},
|
||||
//宣教传值
|
||||
propagandaontemplate(item) {
|
||||
this.form.templateId = item.templateId
|
||||
this.form.templateName = item.templateName
|
||||
this.form.templateId = item.templateId;
|
||||
this.form.templateName = item.templateName;
|
||||
},
|
||||
topclickevent(index) {
|
||||
this.listindex = index
|
||||
this.itemindex = 0
|
||||
this.listindex = index;
|
||||
this.itemindex = 0;
|
||||
},
|
||||
bottomclickevent(uitem, index, uindex) {
|
||||
this.form = uitem
|
||||
this.listindex = index
|
||||
this.itemindex = uindex
|
||||
this.form = uitem;
|
||||
this.listindex = index;
|
||||
this.itemindex = uindex;
|
||||
},
|
||||
handleStep() {
|
||||
this.active = 2
|
||||
this.active = 2;
|
||||
},
|
||||
//任务类型 任务状态
|
||||
taskinfo() {
|
||||
selectTaskTypeList().then(res => {
|
||||
this.selectTaskTypeList = res.data
|
||||
})
|
||||
taskStatusDictList().then(res => {
|
||||
this.taskStatusDictList = res.data
|
||||
})
|
||||
selectTaskTypeList().then((res) => {
|
||||
this.selectTaskTypeList = res.data;
|
||||
});
|
||||
taskStatusDictList().then((res) => {
|
||||
this.taskStatusDictList = res.data;
|
||||
});
|
||||
},
|
||||
//任务细分
|
||||
changeTaskType(id) {
|
||||
taskPartitionList(id).then(res => {
|
||||
this.taskPartitionList = res.data
|
||||
})
|
||||
this.selectTaskTypeList.forEach(el => {
|
||||
taskPartitionList(id).then((res) => {
|
||||
this.taskPartitionList = res.data;
|
||||
});
|
||||
this.selectTaskTypeList.forEach((el) => {
|
||||
if (id == el.id) {
|
||||
this.form.taskTypeName = el.taskTypeName
|
||||
this.form.taskTypeName = el.taskTypeName;
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
changetaskSubdivision(e) {
|
||||
this.taskPartitionList.forEach(el => {
|
||||
this.taskPartitionList.forEach((el) => {
|
||||
if (e == el.id) {
|
||||
this.form.taskSubdivisionName = el.taskTypeName
|
||||
this.form.taskSubdivisiontemplateType = el.templateType
|
||||
this.form.taskSubdivisionName = el.taskTypeName;
|
||||
this.form.taskSubdivisiontemplateType = el.templateType;
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
addlist() {
|
||||
this.lists.push({
|
||||
routeNodeName: "",
|
||||
routeNodeDay: '',
|
||||
routeNodeDay: "",
|
||||
list: [
|
||||
{
|
||||
nodeContent: '',
|
||||
templateId: '',
|
||||
templateName: '',
|
||||
taskType: '',
|
||||
taskTypeName: '',
|
||||
taskSubdivision: '',
|
||||
taskSubdivisionName: '',
|
||||
taskStatus: '',
|
||||
secondClassifyDescribe: '',
|
||||
executionTime: '',
|
||||
appletPushSign: '0',
|
||||
officialPushSign: '0',
|
||||
messagePushSign: '0',
|
||||
taskSubdivisiontemplateType: '',
|
||||
nodeContent: "",
|
||||
templateId: "",
|
||||
templateName: "",
|
||||
taskType: "",
|
||||
taskTypeName: "",
|
||||
taskSubdivision: "",
|
||||
taskSubdivisionName: "",
|
||||
taskStatus: "",
|
||||
secondClassifyDescribe: "",
|
||||
executionTime: "",
|
||||
appletPushSign: "0",
|
||||
officialPushSign: "0",
|
||||
messagePushSign: "0",
|
||||
taskSubdivisiontemplateType: "",
|
||||
},
|
||||
]
|
||||
})
|
||||
],
|
||||
});
|
||||
},
|
||||
additem(item) {
|
||||
item.list.push({
|
||||
nodeContent: '',
|
||||
templateId: '',
|
||||
templateName: '',
|
||||
taskType: '',
|
||||
taskTypeName: '',
|
||||
taskSubdivision: '',
|
||||
taskSubdivisionName: '',
|
||||
taskStatus: '',
|
||||
secondClassifyDescribe: '',
|
||||
executionTime: '',
|
||||
appletPushSign: '0',
|
||||
officialPushSign: '0',
|
||||
messagePushSign: '0',
|
||||
taskSubdivisiontemplateType: '',
|
||||
})
|
||||
nodeContent: "",
|
||||
templateId: "",
|
||||
templateName: "",
|
||||
taskType: "",
|
||||
taskTypeName: "",
|
||||
taskSubdivision: "",
|
||||
taskSubdivisionName: "",
|
||||
taskStatus: "",
|
||||
secondClassifyDescribe: "",
|
||||
executionTime: "",
|
||||
appletPushSign: "0",
|
||||
officialPushSign: "0",
|
||||
messagePushSign: "0",
|
||||
taskSubdivisiontemplateType: "",
|
||||
});
|
||||
},
|
||||
delitem(item, index) {
|
||||
item.list.splice(this.itemindex, 1)
|
||||
item.list.splice(this.itemindex, 1);
|
||||
if (item.list.length == 0) {
|
||||
this.lists.splice(index, 1)
|
||||
this.lists.splice(index, 1);
|
||||
}
|
||||
},
|
||||
addtriggerCondition() {
|
||||
this.updata.triggerConditionList.push({})
|
||||
this.updata.triggerConditionList.push({});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.login-code-img {
|
||||
width: 62px;
|
||||
height: 100px;
|
||||
position: absolute;
|
||||
// background: red;
|
||||
// z-index: 0;
|
||||
// top: 17%;
|
||||
// position: absolute;
|
||||
// left: 2%;
|
||||
// top: 25%;
|
||||
// width: 62px;
|
||||
// height: 100px;
|
||||
// position: absolute;
|
||||
// /* background: red; */
|
||||
z-index: -1;
|
||||
right: 44px;
|
||||
// position: absolute;
|
||||
top: 85%;
|
||||
}
|
||||
.dialog-footer {
|
||||
padding: 20px 20px;
|
||||
text-align: right;
|
||||
@ -518,6 +763,7 @@ export default {
|
||||
width: 660px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
position: relative;
|
||||
|
||||
.node {
|
||||
margin-bottom: 10px;
|
||||
@ -542,7 +788,7 @@ export default {
|
||||
|
||||
.text {
|
||||
font-size: 13px;
|
||||
color: #64666A;
|
||||
color: #64666a;
|
||||
}
|
||||
|
||||
.textarea {
|
||||
@ -550,7 +796,7 @@ export default {
|
||||
padding: 0 10px;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
border: 1px solid #DCDFE6;
|
||||
border: 1px solid #dcdfe6;
|
||||
border-radius: 5px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -580,7 +826,7 @@ export default {
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
font-size: 13px;
|
||||
color: #64666A;
|
||||
color: #64666a;
|
||||
|
||||
::v-deep .el-input__inner {
|
||||
color: black;
|
||||
@ -615,9 +861,10 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
padding-left: 10px;
|
||||
padding-left: 27px;
|
||||
font-weight: 600;
|
||||
align-items: center;
|
||||
}
|
||||
@ -635,10 +882,10 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.list {
|
||||
margin: 20px auto;
|
||||
width: 100%;
|
||||
height: calc(100% - 80px);
|
||||
background-color: #f2f4f5;
|
||||
display: flex;
|
||||
padding-top: 15px;
|
||||
@ -673,8 +920,8 @@ export default {
|
||||
}
|
||||
|
||||
.cards {
|
||||
border: 1px solid #409EFF;
|
||||
border-left: 5px solid #409EFF;
|
||||
border: 1px solid #409eff;
|
||||
border-left: 5px solid #409eff;
|
||||
}
|
||||
|
||||
.top {
|
||||
|
||||
@ -1,15 +1,20 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<el-form ref="form" :inline="true" :model="form" label-width="140px">
|
||||
<el-form-item label="编辑专病管理路径">
|
||||
</el-form-item>
|
||||
<el-form-item style="float: right;">
|
||||
<el-form-item label="编辑专病管理路径"> </el-form-item>
|
||||
<el-form-item style="float: right">
|
||||
<el-button @click="back">返回</el-button>
|
||||
<el-button type="primary" @click="preserve">保存</el-button>
|
||||
<!-- <el-button type="primary">发布</el-button> -->
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-form ref="form" :inline="true" :model="form" label-width="100px" :rules="rules">
|
||||
<el-form
|
||||
ref="form"
|
||||
:inline="true"
|
||||
:model="form"
|
||||
label-width="100px"
|
||||
:rules="rules"
|
||||
>
|
||||
<el-form-item label="路径名称" prop="routeName">
|
||||
<el-input v-model="form.routeName" style="width: 160px"></el-input>
|
||||
</el-form-item>
|
||||
@ -21,17 +26,32 @@
|
||||
<el-form-item label="版本号" prop="version">
|
||||
<el-input v-model="form.version" style="width: 160px"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item style="float: right;">
|
||||
<el-form-item style="float: right">
|
||||
<!-- <el-button type="primary" plain size="mini">AI生成触发条件</el-button> -->
|
||||
<!-- <el-button type="primary" plain size="mini" @click="add">人工添加主路径</el-button> -->
|
||||
<el-button type="primary" plain size="mini" @click="goManageNodeInformation">人工添加触发条件</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
size="mini"
|
||||
@click="goManageNodeInformation"
|
||||
>人工添加触发条件</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-form label-width="100px" ref="form" :model="form" :rules="rules">
|
||||
<el-form-item label="所属服务包" prop="servicePackageId">
|
||||
<el-select v-model="form.servicePackageId" placeholder="请选择所属服务包" style="width:600px" multiple>
|
||||
<el-option v-for="item in addpackagelist" :key="item.id" :label="item.packageName"
|
||||
:value="item.id" />
|
||||
<el-select
|
||||
v-model="form.servicePackageId"
|
||||
placeholder="请选择所属服务包"
|
||||
style="width: 600px"
|
||||
multiple
|
||||
>
|
||||
<el-option
|
||||
v-for="item in addpackagelist"
|
||||
:key="item.id"
|
||||
:label="item.packageName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@ -43,16 +63,24 @@
|
||||
</div>
|
||||
<div class="progress">
|
||||
<span>审核进度</span>
|
||||
<el-progress :text-inside="true" :stroke-width="13" :percentage="list.percentage"></el-progress>
|
||||
<span>{{ list.agreeNumber + ' / ' + list.totalNumber }}</span>
|
||||
<el-progress
|
||||
:text-inside="true"
|
||||
:stroke-width="13"
|
||||
:percentage="list.percentage"
|
||||
></el-progress>
|
||||
<span>{{ list.agreeNumber + " / " + list.totalNumber }}</span>
|
||||
</div>
|
||||
<div class="title" style="width: 240px">
|
||||
<span>适用范围:</span>
|
||||
<span>
|
||||
{{ list.suitRange == 'IN_THE_HOSPITAL' ? '在院' : '' }}
|
||||
{{ list.suitRange == 'DISCHARGE' ? '出院' : '' }}
|
||||
{{ list.suitRange == 'OUTPATIENT_SERVICE' ? '门诊' : '' }}
|
||||
{{ list.suitRange == 'OUTPATIENT_SERVICE_DISCHARGE' ? '门诊+出院' : '' }}
|
||||
{{ list.suitRange == "IN_THE_HOSPITAL" ? "在院" : "" }}
|
||||
{{ list.suitRange == "DISCHARGE" ? "出院" : "" }}
|
||||
{{ list.suitRange == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
|
||||
{{
|
||||
list.suitRange == "OUTPATIENT_SERVICE_DISCHARGE"
|
||||
? "门诊+出院"
|
||||
: ""
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
@ -60,36 +88,60 @@
|
||||
<!-- <i class="el-icon-delete" @click.stop="delspecialDiseaseRoute"></i> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" v-for="item in list.triggerConditionList" :key="item.triggerConditionId">
|
||||
<!-- @click.stop="goManageNodeInformation(item)" -->
|
||||
<div
|
||||
class="item"
|
||||
v-for="item in list.childrenRouteList"
|
||||
:key="item.specialDiseaseRouteId"
|
||||
>
|
||||
<div class="title">
|
||||
<el-tag type="success">触发条件</el-tag>
|
||||
<span>
|
||||
{{ item.triggerConditionName == 'DIAGNOSIS' ? '诊断' : '' }}
|
||||
{{ item.triggerConditionName == 'DRESSING_CHANGE_DATE' ? '换药日期' : '' }}
|
||||
{{ item.triggerConditionName == 'TREATMENT_METHOD' ? '治疗方式' : '' }}
|
||||
{{ item.triggerConditionName == 'SURGICAL_NAME' ? '手术名称' : '' }}
|
||||
{{ item.triggerConditionName == 'DRUG_NAME' ? '药品名称' : '' }}
|
||||
</span>
|
||||
<span style="padding: 0;">
|
||||
{{ item.triggerConditionOperator == 'CONTAIN' ? '包含' : '' }}
|
||||
{{ item.triggerConditionOperator == 'NOT_CONTAIN' ? '不包含' : '' }}
|
||||
{{ item.triggerConditionOperator == 'EQUAL_TO' ? '等于' : '' }}
|
||||
{{ item.triggerConditionOperator == 'NOT_EQUAL_TO' ? '不等于' : '' }}
|
||||
</span>
|
||||
<span style="padding: 0;">
|
||||
{{ item.triggerConditionValue }}
|
||||
{{ item.routeName }}
|
||||
</span>
|
||||
|
||||
<!-- {{ item.triggerConditionName == "DIAGNOSIS" ? "诊断" : "" }}
|
||||
{{
|
||||
item.triggerConditionName == "DRESSING_CHANGE_DATE"
|
||||
? "换药日期"
|
||||
: ""
|
||||
}}
|
||||
{{
|
||||
item.triggerConditionName == "TREATMENT_METHOD" ? "治疗方式" : ""
|
||||
}}
|
||||
{{ item.triggerConditionName == "SURGICAL_NAME" ? "手术名称" : "" }}
|
||||
{{ item.triggerConditionName == "DRUG_NAME" ? "药品名称" : "" }} -->
|
||||
<!-- <span style="padding: 0"> -->
|
||||
<!-- {{ item.triggerConditionOperator == "CONTAIN" ? "包含" : "" }}
|
||||
{{ item.triggerConditionOperator == "NOT_CONTAIN" ? "不包含" : "" }}
|
||||
{{ item.triggerConditionOperator == "EQUAL_TO" ? "等于" : "" }}
|
||||
{{
|
||||
item.triggerConditionOperator == "NOT_EQUAL_TO" ? "不等于" : ""
|
||||
}} -->
|
||||
<!-- </span> -->
|
||||
<!-- <span style="padding: 0"> -->
|
||||
<!-- {{ item.triggerConditionValue }} -->
|
||||
<!-- </span> -->
|
||||
</div>
|
||||
<div class="progress">
|
||||
<span>审核进度</span>
|
||||
<el-progress
|
||||
:text-inside="true"
|
||||
:stroke-width="13"
|
||||
:percentage="item.percentage"
|
||||
></el-progress>
|
||||
<span>{{ item.agreeNumber + " / " + item.totalNumber }}</span>
|
||||
</div>
|
||||
<div class="title" style="width: 240px">
|
||||
<span>适用范围:</span>
|
||||
<span>
|
||||
{{ list.suitRange == 'IN_THE_HOSPITAL' ? '在院' : '' }}
|
||||
{{ list.suitRange == 'DISCHARGE' ? '出院' : '' }}
|
||||
{{ list.suitRange == 'OUTPATIENT_SERVICE' ? '门诊' : '' }}
|
||||
{{ list.suitRange == 'OUTPATIENT_SERVICE_DISCHARGE' ? '门诊+出院' : '' }}
|
||||
{{ item.suitRange == "IN_THE_HOSPITAL" ? "在院" : "" }}
|
||||
{{ item.suitRange == "DISCHARGE" ? "出院" : "" }}
|
||||
{{ item.suitRange == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
|
||||
{{
|
||||
item.suitRange == "OUTPATIENT_SERVICE_DISCHARGE"
|
||||
? "门诊+出院"
|
||||
: ""
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
@ -100,27 +152,85 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 添加触发条件 -->
|
||||
<el-dialog title="添加触发条件" :visible.sync="open" width="800px" append-to-body>
|
||||
<el-button type="primary" plain size="mini" @click="addtriggerCondition"
|
||||
style="float: right;">添加触发条件</el-button>
|
||||
<el-descriptions title="触发条件">
|
||||
</el-descriptions>
|
||||
<el-dialog
|
||||
title="添加触发条件"
|
||||
:visible.sync="open"
|
||||
width="800px"
|
||||
append-to-body
|
||||
>
|
||||
<el-form ref="updata" :model="updata" :rules="rules" label-width="80px">
|
||||
<div class="node" v-for="(item, index) in updata.triggerConditionList" :key="index"
|
||||
:style="updata.triggerConditionList.length > 1 ? '' : 'margin:0'">
|
||||
<div style="display: inline-block;margin-right:20px">触发条件{{ index + 1 }}</div>
|
||||
<el-select v-model="item.triggerConditionName" style="width:120px">
|
||||
<el-option label="诊断" value="DIAGNOSIS" />
|
||||
<el-form-item label="适用范围:">
|
||||
<el-select
|
||||
v-model="updata.suitRange"
|
||||
@change="changeoptions"
|
||||
style="width: 200px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.dictValue"
|
||||
:label="item.dictLabel"
|
||||
:value="item.dictValue"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-descriptions title="触发条件"> </el-descriptions>
|
||||
|
||||
<div
|
||||
class="node"
|
||||
v-for="(item, index) in updata.triggerConditionList"
|
||||
:key="index"
|
||||
>
|
||||
<div
|
||||
style="width: 600px; position: absolute; left: 2%; top: 57%"
|
||||
v-if="updata.triggerConditionList.length === 3"
|
||||
>
|
||||
<img src="@/assets/images/images.png" class="login-code-img" />
|
||||
<el-select
|
||||
v-model="item.triggerLogic"
|
||||
style="width: 60px"
|
||||
placeholder=""
|
||||
@change="changetriggerLogicsname($event, index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionslistS"
|
||||
:key="item.dictValue"
|
||||
:label="item.dictLabel"
|
||||
:value="item.dictValue"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<el-select
|
||||
v-model="item.triggerConditionCode"
|
||||
style="width: 120px"
|
||||
@change="changetriggerConditionName($event, index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionsname"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</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-option label="药品名称" value="DRUG_NAME" /> -->
|
||||
</el-select>
|
||||
<el-select v-model="item.triggerConditionOperator" style="width: 100px;">
|
||||
<el-option label="包含" value="CONTAIN" />
|
||||
<el-option label="不包含" value="NOT_CONTAIN" />
|
||||
<el-option label="等于" value="EQUAL_TO" />
|
||||
<el-option label="不等于" value="NOT_EQUAL_TO" />
|
||||
<el-select
|
||||
v-model="item.triggerConditionOperator"
|
||||
style="width: 100px"
|
||||
@change="changetriggerLogic($event, index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionstriggerConditionOperator"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<!-- <el-select v-model="item.suitRange" style="width: 120px;">
|
||||
<el-option label="在院" value="IN_THE_HOSPITAL" />
|
||||
@ -128,8 +238,50 @@
|
||||
<el-option label="门诊" value="OUTPATIENT_SERVICE" />
|
||||
<el-option label="门诊+出院" value="OUTPATIENT_SERVICE_DISCHARGE" />
|
||||
</el-select> -->
|
||||
<el-input v-model="item.triggerConditionValue" style="width: 300px;"
|
||||
placeholder="请输入触发条件"></el-input>
|
||||
<el-input
|
||||
v-if="item.triggerConditionCode != 'DRESSING_CHANGE_DATE'"
|
||||
v-model="item.triggerConditionValue"
|
||||
style="width: 300px"
|
||||
placeholder="请输入触发条件"
|
||||
></el-input>
|
||||
<el-date-picker
|
||||
v-if="item.triggerConditionCode == 'DRESSING_CHANGE_DATE'"
|
||||
v-model="item.triggerConditionValue"
|
||||
style="width: 300px"
|
||||
type="date"
|
||||
placeholder="选择日期时间"
|
||||
value-format="yyyy-MM-dd"
|
||||
>
|
||||
</el-date-picker>
|
||||
<span class="icon">
|
||||
<el-button
|
||||
type="danger"
|
||||
class="el-icon-remove-outline"
|
||||
plain
|
||||
@click="delitem(index)"
|
||||
v-if="index != 0"
|
||||
></el-button>
|
||||
|
||||
<!-- <i
|
||||
class="el-icon-delete"
|
||||
@click="delitem(index)"
|
||||
v-if="index != 0"
|
||||
></i> -->
|
||||
<!-- <i
|
||||
v-if="index == 0"
|
||||
class="el-icon-circle-plus-outline"
|
||||
@click="addtriggerCondition(index)"
|
||||
>添加触发条件</i
|
||||
> -->
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
class="el-icon-circle-plus-outline"
|
||||
@click="addtriggerCondition(index)"
|
||||
v-if="index == 0"
|
||||
>添加属性</el-button
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@ -138,20 +290,35 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 修改触发条件 -->
|
||||
<el-dialog title="修改触发条件" :visible.sync="editopen" width="800px" append-to-body>
|
||||
<el-dialog
|
||||
title="修改触发条件"
|
||||
:visible.sync="editopen"
|
||||
width="900px"
|
||||
append-to-body
|
||||
>
|
||||
<!-- <el-button type="primary" plain size="mini" @click="addtriggerCondition"
|
||||
style="float: right;">添加触发条件</el-button> -->
|
||||
<el-descriptions title="触发条件">
|
||||
</el-descriptions>
|
||||
<el-form ref="updataform" :model="updataform" :rules="rules" label-width="80px">
|
||||
<el-select v-model="updataform.triggerConditionName" style="width:120px">
|
||||
<el-descriptions title="触发条件"> </el-descriptions>
|
||||
<el-form
|
||||
ref="updataform"
|
||||
:model="updataform"
|
||||
:rules="rules"
|
||||
label-width="80px"
|
||||
>
|
||||
<el-select
|
||||
v-model="updataform.triggerConditionName"
|
||||
style="width: 120px"
|
||||
>
|
||||
<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 v-model="updataform.triggerConditionOperator" style="width: 100px;">
|
||||
<el-select
|
||||
v-model="updataform.triggerConditionOperator"
|
||||
style="width: 100px"
|
||||
>
|
||||
<el-option label="包含" value="CONTAIN" />
|
||||
<el-option label="不包含" value="NOT_CONTAIN" />
|
||||
<el-option label="等于" value="EQUAL_TO" />
|
||||
@ -163,8 +330,11 @@
|
||||
<el-option label="门诊" value="OUTPATIENT_SERVICE" />
|
||||
<el-option label="门诊+出院" value="OUTPATIENT_SERVICE_DISCHARGE" />
|
||||
</el-select> -->
|
||||
<el-input v-model="updataform.triggerConditionValue" style="width: 300px;"
|
||||
placeholder="请输入触发条件"></el-input>
|
||||
<el-input
|
||||
v-model="updataform.triggerConditionValue"
|
||||
style="width: 300px"
|
||||
placeholder="请输入触发条件"
|
||||
></el-input>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="editupload">确 定</el-button>
|
||||
@ -177,75 +347,182 @@
|
||||
<script>
|
||||
import {
|
||||
updateSpecialDiseaseRoute,
|
||||
getById,
|
||||
} from "@/api/system/specialDiseaseRoute";
|
||||
import {
|
||||
specialDiseaseRoute, triggerConditiondel, specialDiseaseRoutedel, triggerConditionadd, triggerCondition, triggerConditionedit
|
||||
specialDiseaseRoute,
|
||||
triggerConditiondel,
|
||||
specialDiseaseRoutedel,
|
||||
triggerConditionadd,
|
||||
triggerCondition,
|
||||
triggerConditionedit,
|
||||
} from "@/api/system/editorialSpecialization";
|
||||
import {
|
||||
servicepackageinfo
|
||||
} from '@/api/manage/signRecord.js'
|
||||
import { servicepackageinfo } from "@/api/manage/signRecord.js";
|
||||
import { getAgencytype } from "@/api/system/agency";
|
||||
|
||||
export default {
|
||||
name: "editorialSpecialization",
|
||||
data() {
|
||||
return {
|
||||
options: [],
|
||||
|
||||
optionstriggerConditionOperator: [
|
||||
{
|
||||
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: [],
|
||||
form: {
|
||||
version: '',
|
||||
routeName: '',
|
||||
id: '',
|
||||
diseaseTypeName: '',
|
||||
version: "",
|
||||
routeName: "",
|
||||
id: "",
|
||||
diseaseTypeName: "",
|
||||
servicePackageId: [],
|
||||
routePackageList: [],
|
||||
},
|
||||
open: false,
|
||||
updata: {
|
||||
triggerConditionList: [{
|
||||
routeId: '',
|
||||
routeName: '',
|
||||
triggerConditionName: '',
|
||||
triggerConditionOperator: '',
|
||||
triggerConditionValue: '',
|
||||
}],
|
||||
triggerLogic: "",
|
||||
triggerLogicName: "",
|
||||
suitRange: "",
|
||||
parentRouteId: "",
|
||||
triggerConditionList: [
|
||||
{
|
||||
routeId: "",
|
||||
routeName: "",
|
||||
triggerConditionName: "",
|
||||
triggerConditionOperatorName: "",
|
||||
// triggerConditionName: "",
|
||||
triggerConditionOperator: "",
|
||||
triggerConditionValue: "",
|
||||
|
||||
triggerLogic: "",
|
||||
triggerLogicName: "",
|
||||
},
|
||||
],
|
||||
},
|
||||
editopen: false,
|
||||
updataform: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
servicePackageId: [
|
||||
{ required: true, message: '不能为空', trigger: 'change' }
|
||||
],
|
||||
routeName: [
|
||||
{ required: true, message: '不能为空', trigger: 'change' }
|
||||
],
|
||||
version: [
|
||||
{ required: true, message: '不能为空', trigger: 'change' }
|
||||
{ required: true, message: "不能为空", trigger: "change" },
|
||||
],
|
||||
routeName: [{ required: true, message: "不能为空", trigger: "change" }],
|
||||
version: [{ required: true, message: "不能为空", trigger: "change" }],
|
||||
},
|
||||
list: {},
|
||||
addpackagelist: [],
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.form.version = this.$route.query.version
|
||||
this.form.routeName = this.$route.query.routeName
|
||||
this.form.id = this.$route.query.id
|
||||
this.form.diseaseTypeName = this.$route.query.diseaseTypeName
|
||||
this.form.version = this.$route.query.version;
|
||||
this.form.routeName = this.$route.query.routeName;
|
||||
this.form.id = this.$route.query.id;
|
||||
this.updata.parentRouteId = this.$route.query.id;
|
||||
|
||||
this.form.diseaseTypeName = this.$route.query.diseaseTypeName;
|
||||
this.info();
|
||||
this.infolist();
|
||||
this.infolistoptionslistS();
|
||||
},
|
||||
watch: {
|
||||
},
|
||||
watch: {},
|
||||
methods: {
|
||||
// 包含
|
||||
changetriggerLogic(e, index) {
|
||||
// console.log(e,index,'index')
|
||||
this.updata.triggerConditionList[index].triggerConditionOperatorName =
|
||||
this.optionstriggerConditionOperator.find((el) => el.value == e).label;
|
||||
// console.log( this.updata.triggerConditionList[index].triggerConditionOperatorName,"this.updata.triggerConditionList[index].triggerConditionOperatorName");
|
||||
},
|
||||
// 诊断
|
||||
changetriggerConditionName(e, index) {
|
||||
// console.log(e,index, "eeeeeeeee");
|
||||
this.updata.triggerConditionList[index].triggerConditionName =
|
||||
this.optionsname.find((el) => el.value == e).label;
|
||||
// console.log(this.updata.triggerConditionList[index].triggerConditionName, " this.form.triggerConditionName");
|
||||
},
|
||||
changeoptions() {},
|
||||
// 且或
|
||||
changetriggerLogicsname(e, index) {
|
||||
console.log(e, index, "eeeeeeeeeeeeeeeeee");
|
||||
this.updata.triggerConditionList[index].triggerLogic = e;
|
||||
this.updata.triggerConditionList[index].triggerLogicName =
|
||||
this.optionslistS.find((el) => el.dictValue == e).dictLabel;
|
||||
console.log(
|
||||
this.updata.triggerConditionList[index].triggerLogic,
|
||||
this.updata.triggerConditionList[index].triggerLogicName,
|
||||
" this.form.triggerLogicName"
|
||||
);
|
||||
},
|
||||
infolist() {
|
||||
var dictType = "suit_range";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.options = res.data;
|
||||
});
|
||||
},
|
||||
infolistoptionslistS() {
|
||||
var dictType = "trigger_logic";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.optionslistS = res.data;
|
||||
});
|
||||
},
|
||||
delitem(index, item) {
|
||||
this.updata.triggerConditionList.splice(index, 1);
|
||||
},
|
||||
info() {
|
||||
specialDiseaseRoute(this.$route.query.id).then(res => {
|
||||
this.list = res.data
|
||||
this.list.percentage = this.list.agreeNumber / this.list.totalNumber * 100
|
||||
res.data.routePackageList?.forEach(e => {
|
||||
e.servicePackageId ? this.form.servicePackageId.push(e.servicePackageId) : ''
|
||||
})
|
||||
//服务包
|
||||
servicepackageinfo({ departmentId: res.data.departmentId }).then(res => {
|
||||
this.addpackagelist = res.data
|
||||
})
|
||||
})
|
||||
getById(this.$route.query.id).then((res) => {
|
||||
this.list = res.data;
|
||||
console.log(this.list, "this.list");
|
||||
this.list.percentage =
|
||||
(this.list.agreeNumber / this.list.totalNumber) * 100;
|
||||
res.data.routePackageList?.forEach((e) => {
|
||||
e.servicePackageId
|
||||
? this.form.servicePackageId.push(e.servicePackageId)
|
||||
: "";
|
||||
});
|
||||
// //服务包
|
||||
servicepackageinfo({ departmentId: res.data.departmentId }).then(
|
||||
(res) => {
|
||||
this.addpackagelist = res.data;
|
||||
}
|
||||
);
|
||||
});
|
||||
},
|
||||
edit() {
|
||||
this.$router.push({
|
||||
@ -253,7 +530,7 @@ export default {
|
||||
query: {
|
||||
routeName: this.list.routeName,
|
||||
suitRange: this.list.suitRange,
|
||||
id: this.list.specialDiseaseRouteId
|
||||
id: this.list.specialDiseaseRouteId,
|
||||
},
|
||||
});
|
||||
},
|
||||
@ -263,170 +540,252 @@ export default {
|
||||
query: {
|
||||
routeName: this.list.routeName,
|
||||
suitRange: this.list.suitRange,
|
||||
id: this.list.specialDiseaseRouteId
|
||||
id: this.list.specialDiseaseRouteId,
|
||||
},
|
||||
});
|
||||
},
|
||||
goManageNodeInformation() {
|
||||
this.open = true
|
||||
this.open = true;
|
||||
},
|
||||
// goManageNodeInformations() {
|
||||
// this.$router.push({
|
||||
// path: "/specialdisease/ManageNodeInformation",
|
||||
// query: {
|
||||
// suitRange: this.list.suitRange
|
||||
// suitRange: this.list.suitRange,
|
||||
// },
|
||||
// });
|
||||
},
|
||||
// },
|
||||
addtriggerCondition() {
|
||||
this.updata.triggerConditionList.push({
|
||||
routeId: '',
|
||||
routeName: '',
|
||||
triggerConditionName: '',
|
||||
triggerConditionOperator: '',
|
||||
triggerConditionValue: '',
|
||||
})
|
||||
this.idd++;
|
||||
var obj = {
|
||||
routeId: "",
|
||||
routeName: "",
|
||||
triggerConditionName: "",
|
||||
triggerConditionOperator: "",
|
||||
triggerConditionValue: "",
|
||||
triggerConditionName: "",
|
||||
triggerConditionOperatorName: "",
|
||||
|
||||
triggerLogic: "",
|
||||
triggerLogicName: "",
|
||||
};
|
||||
// if (this.form.voList.length == 5) {
|
||||
// this.$message.error("最多批量添加5条");
|
||||
// } else {
|
||||
// this.form.voList.push(obj);
|
||||
// // console.log(this.form)
|
||||
// }
|
||||
// this.updata.triggerConditionList.push({
|
||||
|
||||
// });
|
||||
// },
|
||||
if (this.updata.triggerConditionList.length == 3) {
|
||||
this.$message.error("最多批量添加2条");
|
||||
} else {
|
||||
this.updata.triggerConditionList.push(obj);
|
||||
// console.log(this.form)
|
||||
}
|
||||
},
|
||||
editopenfalse() {
|
||||
this.updataform = {}
|
||||
this.editopen = false
|
||||
this.updataform = {};
|
||||
this.editopen = false;
|
||||
this.resetForm("updataform");
|
||||
},
|
||||
editupload() {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
triggerConditionedit(this.updataform).then(res => {
|
||||
loading.close();
|
||||
// const loading = this.$loading({
|
||||
// lock: true,
|
||||
// text: "Loading",
|
||||
// spinner: "el-icon-loading",
|
||||
// background: "rgba(0, 0, 0, 0.7)",
|
||||
// });
|
||||
triggerConditionedit(this.updataform).then((res) => {
|
||||
// loading.close();
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
title: '提示',
|
||||
message: '修改触发条件成功',
|
||||
type: "success",
|
||||
title: "提示",
|
||||
message: "修改触发条件成功",
|
||||
});
|
||||
this.info();
|
||||
this.editopenfalse();
|
||||
})
|
||||
});
|
||||
},
|
||||
openfalse() {
|
||||
this.updata.triggerConditionList = [{
|
||||
routeId: '',
|
||||
routeName: '',
|
||||
triggerConditionName: '',
|
||||
triggerConditionOperator: '',
|
||||
triggerConditionValue: '',
|
||||
}]
|
||||
this.open = false
|
||||
this.updata.triggerConditionList = [
|
||||
{
|
||||
routeId: "",
|
||||
routeName: "",
|
||||
triggerConditionName: "",
|
||||
triggerConditionOperator: "",
|
||||
triggerConditionValue: "",
|
||||
triggerConditionName: "",
|
||||
triggerConditionOperatorName: "",
|
||||
|
||||
triggerLogic: "",
|
||||
triggerLogicName: "",
|
||||
},
|
||||
];
|
||||
this.open = false;
|
||||
this.resetForm("updata");
|
||||
},
|
||||
upload() {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
text: "Loading",
|
||||
spinner: "el-icon-loading",
|
||||
background: "rgba(0, 0, 0, 0.7)",
|
||||
});
|
||||
this.updata.triggerConditionList.forEach(e => {
|
||||
e.routeId = this.$route.query.id
|
||||
e.routeName = this.$route.query.routeName
|
||||
})
|
||||
triggerConditionadd(this.updata).then(res => {
|
||||
this.updata.triggerConditionList.forEach((e) => {
|
||||
e.routeId = this.$route.query.id;
|
||||
e.routeName = this.$route.query.routeName;
|
||||
});
|
||||
console.log(this.updata, "(this.updata");
|
||||
triggerConditionadd(this.updata).then((res) => {
|
||||
loading.close();
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
title: '提示',
|
||||
message: '新增触发条件成功',
|
||||
type: "success",
|
||||
title: "提示",
|
||||
message: "新增触发条件成功",
|
||||
});
|
||||
this.info();
|
||||
this.openfalse();
|
||||
})
|
||||
});
|
||||
},
|
||||
//保存
|
||||
preserve() {
|
||||
if (this.form.servicePackageId?.length > 0 && this.addpackagelist?.length > 0) {
|
||||
let routePackageList = []
|
||||
this.addpackagelist.forEach(e => {
|
||||
this.form.servicePackageId.forEach(el => {
|
||||
if (
|
||||
this.form.servicePackageId?.length > 0 &&
|
||||
this.addpackagelist?.length > 0
|
||||
) {
|
||||
let routePackageList = [];
|
||||
this.addpackagelist.forEach((e) => {
|
||||
this.form.servicePackageId.forEach((el) => {
|
||||
if (e.id == el) {
|
||||
let item = {
|
||||
servicePackageId: el,
|
||||
packageName: e.packageName
|
||||
packageName: e.packageName,
|
||||
};
|
||||
routePackageList.push(item);
|
||||
}
|
||||
routePackageList.push(item)
|
||||
});
|
||||
});
|
||||
this.form.routePackageList = routePackageList;
|
||||
}
|
||||
})
|
||||
})
|
||||
this.form.routePackageList = routePackageList
|
||||
}
|
||||
this.$refs["form"].validate(valid => {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$confirm('是否确认保存?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
this.$confirm("是否确认保存?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
}).then(() => {
|
||||
updateSpecialDiseaseRoute(this.form).then(response => {
|
||||
updateSpecialDiseaseRoute(this.form).then((response) => {
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
title: '提示',
|
||||
message: '保存成功,即将返回上一页',
|
||||
duration: 3000
|
||||
type: "success",
|
||||
title: "提示",
|
||||
message: "保存成功,即将返回上一页",
|
||||
duration: 3000,
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$store
|
||||
.dispatch("tagsView/delView", this.$route)
|
||||
.then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/specialdisease/specialDiseaseRoute",
|
||||
});
|
||||
})
|
||||
});
|
||||
}, 3000);
|
||||
});
|
||||
})
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
//触发条件修改详情
|
||||
triggerConditionedit(item) {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
triggerCondition(item.triggerConditionId).then(res => {
|
||||
loading.close();
|
||||
this.editopen = true
|
||||
this.updataform = res.data
|
||||
}).catch(() => {
|
||||
loading.close();
|
||||
console.log(item, "item");
|
||||
this.$router.push({
|
||||
path: "/specialdisease/ManageNodeInformation",
|
||||
query: {
|
||||
suitRange: item.suitRange,
|
||||
id: item.specialDiseaseRouteId,
|
||||
|
||||
},
|
||||
});
|
||||
// const loading = this.$loading({
|
||||
// lock: true,
|
||||
// text: "Loading",
|
||||
// spinner: "el-icon-loading",
|
||||
// background: "rgba(0, 0, 0, 0.7)",
|
||||
// });
|
||||
// triggerCondition(item.triggerConditionId)
|
||||
// .then((res) => {
|
||||
// loading.close();
|
||||
// this.editopen = true;
|
||||
// this.updataform = res.data;
|
||||
// })
|
||||
// .catch(() => {
|
||||
// loading.close();
|
||||
// });
|
||||
},
|
||||
//删除触发条件
|
||||
deltriggerCondition(item) {
|
||||
this.$confirm('确定删除此触发条件吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
console.log(item, "item");
|
||||
|
||||
this.$confirm("确定删除此触发条件吗?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
}).then(() => {
|
||||
triggerConditiondel([item.triggerConditionId]).then(res => {
|
||||
triggerConditiondel([item.specialDiseaseRouteId]).then((res) => {
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
title: '提示',
|
||||
message: '删除成功',
|
||||
duration: 3000
|
||||
type: "success",
|
||||
title: "提示",
|
||||
message: "删除成功",
|
||||
duration: 3000,
|
||||
});
|
||||
this.info();
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
},
|
||||
back() {
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$store
|
||||
.dispatch("tagsView/delView", this.$route)
|
||||
.then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/specialdisease/specialDiseaseRoute",
|
||||
});
|
||||
})
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
// .images{
|
||||
// width: 20px;
|
||||
// height: 20px;
|
||||
// background: red;
|
||||
.login-code-img {
|
||||
width: 62px;
|
||||
height: 100px;
|
||||
position: absolute;
|
||||
background: red;
|
||||
z-index: 0;
|
||||
// top: 17%;
|
||||
position: absolute;
|
||||
// left: 2%;
|
||||
top: -75%;
|
||||
}
|
||||
// }
|
||||
.icon {
|
||||
// right: -20px;
|
||||
// background: red;
|
||||
// top: 40px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
height: 76px;
|
||||
// .el-icon-delete {
|
||||
// width: 29px;
|
||||
// height: 23px;
|
||||
|
||||
// }
|
||||
}
|
||||
.container {
|
||||
padding: 20px;
|
||||
overflow-y: scroll;
|
||||
@ -434,12 +793,12 @@ export default {
|
||||
}
|
||||
|
||||
.node {
|
||||
margin-bottom: 10px;
|
||||
margin-left: 60px;
|
||||
}
|
||||
|
||||
.list {
|
||||
width: 100%;
|
||||
background-color: #F2F3F5;
|
||||
background-color: #f2f3f5;
|
||||
padding: 28px 0;
|
||||
|
||||
.item {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user