Pārlūkot izejas kodu

门诊电子病历和结算单优化

lihong 2 gadi atpakaļ
vecāks
revīzija
cf7ab22e4d

+ 3 - 0
src/views/medical-insurance/allpatient/SetSheetUpload.vue

@@ -786,6 +786,7 @@ export default {
       dialog: false,
       bmyBz: '',
       patNo: '',
+      bzUpdate: '',
       times: null,
       ledgerSn: null,
     })
@@ -795,6 +796,7 @@ export default {
       xiuGaibmyBzdata.value.dialog = true
       xiuGaibmyBzdata.value.bmyBz = row.bmyBz
       xiuGaibmyBzdata.value.patNo = row.patNo
+      xiuGaibmyBzdata.value.bzUpdate = row.bzUpdate
       xiuGaibmyBzdata.value.times = row.times
       xiuGaibmyBzdata.value.ledgerSn = row.ledgerSn
     }
@@ -803,6 +805,7 @@ export default {
       let updateBmyBzdata = {
         bmyBz: xiuGaibmyBzdata.value.bmyBz,
         patNo: xiuGaibmyBzdata.value.patNo,
+        bzUpdate: xiuGaibmyBzdata.value.bzUpdate,
         times: xiuGaibmyBzdata.value.times,
         ledgerSn: xiuGaibmyBzdata.value.ledgerSn
       }

+ 6 - 3
src/views/mz-emr/MzEmr.vue

@@ -58,8 +58,10 @@ const emrTemplateData = ref<emrTemplateType[]>()
 const emrDivRef = ref<HTMLDivElement>()
 let editor: UseEmrInitReturn;
 
+const selectionStatus = ref(false)
 
 const rowClick = (row: emrTemplateType) => {
+  selectionStatus.value = true
   editor.editor.setEditorMode('free')
   categoryCode.value =row.code
   mzEmrName.value =row.name
@@ -82,9 +84,8 @@ const  mzEmrName = ref<string>('')
 const  parent = ref<string>('')
 
 const saveData = ()=>{
-  console.log('typeFlag.value',typeFlag.value)
-  if(typeFlag.value == 1 || typeFlag.value==3 ){
-     return   ElMessage.error('住院或历史记录不能保存')
+  if(!((typeFlag.value == 0 || typeFlag.value==2)&& selectionStatus.value)){
+     return   ElMessage.error('请选择数据,只有门诊模板和当前才能保存!')
   }
   ElMessageBox.confirm('请确认是否保存', {
     cancelButtonText: '取消',
@@ -223,6 +224,7 @@ const treeData=ref<Tree[]>()
 const typeFlag = ref<number>()
 
 const queryMzEmdrData=(type)=>{
+  selectionStatus.value = false
   typeFlag.value = type
   if(type==0 || type==2){
     modelFlag.value = true;
@@ -296,6 +298,7 @@ const filterNode = (value: string, data: Tree) => {
 }
 
 const handleNodeClick=(node, object, event)=>{
+  selectionStatus.value =true
   editor.editor.setEditorMode('readonly')
   console.log("node",node)
   editor.loadAndSetDocument({