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}`,
method: 'get',
})
}
}
//查询
export function selectSpecialDisease(id) {
return request({
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
method: 'get'
})
}

View File

@ -5,31 +5,38 @@
<div>
触发条件
</div>
<el-select v-model="updata.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" />
</el-select>
<el-select v-model="updata.suitRange" style="width: 120px;">
<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>
<el-select v-model="updata.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 style="width: 300px;"></el-input>
<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" />
</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" />
</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>
</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">
<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" />
@ -116,8 +123,7 @@
</el-form>
</div>
<div class="bottomform">
<wangeditor style="width:100%;" @on-nodeContent="onNodeContent" ref="wangeditor"
v-if="wangeditorshow" v-model="form.nodeContent" />
<wangeditor style="width:100%;" @on-nodeContent="onNodeContent" ref="wangeditor" />
<div class="card">
<div class="flex">
<div class="pushMethod">
@ -296,10 +302,12 @@ export default {
name: "specialDiseaseNode",
data() {
return {
wangeditorshow: false,
updata: {
suitRange: '',
routeName: '',
triggerConditionList: [
{
}
],
},
form: {
nodeContent: '',
@ -352,14 +360,13 @@ export default {
};
},
created() {
this.updata.suitRange = this.$route.query.suitRange
this.updata.routeName = this.$route.query.routeName
if (this.$route.query) {
this.updata.suitRange = this.$route.query.suitRange
// selectSpecialDisease(this.$route.query.id).then(res => {})
}
this.taskinfo();
this.wangeditorshow = true
},
beforeDestroy() {
this.wangeditorshow = false
},
beforeDestroy() { },
watch: {},
mounted() {
this.form = this.lists[0].list[0]
@ -490,6 +497,9 @@ export default {
this.lists.splice(index, 1)
}
},
addtriggerCondition() {
this.updata.triggerConditionList.push({})
},
}
};
</script>
@ -499,6 +509,16 @@ export default {
text-align: right;
}
.nodes {
width: 660px;
display: flex;
flex-wrap: wrap;
.node {
margin-bottom: 10px;
}
}
.bottomform {
background-color: #f2f4f5;
margin-top: 10px;

View File

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

View File

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