|  | @@ -164,23 +164,6 @@
 | 
	
		
			
				|  |  |                    </span>
 | 
	
		
			
				|  |  |                  </template>
 | 
	
		
			
				|  |  |                </el-table-column>
 | 
	
		
			
				|  |  | -              <el-table-column v-if="quanXian.indexOf(1) > -1 || quanXian.indexOf(35) > -1" label="撤销退费">
 | 
	
		
			
				|  |  | -                <template #default="scope">
 | 
	
		
			
				|  |  | -                  <el-popconfirm
 | 
	
		
			
				|  |  | -                      v-if="scope.row.oriDetailSn !== -1 && scope.row.transFlagYb === '0' && (quanXian.indexOf(1) > -1 || quanXian.indexOf(35) > -1)"
 | 
	
		
			
				|  |  | -                      cancel-button-text="取消"
 | 
	
		
			
				|  |  | -                      confirm-button-text="确认"
 | 
	
		
			
				|  |  | -                      icon="Info"
 | 
	
		
			
				|  |  | -                      iconColor="red"
 | 
	
		
			
				|  |  | -                      title="是否删除该数据"
 | 
	
		
			
				|  |  | -                      @confirm="cheXiaoTuiFeiClick(scope.$index, scope.row)"
 | 
	
		
			
				|  |  | -                  >
 | 
	
		
			
				|  |  | -                    <template #reference>
 | 
	
		
			
				|  |  | -                      <el-button type="danger">撤销</el-button>
 | 
	
		
			
				|  |  | -                    </template>
 | 
	
		
			
				|  |  | -                  </el-popconfirm>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | -              </el-table-column>
 | 
	
		
			
				|  |  |              </el-table>
 | 
	
		
			
				|  |  |              <el-pagination
 | 
	
		
			
				|  |  |                  :current-page="patient.currentPage"
 | 
	
	
		
			
				|  | @@ -378,14 +361,12 @@ import store from '@/store'
 | 
	
		
			
				|  |  |  import {costState, cptSex, conversionRefundFlag} from '@/utils/computed'
 | 
	
		
			
				|  |  |  import {shortcuts} from '@/data/shortcuts'
 | 
	
		
			
				|  |  |  import {
 | 
	
		
			
				|  |  | -  cheXiaoTuiFei,
 | 
	
		
			
				|  |  |    getChargeCode,
 | 
	
		
			
				|  |  |    getHuanZheFeiYong,
 | 
	
		
			
				|  |  |    getPyCode,
 | 
	
		
			
				|  |  |    queryDanGeXiangMu,
 | 
	
		
			
				|  |  |    shangChuanMuBan,
 | 
	
		
			
				|  |  |    xiangMuFeiYongShangChuan,
 | 
	
		
			
				|  |  | -  xiangMuTuiFei,
 | 
	
		
			
				|  |  |    xiuGaiZiFeiBiaoZhi,
 | 
	
		
			
				|  |  |  } from '@/api/inpatient/xiang-mu-lu-ru'
 | 
	
		
			
				|  |  |  import {ElMessage, ElMessageBox} from 'element-plus'
 | 
	
	
		
			
				|  | @@ -401,13 +382,6 @@ import Sleep from "@/utils/sleep";
 | 
	
		
			
				|  |  |  import RefundForProjectEntry from "@/components/med-tec-mod/RefundForProjectEntry";
 | 
	
		
			
				|  |  |  import XcComboGrid from "@/components/xiao-chan/combo-grid/XcComboGrid.vue";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const props = defineProps({
 | 
	
		
			
				|  |  | -  init: {
 | 
	
		
			
				|  |  | -    type: Number,
 | 
	
		
			
				|  |  | -    default: -1,
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  | -})
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  const emit = defineEmits(['close-xmlr'])
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const windowSize = store.state.app.windowSize
 | 
	
	
		
			
				|  | @@ -421,10 +395,7 @@ const zhiXingKeShi = ref('')
 | 
	
		
			
				|  |  |  const dateRange = ref([])
 | 
	
		
			
				|  |  |  // DESC 降 ASC 升
 | 
	
		
			
				|  |  |  const riQiPaiXu = ref('DESC')
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -const quanXian = store.state.user.info.roles
 | 
	
		
			
				|  |  |  const activeName = ref('1')
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  const feiYongLeiXingCode = ref(0)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -469,11 +440,7 @@ const chaXunHuanZheXinXi = () => {
 | 
	
		
			
				|  |  |    getPatientInfo(inpatientNo.value)
 | 
	
		
			
				|  |  |        .then((res) => {
 | 
	
		
			
				|  |  |          patient.value = res
 | 
	
		
			
				|  |  | -        patient.value.currentPage = 1
 | 
	
		
			
				|  |  | -        patient.value.pageSize = 40
 | 
	
		
			
				|  |  | -        patient.value.total = 0
 | 
	
		
			
				|  |  | -        patient.value.orderNo = 2
 | 
	
		
			
				|  |  | -        patient.value.deptCode = store.state.user.info.deptCode
 | 
	
		
			
				|  |  | +        setDefault()
 | 
	
		
			
				|  |  |          queryFeiYong()
 | 
	
		
			
				|  |  |          if (patient.value.ward === store.state.user.info.deptCode) {
 | 
	
		
			
				|  |  |            panDuanSFTongGuoBingShiJinRu.value = true
 | 
	
	
		
			
				|  | @@ -488,14 +455,6 @@ const chaXunHuanZheXinXi = () => {
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const encodingIsChanged = () => {
 | 
	
		
			
				|  |  | -  if (patient.value.chargeCode) {
 | 
	
		
			
				|  |  | -    dateRange.value = [];
 | 
	
		
			
				|  |  | -    patient.value.orderNo = 2;
 | 
	
		
			
				|  |  | -    patient.value.tuiFeiFlag = 3
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  const total = ref(0)
 | 
	
		
			
				|  |  |  const elTableRef = ref()
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -615,25 +574,6 @@ const xiangMuTuiFeiClick = () => {
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -const confirmRefund = () => {
 | 
	
		
			
				|  |  | -  if (feiYongLeiXingCode.value === 1) {
 | 
	
		
			
				|  |  | -    if (!patient.value.groupNo) {
 | 
	
		
			
				|  |  | -      ElMessage.error('请先选择药房。')
 | 
	
		
			
				|  |  | -      return
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | -  xiangMuTuiFei(patient.value).then((res) => {
 | 
	
		
			
				|  |  | -    queryFeiYong()
 | 
	
		
			
				|  |  | -    refundConfirmation.dialog = false
 | 
	
		
			
				|  |  | -  })
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -const cheXiaoTuiFeiClick = (index, row) => {
 | 
	
		
			
				|  |  | -  cheXiaoTuiFei(row.inpatientNo, row.admissTimes, row.ledgerSn, row.detailSn).then(() => {
 | 
	
		
			
				|  |  | -  })
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  //////////////////////////////////// 以上全部是 已录入项目 //////////////////////////////////////////////////////////////////////////////
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -654,9 +594,6 @@ const xuanZeXiangMuTable = (param) => {
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const muBanCurrentPage = ref(1)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * 删除项目
 | 
	
		
			
				|  |  |   */
 | 
	
	
		
			
				|  | @@ -835,33 +772,35 @@ const guanBiDialog = () => {
 | 
	
		
			
				|  |  |    emit('close-xmlr')
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +/**
 | 
	
		
			
				|  |  | + * 设置患者默认值
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | +const setDefault = () => {
 | 
	
		
			
				|  |  | +  patient.value.currentPage = 1
 | 
	
		
			
				|  |  | +  patient.value.pageSize = 40
 | 
	
		
			
				|  |  | +  patient.value.total = 0
 | 
	
		
			
				|  |  | +  patient.value.tuiFeiFlag = 3
 | 
	
		
			
				|  |  | +  patient.value.orderNo = 2
 | 
	
		
			
				|  |  | +  patient.value.deptCode = store.state.user.info.deptCode
 | 
	
		
			
				|  |  | +  zhiXingKeShi.value = patient.value.zkWard
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  onMounted(() => {
 | 
	
		
			
				|  |  |    if (!baseinfo().inpatientNo) {
 | 
	
		
			
				|  |  | -    patient.value.currentPage = 1
 | 
	
		
			
				|  |  | -    patient.value.pageSize = 40
 | 
	
		
			
				|  |  | -    patient.value.total = 0
 | 
	
		
			
				|  |  | -    patient.value.tuiFeiFlag = 3
 | 
	
		
			
				|  |  | -    patient.value.orderNo = 2
 | 
	
		
			
				|  |  | -    patient.value.deptCode = store.state.user.info.deptCode
 | 
	
		
			
				|  |  | -    zhiXingKeShi.value = patient.value.zkWard
 | 
	
		
			
				|  |  |      jinRuPanDuanSFXieDaiHuanZheXinXi()
 | 
	
		
			
				|  |  |    } else {
 | 
	
		
			
				|  |  |      patient.value = clone(baseinfo())
 | 
	
		
			
				|  |  | -    patient.value.currentPage = 1
 | 
	
		
			
				|  |  | -    patient.value.pageSize = 40
 | 
	
		
			
				|  |  | -    patient.value.total = 0
 | 
	
		
			
				|  |  | -    patient.value.tuiFeiFlag = 3
 | 
	
		
			
				|  |  | -    patient.value.orderNo = 2
 | 
	
		
			
				|  |  | -    patient.value.deptCode = store.state.user.info.deptCode
 | 
	
		
			
				|  |  |      panDuanSFTongGuoBingShiJinRu.value = true
 | 
	
		
			
				|  |  | -    zhiXingKeShi.value = patient.value.zkWard
 | 
	
		
			
				|  |  |      queryFeiYong()
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  | +  setDefault()
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    getDept().then((res) => {
 | 
	
		
			
				|  |  |      deptData.value = res
 | 
	
		
			
				|  |  |    })
 | 
	
		
			
				|  |  |  })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  const xieGaiZhiXingKeShi = () => {
 | 
	
		
			
				|  |  |    for (let i = 0; i < muBanNeiRongData.value.length; i++) {
 | 
	
		
			
				|  |  |      muBanNeiRongData.value[i].deptCode = zhiXingKeShi.value
 |