浏览代码

项目录入中优化药品的判断方式,以及药品可以仅退费不退药。

DESKTOP-0GD05B0\Administrator 2 年之前
父节点
当前提交
2fbd730e30

+ 6 - 0
src/api/zhu-yuan-yi-sheng/emr-patient.js

@@ -95,6 +95,12 @@ export function getDischargeTimes(patNo) {
     })
 }
 
+/**
+ * 获取患者提取到的数据
+ * @param patNo 住院号
+ * @param times 次数
+ * @returns {AxiosPromise} 数据
+ */
 export function getExtractDataElement(patNo, times) {
     return request({
         url: url + 'getExtractDataElement',

+ 18 - 5
src/components/med-tec-mod/RefundForProjectEntry.vue

@@ -19,7 +19,17 @@
             <el-option value="73" label="住院"/>
           </el-select>
         </div>
-        <el-button @click="confirmRefund" icon="Delete" type="danger">确认退费</el-button>
+        <el-button @click="confirmRefund('drugWithdrawal')" icon="Delete" type="danger"
+                   title="项目可直接退费,只有对应的执行科室可以退费,药品会产生药单,在药房确认退药后会产生退费数据,口服药无法退费。如药房拒绝可再次退费。">
+          {{ isDrug ? '退药且退费' : '退费' }}
+        </el-button>
+        <el-button v-if="isDrug"
+                   @click="confirmRefund('refundOnly')"
+                   icon="Delete"
+                   type="warning"
+                   title="只会生成退费的费用,不会产生药单到药房。">
+          仅退费不退药
+        </el-button>
       </template>
 
       <template #mainMaxContentHeight>
@@ -98,25 +108,28 @@ let chargeFee = $ref(0)
 let groupNo = $ref('73')
 
 
-const confirmRefund = () => {
+const confirmRefund = (flag) => {
   let pharmacyName = groupNo === '71' ? '门诊' : '住院'
-  let title = props.isDrug ? `药品是否要退到 【${pharmacyName}】 药房` : '请确认数据'
+  // 是否是药品退药 true 
+  let isDrugWithdrawal = props.isDrug && flag === 'drugWithdrawal'
+  let title = isDrugWithdrawal ? `药品是否要退到 【${pharmacyName}】 药房` : '请确认数据'
   ElMessageBox.confirm(title, '请您仔细确认,(⌐■_■)', {
     type: 'warning',
     confirmButtonText: '我已确认',
     cancelButtonText: '再看看',
   }).then(() => {
     props.patient.groupNo = groupNo
+    props.patient.refundFlag = flag
     xiangMuTuiFei(props.patient).then((res) => {
       emit('refreshFee')
       emit('update:modelValue', false)
-      if (props.isDrug) {
+      if (isDrugWithdrawal) {
         emit('popUpTheDrugRefundBox')
       }
     })
   }).catch(() => {
 
-  })
+  });
 }
 
 const deleteData = async (data, index) => {

+ 0 - 1
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/table/YzTable.vue

@@ -350,7 +350,6 @@ table {
     text-overflow: ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用*/
   }
 
-
 }
 
 .el-table__yz {

+ 9 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/EmrMain.vue

@@ -386,6 +386,7 @@ let emrStyle = $ref({
   backgroundColor: '',
   paragraphStyle: {}
 })
+
 const predefineColors = ref([
   '#ff4500',
   '#ff8c00',
@@ -443,6 +444,7 @@ const emrEvent = {
 
   'ready': (event) => {
     editor = currentEmr.value.getEditor()
+    setShortcutKey()
   }
 
 }
@@ -1147,6 +1149,13 @@ const restoreData = (data) => {
   recoveryDialog = false
 }
 
+const setShortcutKey = () => {
+  console.log(editor)
+  editor.setShortcutKey("F9", (evt, view, position) => {
+    console.log(evt, view, position)
+  });
+}
+
 
 onMounted(() => {
   getExtractDataElement(props.huanZheXinXi.inpatientNo, props.huanZheXinXi.admissTimes).then((res) => {