diff --git a/src/api/manage/script.js b/src/api/manage/script.js index 067a754..d75126b 100644 --- a/src/api/manage/script.js +++ b/src/api/manage/script.js @@ -69,3 +69,12 @@ export function delScript(id) { method: 'delete' }) } +// 左侧科室 +export function listScriptNum(query) { + return request({ + url: '/system/department/listScriptNum', + method: 'get', + params: query + }) +} + diff --git a/src/api/manage/servicepackage.js b/src/api/manage/servicepackage.js new file mode 100644 index 0000000..ab7372a --- /dev/null +++ b/src/api/manage/servicepackage.js @@ -0,0 +1,78 @@ +import request from '@/utils/request' + +// 查询服务包基础信息列表 +export function listServicepackage(query) { + return request({ + url: '/manage/servicepackage/list', + method: 'get', + params: query + }) +} +// 查询服务方式 + +export function serviceWayList(query) { + return request({ + url: '/manage/servicewaycontent/serviceWayList', + method: 'get', + params: query + }) +} +// 查询服务内容 +export function serviccontent(serviceWayId) { + return request({ + url: `/manage/servicewaycontent/list?serviceWayId=${serviceWayId}`, + method: 'get', + }) +} +// 发布 + + +export function editReleaseStatus(id,whetherRelease) { + return request({ + url: `/manage/servicepackage/editReleaseStatus?id=${id}&whetherRelease=${whetherRelease}`, + method: 'put', + }) +} +// 查询服务包基础信息详细 +export function getServicepackage(id) { + return request({ + url: '/manage/servicepackage/' + id, + method: 'get' + }) +} + +// 新增服务包基础信息 +export function addServicepackage(data) { + return request({ + url: '/manage/servicepackage/add', + method: 'post', + data: data + }) +} + +// 修改服务包基础信息 +export function updateServicepackage(data) { + return request({ + url: '/manage/servicepackage/edit', + method: 'put', + data: data + }) +} + +// 删除服务包基础信息 +export function delServicepackage(id) { + return request({ + url: '/manage/servicepackage/remove/' + id, + method: 'delete' + }) +} +// 左侧列表 +export function listServicePackageNum(query) { + return request({ + url: '/system/department/listServicePackageNum', + method: 'get', + params: query + }) +} + + diff --git a/src/api/manage/servicewaycontent.js b/src/api/manage/servicewaycontent.js index 1030662..43db49f 100644 --- a/src/api/manage/servicewaycontent.js +++ b/src/api/manage/servicewaycontent.js @@ -78,7 +78,7 @@ export function delServicewaycontent(id) { // / 删除服务方式 export function removeServiceWay(id) { return request({ - url: '/manage/servicewaycontent/removeServiceWay/id' , + url: '/manage/servicewaycontent/removeServiceWay/'+id , method: 'delete' }) } diff --git a/src/api/system/departmentDisease.js b/src/api/system/departmentDisease.js index 417c40c..e7db3c9 100644 --- a/src/api/system/departmentDisease.js +++ b/src/api/system/departmentDisease.js @@ -15,6 +15,14 @@ export function getDepartmentList(query) { params: query }) } +export function selectDiseaseCount(departmentName) { + return request({ + url: `/system/departmentDisease/selectDiseaseCount?departmentName=${departmentName}`, + method: 'get', + + }) +} +// get 搜索条件传departmentName // 查询科室病种信息详细 export function getDepartmentDisease(id) { @@ -33,6 +41,7 @@ export function addDepartmentDisease(data) { }) } + // 修改科室病种信息 export function updateDepartmentDisease(data) { return request({ diff --git a/src/api/system/stationAvatar.js b/src/api/system/stationAvatar.js index 8a1664f..6792fde 100644 --- a/src/api/system/stationAvatar.js +++ b/src/api/system/stationAvatar.js @@ -15,6 +15,15 @@ export function uploadFilefm(data) { data: data }) } +// 话术图片 +export function uploadScriptInfo(data) { + return request({ + url: '/manage/script/uploadScriptInfo', + method: 'post', + data: data + }) +} + //海报视频上传 export function updatePoserHeads(data) { diff --git a/src/api/system/user.js b/src/api/system/user.js index ddf7f9e..5cb3d5f 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -18,6 +18,15 @@ export function selectUserAgencyleft(query) { }) } +export function selectUserDepartment(query) { + return request({ + url: '/system/user/selectUserDepartment', + method: 'get', + params: query + + }) +} + export function selectUserAgency(userName) { return request({ url: `/system/user/selectUserBelongAgency?userName=${userName}`, @@ -25,6 +34,14 @@ export function selectUserAgency(userName) { }) } +export function getBelongDepartment(userName) { + return request({ + url: `/system/user/getBelongDepartment?userName=${userName}`, + method: 'get', + + }) +} + // /system/user/selectUserAgency 这个是右边的接口,传值不变 // 查询用户详细 export function getUser(userId) { @@ -46,8 +63,15 @@ export function addUser(data) { // 修改用户 export function updateUser(data) { return request({ - url: '/system/user', - method: 'put', + url: '/system/user/editAgency', + method: 'post', + data: data + }) +} +export function editDepartment(data) { + return request({ + url: '/system/user/editDepartment', + method: 'post', data: data }) } diff --git a/src/views/manage/message/index.vue b/src/views/manage/message/index.vue index faf2581..36f3ddd 100644 --- a/src/views/manage/message/index.vue +++ b/src/views/manage/message/index.vue @@ -139,7 +139,12 @@ label="适用任务类型" align="center" prop="suitTaskTypeName" - /> + > + + {{scope.row.suitTaskTypeName!="null"?scope.row.suitTaskTypeName:''}} + + + - + @@ -558,6 +563,8 @@ export default { querydisease: { pageNum: 1, pageSize: 10, + diseaseTypeName:null, + departmentId:null, }, listdisease: [], diseasetotal: 0, @@ -639,9 +646,6 @@ export default { this.getList(); this.Departmentlist(); this.typelistdata(); - listMessage(this.queryParams).then(response => { - this.count = response.total; - }); }, methods: { /** 查询微信模板信息列表 */ @@ -671,10 +675,14 @@ export default { this.loading = true; listMessageNum(this.querydepartmen).then(response => { this.DepartmentoList = response.data; - // this.count=this.DepartmentoList.length - console.log(this.DepartmentoList) - - // this.total = response.total; + let sum = 0; + this.DepartmentoList.forEach((item) => { + if (item.countNum != null) { + console.log(item.countNum) + sum += item.countNum; + } + this.count = sum; + }); this.loading = false; }); @@ -731,6 +739,8 @@ export default { nurseclick(row) { this.form.departmentId = row.departmentCode; this.departmentName = row.departmentName; + this.form.diseaseTypeId = ''; + this.diseaseTypeName = '请选择病种'; console.log(this.departmentName, '0000') this.innerVisibleshow = false; }, @@ -844,10 +854,8 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - if (!this.itemname) { - this.$modal.msgError("请先选择科室"); - } else { - // this.reset(); + + this.reset(); const id = row.id || this.ids // this.getDisease(); getMessage(id).then(response => { @@ -858,7 +866,7 @@ export default { this.open = true; this.title = "修改短信模板信息"; }); - } + }, /** 提交按钮 */ submitForm() { @@ -906,14 +914,6 @@ export default { return delMessage(ids); }).then(() => { this.getList(); - var quer = { - pageNum: 1, - pageSize: 10, - - } - listMessage(quer).then(response => { - this.count = response.total; - }); this.Departmentlist(); this.$modal.msgSuccess("删除成功"); }).catch(() => { }); diff --git a/src/views/manage/propaganda/index.vue b/src/views/manage/propaganda/index.vue index 3b52b35..40186a0 100644 --- a/src/views/manage/propaganda/index.vue +++ b/src/views/manage/propaganda/index.vue @@ -503,9 +503,9 @@ label-width="80px" :inline="true" > - + @@ -642,6 +642,8 @@ export default { querydisease: { pageNum: 1, pageSize: 10, + diseaseTypeName:null, + departmentId:null, }, listdisease: [], diseasetotal: 0, @@ -752,7 +754,6 @@ export default { created() { this.Departmentlist(); this.getList(); - this.getlistcount(); }, watch: { name(val) { @@ -787,7 +788,7 @@ export default { message: "复制成功" }); this.getList() - this.getlistcount() + this.Departmentlist() }); }).catch(() => { @@ -867,6 +868,14 @@ export default { this.loading = true; selectNumByDept(this.querydepartmen).then(response => { this.DepartmentoList = response.data; + let sum = 0; + this.DepartmentoList.forEach((item) => { + if (item.countNum != null) { + console.log(item.countNum) + sum += item.countNum; + } + this.count = sum; + }); this.loading = false; }); }, @@ -885,17 +894,6 @@ export default { } }, - // 获取总数 - getlistcount() { - var qure={ - pageNum: 1, - pageSize: 10, - - } - listPropaganda(qure).then(response => { - this.count = response.total; - }); - }, /** 查询患者宣教信息列表 */ @@ -942,6 +940,8 @@ export default { nurseclick(row) { this.form.departmentId = row.departmentCode; this.departmentName = row.departmentName; + this.form.diseaseTypeId = ''; + this.diseaseTypeName = '请选择病种'; this.innerVisibleshow = false; }, @@ -1093,7 +1093,6 @@ export default { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); - this.getlistcount() }); } else { if (this.diseaseTypeName == "请选择病种") { @@ -1114,7 +1113,7 @@ export default { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); - this.getlistcount() + this.Departmentlist() }); } @@ -1128,15 +1127,7 @@ export default { return delPropaganda(ids); }).then(() => { this.getList(); - this.getlistcount() - // var quer = { - // pageNum: 1, - // pageSize: 10, - - // } - // listPropaganda(quer).then(response => { - // this.count = response.total; - // }); + this.Departmentlist() this.$modal.msgSuccess("删除成功"); }).catch(() => { }); }, diff --git a/src/views/manage/script/index.vue b/src/views/manage/script/index.vue index d5a7e7c..8e5853c 100644 --- a/src/views/manage/script/index.vue +++ b/src/views/manage/script/index.vue @@ -82,19 +82,6 @@ >新增 - - - - + 科室名称 全部 - {{count}} + {{ count }} {{ item.departmentName }} - {{item.countNum}} - + {{ item.countNum }} @@ -141,7 +127,6 @@ :data="scriptList" @selection-change="handleSelectionChange" > - + + + - - - {{ scope.row.scriptStatus == "NORMAL" ? "正常" : "" }} @@ -169,13 +169,13 @@ label="话术简介" align="center" prop="scriptIntroduction" - :show-overflow-tooltip="true" + :show-overflow-tooltip="true" /> + 预览 修改 - - + {{ diseaseTypeName }} - + + + diff --git a/src/views/manage/servicewaycontent/index.vue b/src/views/manage/servicewaycontent/index.vue index fa93e56..788904e 100644 --- a/src/views/manage/servicewaycontent/index.vue +++ b/src/views/manage/servicewaycontent/index.vue @@ -225,19 +225,19 @@ label="服务频次" align="center" prop="serviceWayFrequencyList" + :key="keyTable" > - + - + - + --> + - - + + + - + - + + + + + + + { this.servicewaycontentList = response.rows; + // this.serviceFrequencyText= this.servicewaycontentList[0].serviceFrequencyText + console.log(this.servicewaycontentList,'****') + // if(e.serviceWayFrequencyList[0].serviceFrequencyType == 'TEXT'){ this.servicewaycontentList.forEach((e) => { - this.serviceFrequencyType = e.serviceFrequencyType; + e.valuePlusMax = e.serviceWayFrequencyList[0].id }); + + // } + // if(e.serviceWayFrequencyList[0].serviceFrequencyType == 'DIGIT'){ + // e.serviceFrequencyText = JSON.parse(e.serviceWayFrequencyList[0].serviceFrequencyStart) + + // '~' + + // JSON.parse(e.serviceWayFrequencyList[0].serviceFrequencyEnd) + // } + + + + + // e.serviceWayFrequencyList[0].forEach(el=>{ + // console.log(el) + // // this.serviceFrequencyText = el.serviceFrequencyText; + + // }) + // this.serviceFrequencyText= this.servicewaycontentList[0].serviceFrequencyText + this.total = response.total; this.loading = false; @@ -686,26 +732,29 @@ export default { /** 新增按钮操作 */ handleAdd() { this.reset(); + console.log(this.itemname,'itemname') + if (this.itemname) { + this.form.serviceWayName = this.serviceWayName + this.form.serviceWayId = this.itemname + console.log( this.form,' this.form') + + } + // else if (this.itemname == null) { + // this.form.serviceWayId = "请选择服务方式" + // } this.form.serviceFrequencyType = "DIGIT"; this.open = true; this.title = "添加服务方式内容"; }, /** 修改按钮操作 */ handleUpdate(row) { - this.reset(); console.log(row,'99999'); - // const id = row.id - - // -------------- - if(!this.form.id){ - row.serviceWayFrequencyList.forEach((e) => { - this.form.id = e.id; - }); - } - - getServicewaycontent(this.form.id).then((response) => { + this.reset(); + getServicewaycontent(row.valuePlusMax).then((response) => { this.form = response.data; + // this.form.serviceWayId=row.serviceWayId this.form.id = response.data.serviceFrequencyId; + this.form.serviceWayId=response.data.serviceWayId // ---------- if (response.data.serviceFrequencyType == "DIGIT") { @@ -726,24 +775,48 @@ export default { }, /** 提交按钮 */ submitForm() { - this.$refs["form"].validate((valid) => { + + this.$refs["form"].validate((valid) => { if (valid) { - console.log(this.form.id, "555555"); + if(this.form.serviceFrequencyType=="DIGIT"&&this.form.serviceFrequencyStart==null&&this.form.serviceFrequencyEnd==null){ +this.$message.error("请输入服务频次起始值和结束值") + }else if(this.form.serviceFrequencyType=="DIGIT"&&this.form.serviceFrequencyStart==null){ + this.$message.error("请输入服务频次起始值") + + }else if(this.form.serviceFrequencyType=="DIGIT"&&this.form.serviceFrequencyEnd==null){ + this.$message.error("请输入服务频次结束值") + + }else if(this.form.serviceFrequencyType=="TEXT"&&this.form.serviceFrequencyText==null){ + this.$message.error("请输入服务频次文本") + + }else if(this.form.serviceFrequencyType!="TEXT"&&this.form.serviceFrequencyType!="DIGIT"){ + this.$message.error("请选择数字还是文本")}else{ + console.log(this.form, "555555"); + console.log(this.form.serviceWayId) + if (this.form.serviceContentId != null) { updateServicewaycontent(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + this.mentlist(); + }); } else { addServicewaycontent(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + this.mentlist(); + + }); } } + } + }); + }, // 修改服务方式 handleedit() { diff --git a/src/views/manage/template/index.vue b/src/views/manage/template/index.vue index d2ef07e..9d7bc16 100644 --- a/src/views/manage/template/index.vue +++ b/src/views/manage/template/index.vue @@ -384,9 +384,9 @@ label-width="80px" :inline="true" > - + @@ -493,6 +493,8 @@ export default { querydisease: { pageNum: 1, pageSize: 10, + diseaseTypeName:null, + departmentId:null, }, listdisease: [], diseasetotal: 0, @@ -567,9 +569,6 @@ export default { this.getList(); this.Departmentlist(); this.typelistdata(); - listTemplate(this.queryParams).then(response => { - this.count = response.total; - }); }, methods: { /** 查询微信模板信息列表 */ @@ -599,10 +598,15 @@ export default { this.loading = true; listWechatTemplateNum(this.querydepartmen).then(response => { this.DepartmentoList = response.data; - // this.count=this.DepartmentoList.length + let sum = 0; + this.DepartmentoList.forEach((item) => { + if (item.countNum != null) { + console.log(item.countNum) + sum += item.countNum; + } + this.count = sum; + }); - - // this.total = response.total; this.loading = false; }); @@ -618,12 +622,8 @@ export default { this.getList() } else { this.queryParams.departmentId = '' - this.itemname = null this.getList() - listTemplate(this.queryParams).then(response => { - this.count = response.total; - }); } }, @@ -663,6 +663,8 @@ export default { nurseclick(row) { this.form.departmentId = row.departmentCode; this.departmentName = row.departmentName; + this.form.diseaseTypeId = ''; + this.diseaseTypeName = '请选择病种'; this.innerVisibleshow = false; }, @@ -771,22 +773,20 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - if (!this.itemname) { - this.$modal.msgError("请先选择科室"); - } else { - // this.reset(); - const id = row.id || this.ids - // this.getDisease(); - this.typelistdata(); - getTemplate(id).then(response => { - this.form = response.data; - this.form.suitTaskTypeIds = response.data.suitTaskTypeIds - this.diseaseTypeName = response.data.diseaseTypeName - this.departmentName = response.data.departmentName - this.open = true; - this.title = "修改信息"; - }); - } + + this.reset(); + const id = row.id || this.ids + // this.getDisease(); + this.typelistdata(); + getTemplate(id).then(response => { + this.form = response.data; + this.form.suitTaskTypeIds = response.data.suitTaskTypeIds + this.diseaseTypeName = response.data.diseaseTypeName + this.departmentName = response.data.departmentName + this.open = true; + this.title = "修改信息"; + }); + }, /** 提交按钮 */ submitForm() { @@ -800,6 +800,8 @@ export default { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + this.Departmentlist(); + }); } else { if (this.diseaseTypeName == "请选择病种") { @@ -820,6 +822,9 @@ export default { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + this.Departmentlist(); + + }); } @@ -833,14 +838,6 @@ export default { return delTemplate(ids); }).then(() => { this.getList(); - var quer = { - pageNum: 1, - pageSize: 10, - - } - listTemplate(quer).then(response => { - this.count = response.total; - }); this.Departmentlist(); this.$modal.msgSuccess("删除成功"); }).catch(() => { }); diff --git a/src/views/operationInfo/operationInfo/index.vue b/src/views/operationInfo/operationInfo/index.vue index 7b17555..0bef9f3 100644 --- a/src/views/operationInfo/operationInfo/index.vue +++ b/src/views/operationInfo/operationInfo/index.vue @@ -66,9 +66,8 @@ @click="itemdata()" > 全部 - - {{count}} + {{ count }} {{ item.departmentName }} - {{item.countNum}} - + {{ item.countNum }} @@ -186,7 +184,6 @@ 取 消 - @@ -200,7 +197,7 @@ export default { itemname: null, disabled: false, name: '', - count:'',//全部 + count: '',//全部 // 用户导入参数 upload: { // 是否显示弹出层(用户导入) @@ -286,10 +283,6 @@ export default { created() { this.getList(); this.Departmentlist(); - listOperationInfo(this.queryParams).then(response => { - this.count = response.total; - this.loading = false; - }); }, watch: { name(val) { @@ -323,10 +316,14 @@ export default { this.loading = true; listOperationNum(this.querydepartmen).then(response => { this.DepartmentoList = response.data; - // this.count=this.DepartmentoList.length - console.log(this.DepartmentoList) - - // this.total = response.total; + let sum = 0; + this.DepartmentoList.forEach((item) => { + if (item.countNum != null) { + console.log(item.countNum) + sum += item.countNum; + } + this.count = sum; + }); this.loading = false; }); @@ -336,7 +333,7 @@ export default { this.loading = true; listOperationInfo(this.queryParams).then(response => { this.operationInfoList = response.rows; - this.operationInfoList.forEach(e=>{ + this.operationInfoList.forEach(e => { console.log(e) }) this.total = response.total; @@ -353,7 +350,7 @@ export default { // 表单重置 reset() { this.form = { - // id: null, + id: null, // departmentId: null, // departmentName: null, operationName: null, @@ -384,7 +381,7 @@ export default { /** 重置按钮操作 */ resetQuery() { this.queryParams.departmentId = null; - this.itemname = null; + this.itemname = null; this.resetForm("queryForm"); this.getList(); // this.handleQuery(); @@ -414,41 +411,41 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - if (!this.itemname) { - this.$modal.msgError("请先选择科室"); - } else { - // this.reset() - this.form.operationInfo = ''; + this.reset() + this.form.operationInfo = ''; + this.open = true; + const id = row.id || this.ids + getOperationInfo(id).then(response => { + this.form.operationInfo = response.data.operationInfo; + this.form.operationName = response.data.operationName; + this.form.departmentId = response.data.departmentId; + this.form.departmentName = response.data.departmentName; + this.form.id = response.data.id; this.open = true; - const id = row.id || this.ids - getOperationInfo(id).then(response => { - this.form.operationInfo= response.data.operationInfo; - this.form.operationName= response.data.operationName; - this.form.departmentId= response.data.departmentId; - this.open = true; - this.title = "修改手术信息"; - if (this.title == "修改手术信息") { - this.disabled = true - } - }); + this.title = "修改手术信息"; + if (this.title == "修改手术信息") { + // this.disabled = true + } + }); - } }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => { if (valid) { - if (this.form.id != null) { + if (this.form.id) { updateOperationInfo(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + this.Departmentlist(); }); } else { addOperationInfo(this.form).then(response => { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + this.Departmentlist(); }); } } @@ -461,15 +458,7 @@ export default { return delOperationInfo(ids); }).then(() => { this.getList(); - var quer={ - pageNum: 1, - pageSize: 10, - } - listOperationInfo(quer).then(response => { - this.count = response.total; - this.loading = false; - }); - this.Departmentlist(); + this.Departmentlist(); this.$modal.msgSuccess("删除成功"); }).catch(() => { }); }, @@ -494,14 +483,14 @@ export default { width: 100%; height: 50px; border-bottom: 1px solid #dcdfe6; - .count{ - display: inline-block; - position: relative; - // right: -172px; - left: 210px; - color: #a4a6aa; - top: -35px; - font-size: 13px; + .count { + display: inline-block; + position: relative; + // right: -172px; + left: 210px; + color: #a4a6aa; + top: -35px; + font-size: 13px; } .all { height: 50px; diff --git a/src/views/system/agency/index.vue b/src/views/system/agency/index.vue index f02cd1f..c61e987 100644 --- a/src/views/system/agency/index.vue +++ b/src/views/system/agency/index.vue @@ -291,26 +291,19 @@ /> --> - - - - - - 启用 - 禁用 - - - + + @@ -347,6 +341,7 @@ :show-all-levels="false" ref="cascader" :key="isResouceShows" + clearable > @@ -354,6 +349,7 @@ v-model="form.nodeType" placeholder="请选择" style="width: 205px" + clearable > - + - + + + + + + 启用 + 禁用 + + +