diff --git a/src/api/liswork/micro/index.ts b/src/api/liswork/micro/index.ts index f0d50b4..57790ab 100644 --- a/src/api/liswork/micro/index.ts +++ b/src/api/liswork/micro/index.ts @@ -131,4 +131,12 @@ export function getmediumList(data?: Object) { method: 'get', params: data }) +} +//微生物报告审核 +export function cbebCheck(data?: Object) { + return request({ + url: '/lisworkgerm/check', + method: 'get', + params: data + }) } \ No newline at end of file diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 10bf9a5..2123427 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -286,4 +286,21 @@ aside { width: 3.125rem; } } +} + +.next_box { + display: flex; + align-items: center; + justify-content: space-between; + + .jtIcon { + width: 2.5rem; + height: 2rem; + line-height: 2rem; + font-size: 1rem; + text-align: center; + background-color: #1f6dd3; + color: #fff; + cursor: pointer; + } } \ No newline at end of file diff --git a/src/views/liswork/micro/index.vue b/src/views/liswork/micro/index.vue index b737026..a454a33 100644 --- a/src/views/liswork/micro/index.vue +++ b/src/views/liswork/micro/index.vue @@ -7,8 +7,20 @@ class="compact-form"> - - + +
+
+ + + +
+ +
+ + + +
+
@@ -51,13 +63,14 @@ - + - + @@ -190,7 +203,8 @@ const queryParams = ref({ problemId: 0, days: -1, pageSize: 600, - pageNum: 1 + pageNum: 1, + yhdh: '' }) @@ -757,6 +771,8 @@ const sendMessage = () => { background: #F0F3F8; } + + :deep(.el-tabs--card>.el-tabs__header) { height: 1.875rem !important; margin-bottom: 0px; diff --git a/src/views/liswork/micro/labresult/byj.vue b/src/views/liswork/micro/labresult/byj.vue index 6df14c5..56f939b 100644 --- a/src/views/liswork/micro/labresult/byj.vue +++ b/src/views/liswork/micro/labresult/byj.vue @@ -1,18 +1,21 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/liswork/micro/labresult/cbReport.vue b/src/views/liswork/micro/labresult/cbReport.vue index 5d842b6..3a2f38b 100644 --- a/src/views/liswork/micro/labresult/cbReport.vue +++ b/src/views/liswork/micro/labresult/cbReport.vue @@ -2,24 +2,26 @@
- 初报人:{{ cbInfo?.confirmer }}    报告时间:{{ cbInfo?.confirmdt }}   + 初报人:{{ formatUser(cbInfo?.confirmer) }}    报告时间:{{ cbInfo?.confirmdt + }}  
{{ cbInfo?.jgbz == '2' ? '已初报' : '' }}
初报审核 - 取消审核 + @click="handleCheck(3)">初报审核 + 取消审核 新增 删除 组合项目 + 打印 + 预览
+ @column-drag-end="handleColumnDragEnd" @row-click="cbRowClick"> @@ -62,24 +64,26 @@
- 二报人:{{ erInfo?.confirmer }}    报告时间:{{ erInfo?.confirmdt }}   + 二报人:{{ formatUser(erInfo?.confirmer) }}    报告时间:{{ erInfo?.confirmdt + }}  
{{ erInfo?.jgbz == '2' ? '已二报' : '' }}
二报审核 - 取消审核 + @click="handleCheck(4)">二报审核 + 取消审核 新增 删除 组合项目 + 打印 + 预览
+ @column-drag-end="handleColumnDragEnd" @row-click="erbRowClick"> @@ -129,25 +133,34 @@ + + + + + + + + +
+ diff --git a/src/views/liswork/work/components/labresult.vue b/src/views/liswork/work/components/labresult.vue index e3345fd..001574e 100644 --- a/src/views/liswork/work/components/labresult.vue +++ b/src/views/liswork/work/components/labresult.vue @@ -76,82 +76,13 @@ - - - - - - - - - -
- 确认 - 取消 -
-
-
-
- + - -
{{ warningMsgdata }}
- - - - 系统通知 - 电话通知 - - - - - -
- 确认 - 取消 -
-
-
-
- + - -
-

{{ reasonText }}

- - - - -
+ -
- 确认 - 取消 -
-
@@ -261,7 +192,6 @@
- @@ -280,6 +210,9 @@ import { classCom } from '@/utils/classCom' import CustomTable from '@/components/elTable/index.vue' import dayjs from 'dayjs'; import emitter from "@/utils/mitt"; +import CheckUser from "./CheckUser.vue"; +import Unconfirmlog from './unconfirmlog.vue'; +import UploadWarning from "./uploadwarning.vue"; import { useCommonStore } from "@/store/modules/commonStore"; import ContextMenu from "@/components/contextMenu/index.vue"; import ViewBackup from "./viewBackup.vue"; @@ -785,53 +718,12 @@ const beforeEnter = (row) => { lastResult.value = res.data || {} }) }; - - - -const warningForm = ref({ - userId: '', - phone: '', - uploadTp: '1' -}) - - -const uncheckForm = ref({ - reason: '', - yhdh: '', - mm: '', -}) - -const wrules = ref({ - userId: [{ required: true, message: "请输入用户工号", trigger: "blur" }, - { min: 3, max: 20, message: "长度在 3 到 20 个字符", trigger: "blur" } - ], - phone: [{ required: true, message: "请输入联系电话", trigger: "blur" }, - { min: 6, max: 20, message: "长度在 6 到 20 个字符", trigger: "blur" } - ] -}) - -const unCheckshow = ref(false); -const inputValue = ref(''); const reasonText = ref(''); const warningMsgdata = ref(''); -const showuploadwarning = ref(false); const checkuserid = ref() const checkShow = ref(false); -const ruleForm = ref({ - yhdh: '', - mm: '' -}); - -const rules = ref( - { - yhdh: [{ required: true, message: "请输入用户工号", trigger: "blur" }, - { min: 3, max: 20, message: "长度在 3 到 20 个字符", trigger: "blur" } - ], - mm: [{ required: true, message: "请输入密码", trigger: "blur" }, - { min: 6, max: 20, message: "长度在 6 到 20 个字符", trigger: "blur" } - ] - } -); +const checktitle = ref(''); +const checkUserRef = ref(); const csjgRef = ref(); @@ -839,9 +731,32 @@ const itemDictRef = ref(); // DictInput组件引用 const tableRef = ref(); - +const runnextstepname = ref(-1) const handleCheck = (checkType) => { - // yhdh = checkuserid.value + runnextstepname.value = checkType + tableKey.value.problemId = 0; + // tableKey.value.yhdh = checkuserid.value + if (!tableKey.value.yhdh) { + checktitle.value = '审核人工号密码验证' + checkUserRef.value.open() + } else { + proceedCheck(checkType) + } +}; + +const handleCheckUserConfirm = (info) => { + checkuser({ yhdh: info.yhdh, mm: info.mm }).then(response => { + if (response.code == 0) { + emits('update:tableKey', { + ...tableKey.value, + yhdh: info.yhdh + }); + proceedCheck(runnextstepname.value) + } + }) +} + +const proceedCheck = (checkType) => { switch (checkType) { case 1: // 初审 check1({ ...tableKey.value, yhdh: props.labPat.yhdh }).then(res => { @@ -859,89 +774,33 @@ const handleCheck = (checkType) => { default: break; } -}; - - - - +} +const uploadwarningRef = ref(); const shHandleCheck = () => { check2({ ...props.tableKey, yhdh: props.labPat.yhdh }).then(res => { emits("changeStatus", props.labPat); if (res.code == "4" && res.problemId === 4) { tableKey.value.problemId = res.problemId; warningMsgdata.value = res.msg; - showuploadwarning.value = true; + uploadwarningRef.value.open(); } }) }; -const warningFormRef = ref(null); - -const warningResetForm = () => { - warningForm.value.userId = ''; - warningForm.value.phone = ''; - warningForm.value.uploadTp = '1'; - warningFormRef.value.resetFields(); - showuploadwarning.value = false; -}; -// 处理危急值登记 -const handleWarningSuccess = async () => { - if (warningForm.value.uploadTp == 2) { - const valid = await warningFormRef.value.validate().catch(() => { }); - if (!valid) return false; - } - reglimit({ ...tableKey.value, qrr: warningForm.value.userId, tzfs: warningForm.value.uploadTp, phone: warningForm.value.phone }).then(response => { - showuploadwarning.value = false; - if (response.code == 0) { - shHandleCheck(); - } - if (response.code == 4) { - ElMessageBox.confirm(response.msg, '系统提示', { confirmButtonText: '是', cancelButtonText: '否', type: 'warning' }).then(() => { - tableKey.value.problemId = tableKey.value.problemId + 1; - handleWarningSuccess(); - }).catch(() => { - shHandleCheck(); - }); - } - }) -}; +const unconfirmlogRef = ref(); const unShHandle = () => { uncheck2({ ...tableKey.value, yhdh: props.labPat.yhdh }).then(res => { if (res.code == "4") { tableKey.value.problemId = res.problemId; reasonText.value = res.msg; - unCheckshow.value = true; + unconfirmlogRef.value.open(); } emits("changeStatus", props.labPat); }) }; -const uncheckFormRef = ref(); -// 取消审核原因 -const unconfirmlogConfirm = async () => { - if (tableKey.value.problemId == 4) { - if (!uncheckForm.value.inputValue) return ElMessage.warning("请输入操作原因") - } else if (tableKey.value.problemId == 6) { - const valid = await uncheckFormRef.value.validate().catch(() => { }); - if (!valid) return false; - } - unconfirmlog({ ...tableKey.value, ...uncheckForm.value }).then(response => { - if (response.code == "0") { - unCheckshow.value = false; - unShHandle(); - } - }) -}; - -const unconfirmlogCancel = () => { - unCheckshow.value = false; - uncheckForm.value.reason = ''; - uncheckForm.value.yhdh = ''; - uncheckForm.value.mm = ''; - uncheckFormRef.value.resetFields(); -} const ruleFormRef = ref(null); @@ -963,12 +822,7 @@ const submitForm = () => { } -const resetForm = () => { - checkShow.value = false; - ruleForm.value.userId = ''; - ruleForm.value.mm = ''; - ruleFormRef.value.resetFields(); -}; + // 2. 打开项目选择弹窗 const openItemDictDialog = () => { itemDictRef.value.openDictSelector(); @@ -1022,7 +876,8 @@ const addRowFromDict = async (rowData) => { const emits = defineEmits([ 'fetchLabResults', 'changeStatus', - 'previewHandle' + 'previewHandle', + 'update:tableKey' ]); const csjgTableData = ref([]); diff --git a/src/views/liswork/work/components/unconfirmlog.vue b/src/views/liswork/work/components/unconfirmlog.vue index 69d5a83..26db032 100644 --- a/src/views/liswork/work/components/unconfirmlog.vue +++ b/src/views/liswork/work/components/unconfirmlog.vue @@ -1,186 +1,113 @@ - - + diff --git a/src/views/liswork/work/components/uploadwarning.vue b/src/views/liswork/work/components/uploadwarning.vue index 93ef375..89e2974 100644 --- a/src/views/liswork/work/components/uploadwarning.vue +++ b/src/views/liswork/work/components/uploadwarning.vue @@ -1,179 +1,113 @@ -