Explorar el Código

fix: 修复透析病历bug

fan hace 2 años
padre
commit
3b5603054c

+ 1 - 1
src/views/biz/archives/detail/data.ts

@@ -5,7 +5,7 @@ export const BasicTab = [
   { key: 'patientBasic2', value: 3, title: '透析记录' },
   { key: 'patientBasic3', value: 4, title: '医嘱记录' },
   { key: 'patrolward', value: 5, title: '查房记录' },
-  { key: 'patientBasic5', value: 6, title: '诊断记录' },
+  { key: 'DiagnosisHistory', value: 6, title: '诊断记录' },
   { key: 'patientBasic6', value: 7, title: '化验项' },
   { key: 'medicalDocuments', value: 8, title: '医疗文书' },
   { key: 'patientReturn', value: 9, title: '转归' },

+ 4 - 2
src/views/biz/archives/diagnosisHistory/FormModal.vue

@@ -281,8 +281,10 @@
     // 首次透析方式
     if (type.value == DiagnosisEnum.firstDialysis_field) {
       resData.firstDialysisType = data.content[0]?.contentType;
-      resData.firstDialysisDate = dayjs().format('YYYY-MM-DD');
-      resData.recordTime = dayjs(data.content[0]?.recordTime).format('YYYY-MM-DD');
+      resData.firstDialysisDate = dayjs(data.content[0]?.recordTime || Date.now()).format(
+        'YYYY-MM-DD',
+      );
+      resData.recordTime = dayjs(data.updateTime || Date.now()).format('YYYY-MM-DD');
     }
     await setFieldsValue({
       ...resData,

+ 1 - 1
src/views/biz/archives/diagnosisHistory/index.vue

@@ -356,7 +356,7 @@
       iconType: 'warning',
       onOk: async () => {
         await archivesDiagnosisHistoryMultiRemoveByIds([id]);
-        createMessage.success('删除成功');
+        createMessage.success('删除成功');
         await getData();
       },
     });

+ 1 - 1
src/views/biz/archives/medicalDocuments/FormModal.vue

@@ -29,7 +29,7 @@
   const emit = defineEmits(['success', 'register']);
 
   const getTitle = computed(() => (!unref(isUpdate) ? '新增文书' : '编辑文书'));
-  const width = '35%';
+  const width = '600px';
   const isUpdate = ref(false);
   const rowId = ref();
   const patientBasicId = ref();

+ 1 - 1
src/views/biz/archives/medicalDocuments/index.vue

@@ -160,7 +160,7 @@
       iconType: 'warning',
       onOk: async () => {
         await archivesMedicalDocumentsRemove([data.id]);
-        createMessage.success('删除成功');
+        createMessage.success('删除成功');
         await getData();
         if (listData.value.length) {
           await callItemClick(listData.value[0]);

+ 4 - 0
src/views/biz/archives/patientReturn/index.vue

@@ -9,6 +9,10 @@
     </div>
     <BasicTable @register="registerTable">
       <template #bodyCell="{ column, record }">
+        <template v-if="column.key === 'updatorName'">
+          <img :src="record.updateAvatar" class="table-avatar" />
+          {{ record.updatorName }}
+        </template>
         <template v-if="column.key === 'type'">
           {{ formatDictValue(bizDictOptions.type, record.type) }}
         </template>

+ 4 - 0
src/views/biz/archives/patrolward/index.vue

@@ -10,6 +10,10 @@
     </div>
     <BasicTable @register="registerTable">
       <template #bodyCell="{ column, record }">
+        <template v-if="column.key === 'updatorName'">
+          <img :src="record.updateAvatar" class="table-avatar" />
+          {{ record.updatorName }}
+        </template>
         <template v-if="column.key === 'action'">
           <TableAction
             :actions="[

+ 2 - 2
src/views/biz/archives/vascularAccess/ViewDrawerComplication.vue

@@ -185,9 +185,9 @@
     if (res) {
       tableData.value.splice(index, 1);
       setTableData(tableData.value);
-      createMessage.success('删除成功');
+      createMessage.success('删除成功!');
     } else {
-      createMessage.error('删除失败');
+      createMessage.error('删除失败!');
     }
   }
   async function handleSave(record: EditRecordRow) {