|
@@ -29,6 +29,21 @@
|
|
|
:label="item.name"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
+
|
|
|
+ <el-select
|
|
|
+ v-if="medType === '51'"
|
|
|
+ v-model="matnType"
|
|
|
+ style="width: 110px"
|
|
|
+ placeholder="生育类别"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in matnTypes"
|
|
|
+ :key="item.code"
|
|
|
+ :value="item.code"
|
|
|
+ :label="item.name"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+
|
|
|
<el-cascader
|
|
|
v-model="admdvsCascader"
|
|
|
clearable
|
|
@@ -372,7 +387,7 @@ import {
|
|
|
} from "@/api/medical-insurance/si-query";
|
|
|
import { onMounted, ref } from "vue";
|
|
|
import { ElMessageBox, ElSelect } from "element-plus";
|
|
|
-import { getMedTypesByFlag } from "@/api/medical-insurance/si-dict";
|
|
|
+import {getMatnTypes, getMedTypesByFlag} from "@/api/medical-insurance/si-dict";
|
|
|
import { shortcuts } from "@/data/shortcuts";
|
|
|
import { getDateRangeFormatDate } from "@/utils/date";
|
|
|
import ReadCard from "@/components/medical-insurance/readcard/Index.vue";
|
|
@@ -387,11 +402,12 @@ import { CyMessageBox } from "@/utils/cy-message-box";
|
|
|
import EmergencyRescue from "@/views/medical-insurance/outpatient/component/EmergencyRescue.vue";
|
|
|
import { xcMessage } from "@/utils/xiaochan-element-plus";
|
|
|
import { checkGeneratedFees } from "@/api/medical-insurance/emergency-rescue";
|
|
|
-import result from "vxe-pc-ui/lib/result/index.js";
|
|
|
|
|
|
const patNo = ref("");
|
|
|
const medType = ref("");
|
|
|
const medTypes = ref([]);
|
|
|
+const matnType = ref("")
|
|
|
+const matnTypes = ref([])
|
|
|
const historyReceipts = ref([]);
|
|
|
const currentRow = ref({});
|
|
|
const mzVisit = ref({});
|
|
@@ -435,11 +451,15 @@ const nullPatNo = () => {
|
|
|
return true;
|
|
|
};
|
|
|
const nullMedtype = () => {
|
|
|
- if (medType.value) {
|
|
|
- return false;
|
|
|
+ if (!medType.value) {
|
|
|
+ xcMessage.warning("请先选择医疗类别!");
|
|
|
+ return true;
|
|
|
}
|
|
|
- xcMessage.warning("请选择医疗类别!");
|
|
|
- return true;
|
|
|
+ if (medType.value === '51' && !matnType.value) {
|
|
|
+ xcMessage.warning('请选择生育类别!')
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
};
|
|
|
|
|
|
const fetchHistoryReceipts = () => {
|
|
@@ -591,6 +611,7 @@ const handleClickInsuinfo = row => {
|
|
|
insutype: row.insutype,
|
|
|
psnType: row.psnType,
|
|
|
medType: medType.value,
|
|
|
+ matnType: matnType.value,
|
|
|
balc: row.balc,
|
|
|
insuplcAdmdvs: row.insuplcAdmdvs,
|
|
|
insuplcAdmdvsName: row.insuplcAdmdvsName,
|
|
@@ -965,6 +986,9 @@ onMounted(() => {
|
|
|
getMedTypesByFlag("clinic").then(res => {
|
|
|
medTypes.value = res;
|
|
|
});
|
|
|
+ getMatnTypes().then(res => {
|
|
|
+ matnTypes.value = res
|
|
|
+ })
|
|
|
});
|
|
|
</script>
|
|
|
|