|
@@ -184,6 +184,7 @@ import { magicApi } from "@/utils/database/magic-api-request";
|
|
|
import { Export } from "@/utils/ExportExcel";
|
|
|
import { useDialog } from "@/components/cy/CyDialog/index";
|
|
|
import { useUserStore } from "@/pinia/user-store";
|
|
|
+import { deepClone } from "@/components/fullScreen/utils";
|
|
|
|
|
|
const { CyDateRange, dateRange } = useDateRange({
|
|
|
shortcutsIndex: 1,
|
|
@@ -447,9 +448,11 @@ const executeSearch = () => {
|
|
|
|
|
|
const showMessageDrawer = ref(false);
|
|
|
const basicControl = () => {
|
|
|
+ let val = deepClone(sheet.value,true)
|
|
|
+ initSheetLineData(val)
|
|
|
if (nullPatient()) return;
|
|
|
executePrintVerify({
|
|
|
- sheet: sheet.value,
|
|
|
+ sheet: val,
|
|
|
})
|
|
|
.then(() => {
|
|
|
xcMessage.success("基础质控通过。");
|
|
@@ -461,6 +464,14 @@ const basicControl = () => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+const initSheetLineData = (val) => {
|
|
|
+ val.infAge == '-'?val.infAge = null:false
|
|
|
+ val.ageDays == '-'?val.ageDays = null:false
|
|
|
+ val.newBornWeight1 == '-'?val.newBornWeight1 = null:false
|
|
|
+ val.newBornWeight2 == '-'?val.newBornWeight2 = null:false
|
|
|
+ val.newBornAdmissWeight == '-'?val.newBornAdmissWeight = null:false
|
|
|
+};
|
|
|
+
|
|
|
const forceVerifies = ref([]);
|
|
|
const adviceVerifies = ref([]);
|
|
|
const currentMessageIndex = ref(null);
|
|
@@ -477,6 +488,8 @@ const messageColor = id => {
|
|
|
};
|
|
|
|
|
|
function approveAudit() {
|
|
|
+ let val = deepClone(sheet.value,true)
|
|
|
+ initSheetLineData(val)
|
|
|
if (nullPatient()) {
|
|
|
return;
|
|
|
}
|
|
@@ -490,7 +503,7 @@ function approveAudit() {
|
|
|
currentRow.value.auditState = "APPROVED";
|
|
|
currentRow.value.auditRemark = "审核通过";
|
|
|
currentRow.value.coderNote = value;
|
|
|
- currentRow.value.sheet = sheet.value;
|
|
|
+ currentRow.value.sheet = val;
|
|
|
executeAudit(currentRow.value).then(res => {
|
|
|
xcMessage.success(res);
|
|
|
querySearch();
|