This commit is contained in:
2024-04-03 15:58:44 +08:00
parent 64dbf09add
commit 8a1f8f1330
4 changed files with 99 additions and 73 deletions

View File

@ -6,4 +6,13 @@ export function specialDiseaseRoute(id) {
url: `/system/specialDiseaseRoute/${id}`, url: `/system/specialDiseaseRoute/${id}`,
method: 'get', method: 'get',
}) })
} }
//查询
export function selectSpecialDisease(id) {
return request({
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
method: 'get'
})
}

View File

@ -5,31 +5,38 @@
<div> <div>
触发条件 触发条件
</div> </div>
<el-select v-model="updata.suitRange" style="width: 120px;"> <div class="nodes">
<el-option label="诊断" value="DIAGNOSIS" /> <div class="node" v-for="(item, index) in updata.triggerConditionList" :key="index"
<el-option label="换药日期" value="DRESSING_CHANGE_DATE" /> :style="updata.triggerConditionList.length > 1 ? '' : 'margin:0'">
<el-option label="治疗方式" value="TREATMENT_METHOD" /> <el-select v-model="item.suitRange" style="width:120px">
<el-option label="手术名称" value="SURGICAL_NAME" /> <el-option label="诊断" value="DIAGNOSIS" />
<el-option label="药品名称" value="DRUG_NAME" /> <el-option label="换药日期" value="DRESSING_CHANGE_DATE" />
</el-select> <el-option label="治疗方式" value="TREATMENT_METHOD" />
<el-select v-model="updata.suitRange" style="width: 120px;"> <el-option label="手术名称" value="SURGICAL_NAME" />
<el-option label="包含" value="CONTAIN" /> <el-option label="药品名称" value="DRUG_NAME" />
<el-option label="不包含" value="NOT_CONTAIN" /> </el-select>
<el-option label="等于" value="EQUAL_TO" /> <el-select v-model="item.suitRange" style="width: 100px;">
<el-option label="不等于" value="NOT_EQUAL_TO" /> <el-option label="包含" value="CONTAIN" />
</el-select> <el-option label="不包含" value="NOT_CONTAIN" />
<el-select v-model="updata.suitRange" style="width: 120px;"> <el-option label="等于" value="EQUAL_TO" />
<el-option label="在院" value="IN_THE_HOSPITAL" /> <el-option label="不等于" value="NOT_EQUAL_TO" />
<el-option label="出院" value="DISCHARGE" /> </el-select>
<el-option label="门诊" value="OUTPATIENT_SERVICE" /> <el-select v-model="item.suitRange" style="width: 120px;">
<el-option label="门诊+出院" value="OUTPATIENT_SERVICE_DISCHARGE" /> <el-option label="在院" value="IN_THE_HOSPITAL" />
</el-select> <el-option label="出院" value="DISCHARGE" />
<el-input style="width: 300px;"></el-input> <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>
</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"> <div class="select">
<span> <span>
适用范围 适用范围
</span> </span>
<el-select v-model="updata.suitRange"> <el-select v-model="updata.suitRange" style="width: 180px;">
<el-option label="在院" value="IN_THE_HOSPITAL" /> <el-option label="在院" value="IN_THE_HOSPITAL" />
<el-option label="出院" value="DISCHARGE" /> <el-option label="出院" value="DISCHARGE" />
<el-option label="门诊" value="OUTPATIENT_SERVICE" /> <el-option label="门诊" value="OUTPATIENT_SERVICE" />
@ -116,8 +123,7 @@
</el-form> </el-form>
</div> </div>
<div class="bottomform"> <div class="bottomform">
<wangeditor style="width:100%;" @on-nodeContent="onNodeContent" ref="wangeditor" <wangeditor style="width:100%;" @on-nodeContent="onNodeContent" ref="wangeditor" />
v-if="wangeditorshow" v-model="form.nodeContent" />
<div class="card"> <div class="card">
<div class="flex"> <div class="flex">
<div class="pushMethod"> <div class="pushMethod">
@ -296,10 +302,12 @@ export default {
name: "specialDiseaseNode", name: "specialDiseaseNode",
data() { data() {
return { return {
wangeditorshow: false,
updata: { updata: {
suitRange: '', triggerConditionList: [
routeName: '', {
}
],
}, },
form: { form: {
nodeContent: '', nodeContent: '',
@ -352,14 +360,13 @@ export default {
}; };
}, },
created() { created() {
this.updata.suitRange = this.$route.query.suitRange if (this.$route.query) {
this.updata.routeName = this.$route.query.routeName this.updata.suitRange = this.$route.query.suitRange
// selectSpecialDisease(this.$route.query.id).then(res => {})
}
this.taskinfo(); this.taskinfo();
this.wangeditorshow = true
},
beforeDestroy() {
this.wangeditorshow = false
}, },
beforeDestroy() { },
watch: {}, watch: {},
mounted() { mounted() {
this.form = this.lists[0].list[0] this.form = this.lists[0].list[0]
@ -490,6 +497,9 @@ export default {
this.lists.splice(index, 1) this.lists.splice(index, 1)
} }
}, },
addtriggerCondition() {
this.updata.triggerConditionList.push({})
},
} }
}; };
</script> </script>
@ -499,6 +509,16 @@ export default {
text-align: right; text-align: right;
} }
.nodes {
width: 660px;
display: flex;
flex-wrap: wrap;
.node {
margin-bottom: 10px;
}
}
.bottomform { .bottomform {
background-color: #f2f4f5; background-color: #f2f4f5;
margin-top: 10px; margin-top: 10px;

View File

@ -23,7 +23,7 @@
<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">AI生成触发条件</el-button> -->
<el-button type="primary" plain size="mini" @click="add">人工添加主路径</el-button> <el-button type="primary" plain size="mini" @click="add">人工添加主路径</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-form-item> </el-form-item>
</el-form> </el-form>
<div class="list"> <div class="list">
@ -81,7 +81,7 @@
</span> </span>
</div> </div>
<div> <div>
<i class="el-icon-edit" @click="goManageNodeInformation(item)"></i> <i class="el-icon-edit" @click="goManageNodeInformation"></i>
<i class="el-icon-delete"></i> <i class="el-icon-delete"></i>
</div> </div>
</div> </div>
@ -91,7 +91,7 @@
<script> <script>
import { import {
specialDiseaseRoute specialDiseaseRoute, selectSpecialDisease
} from "@/api/system/editorialSpecialization"; } from "@/api/system/editorialSpecialization";
export default { export default {
name: "editorialSpecialization", name: "editorialSpecialization",
@ -125,37 +125,32 @@ export default {
}, },
methods: { methods: {
edit() { edit() {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { this.$router.push({
this.$router.push({ path: "/specialdisease/specialDiseaseNode",
path: "/specialdisease/specialDiseaseNode", query: {
query: { routeName: this.list.routeName,
routeName: this.list.routeName, suitRange: this.list.suitRange,
suitRange: this.list.suitRange id: this.list.specialDiseaseRouteId
}, },
}); });
})
}, },
add() { add() {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { this.$router.push({
this.$router.push({ path: "/specialdisease/specialDiseaseNode",
path: "/specialdisease/specialDiseaseNode", query: {
query: { routeName: this.list.routeName,
routeName: this.list.routeName, suitRange: this.list.suitRange,
suitRange: this.list.suitRange id: this.list.specialDiseaseRouteId
}, },
}); });
})
}, },
goManageNodeInformation(item) { goManageNodeInformation() {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { this.$router.push({
this.$router.push({ path: "/specialdisease/ManageNodeInformation",
path: "/specialdisease/ManageNodeInformation", query: {
query: { suitRange: this.list.suitRange
routeName: item.routeName, },
suitRange: this.list.suitRange });
},
});
})
}, },
}, },
}; };

View File

@ -97,8 +97,7 @@
</el-form> </el-form>
</div> </div>
<div class="bottomform"> <div class="bottomform">
<wangeditor style="width:100%;" @on-nodeContent="onNodeContent" ref="wangeditor" <wangeditor style="width:100%;" @on-nodeContent="onNodeContent" ref="wangeditor" />
v-if="wangeditorshow" v-model="form.nodeContent" />
<div class="card"> <div class="card">
<div class="flex"> <div class="flex">
<div class="pushMethod"> <div class="pushMethod">
@ -272,12 +271,14 @@ import miniProgram from '../components/miniProgram.vue'
import { import {
selectTaskTypeList, taskPartitionList, taskStatusDictList selectTaskTypeList, taskPartitionList, taskStatusDictList
} from '@/api/system/specialDiseaseNode' } from '@/api/system/specialDiseaseNode'
import {
selectSpecialDisease
} from "@/api/system/editorialSpecialization";
export default { export default {
components: { wangeditor, question, propaganda, message, officialAccount, miniProgram }, components: { wangeditor, question, propaganda, message, officialAccount, miniProgram },
name: "specialDiseaseNode", name: "specialDiseaseNode",
data() { data() {
return { return {
wangeditorshow: false,
updata: { updata: {
suitRange: '', suitRange: '',
routeName: '', routeName: '',
@ -333,14 +334,15 @@ export default {
}; };
}, },
created() { created() {
this.updata.suitRange = this.$route.query.suitRange
this.updata.routeName = this.$route.query.routeName
this.taskinfo(); this.taskinfo();
this.wangeditorshow = true if (this.$route.query) {
}, this.updata.suitRange = this.$route.query.suitRange
beforeDestroy() { this.updata.routeName = this.$route.query.routeName
this.wangeditorshow = false selectSpecialDisease(this.$route.query.id).then(res => {
})
}
}, },
beforeDestroy() { },
watch: {}, watch: {},
mounted() { mounted() {
this.form = this.lists[0].list[0] this.form = this.lists[0].list[0]