|
@@ -25,47 +25,47 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
-<!-- <el-row :gutter="10" class="mb8">-->
|
|
|
|
-<!-- <el-col :span="1.5">-->
|
|
|
|
-<!-- <el-button-->
|
|
|
|
-<!-- type="primary"-->
|
|
|
|
-<!-- plain-->
|
|
|
|
-<!-- icon="Plus"-->
|
|
|
|
-<!-- @click="handleAdd"-->
|
|
|
|
-<!-- v-hasPermi="['care:scores:add']"-->
|
|
|
|
-<!-- >新增</el-button>-->
|
|
|
|
-<!-- </el-col>-->
|
|
|
|
-<!-- <el-col :span="1.5">-->
|
|
|
|
-<!-- <el-button-->
|
|
|
|
-<!-- type="success"-->
|
|
|
|
-<!-- plain-->
|
|
|
|
-<!-- icon="Edit"-->
|
|
|
|
-<!-- :disabled="single"-->
|
|
|
|
-<!-- @click="handleUpdate"-->
|
|
|
|
-<!-- v-hasPermi="['care:scores:edit']"-->
|
|
|
|
-<!-- >修改</el-button>-->
|
|
|
|
-<!-- </el-col>-->
|
|
|
|
-<!-- <el-col :span="1.5">-->
|
|
|
|
-<!-- <el-button-->
|
|
|
|
-<!-- type="danger"-->
|
|
|
|
-<!-- plain-->
|
|
|
|
-<!-- icon="Delete"-->
|
|
|
|
-<!-- :disabled="multiple"-->
|
|
|
|
-<!-- @click="handleDelete"-->
|
|
|
|
-<!-- v-hasPermi="['care:scores:remove']"-->
|
|
|
|
-<!-- >删除</el-button>-->
|
|
|
|
-<!-- </el-col>-->
|
|
|
|
-<!-- <el-col :span="1.5">-->
|
|
|
|
-<!-- <el-button-->
|
|
|
|
-<!-- type="warning"-->
|
|
|
|
-<!-- plain-->
|
|
|
|
-<!-- icon="Download"-->
|
|
|
|
-<!-- @click="handleExport"-->
|
|
|
|
-<!-- v-hasPermi="['care:scores:export']"-->
|
|
|
|
-<!-- >导出</el-button>-->
|
|
|
|
-<!-- </el-col>-->
|
|
|
|
-<!-- <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>-->
|
|
|
|
-<!-- </el-row>-->
|
|
|
|
|
|
+ <!-- <el-row :gutter="10" class="mb8">-->
|
|
|
|
+ <!-- <el-col :span="1.5">-->
|
|
|
|
+ <!-- <el-button-->
|
|
|
|
+ <!-- type="primary"-->
|
|
|
|
+ <!-- plain-->
|
|
|
|
+ <!-- icon="Plus"-->
|
|
|
|
+ <!-- @click="handleAdd"-->
|
|
|
|
+ <!-- v-hasPermi="['care:scores:add']"-->
|
|
|
|
+ <!-- >新增</el-button>-->
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
+ <!-- <el-col :span="1.5">-->
|
|
|
|
+ <!-- <el-button-->
|
|
|
|
+ <!-- type="success"-->
|
|
|
|
+ <!-- plain-->
|
|
|
|
+ <!-- icon="Edit"-->
|
|
|
|
+ <!-- :disabled="single"-->
|
|
|
|
+ <!-- @click="handleUpdate"-->
|
|
|
|
+ <!-- v-hasPermi="['care:scores:edit']"-->
|
|
|
|
+ <!-- >修改</el-button>-->
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
+ <!-- <el-col :span="1.5">-->
|
|
|
|
+ <!-- <el-button-->
|
|
|
|
+ <!-- type="danger"-->
|
|
|
|
+ <!-- plain-->
|
|
|
|
+ <!-- icon="Delete"-->
|
|
|
|
+ <!-- :disabled="multiple"-->
|
|
|
|
+ <!-- @click="handleDelete"-->
|
|
|
|
+ <!-- v-hasPermi="['care:scores:remove']"-->
|
|
|
|
+ <!-- >删除</el-button>-->
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
+ <!-- <el-col :span="1.5">-->
|
|
|
|
+ <!-- <el-button-->
|
|
|
|
+ <!-- type="warning"-->
|
|
|
|
+ <!-- plain-->
|
|
|
|
+ <!-- icon="Download"-->
|
|
|
|
+ <!-- @click="handleExport"-->
|
|
|
|
+ <!-- v-hasPermi="['care:scores:export']"-->
|
|
|
|
+ <!-- >导出</el-button>-->
|
|
|
|
+ <!-- </el-col>-->
|
|
|
|
+ <!-- <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>-->
|
|
|
|
+ <!-- </el-row>-->
|
|
|
|
|
|
<el-table v-loading="loading" :data="scoresList" @selection-change="handleSelectionChange">
|
|
<el-table v-loading="loading" :data="scoresList" @selection-change="handleSelectionChange">
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
@@ -78,18 +78,19 @@
|
|
<el-table-column label="评分" align="center" prop="scoreAssess" show-overflow-tooltip/>
|
|
<el-table-column label="评分" align="center" prop="scoreAssess" show-overflow-tooltip/>
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
|
+ <el-button link type="primary" icon="Edit" @click="lookClock(scope.row)" v-hasPermi="['care:scores:lookClock']">查看打卡情况</el-button>
|
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['care:scores:edit']">评分</el-button>
|
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['care:scores:edit']">评分</el-button>
|
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['care:scores:remove']">删除</el-button>
|
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['care:scores:remove']">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
-
|
|
|
|
|
|
+
|
|
<pagination
|
|
<pagination
|
|
- v-show="total>0"
|
|
|
|
- :total="total"
|
|
|
|
- v-model:page="queryParams.pageNum"
|
|
|
|
- v-model:limit="queryParams.pageSize"
|
|
|
|
- @pagination="getList"
|
|
|
|
|
|
+ v-show="total>0"
|
|
|
|
+ :total="total"
|
|
|
|
+ v-model:page="queryParams.pageNum"
|
|
|
|
+ v-model:limit="queryParams.pageSize"
|
|
|
|
+ @pagination="getList"
|
|
/>
|
|
/>
|
|
|
|
|
|
<!-- 添加或修改业务评分对话框 -->
|
|
<!-- 添加或修改业务评分对话框 -->
|
|
@@ -112,17 +113,30 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+ <el-dialog title="查看打卡情况" v-model="openClock" width="80%">
|
|
|
|
+ <div>
|
|
|
|
+ <component :is="currentComponent" v-bind="componentProps" :key="componentKey"></component>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup name="Scores">
|
|
<script setup name="Scores">
|
|
-import { getScores, delScores, addScores, updateScores } from "@/api/care/scores";
|
|
|
|
-import { listAllHospital } from "@/api/care/hospital";
|
|
|
|
|
|
+import {getScores, delScores, addScores, updateScores} from "@/api/care/scores";
|
|
|
|
+import {listAllHospital} from "@/api/care/hospital";
|
|
import {
|
|
import {
|
|
scorelistApplications
|
|
scorelistApplications
|
|
} from "@/api/care/applications";
|
|
} from "@/api/care/applications";
|
|
-import {ref} from "vue";
|
|
|
|
-const { proxy } = getCurrentInstance();
|
|
|
|
|
|
+import Clock from "@/views/care/scores/clock.vue";
|
|
|
|
+
|
|
|
|
+const {proxy} = getCurrentInstance();
|
|
|
|
+import {ref, reactive, toRefs, getCurrentInstance} from "vue";
|
|
|
|
+import clockIndex from "@/views/care/clocks/index.vue";
|
|
|
|
+const currentComponent = ref(null); // 使用 ref 来管理组件
|
|
|
|
+const componentProps = ref({}); // 使用 ref 来管理传递给组件的属性
|
|
|
|
+const componentKey = ref(0); // 使用 ref 来管理组件的 key
|
|
|
|
|
|
const scoresList = ref([]);
|
|
const scoresList = ref([]);
|
|
const open = ref(false);
|
|
const open = ref(false);
|
|
@@ -133,7 +147,8 @@ const single = ref(true);
|
|
const multiple = ref(true);
|
|
const multiple = ref(true);
|
|
const total = ref(0);
|
|
const total = ref(0);
|
|
const title = ref("");
|
|
const title = ref("");
|
|
-const hispitalList=ref([]);
|
|
|
|
|
|
+const hispitalList = ref([]);
|
|
|
|
+const openClock=ref(false);
|
|
const data = reactive({
|
|
const data = reactive({
|
|
form: {},
|
|
form: {},
|
|
queryParams: {
|
|
queryParams: {
|
|
@@ -144,18 +159,18 @@ const data = reactive({
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
applyId: [
|
|
applyId: [
|
|
- { required: true, message: "护理业务数据id不能为空", trigger: "blur" }
|
|
|
|
|
|
+ {required: true, message: "护理业务数据id不能为空", trigger: "blur"}
|
|
],
|
|
],
|
|
userId: [
|
|
userId: [
|
|
- { required: true, message: "评分人id不能为空", trigger: "blur" }
|
|
|
|
|
|
+ {required: true, message: "评分人id不能为空", trigger: "blur"}
|
|
],
|
|
],
|
|
assess: [
|
|
assess: [
|
|
- { required: true, message: "评价不能为空", trigger: "blur" }
|
|
|
|
|
|
+ {required: true, message: "评价不能为空", trigger: "blur"}
|
|
],
|
|
],
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
-const { queryParams, form, rules } = toRefs(data);
|
|
|
|
|
|
+const {queryParams, form, rules} = toRefs(data);
|
|
|
|
|
|
/** 查询业务评分列表 */
|
|
/** 查询业务评分列表 */
|
|
function getList() {
|
|
function getList() {
|
|
@@ -217,6 +232,21 @@ function handleAdd() {
|
|
title.value = "添加业务评分";
|
|
title.value = "添加业务评分";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function lookClock(row) {
|
|
|
|
+ const _applyId = row.applyId || ids.value
|
|
|
|
+ currentComponent.value = Clock;
|
|
|
|
+
|
|
|
|
+ // 传递apply
|
|
|
|
+ componentProps.value = {
|
|
|
|
+ applyId: _applyId
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ // 更改组件的 key 来强制重新渲染
|
|
|
|
+ componentKey.value += 1;
|
|
|
|
+
|
|
|
|
+ openClock.value=true
|
|
|
|
+}
|
|
|
|
+
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
function handleUpdate(row) {
|
|
function handleUpdate(row) {
|
|
reset();
|
|
reset();
|
|
@@ -252,12 +282,13 @@ function submitForm() {
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
function handleDelete(row) {
|
|
function handleDelete(row) {
|
|
const _scoreIds = row.scoreId || ids.value;
|
|
const _scoreIds = row.scoreId || ids.value;
|
|
- proxy.$modal.confirm('是否确认删除业务评分编号为"' + _scoreIds + '"的数据项?').then(function() {
|
|
|
|
|
|
+ proxy.$modal.confirm('是否确认删除业务评分编号为"' + _scoreIds + '"的数据项?').then(function () {
|
|
return delScores(_scoreIds);
|
|
return delScores(_scoreIds);
|
|
}).then(() => {
|
|
}).then(() => {
|
|
getList();
|
|
getList();
|
|
proxy.$modal.msgSuccess("删除成功");
|
|
proxy.$modal.msgSuccess("删除成功");
|
|
- }).catch(() => {});
|
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
@@ -266,12 +297,14 @@ function handleExport() {
|
|
...queryParams.value
|
|
...queryParams.value
|
|
}, `scores_${new Date().getTime()}.xlsx`)
|
|
}, `scores_${new Date().getTime()}.xlsx`)
|
|
}
|
|
}
|
|
|
|
+
|
|
/** 查询医院列表 */
|
|
/** 查询医院列表 */
|
|
function listHispital() {
|
|
function listHispital() {
|
|
listAllHospital().then(response => {
|
|
listAllHospital().then(response => {
|
|
hispitalList.value = response;
|
|
hispitalList.value = response;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
listHispital();
|
|
listHispital();
|
|
getList();
|
|
getList();
|
|
</script>
|
|
</script>
|