Browse Source

修改默认的执行科室

DESKTOP-0GD05B0\Administrator 2 years ago
parent
commit
a1e838c650

+ 8 - 8
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor.vue

@@ -338,7 +338,7 @@ const xuanZhongFeiYong = async (row, laiyuan = 1) => {
   let newData = yiZhuData.value.statusFlag === '1'
   if (row.serial === '01' || row.serial === '99') {
     try {
-      let res = await huoQuFeiYongXinXi(row.orderCode, row.serial, props.patientInfo.smallDept)
+      let res = await huoQuFeiYongXinXi(row.orderCode, row.serial, props.patientInfo.zkWard)
       openTheOrderPopUpWindow()
       // 加载药品计量
       yaoPinJiLiangData.value = res.yaoPingJiLiang
@@ -401,7 +401,7 @@ const xuanZhongFeiYong = async (row, laiyuan = 1) => {
   } else {
     yiZhuData.value.kjywFlag = 0
     try {
-      let res = await huoQuFeiYongXinXi(row.orderCode, '00', props.patientInfo.smallDept)
+      let res = await huoQuFeiYongXinXi(row.orderCode, '00', props.patientInfo.zkWard)
       if (newData) {
         openTheOrderPopUpWindow('请输入处置医嘱名')
         yiZhuData.value.drugFlag = row.drugFlag ? row.drugFlag : row.orderType
@@ -430,13 +430,13 @@ const xuanZhongFeiYong = async (row, laiyuan = 1) => {
     }
     // 用来加载默认的执行科室
     if (stringIsBlank(row.execUnit)) {
-      if (stringNotBlank(props.patientInfo.smallDept)) {
-        yiZhuData.value.execUnit = props.patientInfo.smallDept
-        yiZhuData.value.execUnitName = props.patientInfo.smallDeptName
+      if (stringNotBlank(props.patientInfo.zkWard)) {
+        yiZhuData.value.execUnit = props.patientInfo.zkWard
+        yiZhuData.value.execUnitName = props.patientInfo.zkWardName
       }
-    } else if (props.patientInfo.smallDept && row.execUnit.startsWith("8")) {
-      yiZhuData.value.execUnit = props.patientInfo.smallDept
-      yiZhuData.value.execUnitName = props.patientInfo.smallDeptName
+    } else if (props.patientInfo.zkWard && row.execUnit.startsWith("8")) {
+      yiZhuData.value.execUnit = props.patientInfo.zkWard
+      yiZhuData.value.execUnitName = props.patientInfo.zkWardName
     }
     if (!yiZhuData.value.frequCode) {
       yiZhuData.value.frequCode = 'ONCE'

+ 0 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/BianJiJianChaJianYanShenQing.vue → src/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/EditInspection.vue