|
@@ -118,6 +118,14 @@
|
|
|
>
|
|
|
查看操作日志
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ icon="View"
|
|
|
+ type="primary"
|
|
|
+ @click="archiveBaList"
|
|
|
+ style="margin-left: 12px"
|
|
|
+ >
|
|
|
+ 批量签收
|
|
|
+ </el-button>
|
|
|
</header>
|
|
|
<div class="layout_main layout_container layout-horizontal">
|
|
|
<aside
|
|
@@ -129,7 +137,12 @@
|
|
|
highlight-current-row
|
|
|
:row-class-name="differSignedRows"
|
|
|
@row-click="fetchSheetInfo"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
>
|
|
|
+ <el-table-column
|
|
|
+ type="selection"
|
|
|
+ width="55">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="姓名" width="70">
|
|
|
<template #default="scope">
|
|
|
<img
|
|
@@ -734,6 +747,7 @@ import {
|
|
|
executeAdvanceSearch,
|
|
|
executePrintVerify,
|
|
|
executeSaveVerify,
|
|
|
+ executeSaveVerifyList,
|
|
|
executeUnArchiveBa,
|
|
|
getAllDictionary,
|
|
|
getAllWards,
|
|
@@ -838,6 +852,11 @@ const searchPatient = () => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+const multipleSelection = ref(null);
|
|
|
+const handleSelectionChange = (val) => {
|
|
|
+ multipleSelection.value = val;
|
|
|
+};
|
|
|
+
|
|
|
const dateRange = ref([]);
|
|
|
const currentSideRow = ref({});
|
|
|
const fetchSheetInfo = row => {
|
|
@@ -1335,6 +1354,49 @@ const archiveBa = () => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+const archiveBaList = () => {
|
|
|
+
|
|
|
+ if (multipleSelection.value.length == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ console.log("optionList",multipleSelection.value)
|
|
|
+ let optionList = multipleSelection.value.map(element => {
|
|
|
+ // let val = deepClone(element.value,true)
|
|
|
+ // initSheetLineData(val)
|
|
|
+ console.log("option",{
|
|
|
+ bah: element.bah,
|
|
|
+ admissTimes: element.times,
|
|
|
+ })
|
|
|
+ return {
|
|
|
+ bah: element.bah,
|
|
|
+ admissTimes: element.times,
|
|
|
+ };
|
|
|
+ });
|
|
|
+
|
|
|
+ console.log("optionList",optionList)
|
|
|
+ executeSaveVerifyList(optionList)
|
|
|
+ .then(() => {
|
|
|
+ // currentSideRow.value.fileStatus = 1;
|
|
|
+ ElMessage({
|
|
|
+ message: "操作成功。",
|
|
|
+ type: "success",
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true,
|
|
|
+ });
|
|
|
+ searchPatient()
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ ElMessage({
|
|
|
+ message: "操作失败,请稍后重试。",
|
|
|
+ type: "error",
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true,
|
|
|
+ });
|
|
|
+ // forceVerifies.value = e.data;
|
|
|
+ // showMessageDrawer.value = true;
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
const unArchiveBa = () => {
|
|
|
let val = deepClone(sheet.value,true)
|
|
|
initSheetLineData(val)
|