| | |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <!-- <el-form-item |
| | | label="点位编码" |
| | | v-if=" |
| | | isTongdeCampus && (serviceType == 6 || serviceType == 14) |
| | | " |
| | | > |
| | | <el-select |
| | | v-model="form.pointLocation" |
| | | style="width: 220px" |
| | | clearable |
| | | filterable |
| | | placeholder="请选择点位" |
| | | > |
| | | <el-option |
| | | v-for="item in pointOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | |
| | | <el-form-item label="服务形式"> |
| | | <SortCheckbox |
| | | v-model="checkList" |
| | |
| | | >药品关联</el-radio |
| | | > |
| | | <el-radio label="5">任务组</el-radio> |
| | | <el-radio label="7" v-if="isTongdeCampus&& (serviceType == 6 || serviceType == 14)">点位关联</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | |
| | | <!-- 点位关联 --> |
| | | <el-row v-if="form.appltype == 7"> |
| | | <el-form-item label="关联点位" prop="pointLocation"> |
| | | <el-select |
| | | v-model="form.pointLocation" |
| | | style="width: 400px" |
| | | clearable |
| | | filterable |
| | | placeholder="请选择点位" |
| | | > |
| | | <el-option |
| | | v-for="item in pointOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-row> |
| | | |
| | | <!-- 药品关联 --> |
| | | <el-row v-if="form.appltype == 6"> |
| | |
| | | </el-row> |
| | | |
| | | <!-- 缙云县人民医院:超时未完成是否再次随访 / 再次随访关联任务 --> |
| | | <el-row v-if="form.appltype == 1 && orgname == '缙云县人民医院'"> |
| | | <el-row |
| | | v-if="form.appltype == 1 && orgname == '缙云县人民医院'" |
| | | > |
| | | <el-col :span="12"> |
| | | <el-form-item label="超时未完成是否再次随访"> |
| | | <el-radio-group v-model="form.nexttaskflag"> |
| | |
| | | <el-input |
| | | style="width: 300px" |
| | | :disabled="true" |
| | | v-model="nextTaskName" |
| | | v-model="nexttaskname" |
| | | placeholder="请点击右侧选择任务" |
| | | /> |
| | | <el-button |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="examine-jic"> |
| | | <div class="headline"> |
| | | <div>二次随访任务配置</div> |
| | | </div> |
| | | <div class="jic-value"> |
| | | <el-form label-width="125px"> |
| | | <el-form-item label="二次随访任务"> |
| | | <el-input |
| | | style="width: 300px" |
| | | :disabled="true" |
| | | v-model="nexttaskname" |
| | | placeholder="请点击右侧选择任务" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 10px" |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | | circle |
| | | @click="openNextTaskDialog" |
| | | ></el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-button type="primary" @click="nextstep('ruleForm')">{{ |
| | | quote ? "立即创建" : "派发患者配置" |
| | |
| | | } from "@/api/AiCentre/index"; |
| | | import { listMedication } from "@/api/knowledge/drug"; |
| | | import { getIvrtask } from "@/api/smartor/ivrtask"; |
| | | import { deptTreeSelect } from "@/api/system/user"; |
| | | import OptionalForm from "@/components/OptionalForm"; |
| | | import SFtable from "@/components/SFtable"; |
| | | import SortCheckbox from "@/components/SortCheckbox"; |
| | |
| | | patTaskRelevances: [], |
| | | nexttaskflag: "0", |
| | | nexttaskid: null, |
| | | nexttaskname: "", |
| | | sendType: 1, |
| | | longTask: 0, |
| | | templatename: "", |
| | | templateid: null, |
| | | libtemplateid: null, |
| | | pointLocation: "", |
| | | kcb: |
| | | "亲爱的患者/家属,我们是" + |
| | | localStorage.getItem("orgname") + |
| | |
| | | detailList: [], |
| | | }, |
| | | }, |
| | | taskoptions: [ |
| | | { value: "4", label: "出院病人" }, |
| | | { value: "1", label: "在院病人" }, |
| | | { value: "2", label: "门诊病人" }, |
| | | { value: "3", label: "体检病人" }, |
| | | { value: "6", label: "院外患者" }, |
| | | { value: "5", label: "手术病人" }, |
| | | ], |
| | | source: [ |
| | | { value: 0, label: "所属患者" }, |
| | | { value: 1, label: "科室患者" }, |
| | |
| | | queryParamsdept: {}, |
| | | quote: false, |
| | | serviceType: null, |
| | | // 可选点位(同德院区,deptType=3) |
| | | pointOptions: [], |
| | | // 再次随访关联任务(缙云县人民医院) |
| | | nextTaskDialogVisible: false, |
| | | nextTaskLoading: false, |
| | | nextTaskList: [], |
| | | nextTaskTotal: 0, |
| | | nextTaskQuery: { pageNum: 1, pageSize: 10, taskName: "" }, |
| | | nextTaskName: "", |
| | | nexttaskname: "", |
| | | // 模板搜索 |
| | | templateOptions: [], |
| | | templateLoading: false, |
| | |
| | | this.getillnesslist(); |
| | | this.Getdetails(); |
| | | this.getQtemplateclassify(); |
| | | this.getPointOptions(); |
| | | }, |
| | | activated() { |
| | | if (this.id != this.$route.query.id) { |
| | |
| | | }, |
| | | remaining() { |
| | | return this.illnesslist.length - 10; |
| | | }, |
| | | // 患者类型下拉(新增类型):按任务类型限制可选范围 |
| | | taskoptions() { |
| | | const options = [ |
| | | { value: "4", label: "出院病人" }, |
| | | { value: "1", label: "在院病人" }, |
| | | { value: "2", label: "门诊病人" }, |
| | | { value: "3", label: "体检病人" }, |
| | | { value: "6", label: "院外患者" }, |
| | | { value: "5", label: "手术病人" }, |
| | | ]; |
| | | // 出院随访(serviceType=2):只能选择在院患者 |
| | | if (this.serviceType == 2) { |
| | | return options.filter((item) => item.value == "1"); |
| | | } |
| | | // 入院随访(serviceType=18):不可选择出院患者 |
| | | if (this.serviceType == 18) { |
| | | return options.filter((item) => item.value != "4"); |
| | | } |
| | | return options; |
| | | }, |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | |
| | | // ---------- 数据加载 ---------- |
| | | getPointOptions() { |
| | | // 仅同德院区:点位下拉(deptType=3) |
| | | if (!this.isTongdeCampus) return; |
| | | deptTreeSelect(3).then((response) => { |
| | | const flat = []; |
| | | const walk = (nodes) => { |
| | | (Array.isArray(nodes) ? nodes : []).forEach((n) => { |
| | | if (n.label && n.deptCode) { |
| | | flat.push({ label: n.label, value: String(n.deptCode) }); |
| | | } |
| | | if (n.children && n.children.length) walk(n.children); |
| | | }); |
| | | }; |
| | | walk(response && response.data); |
| | | this.pointOptions = flat; |
| | | }); |
| | | }, |
| | | Acquisitiontype() { |
| | | let queryParams = { |
| | | pageNum: this.topqueryParams.pageNum, |
| | |
| | | patTaskRelevances: [], |
| | | nexttaskflag: "0", |
| | | nexttaskid: null, |
| | | nexttaskname: "", |
| | | sendType: 1, |
| | | sendDay: 5, |
| | | templatename: "", |
| | | templateid: null, |
| | | libtemplateid: null, |
| | | pointLocation: "", |
| | | kcb: |
| | | "亲爱的患者/家属,我们是" + |
| | | localStorage.getItem("orgname") + |
| | |
| | | this.form = res.data; |
| | | // 回显再次随访关联任务 |
| | | if (this.form.nexttaskflag == null) this.form.nexttaskflag = "0"; |
| | | this.nextTaskName = ""; |
| | | this.nexttaskname = ""; |
| | | if (this.form.nexttaskid) { |
| | | getIvrtask(this.form.nexttaskid).then((r) => { |
| | | this.nextTaskName = (r.data && r.data.taskName) || ""; |
| | | this.nexttaskname = (r.data && r.data.taskName) || ""; |
| | | this.form.nexttaskname = (r.data && r.data.taskName) || ""; |
| | | }); |
| | | } |
| | | // 如果返回了 serviceTaskScheduleVO,解析明细中的 content |
| | |
| | | this.time4 = ""; |
| | | this.form.nexttaskflag = "0"; |
| | | this.form.nexttaskid = null; |
| | | this.nextTaskName = ""; |
| | | this.form.nexttaskname = ""; |
| | | this.nexttaskname = ""; |
| | | // 重置任务组 |
| | | this.form.serviceTaskScheduleVO = { |
| | | scheduleStyle: 0, |
| | |
| | | this.deptcodesWards = []; |
| | | this.medicalCodes = []; |
| | | this.medicalOptions = []; |
| | | // this.queryParamsdept.taskId = this.form.taskid; |
| | | this.queryParamsdept.taskId = this.form.taskid; |
| | | this.queryParamsdept.taskid = this.form.taskid; |
| | | |
| | | if (this.form.appltype == 5) { |
| | | rwztaskdepthospgetsonlist(this.queryParamsdept).then((res) => { |
| | |
| | | }, |
| | | selectNextTask(row) { |
| | | this.form.nexttaskid = row.taskid; |
| | | this.nextTaskName = row.taskName; |
| | | this.form.nexttaskname = row.taskName; |
| | | this.nexttaskname = row.taskName; |
| | | this.nextTaskDialogVisible = false; |
| | | }, |
| | | |
| | |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.illnesscodes = []; |
| | | this.form.oplevelcode = null; |
| | | } else if (this.form.appltype == 7) { |
| | | this.deptcodesWards = []; |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.illnesscodes = []; |
| | | this.form.oplevelcode = null; |
| | | this.medicalCodes = []; |
| | | } |
| | | |
| | | // 服务形式校验 |
| | |
| | | this.diagglist[0] || |
| | | this.form.oplevelcode || |
| | | this.medicalCodes[0] || |
| | | this.form.pointLocation || |
| | | this.form.longTask == 2 || |
| | | this.serviceType == 3 || |
| | | this.form.appltype == 5; |