WXL
14 小时以前 888f941ae16c850c0f1a844ec9436058840920bd
推送
已修改2个文件
51 ■■■■ 文件已修改
pages/case/CaseDetails.vue 45 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/case/CaseInfo.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/case/CaseDetails.vue
@@ -262,7 +262,7 @@
              <text class="item-label">其他</text>
              <u-input
                v-model="form.infectiousOther"
                placeholder="请输入住院号"
                placeholder="请输入其他传染病"
                border="none"
              />
            </view>
@@ -551,18 +551,18 @@
]);
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([
@@ -637,14 +637,16 @@
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) => {
@@ -883,6 +885,8 @@
};
const onHospitalConfirm = (e) => {
  console.log(e, "民族");
  if (e.value && e.value[0]) {
    form.value.treatmenthospitalname = e.value[0].label;
  }
@@ -1073,32 +1077,7 @@
    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 {
pages/case/CaseInfo.vue
@@ -369,9 +369,9 @@
      caseDetail.value = res.data
      
      // 如果状态是"已上报"(1),自动更新为"已阅读"(2)
      if (caseDetail.value.reportStatus === '1') {
        await updateCaseStatus('2')
      }
      // if (caseDetail.value.reportStatus === '1') {
      //   await updateCaseStatus('2')
      // }
    } else {
      throw new Error(res.msg || '数据加载失败')
    }