| | |
| | | import { codemirror } from "vue-codemirror"; |
| | | import "@/utils/cm-setting.js"; |
| | | Vue.component("codemirror", codemirror); |
| | | import preventReClick from '@/utils/directives/preventReClick'; |
| | | Vue.use(preventReClick); |
| | | |
| | | import { Quill } from "vue-quill-editor"; |
| | | window.Quill = Quill; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | export default { |
| | | install(Vue) { |
| | | Vue.directive('preventReClick', { |
| | | inserted(el, binding) { |
| | | el.addEventListener('click', () => { |
| | | if (!el.disabled) { |
| | | el.disabled = true; |
| | | // å¯ä»¥æ·»å ç¦ç¨æ ·å¼ï¼å¯éï¼ |
| | | el.style.pointerEvents = 'none'; |
| | | el.style.opacity = '0.6'; |
| | | // è®¾å®æ¢å¤æ¶é´ï¼binding.value æ¯æä»¤ä¼ å
¥çå¼ï¼å¦ï¼v-prevent-reclick="2000"ï¼ |
| | | setTimeout(() => { |
| | | el.disabled = false; |
| | | el.style.pointerEvents = 'all'; |
| | | el.style.opacity = '1'; |
| | | }, binding.value || 1500); // é»è®¤1.5ç§ |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }; |
| | |
| | | } |
| | | ) |
| | | .then(() => { |
| | | |
| | | this.$router.replace("/login"); |
| | | }) |
| | | .catch(() => { |
| | | isRelogin.show = false; |
| | |
| | | qystatus: "", |
| | | btstatus: "", |
| | | }, |
| | | endOut: 1, |
| | | // endOut: 1, |
| | | endOut: localStorage.getItem("orgname") == "丽水å¸ä¸å»é¢" ? 0 : 1, //0 åºé¢æ¶é´(æ£åº) 1 åºé¢æ¶é´(ååº) 2 åéæ¶é´(æ£åº) 3 åéæ¶é´(ååº) 7åºéè®¿æ¥æ(ååº) åºéè®¿æ¥æ(æ£åº) |
| | | endOuts: [ |
| | | { |
| | | value: 0, |
| | |
| | | :class="items.isabnormal ? 'red-star' : ''" |
| | | :key="indexs" |
| | | :label="items.optioncontent" |
| | | @click.native.prevent="handleRadioToggle(item, items.optioncontent)" |
| | | >{{ items.optioncontent }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | |
| | | v-for="(items, index) in item.scriptResult" |
| | | :key="items" |
| | | :label="items" |
| | | @click.native.prevent="handleRadioToggle(item, items.optioncontent)" |
| | | >{{ items }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | |
| | | :visible.sync="CaldialogVisible" |
| | | width="60%" |
| | | > |
| | | <CallCenterLs ref="callCenterModal" :initial-phone="currentPhoneNumber" /> |
| | | <CallCenterLs |
| | | ref="callCenterModal" |
| | | :initial-phone="currentPhoneNumber" |
| | | /> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | |
| | | // å¼å«å¤æ |
| | | if (this.orgname == "æ¯å®ç²æèªæ²»å¿äººæ°å»é¢") { |
| | | this.CaldialogVisible = true; |
| | | return |
| | | return; |
| | | } |
| | | |
| | | this.callType = type; |
| | |
| | | } |
| | | this.$forceUpdate(); |
| | | }, |
| | | // æ°å¢ç忢éä¸/åæ¶é䏿¹æ³ |
| | | handleRadioToggle(questionItem, optionValue) { |
| | | // 妿ç¹å»çæ¯å½åå·²éä¸çé项ï¼ååæ¶éä¸ |
| | | if (questionItem.scriptResult === optionValue) { |
| | | questionItem.scriptResult = ""; // æ¸
空éä¸å¼ |
| | | // åæ¶éç½®ä¸é项ç¸å
³çç¶æ |
| | | questionItem.isabnormal = false; |
| | | questionItem.showAppendInput = false; |
| | | // 注æï¼åæ¶é䏿¶ï¼æä»¬é常ä¸å¸æè§¦åé¢ç®è·³è½¬é»è¾ï¼æä»¥ç´æ¥è¿å |
| | | // 妿éè¦ï¼å¯ä»¥å¨è¿éæ·»å åæ¶éä¸åçç¹å®é»è¾ï¼ä¾å¦éç½®é¢ç®åºå |
| | | } else { |
| | | // 妿ç¹å»çæ¯æªéä¸çé项ï¼åéè¿æ´æ¹ç»å®å¼æ¥è§¦ååå§ç handleOptionChange æ¹æ³ |
| | | // è¿éåªéè¦æ¹å v-model ç»å®çå¼ï¼changeäºä»¶ä¼èªå¨è§¦å |
| | | questionItem.scriptResult = optionValue; |
| | | // åç»ç跳转ç夿é»è¾ä¼å¨ handleOptionChange 䏿£å¸¸æ§è¡ |
| | | } |
| | | }, |
| | | // å¨methodsé¨åï¼ä¿®æ¹handleOptionChangeæ¹æ³: |
| | | handleOptionChange(selectedOption, questionIndex, options, a) { |
| | | if (document.activeElement) { |
| | |
| | | this.tasktopic = this.$route.query.tasktopic |
| | | ? this.$route.query.tasktopic |
| | | : this.tasktopic; |
| | | this.tasktopic = Number(this.tasktopic); |
| | | this.getList(); |
| | | this.getConfigKey("sys.user.initPassword").then((response) => { |
| | | this.initPassword = response.msg; |
| | |
| | | param1: this.taskid, |
| | | param2: this.patid, |
| | | type: this.type, |
| | | ivrLibaTemplateScriptVOList: [], |
| | | ivrTaskaTemplateScriptVOList: [], |
| | | }; |
| | | const arr = structuredClone(this.questionList); |
| | | console.log(arr, "srr"); |
| | |
| | | item.questionResult = JSON.stringify(item.questionResult); |
| | | } |
| | | }); |
| | | form.ivrLibaTemplateScriptVOList = arr; |
| | | form.ivrTaskaTemplateScriptVOList = arr; |
| | | Cachequestionnaire(form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (subm) { |
| | |
| | | > |
| | | <el-radio |
| | | border |
| | | v-for="(items, index) in item.svyLibTemplateTargetoptions" |
| | | v-for="(items, index) in item.svyTaskTemplateTargetoptions" |
| | | :class=" |
| | | items.isabnormal && item.scriptResult == items.optioncontent |
| | | ? 'red-star' |
| | |
| | | <el-checkbox |
| | | border |
| | | @change="$forceUpdate()" |
| | | v-for="(items, indexs) in item.svyLibTemplateTargetoptions" |
| | | v-for="(items, indexs) in item.svyTaskTemplateTargetoptions" |
| | | :key="indexs" |
| | | :label="items.optioncontent" |
| | | > |
| | |
| | | // scriptType: 1, |
| | | // scriptContent: "æ¨çå¹´é¾èå´æ¯ï¼", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // svyTaskTemplateTargetoptions: [ |
| | | // { optioncontent: "18-25", value: "18-25", isabnormal: true }, |
| | | // { optioncontent: "26-35", value: "26-35" }, |
| | | // { optioncontent: "36-45", value: "36-45" }, |
| | |
| | | // scriptType: 1, |
| | | // scriptContent: "æ¨çè䏿¯ä»ä¹ï¼", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // svyTaskTemplateTargetoptions: [ |
| | | // { optioncontent: "å¦ç", value: "student" }, |
| | | // { optioncontent: "æå¸", value: "teacher" }, |
| | | // { optioncontent: "å·¥ç¨å¸", value: "engineer" }, |
| | |
| | | // scriptType: 2, |
| | | // scriptContent: "æ¨æå
´è¶£çæ´»å¨æåªäºï¼", |
| | | // scriptResult: [], |
| | | // svyLibTemplateTargetoptions: [ |
| | | // svyTaskTemplateTargetoptions: [ |
| | | // { optioncontent: "æ
游", value: "travel", isabnormal: true }, |
| | | // { optioncontent: "é
读", value: "reading", isabnormal: true }, |
| | | // { optioncontent: "è¿å¨", value: "sports", isabnormal: true }, |
| | |
| | | // scriptType: 1, |
| | | // scriptContent: "æ¨çè䏿¯ä»ä¹ï¼", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // svyTaskTemplateTargetoptions: [ |
| | | // { optioncontent: "å¦ç", value: "student" }, |
| | | // { optioncontent: "æå¸", value: "teacher" }, |
| | | // { optioncontent: "å·¥ç¨å¸", value: "engineer" }, |
| | |
| | | // scriptType: 1, |
| | | // scriptContent: "æ¨çè䏿¯ä»ä¹ï¼", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // svyTaskTemplateTargetoptions: [ |
| | | // { optioncontent: "å¦ç", value: "student" }, |
| | | // { optioncontent: "æå¸", value: "teacher" }, |
| | | // { optioncontent: "å·¥ç¨å¸", value: "engineer", isabnormal: true }, |
| | |
| | | // scriptType: 1, |
| | | // scriptContent: "æ¨çè䏿¯ä»ä¹ï¼", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // svyTaskTemplateTargetoptions: [ |
| | | // { optioncontent: "å¦ç", value: "student" }, |
| | | // { optioncontent: "æå¸", value: "teacher" }, |
| | | // { optioncontent: "å·¥ç¨å¸", value: "engineer" }, |
| | |
| | | let form = { |
| | | param1: this.taskid, |
| | | param2: this.patid, |
| | | svyLibTemplateScriptVOS: [], |
| | | svyTaskTemplateScriptVOS: [], |
| | | }; |
| | | const arr = structuredClone(this.questionList); |
| | | console.log(arr,'srr') |
| | | arr.forEach((item, index) => { |
| | | var obj = item.svyLibTemplateTargetoptions.find( |
| | | var obj = item.svyTaskTemplateTargetoptions.find( |
| | | (items) => items.optioncontent == item.scriptResult |
| | | ); |
| | | if (obj) { |
| | |
| | | item.scriptResult = JSON.stringify(item.scriptResult); |
| | | } |
| | | }); |
| | | form.svyLibTemplateScriptVOS = arr; |
| | | form.svyTaskTemplateScriptVOS = arr; |
| | | Cachequestionnaire(form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (subm) { |
| | |
| | | // å¤çåéé项 |
| | | handleOptionChange(selectedvalue, index, arr) { |
| | | // æ¥æ¾éä¸çé项对象 |
| | | const selectedOption = arr.svyLibTemplateTargetoptions.find( |
| | | const selectedOption = arr.svyTaskTemplateTargetoptions.find( |
| | | (option) => option.optioncontent == selectedvalue |
| | | ); |
| | | if (selectedOption) { |
| | |
| | | // ��å åæ° |
| | | let score = 0; |
| | | selectedvalues.forEach((value) => { |
| | | const selectedOption = arr.svyLibTemplateTargetoptions.find( |
| | | const selectedOption = arr.svyTaskTemplateTargetoptions.find( |
| | | (option) => option.optioncontent == value |
| | | ); |
| | | if (selectedOption) { |
| | |
| | | <el-button type="primary" @click="nextstep('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "æ´¾åæ£è
é
ç½®" |
| | | }}</el-button> |
| | | <el-button type="success" @click="submitForm('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "确认æå¡é
ç½®" |
| | | }}</el-button> |
| | | <el-button @click="resetForm('ruleForm')">éç½®</el-button> |
| | | <el-button |
| | | :loading="submitLoading" |
| | | type="success" |
| | | @click="submitForm('ruleForm')" |
| | | >{{ quote ? "ç«å³å建" : "确认æå¡é
ç½®" }}</el-button |
| | | > |
| | | <!-- <el-button @click="resetForm('ruleForm')">éç½®</el-button> --> |
| | | </div> |
| | | <!-- ä»»å¡è¯¦æ
--> |
| | | <div v-if="Editprogress == 2"> |
| | |
| | | </div> |
| | | </div> |
| | | <el-button type="primary" @click="laststep()">ä¸ä¸æ¥</el-button> |
| | | <el-button type="success" @click="submitForm('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "确认æå¡é
ç½®" |
| | | }}</el-button> |
| | | <el-button @click="resetForm('ruleForm')">éç½®</el-button> |
| | | <el-button |
| | | :loading="submitLoading" |
| | | type="success" |
| | | @click="submitForm('ruleForm')" |
| | | >{{ quote ? "ç«å³å建" : "确认æå¡é
ç½®" }}</el-button |
| | | > |
| | | <!-- <el-button @click="resetForm('ruleForm')">éç½®</el-button> --> |
| | | </div> |
| | | </div> |
| | | <!-- æ·»å æ£è
--> |
| | |
| | | previewid: "", //任塿¨¡æ¿ä¼ éid |
| | | libName: "", |
| | | templateor: false, |
| | | submitLoading: false, // æ§å¶æé®å è½½ç¶æ |
| | | objyl: {}, |
| | | overallCase: [], //éæ©æ£è
æ» |
| | | allpids: [], |
| | |
| | | { label: "身份è¯", width: "200", prop: "idcardno" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "主治å»ç", width: "", prop: "drname" }, |
| | | { label: "ç§å®¤", width: "240", prop: "dept" }, |
| | |
| | | { label: "身份è¯", width: "200", prop: "sfzh" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "主治å»ç", width: "", prop: "drname" }, |
| | |
| | | }, |
| | | // ä¿å |
| | | submitForm(formName) { |
| | | if (this.time4 && this.form.sendType == 3) |
| | | this.form.showTimeMorn = this.time4; |
| | | this.form.sendTimeslot = [ |
| | | { |
| | | begantime: this.time4, |
| | | endtime: "", |
| | | xh: 1, |
| | | }, |
| | | ]; |
| | | if (this.form.appltype == 1) { |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.operationcodes = []; |
| | | this.illnesscodes = []; |
| | | } else if (this.form.appltype == 2) { |
| | | this.deptcodesWards = []; |
| | | this.operationcodes = []; |
| | | this.illnesscodes = []; |
| | | } else if (this.form.appltype == 3) { |
| | | this.deptcodesWards = []; |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.operationcodes = []; |
| | | } else if (this.form.appltype == 4) { |
| | | this.deptcodesWards = []; |
| | | this.illnesscodes = []; |
| | | this.leavehospitaldistrictcodes = []; |
| | | } |
| | | if (this.checkList) { |
| | | this.form.preachform = this.checkList.join(","); |
| | | this.form.preachformList = this.selectedOrder; |
| | | } else { |
| | | this.$modal.msgError("è¯·éæ©æå¡ç±»å"); |
| | | console.log(this.submitLoading); |
| | | |
| | | if (this.submitLoading) { |
| | | return; |
| | | } |
| | | console.log(this.operationcodes[0]); |
| | | console.log(this.operationcodes); |
| | | // ç¬¬äºæ¥ï¼å¼å¯å è½½ç¶æï¼ç¦ç¨æé® |
| | | this.submitLoading = true; |
| | | console.log(this.submitLoading); |
| | | |
| | | if ( |
| | | this.deptcodesWards[0] || |
| | | this.leavehospitaldistrictcodes[0] || |
| | | this.diagglist[0] || |
| | | this.operationcodes[0] || |
| | | this.form.longTask == 2 || |
| | | this.serviceType == 14 |
| | | ) { |
| | | } else { |
| | | this.$modal.msgError("è¯·éæ©ä»»å¡å
³èæ¡ä»¶"); |
| | | return; |
| | | } |
| | | //æå任塿£è
éå¶ |
| | | // if (!this.form.patTaskRelevances[0] && !this.form.longTask) { |
| | | // this.$modal.msgError("è¯·éæ©ç
人"); |
| | | // return; |
| | | // } |
| | | |
| | | if (!this.form.templatename && !this.templateor) { |
| | | this.$modal.msgError("æªéæ©æ¨¡æ¿"); |
| | | return; |
| | | } |
| | | |
| | | if ((this.form.sendType == 1 && this.time1) || this.form.sendType == 2) { |
| | | } else if ( |
| | | (this.form.sendType == 3 && this.time4) || |
| | | this.form.longTask |
| | | ) { |
| | | } else { |
| | | return this.$modal.msgError("æ¶é´ä¿¡æ¯ç¼ºå¤±"); |
| | | } |
| | | const filteredArray = this.variableList.filter( |
| | | (item) => |
| | | item.name !== "å§å" && item.name !== "çµè¯" && item.name !== "å°å" |
| | | ); |
| | | this.form.textParam = this.convertFormat2ToFormat1(filteredArray); |
| | | if (this.form.taskid) { |
| | | this.form.isoperation = 2; |
| | | } else { |
| | | this.form.isoperation = 1; |
| | | } |
| | | if (!this.form.type) { |
| | | this.form.type = this.$route.query.type; |
| | | } |
| | | this.form.serviceType = this.serviceType; |
| | | this.form.deptcode = this.deptcodesWards.join(","); |
| | | this.form.leavehospitaldistrictcode = |
| | | this.leavehospitaldistrictcodes.join(","); |
| | | this.form.opcode = this.operationcodes.join(","); |
| | | this.form.icd10code = this.diagglist |
| | | .map((item) => item.icdcode) |
| | | .join(","); |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.taskid) { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | } else { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | } |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | | query: { tasktopic: this.form.serviceType }, |
| | | }); |
| | | try { |
| | | if (this.time4 && this.form.sendType == 3) |
| | | this.form.showTimeMorn = this.time4; |
| | | this.form.sendTimeslot = [ |
| | | { |
| | | begantime: this.time4, |
| | | endtime: "", |
| | | xh: 1, |
| | | }, |
| | | ]; |
| | | if (this.form.appltype == 1) { |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.operationcodes = []; |
| | | this.illnesscodes = []; |
| | | } else if (this.form.appltype == 2) { |
| | | this.deptcodesWards = []; |
| | | this.operationcodes = []; |
| | | this.illnesscodes = []; |
| | | } else if (this.form.appltype == 3) { |
| | | this.deptcodesWards = []; |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.operationcodes = []; |
| | | } else if (this.form.appltype == 4) { |
| | | this.deptcodesWards = []; |
| | | this.illnesscodes = []; |
| | | this.leavehospitaldistrictcodes = []; |
| | | } |
| | | }); |
| | | if (this.checkList) { |
| | | this.form.preachform = this.checkList.join(","); |
| | | this.form.preachformList = this.selectedOrder; |
| | | } else { |
| | | this.$modal.msgError("è¯·éæ©æå¡ç±»å"); |
| | | return; |
| | | } |
| | | console.log(this.operationcodes[0]); |
| | | console.log(this.operationcodes); |
| | | |
| | | if ( |
| | | this.deptcodesWards[0] || |
| | | this.leavehospitaldistrictcodes[0] || |
| | | this.diagglist[0] || |
| | | this.operationcodes[0] || |
| | | this.form.longTask == 2 || |
| | | this.serviceType == 3 |
| | | ) { |
| | | } else { |
| | | this.$modal.msgError("è¯·éæ©ä»»å¡å
³èæ¡ä»¶"); |
| | | return; |
| | | } |
| | | //æå任塿£è
éå¶ |
| | | // if (!this.form.patTaskRelevances[0] && !this.form.longTask) { |
| | | // this.$modal.msgError("è¯·éæ©ç
人"); |
| | | // return; |
| | | // } |
| | | |
| | | if (!this.form.templatename && !this.templateor) { |
| | | this.$modal.msgError("æªéæ©æ¨¡æ¿"); |
| | | return; |
| | | } |
| | | |
| | | if ( |
| | | (this.form.sendType == 1 && this.time1) || |
| | | this.form.sendType == 2 |
| | | ) { |
| | | } else if ( |
| | | (this.form.sendType == 3 && this.time4) || |
| | | this.form.longTask |
| | | ) { |
| | | } else { |
| | | return this.$modal.msgError("æ¶é´ä¿¡æ¯ç¼ºå¤±"); |
| | | } |
| | | const filteredArray = this.variableList.filter( |
| | | (item) => |
| | | item.name !== "å§å" && item.name !== "çµè¯" && item.name !== "å°å" |
| | | ); |
| | | this.form.textParam = this.convertFormat2ToFormat1(filteredArray); |
| | | if (this.form.taskid) { |
| | | this.form.isoperation = 2; |
| | | } else { |
| | | this.form.isoperation = 1; |
| | | } |
| | | if (!this.form.type) { |
| | | this.form.type = this.$route.query.type; |
| | | } |
| | | this.form.serviceType = this.serviceType; |
| | | this.form.deptcode = this.deptcodesWards.join(","); |
| | | this.form.leavehospitaldistrictcode = |
| | | this.leavehospitaldistrictcodes.join(","); |
| | | this.form.opcode = this.operationcodes.join(","); |
| | | this.form.icd10code = this.diagglist |
| | | .map((item) => item.icdcode) |
| | | .join(","); |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.taskid) { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | } else { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | } |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | | query: { tasktopic: this.form.serviceType }, |
| | | }); |
| | | this.submitLoading = false; |
| | | } |
| | | }); |
| | | } catch (error) { |
| | | this.submitLoading = false; |
| | | } finally { |
| | | // ç¬¬åæ¥ï¼æ 论æåæå¤±è´¥ï¼æç»é½å
³éå è½½ç¶æ |
| | | } |
| | | }, |
| | | |
| | | // ----------------------è¡¨æ ¼åç»ä»¶äºä»¶ |
| | |
| | | { label: "身份è¯", width: "200", prop: "idcardno" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |
| | |
| | | { label: "身份è¯", width: "200", prop: "idcardno" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |
| | |
| | | { label: "çµè¯å·ç ", width: "180", prop: "telcode" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |
| | |
| | | { label: "身份è¯", width: "200", prop: "idcardno" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | ]; |
| | | this.patientqueryParams.pageSize = 1000; |
| | |
| | | <el-button type="success" @click="nextstep('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "ä»»å¡è¯¦æ
é
ç½®" |
| | | }}</el-button> |
| | | <el-button @click="resetForm('ruleForm')">éç½®</el-button> |
| | | <!-- <el-button @click="resetForm('ruleForm')">éç½®</el-button> --> |
| | | </div> |
| | | <!-- ä»»å¡è¯¦æ
--> |
| | | <div v-if="Editprogress == 2"> |
| | |
| | | </div> |
| | | </div> |
| | | <el-button type="primary" @click="laststep()">ä¸ä¸æ¥</el-button> |
| | | <el-button type="success" @click="submitForm('11')">{{ |
| | | quote ? "ç«å³å建" : "确认任å¡é
ç½®" |
| | | }}</el-button> |
| | | <el-button @click="resetForm('ruleForm')">éç½®</el-button> |
| | | <el-button |
| | | :loading="submitLoading" |
| | | type="success" |
| | | @click="submitForm('11')" |
| | | >{{ quote ? "ç«å³å建" : "确认任å¡é
ç½®" }}</el-button |
| | | > |
| | | <!-- <el-button @click="resetForm('ruleForm')">éç½®</el-button> --> |
| | | </div> |
| | | </div> |
| | | <!-- æ·»å æ£è
--> |
| | |
| | | libName: "", |
| | | username: "", |
| | | templateor: false, |
| | | submitLoading: false, // æ§å¶æé®å è½½ç¶æ |
| | | objyl: {}, |
| | | overallCase: [], //éæ©æ£è
æ» |
| | | allpids: [], |
| | |
| | | { label: "çµè¯å·ç ", width: "180", prop: "telcode" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "主治å»ç", width: "", prop: "drname" }, |
| | | { label: "ç§å®¤", width: "240", prop: "dept" }, |
| | |
| | | { label: "çµè¯å·ç ", width: "180", prop: "telcode" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "主治å»ç", width: "", prop: "drname" }, |
| | |
| | | }, |
| | | // ä¿å |
| | | submitForm(type) { |
| | | if (this.templateor && type) this.templateor = false; |
| | | if (this.time4 && this.form.sendType == 3) |
| | | this.form.showTimeMorn = this.time4; |
| | | this.form.sendTimeslot = [ |
| | | { |
| | | begantime: this.time4, |
| | | endtime: "", |
| | | xh: 1, |
| | | }, |
| | | ]; |
| | | if (this.form.appltype == 1) { |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.operationcodes = []; |
| | | this.illnesscodes = []; |
| | | } else if (this.form.appltype == 2) { |
| | | this.deptcodesWards = []; |
| | | this.operationcodes = []; |
| | | this.illnesscodes = []; |
| | | } else if (this.form.appltype == 3) { |
| | | this.deptcodesWards = []; |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.operationcodes = []; |
| | | } else if (this.form.appltype == 4) { |
| | | this.deptcodesWards = []; |
| | | this.illnesscodes = []; |
| | | this.leavehospitaldistrictcodes = []; |
| | | } |
| | | if (this.checkList) { |
| | | this.form.preachform = this.checkList.join(","); |
| | | this.form.preachformList = this.selectedOrder; |
| | | } else { |
| | | this.$modal.msgError("è¯·éæ©æå¡ç±»å"); |
| | | if (this.submitLoading) { |
| | | return; |
| | | } |
| | | |
| | | if ( |
| | | this.deptcodesWards[0] || |
| | | this.leavehospitaldistrictcodes[0] || |
| | | this.diagglist[0] || |
| | | this.operationcodes[0] || |
| | | this.form.longTask == 2 || |
| | | this.serviceType == 14 |
| | | ) { |
| | | } else { |
| | | this.$modal.msgError("è¯·éæ©ä»»å¡å
³èæ¡ä»¶"); |
| | | return; |
| | | } |
| | | // if (!this.form.patTaskRelevances[0] && !this.form.longTask) { |
| | | // this.$modal.msgError("è¯·éæ©ç
人"); |
| | | // return; |
| | | // } |
| | | |
| | | if (!this.form.templatename && !this.templateor) { |
| | | this.$modal.msgError("æªéæ©æ¨¡æ¿"); |
| | | return; |
| | | } |
| | | |
| | | if ((this.form.sendType == 1 && this.time1) || this.form.sendType == 2) { |
| | | } else if ( |
| | | (this.form.sendType == 3 && this.time4) || |
| | | this.form.longTask |
| | | ) { |
| | | } else { |
| | | return this.$modal.msgError("æ¶é´ä¿¡æ¯ç¼ºå¤±"); |
| | | } |
| | | const filteredArray = this.variableList.filter( |
| | | (item) => |
| | | item.name !== "å§å" && item.name !== "çµè¯" && item.name !== "å°å" |
| | | ); |
| | | this.form.textParam = this.convertFormat2ToFormat1(filteredArray); |
| | | if (this.form.taskid) { |
| | | this.form.isoperation = 2; |
| | | } else { |
| | | this.form.isoperation = 1; |
| | | } |
| | | if (!this.form.type) { |
| | | this.form.type = this.$route.query.type; |
| | | } |
| | | this.form.serviceType = this.serviceType; |
| | | this.form.deptcode = this.deptcodesWards.join(","); |
| | | this.form.leavehospitaldistrictcode = |
| | | this.leavehospitaldistrictcodes.join(","); |
| | | this.form.opcode = this.operationcodes.join(","); |
| | | this.form.icd10code = this.diagglist |
| | | .map((item) => item.icdcode) |
| | | .join(","); |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.taskid) { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | } else { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | } |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | | query: { tasktopic: this.form.serviceType }, |
| | | }); |
| | | // ç¬¬äºæ¥ï¼å¼å¯å è½½ç¶æï¼ç¦ç¨æé® |
| | | this.submitLoading = true; |
| | | try { |
| | | if (this.templateor && type) this.templateor = false; |
| | | if (this.time4 && this.form.sendType == 3) |
| | | this.form.showTimeMorn = this.time4; |
| | | this.form.sendTimeslot = [ |
| | | { |
| | | begantime: this.time4, |
| | | endtime: "", |
| | | xh: 1, |
| | | }, |
| | | ]; |
| | | if (this.form.appltype == 1) { |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.operationcodes = []; |
| | | this.illnesscodes = []; |
| | | } else if (this.form.appltype == 2) { |
| | | this.deptcodesWards = []; |
| | | this.operationcodes = []; |
| | | this.illnesscodes = []; |
| | | } else if (this.form.appltype == 3) { |
| | | this.deptcodesWards = []; |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.operationcodes = []; |
| | | } else if (this.form.appltype == 4) { |
| | | this.deptcodesWards = []; |
| | | this.illnesscodes = []; |
| | | this.leavehospitaldistrictcodes = []; |
| | | } |
| | | }); |
| | | if (this.checkList) { |
| | | this.form.preachform = this.checkList.join(","); |
| | | this.form.preachformList = this.selectedOrder; |
| | | } else { |
| | | this.$modal.msgError("è¯·éæ©æå¡ç±»å"); |
| | | return; |
| | | } |
| | | |
| | | if ( |
| | | this.deptcodesWards[0] || |
| | | this.leavehospitaldistrictcodes[0] || |
| | | this.diagglist[0] || |
| | | this.operationcodes[0] || |
| | | this.form.longTask == 2 || |
| | | this.serviceType == 3 |
| | | ) { |
| | | } else { |
| | | this.$modal.msgError("è¯·éæ©ä»»å¡å
³èæ¡ä»¶"); |
| | | return; |
| | | } |
| | | // if (!this.form.patTaskRelevances[0] && !this.form.longTask) { |
| | | // this.$modal.msgError("è¯·éæ©ç
人"); |
| | | // return; |
| | | // } |
| | | |
| | | if (!this.form.templatename && !this.templateor) { |
| | | this.$modal.msgError("æªéæ©æ¨¡æ¿"); |
| | | return; |
| | | } |
| | | |
| | | if ( |
| | | (this.form.sendType == 1 && this.time1) || |
| | | this.form.sendType == 2 |
| | | ) { |
| | | } else if ( |
| | | (this.form.sendType == 3 && this.time4) || |
| | | this.form.longTask |
| | | ) { |
| | | } else { |
| | | return this.$modal.msgError("æ¶é´ä¿¡æ¯ç¼ºå¤±"); |
| | | } |
| | | const filteredArray = this.variableList.filter( |
| | | (item) => |
| | | item.name !== "å§å" && item.name !== "çµè¯" && item.name !== "å°å" |
| | | ); |
| | | this.form.textParam = this.convertFormat2ToFormat1(filteredArray); |
| | | if (this.form.taskid) { |
| | | this.form.isoperation = 2; |
| | | } else { |
| | | this.form.isoperation = 1; |
| | | } |
| | | if (!this.form.type) { |
| | | this.form.type = this.$route.query.type; |
| | | } |
| | | this.form.serviceType = this.serviceType; |
| | | this.form.deptcode = this.deptcodesWards.join(","); |
| | | this.form.leavehospitaldistrictcode = |
| | | this.leavehospitaldistrictcodes.join(","); |
| | | this.form.opcode = this.operationcodes.join(","); |
| | | this.form.icd10code = this.diagglist |
| | | .map((item) => item.icdcode) |
| | | .join(","); |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.taskid) { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | } else { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | } |
| | | this.submitLoading = false; |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | | query: { tasktopic: this.form.serviceType }, |
| | | }); |
| | | } |
| | | }); |
| | | } catch (error) { |
| | | this.submitLoading = false; |
| | | } finally { |
| | | // ç¬¬åæ¥ï¼æ 论æåæå¤±è´¥ï¼æç»é½å
³éå è½½ç¶æ |
| | | } |
| | | }, |
| | | |
| | | // ----------------------è¡¨æ ¼åç»ä»¶äºä»¶ |
| | |
| | | { label: "çµè¯å·ç ", width: "180", prop: "telcode" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |
| | |
| | | { label: "çµè¯å·ç ", width: "180", prop: "telcode" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |
| | |
| | | { label: "çµè¯å·ç ", width: "180", prop: "telcode" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "çµè¯", width: "180", prop: "telcode" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |