|  | @ -1,7 +1,7 @@ | 
		
	
		
			
				|  |  | <template> |  |  | <template> | 
		
	
		
			
				|  |  |   <div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always"> |  |  |   <div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always"> | 
		
	
		
			
				|  |  |     <div v-if="!onlyRead && isPlatform" class="btnBox"> |  |  |     <div v-if="!onlyRead && isPlatform" class="btnBox"> | 
		
	
		
			
				|  |  |       <el-button v-print="'#mraFunc'" size="small" @click="handleSaveTable">打印</el-button> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       <el-button v-print="print" size="small" @click="handlePrint">打印</el-button> | 
		
	
		
			
				|  |  |       <el-button type="primary" size="small" @click="handleSaveTable">保存</el-button> |  |  |       <el-button type="primary" size="small" @click="handleSaveTable">保存</el-button> | 
		
	
		
			
				|  |  |       <el-button type="danger" size="small" @click="formDelete">删除</el-button> |  |  |       <el-button type="danger" size="small" @click="formDelete">删除</el-button> | 
		
	
		
			
				|  |  |     </div> |  |  |     </div> | 
		
	
	
		
			
				|  | @ -60,14 +60,14 @@ | 
		
	
		
			
				|  |  |           <div> |  |  |           <div> | 
		
	
		
			
				|  |  |             <div class="flex"> |  |  |             <div class="flex"> | 
		
	
		
			
				|  |  |               患者签字: |  |  |               患者签字: | 
		
	
		
			
				|  |  |               <div style="margin-left: 10px" @click="signClick(12)"> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |               <div v-if="printHidden" style="margin-left: 10px" @click="signClick(12)"> | 
		
	
		
			
				|  |  |                 <img v-if="!fundusDocSign" :src="require('@/assets/img/signature.png')" alt=""> |  |  |                 <img v-if="!fundusDocSign" :src="require('@/assets/img/signature.png')" alt=""> | 
		
	
		
			
				|  |  |                 <img v-else style="width: 80px;height: 40px;" :src="fundusDocSign"> |  |  |                 <img v-else style="width: 80px;height: 40px;" :src="fundusDocSign"> | 
		
	
		
			
				|  |  |               </div> |  |  |               </div> | 
		
	
		
			
				|  |  |             </div> |  |  |             </div> | 
		
	
		
			
				|  |  |             <div class="flex"> |  |  |             <div class="flex"> | 
		
	
		
			
				|  |  |               <span>或授权亲属签字(关系):</span> |  |  |               <span>或授权亲属签字(关系):</span> | 
		
	
		
			
				|  |  |               <div style="margin-left: 10px" @click="signClick(13)"> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |               <div v-if="printHidden" style="margin-left: 10px" @click="signClick(13)"> | 
		
	
		
			
				|  |  |                 <img v-if="!kinSign" :src="require('@/assets/img/signature.png')" alt=""> |  |  |                 <img v-if="!kinSign" :src="require('@/assets/img/signature.png')" alt=""> | 
		
	
		
			
				|  |  |                 <img v-else style="width: 80px;height: 40px;" :src="kinSign"> |  |  |                 <img v-else style="width: 80px;height: 40px;" :src="kinSign"> | 
		
	
		
			
				|  |  |               </div> |  |  |               </div> | 
		
	
	
		
			
				|  | @ -121,7 +121,7 @@ | 
		
	
		
			
				|  |  |             <div>检查前药物过敏试验情况:</div> |  |  |             <div>检查前药物过敏试验情况:</div> | 
		
	
		
			
				|  |  |             <div class="flex"> |  |  |             <div class="flex"> | 
		
	
		
			
				|  |  |               执行药敏试验者签字: |  |  |               执行药敏试验者签字: | 
		
	
		
			
				|  |  |               <div style="margin:0 10px" @click="signClick(14)"> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |               <div v-if="printHidden" style="margin:0 10px" @click="signClick(14)"> | 
		
	
		
			
				|  |  |                 <img v-if="!performerSign" :src="require('@/assets/img/signature.png')" alt=""> |  |  |                 <img v-if="!performerSign" :src="require('@/assets/img/signature.png')" alt=""> | 
		
	
		
			
				|  |  |                 <img v-else style="width: 80px;height: 40px;" :src="performerSign"> |  |  |                 <img v-else style="width: 80px;height: 40px;" :src="performerSign"> | 
		
	
		
			
				|  |  |               </div> |  |  |               </div> | 
		
	
	
		
			
				|  | @ -129,7 +129,7 @@ | 
		
	
		
			
				|  |  |             </div> |  |  |             </div> | 
		
	
		
			
				|  |  |             <div class="flex"> |  |  |             <div class="flex"> | 
		
	
		
			
				|  |  |               核对药敏实验者签字: |  |  |               核对药敏实验者签字: | 
		
	
		
			
				|  |  |               <div style="margin:0 10px" @click="signClick(15)"> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |               <div v-if="printHidden" style="margin:0 10px" @click="signClick(15)"> | 
		
	
		
			
				|  |  |                 <img v-if="!checkerSign" :src="require('@/assets/img/signature.png')" alt=""> |  |  |                 <img v-if="!checkerSign" :src="require('@/assets/img/signature.png')" alt=""> | 
		
	
		
			
				|  |  |                 <img v-else style="width: 80px;height: 40px;" :src="checkerSign"> |  |  |                 <img v-else style="width: 80px;height: 40px;" :src="checkerSign"> | 
		
	
		
			
				|  |  |               </div> |  |  |               </div> | 
		
	
	
		
			
				|  | @ -162,7 +162,13 @@ export default { | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   data() { |  |  |   data() { | 
		
	
		
			
				|  |  |     return { |  |  |     return { | 
		
	
		
			
				|  |  |       origin: '', |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       printHidden: true, | 
		
	
		
			
				|  |  |  |  |  |       print: { | 
		
	
		
			
				|  |  |  |  |  |         id: 'mraFunc', | 
		
	
		
			
				|  |  |  |  |  |         closeCallback: () => { | 
		
	
		
			
				|  |  |  |  |  |           this.printHidden = true | 
		
	
		
			
				|  |  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |  |       }, | 
		
	
		
			
				|  |  |       formData: { |  |  |       formData: { | 
		
	
		
			
				|  |  |         patientName: '', |  |  |         patientName: '', | 
		
	
		
			
				|  |  |         patientAge: '', |  |  |         patientAge: '', | 
		
	
	
		
			
				|  | @ -238,20 +244,48 @@ export default { | 
		
	
		
			
				|  |  |       return this.$store.getters.checkerSign |  |  |       return this.$store.getters.checkerSign | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |  |  |  |   watch: { | 
		
	
		
			
				|  |  |  |  |  |     caseId(val) { | 
		
	
		
			
				|  |  |  |  |  |       if (val) { | 
		
	
		
			
				|  |  |  |  |  |         this.getOrderDetail() | 
		
	
		
			
				|  |  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |  |   }, | 
		
	
		
			
				|  |  |   created() { |  |  |   created() { | 
		
	
		
			
				|  |  |     this.origin = JSON.parse(JSON.stringify(this.formData)) |  |  |  | 
		
	
		
			
				|  |  |     // 患者信息带入 |  |  |  | 
		
	
		
			
				|  |  |     this.formData.patientName = this.patientDetail.patientName |  |  |  | 
		
	
		
			
				|  |  |     this.formData.patientAge = this.patientDetail.patientAge |  |  |  | 
		
	
		
			
				|  |  |     this.formData.patientSex = this.patientDetail.patientSex |  |  |  | 
		
	
		
			
				|  |  |     this.formData.patientId = this.patientDetail.patientId |  |  |  | 
		
	
		
			
				|  |  |     const userData = JSON.parse(window.sessionStorage.getItem('qg-userData')) |  |  |  | 
		
	
		
			
				|  |  |     this.formData.doctorSign = userData.signImgBase |  |  |  | 
		
	
		
			
				|  |  |     this.$store.commit('initPlugin') |  |  |     this.$store.commit('initPlugin') | 
		
	
		
			
				|  |  |  |  |  |     this.getOrderDetail() | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   methods: { |  |  |   methods: { | 
		
	
		
			
				|  |  |  |  |  |     handlePrint() { | 
		
	
		
			
				|  |  |  |  |  |       this.printHidden = false | 
		
	
		
			
				|  |  |  |  |  |       this.handleSaveTable() | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |     handleSaveTable() { |  |  |     handleSaveTable() { | 
		
	
		
			
				|  |  |       this.$emit('handleSaveTable') |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       this.formData.jzNumber = window.sessionStorage.getItem('jzNumber') || this.$route.query.jzNumber || '' | 
		
	
		
			
				|  |  |  |  |  |       this.$http.post('/mzbl/saveMzblYdxgzyzqtys', { | 
		
	
		
			
				|  |  |  |  |  |         caseId: this.caseId, | 
		
	
		
			
				|  |  |  |  |  |         ...this.formData | 
		
	
		
			
				|  |  |  |  |  |       }).then(() => { | 
		
	
		
			
				|  |  |  |  |  |         this.$emit('handleSaveTable') | 
		
	
		
			
				|  |  |  |  |  |       }) | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |  |  |  |     getOrderDetail() { | 
		
	
		
			
				|  |  |  |  |  |       this.$http.get('/mzbl/getMzblYdxgzyzqtysInfo', { params: { | 
		
	
		
			
				|  |  |  |  |  |         caseId: this.caseId, | 
		
	
		
			
				|  |  |  |  |  |         patientId: this.patientDetail.patientId | 
		
	
		
			
				|  |  |  |  |  |       }}).then(data => { | 
		
	
		
			
				|  |  |  |  |  |         const detail = data.data.data | 
		
	
		
			
				|  |  |  |  |  |         this.formData = { ...detail } | 
		
	
		
			
				|  |  |  |  |  |         const userData = JSON.parse(window.sessionStorage.getItem('qg-userData')) | 
		
	
		
			
				|  |  |  |  |  |         this.formData.doctorSign = userData.signImgBase | 
		
	
		
			
				|  |  |  |  |  |         if (!detail.jzNumber) { | 
		
	
		
			
				|  |  |  |  |  |           // 患者信息带入 | 
		
	
		
			
				|  |  |  |  |  |           this.formData.patientName = this.patientDetail.patientName | 
		
	
		
			
				|  |  |  |  |  |           this.formData.patientAge = this.patientDetail.patientAge | 
		
	
		
			
				|  |  |  |  |  |           this.formData.patientSex = this.patientDetail.patientSex | 
		
	
		
			
				|  |  |  |  |  |           this.formData.patientId = this.patientDetail.patientId | 
		
	
		
			
				|  |  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |  |       }) | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     signClick(index) { |  |  |     signClick(index) { | 
		
	
		
			
				|  |  |       this.$store.commit('beginSign', index) |  |  |       this.$store.commit('beginSign', index) | 
		
	
	
		
			
				|  | 
 |