|  | @@ -1,8 +1,65 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  | +  <page-layer>
 | 
	
		
			
				|  |  | +    <template #header>
 | 
	
		
			
				|  |  | +      <el-input v-model="patNo" style="width: 120px"/>
 | 
	
		
			
				|  |  | +      <el-button type="primary" @click="queryData">查询</el-button>
 | 
	
		
			
				|  |  | +      <el-button type="success" @click="recovery" :disabled="!rowData.id">恢复</el-button>
 | 
	
		
			
				|  |  | +    </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    <template #aside>
 | 
	
		
			
				|  |  | +      <xc-table :local-data="deleteData"
 | 
	
		
			
				|  |  | +                :height="200"
 | 
	
		
			
				|  |  | +                @rowClick="rowClick"
 | 
	
		
			
				|  |  | +                layout="total,prev, pager, next">
 | 
	
		
			
				|  |  | +        <el-table-column label="名称" prop="emrName"/>
 | 
	
		
			
				|  |  | +        <el-table-column label="创建时间" prop="createDate">
 | 
	
		
			
				|  |  | +          <template #default="{row}">
 | 
	
		
			
				|  |  | +            <span v-html="huanHangXianShi(row.createDate)"/>
 | 
	
		
			
				|  |  | +          </template>
 | 
	
		
			
				|  |  | +        </el-table-column>
 | 
	
		
			
				|  |  | +      </xc-table>
 | 
	
		
			
				|  |  | +    </template>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <template #main>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    </template>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  </page-layer>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script setup name='ResumeMedicalRecords'>
 | 
	
		
			
				|  |  | +import {getDeleteMedicalRecord, resumeMedicalRecords} from "@/api/zhu-yuan-yi-sheng/emr-patient";
 | 
	
		
			
				|  |  | +import PageLayer from "@/layout/PageLayer.vue";
 | 
	
		
			
				|  |  | +import {huanZheXinXi} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
 | 
	
		
			
				|  |  | +import XcTable from "@/components/xiao-chan/xc-table/XcTable.vue";
 | 
	
		
			
				|  |  | +import {huanHangXianShi} from "@/utils/date";
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const deleteData = ref([])
 | 
	
		
			
				|  |  | +const patNo = ref('')
 | 
	
		
			
				|  |  | +const rowData = ref({})
 | 
	
		
			
				|  |  | +const queryData = () => {
 | 
	
		
			
				|  |  | +  if (!patNo.value) return
 | 
	
		
			
				|  |  | +  getDeleteMedicalRecord(patNo.value).then((res) => {
 | 
	
		
			
				|  |  | +    deleteData.value = res
 | 
	
		
			
				|  |  | +  })
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const recovery = () => {
 | 
	
		
			
				|  |  | +  resumeMedicalRecords(rowData.value.emrDocumentId).then((res) => {
 | 
	
		
			
				|  |  | +    console.log(res)
 | 
	
		
			
				|  |  | +  })
 | 
	
		
			
				|  |  | +  console.log(rowData.value)
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const rowClick = (val) => {
 | 
	
		
			
				|  |  | +  rowData.value = val
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +watch(() => huanZheXinXi.value.inpatientNo, () => {
 | 
	
		
			
				|  |  | +  patNo.value = huanZheXinXi.value.inpatientNo
 | 
	
		
			
				|  |  | +  queryData()
 | 
	
		
			
				|  |  | +})
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  
 |