| | |
| | | <text class="item-label">其他</text> |
| | | <u-input |
| | | v-model="form.infectiousOther" |
| | | placeholder="请输入住院号" |
| | | placeholder="请输入其他传染病" |
| | | border="none" |
| | | /> |
| | | </view> |
| | |
| | | ]); |
| | | |
| | | const bloodTypeOptions = ref([ |
| | | { label: "A型", value: "A" }, |
| | | { label: "B型", value: "B" }, |
| | | { label: "O型", value: "O" }, |
| | | { label: "AB型", value: "AB" }, |
| | | { label: "A型", value: "A型" }, |
| | | { label: "B型", value: "B型" }, |
| | | { label: "O型", value: "O型" }, |
| | | { label: "AB型", value: "AB型" }, |
| | | ]); |
| | | const isTransportOptions = ref([ |
| | | { label: "需要", value: "2" }, |
| | | { label: "不需要", value: "1" }, |
| | | ]); |
| | | const rhOptions = ref([ |
| | | { label: "阳性", value: "positive" }, |
| | | { label: "阴性", value: "negative" }, |
| | | { label: "阳性", value: "1" }, |
| | | { label: "阴性", value: "0" }, |
| | | ]); |
| | | |
| | | const reporterOptions = ref([ |
| | |
| | | |
| | | const onNationChange = (e) => { |
| | | const index = parseInt(e.detail.value); |
| | | nationIndex.value = nationOptions.value[index].label; |
| | | nationIndex.value = index; |
| | | form.value.nation = nationOptions.value[index].label; |
| | | console.log(form.value.nation, "form.value.nation"); |
| | | }; |
| | | |
| | | const onIdCardTypeChange = (e) => { |
| | | const index = parseInt(e.detail.value); |
| | | idCardTypeIndex.value = index; |
| | | form.value.idcardtype = idCardTypeOptions.value[index].value; |
| | | console.log(form.value.idcardtype, "form.value.idcardtype"); |
| | | }; |
| | | |
| | | const onBirthdayChange = (e) => { |
| | |
| | | }; |
| | | |
| | | const onHospitalConfirm = (e) => { |
| | | console.log(e, "民族"); |
| | | |
| | | if (e.value && e.value[0]) { |
| | | form.value.treatmenthospitalname = e.value[0].label; |
| | | } |
| | |
| | | loading.value = false; |
| | | } |
| | | }; |
| | | // 更新选择器索引 |
| | | const updatePickerIndexes = () => { |
| | | // 医疗机构索引 |
| | | const hospitalIndex = hospitalOptions.value.findIndex( |
| | | (item) => item.label === form.value.treatmenthospitalname, |
| | | ); |
| | | if (hospitalIndex !== -1) hospitalIndex.value = hospitalIndex; |
| | | |
| | | // 科室索引 |
| | | const deptIndex = pickerColumns.value[0].findIndex( |
| | | (item) => item.label === form.value.treatmentdeptname, |
| | | ); |
| | | if (deptIndex !== -1) deptIndex.value = deptIndex; |
| | | |
| | | // 民族索引 |
| | | const nationIndex = nationOptions.value.findIndex( |
| | | (item) => item.label === form.value.nation, |
| | | ); |
| | | if (nationIndex !== -1) nationIndex.value = nationIndex; |
| | | |
| | | // 证件类型索引 |
| | | const idCardTypeIndex = idCardTypeOptions.value.findIndex( |
| | | (item) => item.value === form.value.idcardtype, |
| | | ); |
| | | if (idCardTypeIndex !== -1) idCardTypeIndex.value = idCardTypeIndex; |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .case-report-container { |