| | |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="12" |
| | | ><el-form-item label="预警值"> |
| | | ><el-form-item label="预警提醒"> |
| | | <el-radio-group v-model="radio"> |
| | | <el-radio :label="3">是</el-radio> |
| | | <el-radio :label="6">否</el-radio> |
| | |
| | | <template> |
| | | <div> |
| | | <div class="topicxq" v-for="item in TargetoptionList"> |
| | | <el-form :model="ruleForm" :rules="rules"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="选项名称"> |
| | | ><el-form-item prop="targetvalue" label="选项名称"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入(必填项)" |
| | |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="12" |
| | | ><el-form-item label="预警值"> |
| | | ><el-form-item label="预警提醒"> |
| | | <el-radio-group v-model="item.isabnormal"> |
| | | <el-radio :label="1">是</el-radio> |
| | | <el-radio :label="0">否</el-radio> |
| | |
| | | > |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="关键字(非)" prop="desc" v-if="hasValue"> |
| | | <el-form-item label="关键字(非)" prop="adesc" v-if="hasValue"> |
| | | <div class="xinz-inf"> |
| | | <el-tag |
| | | :key="crux" |
| | |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | noregular: [], |
| | | nodynamiccruxs: ["别", "不"], |
| | | dynamiccruxs: ["好"], |
| | | rules: { |
| | | targetvalue: [ |
| | | { required: true, message: "请输入选项名称", trigger: "blur" }, |
| | | { |
| | | min: 1, |
| | | max: 20, |
| | | message: "长度在 1 到 20 个字符", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | | props: { |
| | |
| | | </div> |
| | | <!-- 添加患者 --> |
| | | <el-dialog |
| | | title="添加派发患者" |
| | | title="选择患者" |
| | | :visible.sync="dialogVisiblepatient" |
| | | width="70%" |
| | | :before-close="handleClosehz" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { messagelistpatient } from "@/api/patient/homepage"; |
| | | import SFtable from "@/components/SFtable"; //表格组件 |
| | | |
| | |
| | | </el-dialog> |
| | | <!-- 添加患者 --> |
| | | <el-dialog |
| | | title="添加派发患者" |
| | | title="选择患者" |
| | | :visible.sync="dialogVisiblepatient" |
| | | width="70%" |
| | | :before-close="handleClosehz" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | created() { |
| | | this.Addsubtask(); |
| | | this.Getsubtask(); |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="模版名称" prop="status"> |
| | | <el-form-item label="服务项目" prop="status"> |
| | | <el-input |
| | | v-model="topqueryParams.templatename" |
| | | @keyup.enter.native="handleQuery" |
| | |
| | | :columns="columns" |
| | | ></right-toolbar> --> |
| | | <el-table v-loading="loading" :data="userList"> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="taskid" |
| | | prop="taskid" |
| | | /> |
| | | /> --> |
| | | |
| | | <el-table-column |
| | | label="任务名称" |
| | |
| | | prop="taskDesc" |
| | | /> |
| | | <el-table-column |
| | | label="服务项目" |
| | | align="center" |
| | | key="templatename" |
| | | prop="templatename" |
| | | /> |
| | | <el-table-column |
| | | label="待执行/总任务" |
| | | align="center" |
| | | key="nickName" |
| | |
| | | ><el-form-item label="题目类型"> |
| | | <el-select |
| | | v-model="topicobj.scriptType" |
| | | @change="changefn" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择分类" |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-form-item label="预警值"> |
| | | <el-form-item label="预警提醒"> |
| | | <el-radio-group v-model="item.isabnormal"> |
| | | <el-radio :label="1">是</el-radio> |
| | | <el-radio :label="0">否</el-radio> |
| | |
| | | inputVisible: false, |
| | | inputValue: "", |
| | | currentInputId: "", |
| | | scriptTypels: "", |
| | | total: 0, |
| | | drawer: false, |
| | | loading: false, |
| | |
| | | this.compileissue(); |
| | | } |
| | | }, |
| | | // 判断指标 |
| | | changefn(item) { |
| | | if (this.topicobj.targetname) { |
| | | this.$modal |
| | | .confirm("更改类型后选项将清空是否继续?") |
| | | .then(() => { |
| | | this.scriptTypels = this.topicobj.scriptType; |
| | | }) |
| | | .catch(() => { |
| | | this.topicobj.scriptType=this.scriptTypels |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | // 删除选项 |
| | | deletexuanx(row) { |
| | |
| | | </div> |
| | | <!-- 添加患者 --> |
| | | <el-dialog |
| | | title="添加派发患者" |
| | | title="选择患者" |
| | | :visible.sync="dialogVisiblepatient" |
| | | width="70%" |
| | | :before-close="handleClosehz" |
| | |
| | | <el-input v-model="patientqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="就诊科室" prop="status"> |
| | | <!-- <el-form-item label="就诊科室" prop="status"> |
| | | <el-select |
| | | v-model="patientqueryParams.topic" |
| | | placeholder="请选择" |
| | |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | this.overallCase.forEach((item) => { |
| | | this.allpids.push(item.patid); |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "序号", width: "", prop: "patid" }, |
| | | { label: "患者名称", width: "", prop: "name" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "主任医师", width: "", prop: "drname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "inhosptime" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | this.tableLabelhz = [ |
| | | { label: "序号", width: "", prop: "patid" }, |
| | | { label: "患者名称", width: "", prop: "name" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "诊断", width: "", prop: "diagname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "inhosptime" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } |
| | | if (this.allpids[0]) { |
| | | this.patientqueryParams.pids = this.allpids; |
| | | console.log(this.patientqueryParams.pids); |
| | |
| | | </div> |
| | | <!-- 添加患者 --> |
| | | <el-dialog |
| | | title="添加派发患者" |
| | | title="选择患者" |
| | | :visible.sync="dialogVisiblepatient" |
| | | width="70%" |
| | | :before-close="handleClosehz" |
| | |
| | | <el-input v-model="patientqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="就诊科室" prop="status"> |
| | | <!-- <el-form-item label="就诊科室" prop="status"> |
| | | <el-select |
| | | v-model="patientqueryParams.topic" |
| | | placeholder="请选择" |
| | |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | this.overallCase.forEach((item) => { |
| | | this.allpids.push(item.patid); |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "序号", width: "", prop: "patid" }, |
| | | { label: "患者名称", width: "", prop: "name" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "主任医师", width: "", prop: "drname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "inhosptime" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | this.tableLabelhz = [ |
| | | { label: "序号", width: "", prop: "patid" }, |
| | | { label: "患者名称", width: "", prop: "name" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "诊断", width: "", prop: "diagname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "inhosptime" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } |
| | | if (this.allpids[0]) { |
| | | this.patientqueryParams.pids = this.allpids; |
| | | console.log(this.patientqueryParams.pids); |
| | |
| | | </div> |
| | | <!-- 添加患者 --> |
| | | <el-dialog |
| | | title="添加派发患者" |
| | | title="选择患者" |
| | | :visible.sync="dialogVisiblepatient" |
| | | width="70%" |
| | | :before-close="handleClosehz" |
| | |
| | | <el-input v-model="patientqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="就诊科室" prop="status"> |
| | | <!-- <el-form-item label="就诊科室" prop="status"> |
| | | <el-select |
| | | v-model="patientqueryParams.scriptTopic" |
| | | placeholder="请选择" |
| | |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | this.overallCase.forEach((item) => { |
| | | this.allpids.push(item.patid); |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "序号", width: "", prop: "patid" }, |
| | | { label: "患者名称", width: "", prop: "name" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "主任医师", width: "", prop: "drname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "inhosptime" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | this.tableLabelhz = [ |
| | | { label: "序号", width: "", prop: "patid" }, |
| | | { label: "患者名称", width: "", prop: "name" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "诊断", width: "", prop: "diagname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "inhosptime" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } |
| | | if (this.allpids[0]) { |
| | | this.patientqueryParams.pids = this.allpids; |
| | | console.log(this.patientqueryParams.pids); |
| | |
| | | }); |
| | | // 把数组重新转换为字符串并赋值 |
| | | inputValueArr = inputValueArr.join(""); |
| | | |
| | | console.log(inputValueArr); |
| | | if (this.currentInputId == "targetdesc") { |
| | | this.indexform.targetdesc = inputValueArr; |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="测试输入" prop="targetvalue"> |
| | | <el-input |
| | | v-model="testvalue" |
| | | v-model="indexform.content" |
| | | placeholder="请输入测试内容" |
| | | maxlength="40" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-button type="success">开始测试</el-button> |
| | | <el-button type="success" @click="testtagerlist" |
| | | >开始测试</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | <div style="margin-bottom: 20px"> |
| | |
| | | getverbaltrick() { |
| | | let id = this.$route.query.id; |
| | | if (id) { |
| | | |
| | | getverbaltrick({ id: id }).then((res) => { |
| | | this.indexform = res.data; |
| | | |
| | |
| | | } |
| | | }, |
| | | |
| | | // targetchange(res) { |
| | | // console.log(res); |
| | | // gettargetInfo({ id: res }).then((res) => { |
| | | // console.log(res.rows[0]); |
| | | // this.$modal |
| | | // .confirm('是否添加"' + res.rows[0].targetname + '"指标的选项?') |
| | | // .then(() => { |
| | | // this.indexform.valueType = res.rows[0].valueType; |
| | | // this.indexform.scriptType = res.rows[0].scriptType; |
| | | // this.indexform.scriptTopic = res.rows[0].targetname; |
| | | // this.indexform.targetname = res.rows[0].targetname; |
| | | // this.indexform.targetid = res.rows[0].id; |
| | | // this.indexform.targetdesc = res.rows[0].targetdesc; |
| | | // this.indexform.isAvailable = "0"; |
| | | // this.indexform.language = "普通话"; |
| | | // this.indexform.isenable = res.rows[0].isenable; |
| | | // this.$forceUpdate(); |
| | | // res.rows[0].targetoptionList.forEach((item) => { |
| | | // item.isoperation = 1; |
| | | // this.indexform.ivrLibaScriptTargetoptionList.push(item); |
| | | // }); |
| | | // }) |
| | | // .catch(() => { |
| | | // this.$modal.msgSuccess("已取消"); |
| | | // }); |
| | | // }); |
| | | // }, |
| | | testtagerlist() { |
| | | if (this.indexform.content) { |
| | | let data = this.indexform; |
| | | data.targetoptionList = |
| | | this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist); |
| | | testtagerlist(data).then((res) => { |
| | | this.$modal.msgSuccess("测试成功"); |
| | | this.testgovalue = res.msg; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgError("请填写测试内容"); |
| | | return; |
| | | } |
| | | }, |
| | | // 选择指标 |
| | | selectlabel(row) { |
| | | this.$modal |