diff --git a/src/api/system/question.js b/src/api/system/question.js index 0a89ce7..4725e58 100644 --- a/src/api/system/question.js +++ b/src/api/system/question.js @@ -47,8 +47,35 @@ export function delQuestion(id) { //科室接口 export function getDepartmentList(query) { return request({ - url: 'system/department/getDepartmentList', + url: '/system/department/getDepartmentList', method: 'get', params: query }) } + +//科室 +export function selectUserDepartment() { + return request({ + url: '/system/department/selectUserDepartment', + method: 'get', + }) +} + +//病种 +export function diseaseList(query) { + return request({ + url: '/system/departmentDisease/diseaseList', + method: 'get', + params: query + }) +} + + +//分类管理确定 +export function updateclassification(data) { + return request({ + url: '/system/question/updateQuestion', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/views/manage/servicewaycontent/index.vue b/src/views/manage/servicewaycontent/index.vue index bc90dbd..abdc2d5 100644 --- a/src/views/manage/servicewaycontent/index.vue +++ b/src/views/manage/servicewaycontent/index.vue @@ -324,7 +324,6 @@ :disabled="disableedit" placeholder="请选择服务方式" style="width: 250px" - @change="change" > { if (valid) { - console.log(this.format); + // console.log(this.format); if (this.format.id) { editServiceWay(this.format).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -625,10 +624,6 @@ export default { this.loading = false; }); }, - change(e) { - console.log(e); - // this.form.serviceWayId=e - }, // 左侧科室 itemdata(item) { if (item) { @@ -668,21 +663,6 @@ export default { ); }); }); - - // } - // 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; }); @@ -736,6 +716,12 @@ export default { this.reset(); this.disableedit = false; this.disabledcontent = false; + this.DIGIT = true; + this.TEXT = false; + this.disableda = false; + this.disabledb = false; + this.disabled = true; //文本 + this.form.serviceFrequencyType = "DIGIT"; console.log(this.itemname, "itemname"); if (this.itemname) { @@ -743,6 +729,7 @@ export default { this.form.serviceWayId = this.itemname; console.log(this.form, " this.form"); } + // else if (this.itemname == null) { // this.form.serviceWayId = "请选择服务方式" // } @@ -790,6 +777,7 @@ export default { changeTEXT(item) {}, /** 提交按钮 */ submitForm() { + console.log(this.form); this.$refs["form"].validate((valid) => { if (valid) { if ( @@ -892,6 +880,7 @@ export default { handleUpdateserve() { this.titles = "新增服务方式"; this.format.serviceWayName = ""; + this.format.id = ""; this.opens = true; }, /** 删除按钮操作 */ diff --git a/src/views/system/addQuestionnaire/index.vue b/src/views/system/addQuestionnaire/index.vue index 8c5fe06..1427579 100644 --- a/src/views/system/addQuestionnaire/index.vue +++ b/src/views/system/addQuestionnaire/index.vue @@ -2,10 +2,10 @@
- 返回 - 预览问卷 + 返回 + 保存 - 保存并发布 +
@@ -1028,12 +1028,33 @@ export default { this.list.questionCount = this.questionlist.length if (this.$route.query.id) { updateQuestion(this.list).then(res => { - + this.$confirm('编辑保存成功, 是否返回上一页?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'success' + }).then(() => { + this.$router.go(-1); + }).catch(() => { + this.$modal.msgSuccess("编辑保存成功"); + }); }) } else { addQuestion(this.list).then(res => { + this.$confirm('新增保存成功, 是否返回上一页?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'success' + }).then(() => { + this.$router.go(-1); + }).catch(() => { + this.$modal.msgSuccess("新增保存成功"); + }); }) } + }, + //保存并发布 + releaseupload() { + }, info() { getQuestion(this.$route.query.id).then(res => { @@ -1067,7 +1088,7 @@ export default { e.title = '打分题' } }) - var data = res.data.questionSubjectList + var data = res.data.questionSubjectList.filter(e => e.questionType == 'COMBINATION_RADIO_SUBJECT' || e.questionType == 'COMBINATION_MULTIPLE_SUBJECT' || e.questionType == 'COMBINATION_BLANKS_SUBJECT' || e.questionType == 'COMBINATION_BLANKS_SUBJECT') var echararr = []; for (var i = 0; i < data.length; i++) { var arrindex = echararr.findIndex((item, index, arr) => { return item.questionDescription === data[i].questionDescription })//获取下标 @@ -1086,6 +1107,9 @@ export default { this.questionlist = [...this.questionlist, ...echararr] }) }, + goback() { + this.$router.go(-1); + }, } }; @@ -1185,6 +1209,7 @@ export default { .title { width: 80%; margin: 20px auto 30px; + text-align: left; span { display: inline-block; diff --git a/src/views/system/agency/index.vue b/src/views/system/agency/index.vue index 2d5c82f..2fd9cf7 100644 --- a/src/views/system/agency/index.vue +++ b/src/views/system/agency/index.vue @@ -671,18 +671,21 @@ export default { this.infolist(); }, methods: { + // 节点类型 info() { var dictType = "node_type"; getAgencytype(dictType).then((res) => { this.nodeTypeoptions = res.data; }); }, + // 上级机构 infolist() { var dictType = "agency_category_manage_level"; getAgencytype(dictType).then((res) => { this.options = res.data; }); }, + // 删除机构 renderContent(h, { node, data, store }) { return ( @@ -718,15 +721,7 @@ export default { }) .catch(() => {}); }, - // lazyLoad(node, resolve) { - // // 这儿过来了吗对 - // // console.log(node, "children", this.treeOptions); - // // const id = node.level === 0 ? 0 : node.data.id; - // // setTimeout(() => { - // // resolve(this.treeOptions); - // // // this.$off("load-data", this.lazyLoad); - // // }, 300); - // }, + // 机构树 gettreelist() { agencyList().then((res) => { // 接口请求 @@ -743,6 +738,7 @@ export default { console.log(res.data, "58", this.treeOptions); }); }, + // 卫生机构类别 gettreelistitem() { agencyCategoryList().then((res) => { // 接口请求 @@ -1099,4 +1095,5 @@ export default { .el-cascader .el-input input::-webkit-input-placeholder { color: #686a6d; } + diff --git a/src/views/system/agencyCategory/index.vue b/src/views/system/agencyCategory/index.vue index 2f0ebcb..746febf 100644 --- a/src/views/system/agencyCategory/index.vue +++ b/src/views/system/agencyCategory/index.vue @@ -321,6 +321,7 @@ export default { this.gettreelistitem(); }, methods: { + // 父级类别 gettreelistitem() { agencyCategoryList().then((res) => { // 接口请求 diff --git a/src/views/system/department/index.vue b/src/views/system/department/index.vue index 024acbb..3f1ac60 100644 --- a/src/views/system/department/index.vue +++ b/src/views/system/department/index.vue @@ -738,6 +738,7 @@ export default { this.infocompare(); }, methods: { + // 上级科室 changeparentDepartment(e) { this.form.parentDepartmentId = e; console.log(e); @@ -751,47 +752,52 @@ export default { this.loading = false; }); }, + // 细分类别 getinfolist() { listSubdivision().then((res) => { this.optionsubdivisionCategory = res.rows; }); }, + // 上级科室 getinfo() { getDepartmentList().then((res) => { console.log(res, "666"); this.optionsparentDepartment = res.data; }); }, + // 节点类型 info() { var dictType = "department_node_type"; getAgencytype(dictType).then((res) => { this.nodeTypeoptions = res.data; }); }, + // 科室类型 infodepartment() { var dictType = "department_type"; getAgencytype(dictType).then((res) => { this.departmentoptions = res.data; }); }, + // 服务类别 infolist() { var dictType = "provide_service_category"; getAgencytype(dictType).then((res) => { this.options = res.data; }); }, + // 所属机构 change(e) { console.log(e, "78"); this.form.agencyId = e[e.length - 1]; const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels; this.form.agencyName = arr.slice(-1).join(","); - console.log(this.form.agencyName); }, - changeagencyCategoryId(e) { - this.form.parentDepartmentId = e[e.length - 1]; - }, + // changeagencyCategoryId(e) { + // this.form.parentDepartmentId = e[e.length - 1]; + // }, // gettreelistitem() { // agencyCategoryList().then((res) => { // // 接口请求 @@ -800,6 +806,7 @@ export default { // }); // }); // }, + // 所属机构 gettreelist() { agencyList().then((res) => { // 接口请求 @@ -845,12 +852,6 @@ export default { handleFileUploadProgress(event, file, fileList) { this.upload.isUploading = true; }, - // /** 查询部门下拉树结构 */ - // getTreeselect() { - // agencyList().then((response) => { - // this.deptOptions = response.data; - // }); - // }, // 筛选节点 filterNode(value, data) { diff --git a/src/views/system/question/index.vue b/src/views/system/question/index.vue index 27b8142..c8f9751 100644 --- a/src/views/system/question/index.vue +++ b/src/views/system/question/index.vue @@ -40,17 +40,21 @@ @@ -59,16 +63,38 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> + + + + + + + + + + + + + + +