|  | @@ -3,7 +3,7 @@
 | 
	
		
			
				|  |  |      <el-header height="35px">
 | 
	
		
			
				|  |  |        <el-button type="success" icon="el-icon-refresh-right" @click="rcvrcalcost"> 费用接收重算 </el-button>
 | 
	
		
			
				|  |  |        <el-button type="primary" icon="el-icon-refresh-left" @click="showConventions"> 撤销检验项目 </el-button>
 | 
	
		
			
				|  |  | -      <el-button type="success" icon="el-icon-time" @click="fetchActOrders(1)">出院结算</el-button>
 | 
	
		
			
				|  |  | +      <el-button type="success" icon="el-icon-time" @click="fetchActOrders(false)">出院结算</el-button>
 | 
	
		
			
				|  |  |        <el-button type="info" icon="el-icon-video-pause" @click="selectZjdzTime">中间断账</el-button>
 | 
	
		
			
				|  |  |        <el-button type="warning" icon="el-icon-odometer" :disabled="!isAdmin" @click="cancelDismiss">取消出院结算</el-button>
 | 
	
		
			
				|  |  |        <el-button v-if="isKqk" type="danger" icon="el-icon-tickets" @click="makeDismissOrder">生成出院医嘱</el-button>
 | 
	
	
		
			
				|  | @@ -296,17 +296,13 @@ export default {
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |          .then(() => {
 | 
	
		
			
				|  |  |            showZjdzDate.value = false
 | 
	
		
			
				|  |  | -          fetchActOrders(2)
 | 
	
		
			
				|  |  | +          fetchActOrders(true)
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          .catch(() => {})
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      const dismissBtnText = computed(() => {
 | 
	
		
			
				|  |  | -      if (patient.value.dismissFlag) {
 | 
	
		
			
				|  |  | -        return patient.value.dismissFlag === 1 ? '出院结算' : '中间断账'
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  | -        return ''
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | +      return patient.value.midSetl ? '中间断账' : '出院结算'
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |      const dismissCalMsg = ref('')
 | 
	
		
			
				|  |  |      const actOrders = ref([])
 | 
	
	
		
			
				|  | @@ -317,9 +313,9 @@ export default {
 | 
	
		
			
				|  |  |        dismissCalMsg.value = ''
 | 
	
		
			
				|  |  |        showActOrders.value = false
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    const fetchActOrders = (flag) => {
 | 
	
		
			
				|  |  | +    const fetchActOrders = (midSetl) => {
 | 
	
		
			
				|  |  |        if (nullPatient()) return
 | 
	
		
			
				|  |  | -      patient.value.dismissFlag = flag
 | 
	
		
			
				|  |  | +      patient.value.midSetl = midSetl
 | 
	
		
			
				|  |  |        getActOrders(patient.value.inpatientNo, patient.value.admissTimes).then((res) => {
 | 
	
		
			
				|  |  |          actOrders.value = res
 | 
	
		
			
				|  |  |          if (res.length > 0) {
 | 
	
	
		
			
				|  | @@ -394,7 +390,7 @@ export default {
 | 
	
		
			
				|  |  |          bedNo: patient.value.bedNo,
 | 
	
		
			
				|  |  |          deptCode: patient.value.admissDept,
 | 
	
		
			
				|  |  |          wardCode: patient.value.admissWard,
 | 
	
		
			
				|  |  | -        flag: patient.value.dismissFlag,
 | 
	
		
			
				|  |  | +        midSetl: patient.value.midSetl,
 | 
	
		
			
				|  |  |          zjdzDatetime: patient.value.zjdzDatetime,
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        selfPayDismiss(param).then(() => {
 | 
	
	
		
			
				|  | @@ -404,8 +400,6 @@ export default {
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      const yibaoDismiss = () => {
 | 
	
		
			
				|  |  | -      patient.value.icdCodes = mkIcdCodes(diags.yb)
 | 
	
		
			
				|  |  | -      patient.value.icdTexts = mkIcdTexts(diags.yb)
 | 
	
		
			
				|  |  |        dischargeProcessing(patient.value).then(() => {
 | 
	
		
			
				|  |  |          ElMessageBox.alert(dismissBtnText.value + '成功。', '提示', {
 | 
	
		
			
				|  |  |            type: 'success',
 | 
	
	
		
			
				|  | @@ -657,21 +651,6 @@ function getOrderDetailStatus(val) {
 | 
	
		
			
				|  |  |  function getCxFlag(val) {
 | 
	
		
			
				|  |  |    return val === '1' ? '<p style="color: orangered;">是</p>' : '<p style="color:green">否</p>'
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -function mkIcdCodes(diags) {
 | 
	
		
			
				|  |  | -  let icdCodes = ''
 | 
	
		
			
				|  |  | -  diags.forEach((item) => {
 | 
	
		
			
				|  |  | -    icdCodes = icdCodes + item.disDiag + '^'
 | 
	
		
			
				|  |  | -  })
 | 
	
		
			
				|  |  | -  return icdCodes
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -function mkIcdTexts(diags) {
 | 
	
		
			
				|  |  | -  let icdTexts = ''
 | 
	
		
			
				|  |  | -  diags.forEach((item) => {
 | 
	
		
			
				|  |  | -    icdTexts = icdTexts + item.disDiagComment + '^'
 | 
	
		
			
				|  |  | -  })
 | 
	
		
			
				|  |  | -  return icdTexts
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <style scoped>
 |