|
@@ -505,30 +505,35 @@ export default {
|
|
|
duration: 2500,
|
|
|
showClose: true,
|
|
|
})
|
|
|
- } else {
|
|
|
- if (injuryMode.value) {
|
|
|
- injurySettlement(patient.value)
|
|
|
- .then((res) => {
|
|
|
- ElMessageBox.alert(dismissBtnText.value + '成功。', '提示', {
|
|
|
- type: 'success',
|
|
|
- })
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- afterDismiss()
|
|
|
- })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const param = {
|
|
|
+ patNo: patient.value.inpatientNo,
|
|
|
+ times: patient.value.admissTimes,
|
|
|
+ ledgerSn: patient.value.ledgerSn,
|
|
|
+ }
|
|
|
+ getSiPatInfo(param).then((res) => {
|
|
|
+ patient.value.medType = res.medType
|
|
|
+ if (!res.mdtrtId) {
|
|
|
+ ziFeiDismiss()
|
|
|
} else {
|
|
|
- const param = {
|
|
|
- patNo: patient.value.inpatientNo,
|
|
|
- times: patient.value.admissTimes,
|
|
|
- ledgerSn: patient.value.ledgerSn,
|
|
|
- }
|
|
|
- getSiPatInfo(param).then((res) => {
|
|
|
- patient.value.medType = res.medType
|
|
|
- res.mdtrtId ? yibaoDismiss() : ziFeiDismiss()
|
|
|
- })
|
|
|
+ injuryMode.value ? injuryDismiss() : yibaoDismiss()
|
|
|
}
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ const injuryDismiss = () => {
|
|
|
+ injurySettlement(patient.value)
|
|
|
+ .then((res) => {
|
|
|
+ ElMessageBox.alert(dismissBtnText.value + '成功。', '提示', {
|
|
|
+ type: 'success',
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ afterDismiss()
|
|
|
+ })
|
|
|
}
|
|
|
+
|
|
|
const ziFeiDismiss = () => {
|
|
|
const param = {
|
|
|
inpatientNo: patient.value.inpatientNo,
|
|
@@ -547,6 +552,7 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
const yibaoDismiss = () => {
|
|
|
dischargeProcessing(patient.value).then(() => {
|
|
|
ElMessageBox.alert(dismissBtnText.value + '成功。', '提示', {
|