Browse Source

医嘱录入是否生成排斥和处置医嘱。

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

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

@@ -314,7 +314,8 @@ const xuanZhongFeiYong = async (row, laiyuan = 1) => {
     yiZhuData.value.actOrderNo = await getOrderNo()
   }
   let tempOrderNo = null
-  // 在使用 查询医嘱搜索的时候 row 是不会有 actOrderNo 的所以要保留一下 原来的医嘱
+  // 查询医嘱是不会有医嘱号的,医生会在原来的医嘱上面修改成项目或者药品
+  // 保留一下医嘱号 不然  yiZhuData.value = row 这个会把医嘱号给干掉
   if (laiyuan === 1) {
     tempOrderNo = yiZhuData.value.actOrderNo
   }
@@ -770,7 +771,7 @@ const duplicateAndPaste = async () => {
   let newDate = await getServerDateApi()
   temp.orderTime = newDate
   temp.startTime = newDate
-  temp.endTime = newDate
+  temp.endTime = null
   temp.enterOper = store.getters['user/info'].code
   temp.enterOperName = store.getters['user/info'].name
   temp.signerName = ''
@@ -778,7 +779,7 @@ const duplicateAndPaste = async () => {
   temp.modifierName = ''
   temp.modifier = ''
 
-  await xuanZhongFeiYong(temp)
+  await xuanZhongFeiYong(temp, 2)
 }
 
 // 删除医嘱

+ 21 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/shou-shu-shen-qing/ShouShuShenQing.vue

@@ -165,11 +165,29 @@ const tabsName = (val, index) => {
   return val
 }
 
-const clickSave = () => {
+const clickSave = async () => {
   if (youWuXuanZheHuanZhe()) return
   let data = huanZheXinXi.value
   data.execDept = store.state.user.info.deptCode
   data.list = operationApplication.value
+
+  try {
+    await ElMessageBox.confirm('是否要生成全排斥医嘱?', '提示', {
+      type: 'warning',
+      confirmButtonText: '生成排斥医嘱',
+      cancelButtonText: '生成处置医嘱',
+      distinguishCancelAndClose: true
+    })
+    data.generateRejectedOrders = true
+  } catch (e) {
+    if (e === 'cancel') {
+      data.generateRejectedOrders = false
+    } else {
+      return
+    }
+
+  }
+
   xinZengShouShuShenQing(data).then((res) => {
     if (res !== null && res.error !== null) {
       error.value.dialog = true
@@ -179,6 +197,8 @@ const clickSave = () => {
       operationApplication.value = []
     }
   })
+
+
 }
 
 const removeTab = (targetName) => {

+ 0 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -383,7 +383,6 @@ onActivated(async () => {
     await nextTick()
     clickOnThePatient(router.currentRoute.value.params.inpatientNo);
   }
-
 })