修改
This commit is contained in:
parent
04f83efe37
commit
8a6a2a87e5
@ -4,8 +4,8 @@
|
||||
<el-form-item label="编辑专病管理路径">
|
||||
</el-form-item>
|
||||
<el-form-item style="float: right;">
|
||||
<el-button>保存</el-button>
|
||||
<el-button type="primary">发布</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="80px" :rules="rules">
|
||||
@ -87,10 +87,51 @@
|
||||
</div>
|
||||
</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-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-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.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>
|
||||
<!-- <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.triggerConditionValue" style="width: 300px;"
|
||||
placeholder="请输入触发条件"></el-input>
|
||||
</div>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="upload">确 定</el-button>
|
||||
<el-button @click="openfalse">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
updateSpecialDiseaseRoute,
|
||||
} from "@/api/system/specialDiseaseRoute";
|
||||
import {
|
||||
specialDiseaseRoute, selectSpecialDisease, triggerConditiondel, specialDiseaseRoutedel
|
||||
} from "@/api/system/editorialSpecialization";
|
||||
@ -101,6 +142,18 @@ export default {
|
||||
form: {
|
||||
version: '',
|
||||
routeName: '',
|
||||
id: '',
|
||||
diseaseTypeName: '',
|
||||
},
|
||||
open: false,
|
||||
updata: {
|
||||
triggerConditionList: [{
|
||||
patientManageRouteId: '',
|
||||
routeName: '',
|
||||
triggerConditionName: '',
|
||||
triggerConditionOperator: '',
|
||||
triggerConditionValue: '',
|
||||
}],
|
||||
},
|
||||
// 表单校验
|
||||
rules: {
|
||||
@ -117,6 +170,8 @@ export default {
|
||||
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.info();
|
||||
},
|
||||
watch: {
|
||||
@ -149,17 +204,72 @@ export default {
|
||||
});
|
||||
},
|
||||
goManageNodeInformation() {
|
||||
this.$router.push({
|
||||
path: "/specialdisease/ManageNodeInformation",
|
||||
query: {
|
||||
suitRange: this.list.suitRange
|
||||
},
|
||||
});
|
||||
this.open = true
|
||||
// this.$router.push({
|
||||
// path: "/specialdisease/ManageNodeInformation",
|
||||
// query: {
|
||||
// suitRange: this.list.suitRange
|
||||
// },
|
||||
// });
|
||||
},
|
||||
addtriggerCondition() {
|
||||
this.updata.triggerConditionList.push({
|
||||
patientManageRouteId: '',
|
||||
routeName: '',
|
||||
triggerConditionName: '',
|
||||
triggerConditionOperator: '',
|
||||
triggerConditionValue: '',
|
||||
})
|
||||
},
|
||||
openfalse() {
|
||||
this.updata.triggerConditionList = [{
|
||||
patientManageRouteId: '',
|
||||
routeName: '',
|
||||
triggerConditionName: '',
|
||||
triggerConditionOperator: '',
|
||||
triggerConditionValue: '',
|
||||
}]
|
||||
this.open = false
|
||||
this.resetForm("updata");
|
||||
},
|
||||
upload() {
|
||||
this.updata.triggerConditionList.forEach(e => {
|
||||
e.patientManageRouteId = this.$route.query.id
|
||||
e.routeName = this.$route.query.routeName
|
||||
})
|
||||
console.log(this.updata)
|
||||
},
|
||||
//保存
|
||||
preserve() {
|
||||
this.$confirm('是否确认保存?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).then(() => {
|
||||
updateSpecialDiseaseRoute(this.form).then(response => {
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
title: '提示',
|
||||
message: '保存成功,即将返回上一页',
|
||||
duration: 0
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/specialdisease/specialDiseaseRoute",
|
||||
});
|
||||
})
|
||||
}, 3000);
|
||||
});
|
||||
})
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.node {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.list {
|
||||
width: 100%;
|
||||
background-color: #F2F3F5;
|
||||
|
||||
@ -358,17 +358,17 @@ export default {
|
||||
// this.open = true;
|
||||
// this.title = "修改专病路径信息";
|
||||
// });
|
||||
// this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/specialdisease/editorialSpecialization",
|
||||
query: {
|
||||
id: row.id,
|
||||
diseaseTypeName: row.diseaseTypeName,
|
||||
version: row.version,
|
||||
routeName: row.routeName,
|
||||
}
|
||||
});
|
||||
// })
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/specialdisease/editorialSpecialization",
|
||||
query: {
|
||||
id: row.id,
|
||||
diseaseTypeName: row.diseaseTypeName,
|
||||
version: row.version,
|
||||
routeName: row.routeName,
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user