diff --git a/src/api/system/order.js b/src/api/system/order.js index 5e41826..9755fc4 100644 --- a/src/api/system/order.js +++ b/src/api/system/order.js @@ -14,4 +14,11 @@ export function Detailed(id) { method: 'get', }) -} \ No newline at end of file +} +//删除 +export function deldetailed(id) { + return request({ + url: '/system/appointmentOrderDetails/' + id, + method: 'delete' + }) +} diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue index 4949483..073af12 100644 --- a/src/views/system/order/index.vue +++ b/src/views/system/order/index.vue @@ -8,6 +8,14 @@ v-show="showSearch" label-width="100px" > + + + - - - + - + placeholder="请选择订单状态" + > + + + - + 重置 - - - + + @@ -87,7 +92,7 @@ size="mini" type="text" icon="el-icon-delete" - @click="handleDelete" + @click="handleDelete(scope.row)" v-hasPermi="['system:nurseType:remove']" >删除 @@ -102,150 +107,175 @@ @pagination="getList" /> + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue index d83bab2..9919920 100644 --- a/src/views/system/person/index.vue +++ b/src/views/system/person/index.vue @@ -143,6 +143,17 @@ >删除 + + 导入 + @@ -637,7 +645,10 @@ > - + @@ -781,6 +837,7 @@ import { stationList, StationDepartmentList, } from "@/api/system/person"; +import { getToken } from "@/utils/auth"; export default { name: "Person", @@ -832,6 +889,22 @@ export default { innerVisible2: false, // 遮罩层 loading: true, + + // 用户导入参数 + upload: { + // 是否显示弹出层(用户导入) + open: false, + // 弹出层标题(用户导入) + title: "", + // 是否禁用上传 + isUploading: false, + // 设置上传的请求头部 + headers: { Authorization: "Bearer " + getToken() }, + // 上传的地址 + url: + process.env.VUE_APP_BASE_API + + "/system/person/insertNurseStationPersonImportList", + }, // 选中数组 ids: [], // 非单个禁用 @@ -852,7 +925,6 @@ export default { stationLists: [], // 所属科室 StationDepartmentLists: [], - nurseStationlist: [], stationid: "", departid: "", @@ -1100,6 +1172,7 @@ export default { this.open2 = false; this.nurseStationName = "请选择护理站名称"; this.departmentName = "请选择所属科室"; + // this.upload.open=false; this.reset(); }, // 表单重置 @@ -1136,6 +1209,7 @@ export default { }; this.resetForm("form"); }, + /** 搜索按钮操作 */ handleQuery2() { this.queryParams.pageNum = 1; @@ -1288,6 +1362,44 @@ export default { }) .catch(() => {}); }, + /** 导入按钮操作 */ + handleImport() { + this.upload.open = true; + this.upload.title = "用户导入"; + }, + + /** 下载模板操作 */ + importTemplate() { + this.download( + "/system/station/downloadTemplate?fileType=nurseStationPerson", + {}, + `护理站人员基本信息导入模板.xlsx` + ); + }, + + // 提交上传文件 + submitFileForm() { + this.$refs.upload.submit(); + }, + // 文件上传成功处理 + handleFileSuccess(response, file, fileList) { + this.upload.open = false; + this.upload.isUploading = false; + this.$refs.upload.clearFiles(); + this.$alert( + "
" + + response.msg + + "
", + "导入结果", + { dangerouslyUseHTMLString: true } + ); + this.getList(); + }, + // 文件上传中处理 + handleFileUploadProgress(event, file, fileList) { + this.upload.isUploading = true; + }, + /** 导出按钮操作 */ handleExport() { this.download(