|
@@ -8,9 +8,15 @@ import AddShouShuEditor
|
|
|
import type {OpRecord} from "@/ts-type/op-record";
|
|
|
import {useZIndex} from "element-plus";
|
|
|
import {getServerDate} from "@/utils/moment-utils";
|
|
|
-import {yzMitt, shouShuDiagnosis} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
|
|
|
+import {
|
|
|
+ yzMitt,
|
|
|
+ shouShuDiagnosis,
|
|
|
+ huanZheXinXi
|
|
|
+} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
|
|
|
import CyComboGrid from "@/components/cy/combo-grid/src/CyComboGrid.vue";
|
|
|
import {stringNotBlank} from "@/utils/blank-utils";
|
|
|
+import {magicApi} from "@/utils/database/magic-api-request";
|
|
|
+import {CyMessageBox} from "@/components/cy/message-box";
|
|
|
|
|
|
const initAddData = (): OpRecord => {
|
|
|
return {
|
|
@@ -134,6 +140,7 @@ const nextIndex = () => {
|
|
|
|
|
|
const addClick = async () => {
|
|
|
clearData()
|
|
|
+ 查询术前讨论()
|
|
|
const now = await getServerDate()
|
|
|
addData.value.applyDate = now;
|
|
|
addData.value.opDatetime = now;
|
|
@@ -146,11 +153,38 @@ const createMark = () => {
|
|
|
nextIndex()
|
|
|
}
|
|
|
|
|
|
+yzMitt.on('ssNotSave', () => {
|
|
|
+ return !markShow.value
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
+function 查询术前讨论() {
|
|
|
+ magicApi({
|
|
|
+ url: '/intergration/surgery/addShouShu',
|
|
|
+ method: 'get',
|
|
|
+ params: {
|
|
|
+ patNo: huanZheXinXi.value.inpatientNo,
|
|
|
+ times: huanZheXinXi.value.admissTimes,
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ CyMessageBox.confirm({
|
|
|
+ message: '检测到有术前讨论是否填充数据',
|
|
|
+ }).then(() => {
|
|
|
+ // @ts-ignore
|
|
|
+ addData.value = {
|
|
|
+ ...addData.value,
|
|
|
+ ...res
|
|
|
+ }
|
|
|
+ changeDiagList()
|
|
|
+ checkOneOpCodeList()
|
|
|
+ }).catch(() => {
|
|
|
+
|
|
|
+ })
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
nextIndex()
|
|
|
- yzMitt.on('ssNotSave', () => {
|
|
|
- return !markShow.value
|
|
|
- })
|
|
|
})
|
|
|
</script>
|
|
|
|