| 
					
				 | 
			
			
				@@ -5,14 +5,17 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <iframe :src="rationalUse.ShowUrl"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <template #footer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-button type="danger" @click="dialog = false">close</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-button type="primary" @click="continueToSubmit">继续提交</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </xc-dialog-v2> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script setup name='RationalDrugUseWindow'> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import {rationalUseOfMedicine} from "@/api/heliyongyao/rational-use"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import {auditingInterface, rationalUseOfMedicine} from "@/api/heliyongyao/rational-use"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import XcDialogV2 from "@/components/xiao-chan/dialog/XcDialogV2.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import {xcMessage} from "@/utils/xiaochan-element-plus"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import {stringIsBlank} from "@/utils/blank-utils"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const emit = defineEmits(['submit']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -29,9 +32,21 @@ const check = async (patNo, times) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   return true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const continueToSubmit = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  emit('submit') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  dialog = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const continueToSubmit = async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let temp = await auditingInterface(rationalUse.getResultUrl) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (temp.success && temp.resultcode === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 审核通过 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    xcMessage.success(temp.sh_msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    emit('submit') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    dialog = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } else if (temp.success && temp.resultcode === 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 审核不通过 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    xcMessage.error(temp.sh_msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } else if (temp.resultcode === 0 && !temp.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 待审核中 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    xcMessage.error('请点击继续保存后,等待审核完成,点击继续提交。'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 defineExpose({ 
			 |