WXL (wul)
8 小时以前 1feb410410781eb56159c8fdd856e68d2c23e0a4
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f20df46"],{"28f0":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-breadcrumb",{staticClass:"breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[a("el-breadcrumb-item",{attrs:{to:{path:"/system/serviceGroup"}}},[t._v("服务组管理")]),a("el-breadcrumb-item",[t._v("服务组详情")])],1),a("el-card",{staticClass:"base-info-card",attrs:{shadow:"never"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"card-title"},[t._v("服务组基础信息")]),a("el-button",{staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"text",icon:"el-icon-edit"},on:{click:t.handleEdit}},[t._v("编辑")])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("div",{staticClass:"info-item"},[a("label",[t._v("服务组名称:")]),a("span",[t._v(t._s(t.baseInfo.groupName))])])]),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"info-item"},[a("label",[t._v("服务组ID:")]),a("span",[t._v(t._s(t.baseInfo.groupId))])])]),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"info-item"},[a("label",[t._v("状态:")]),a("el-tag",{attrs:{type:1===t.baseInfo.status?"success":"info"}},[t._v(" "+t._s(1===t.baseInfo.status?"启用":"停用")+" ")])],1)])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"info-item"},[a("label",[t._v("描述:")]),a("span",[t._v(t._s(t.baseInfo.groupDesc||"暂无描述"))])])])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("div",{staticClass:"info-item"},[a("label",[t._v("创建人:")]),a("span",[t._v(t._s(t.baseInfo.createBy))])])]),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"info-item"},[a("label",[t._v("创建时间:")]),a("span",[t._v(t._s(t.parseTime(t.baseInfo.createTime)))])])]),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"info-item"},[a("label",[t._v("更新时间:")]),a("span",[t._v(t._s(t.parseTime(t.baseInfo.updateTime)))])])])],1)],1),a("el-card",{staticClass:"task-card",attrs:{shadow:"never"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"card-title"},[t._v("关联任务")]),a("el-button",{staticStyle:{float:"right","margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:t.handleAddTask}},[t._v("关联任务")]),a("el-button",{staticStyle:{float:"right"},attrs:{type:"text",icon:"el-icon-setting"},on:{click:t.handleManageTasks}},[t._v("管理")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.taskLoading,expression:"taskLoading"}],staticStyle:{width:"100%"},attrs:{data:t.taskList}},[a("el-table-column",{attrs:{label:"任务名称",prop:"taskName","min-width":"200","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"任务类型",prop:"taskType",width:"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("dict-tag",{attrs:{options:t.dict.type.task_type,value:e.row.taskType}})]}}])}),a("el-table-column",{attrs:{label:"任务状态",prop:"sendState",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("dict-tag",{attrs:{options:t.dict.type.task_status,value:e.row.sendState}})]}}])}),a("el-table-column",{attrs:{label:"总任务/已随访",width:"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.totalCount)+"/"+t._s(e.row.completedCount))])]}}])}),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.parseTime(e.row.createTime)))])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"200",align:"center",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){return t.handleViewTask(e.row)}}},[t._v("查看")]),a("el-button",{staticClass:"delete-btn",attrs:{size:"mini",type:"text"},on:{click:function(a){return t.handleRemoveTask(e.row)}}},[t._v("移除")])]}}])})],1),0!==t.taskList.length||t.taskLoading?t._e():a("div",{staticClass:"empty-text"},[t._v(" 暂无关联任务,请先关联任务 ")])],1),a("el-card",{staticClass:"patient-card",attrs:{shadow:"never"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"card-title"},[t._v("关联患者")]),a("el-button",{staticStyle:{float:"right","margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:t.handleAddPatient}},[t._v("关联患者")]),a("el-button",{staticStyle:{float:"right"},attrs:{type:"text",icon:"el-icon-setting"},on:{click:t.handleManagePatients}},[t._v("管理")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.patientLoading,expression:"patientLoading"}],staticStyle:{width:"100%"},attrs:{data:t.patientList}},[a("el-table-column",{attrs:{label:"患者姓名",prop:"patientName",width:"120",align:"center"}}),a("el-table-column",{attrs:{label:"性别",prop:"gender",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("dict-tag",{attrs:{options:t.dict.type.sys_user_sex,value:e.row.gender}})]}}])}),a("el-table-column",{attrs:{label:"年龄",prop:"age",width:"80",align:"center"}}),a("el-table-column",{attrs:{label:"手机号",prop:"phone",width:"130",align:"center"}}),a("el-table-column",{attrs:{label:"病历号",prop:"medicalRecordNo",width:"120",align:"center"}}),a("el-table-column",{attrs:{label:"诊断",prop:"diagnosis","min-width":"200","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"关联时间",prop:"relationTime",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.parseTime(e.row.relationTime)))])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"150",align:"center",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){return t.handleViewPatient(e.row)}}},[t._v("详情")]),a("el-button",{staticClass:"delete-btn",attrs:{size:"mini",type:"text"},on:{click:function(a){return t.handleRemovePatient(e.row)}}},[t._v("移除")])]}}])})],1),0!==t.patientList.length||t.patientLoading?t._e():a("div",{staticClass:"empty-text"},[t._v(" 暂无关联患者,请先关联患者 ")])],1)],1)},i=[],n=(a("618d"),a("6678"),a("5662"),{name:"ServiceGroupDetail",dicts:["sys_user_sex","task_status","task_type"],data:function(){return{groupId:this.$route.params.groupId||"SG2025001",baseInfoLoading:!1,taskLoading:!1,patientLoading:!1,baseInfo:{groupId:"SG2025001",groupName:"糖尿病随访管理服务组",groupDesc:"专门负责糖尿病患者的定期随访、用药指导和健康管理服务,提高患者治疗依从性",status:1,createBy:"张医生",createTime:"2025-10-15 14:30:00",updateTime:"2025-10-20 09:15:00"},taskList:[{taskId:"T1001",taskName:"糖尿病月度随访评估",taskType:1,sendState:2,totalCount:150,completedCount:120,createTime:"2025-10-18 10:00:00"},{taskId:"T1002",taskName:"血糖监测依从性问卷",taskType:2,sendState:1,totalCount:150,completedCount:85,createTime:"2025-10-16 14:30:00"},{taskId:"T1003",taskName:"并发症筛查提醒任务",taskType:3,sendState:3,totalCount:150,completedCount:45,createTime:"2025-10-10 09:20:00"}],patientList:[{patientId:"P2025001",patientName:"王小明",gender:1,age:45,phone:"13800138000",medicalRecordNo:"MR2025001001",diagnosis:"2型糖尿病,伴有周围神经并发症",relationTime:"2025-10-16 09:00:00"},{patientId:"P2025002",patientName:"李小红",gender:0,age:62,phone:"13900139000",medicalRecordNo:"MR2025001002",diagnosis:"1型糖尿病,胰岛素依赖型",relationTime:"2025-10-17 14:30:00"},{patientId:"P2025003",patientName:"赵建国",gender:1,age:58,phone:"13600136000",medicalRecordNo:"MR2025001003",diagnosis:"2型糖尿病,伴有糖尿病肾病",relationTime:"2025-10-18 11:20:00"}]}},created:function(){this.groupId=this.$route.params.groupId,this.getDetail(),this.getTaskList(),this.getPatientList()},methods:{getDetail:function(){},getTaskList:function(){},getPatientList:function(){},handleEdit:function(){this.$router.push("/system/serviceGroup/edit/".concat(this.groupId))},handleAddTask:function(){this.$router.push("/system/serviceGroup/tasks/".concat(this.groupId,"?action=add"))},handleManageTasks:function(){this.$router.push("/system/serviceGroup/tasks/".concat(this.groupId))},handleViewTask:function(t){var e={1:"/followvisit/particty",2:"/followvisit/QuestionnaireTask",3:"/followvisit/Missioncreation"},a=e[t.type]||"/followvisit/task";this.$router.push("".concat(a,"?id=").concat(t.taskid))},handleRemoveTask:function(t){var e=this;this.$modal.confirm('是否确认移除任务"'.concat(t.taskName,'"?')).then((function(){removeTaskFromGroup(e.groupId,t.taskid).then((function(){e.$modal.msgSuccess("移除成功"),e.getTaskList()}))})).catch((function(){}))},handleAddPatient:function(){this.$router.push("/system/serviceGroup/patients/".concat(this.groupId,"?action=add"))},handleManagePatients:function(){this.$router.push("/system/serviceGroup/patients/".concat(this.groupId))},handleViewPatient:function(t){this.$router.push("/system/patient/detail/".concat(t.patientId))},handleRemovePatient:function(t){var e=this;this.$modal.confirm('是否确认移除患者"'.concat(t.patientName,'"?')).then((function(){removePatientFromGroup(e.groupId,t.patientId).then((function(){e.$modal.msgSuccess("移除成功"),e.getPatientList()}))})).catch((function(){}))}}}),o=n,l=(a("e9d5"),a("1805")),r=Object(l["a"])(o,s,i,!1,null,"d0de3f88",null);e["default"]=r.exports},5662:function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));var s=a("b775");function i(t){return Object(s["a"])({url:"/system/serviceGroup/"+t,method:"delete"})}},e9d5:function(t,e,a){"use strict";a("f719")},f719:function(t,e,a){}}]);