1
lkk
2025-04-11 c3e7f99b9070230896865a7a0f805473aeed83ea
1
3个文件已修改
77 ■■■■ 已修改文件
src/components/public/index.vue 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/inspectCheck/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/advicerules/index.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/public/index.vue
@@ -51,7 +51,9 @@
          <h3 style="margin-left: 160px">已选项目</h3>
        </el-form-item> -->
      <!-- </el-form> -->
      <h2 style="text-align: center;margin-top: -30px;">{{ queryParams.proName  || '暂无项目名称'  }}</h2>
      <h2 style="text-align: center; margin-top: -30px">
        {{ queryParams.proName || "暂无项目名称" }}
      </h2>
      <div style="display: flex; width: 100%">
        <div style="width: 50%; margin-right: 40px">
          <el-table
@@ -157,6 +159,10 @@
      type: Array,
      default: () => [],
    },
    proSex: {
      type: String,
      default: "2"
    }
  },
  data() {
    return {
@@ -164,7 +170,7 @@
      // 弹出层标题
      title: "",
      yxbx: "",
      proName:'',
      proName: "",
      //   lastDesc: "",
      total: 0,
      dataList: [],
@@ -178,7 +184,7 @@
        bingzhong: "",
        bzPinyin: "",
        proId:"",
        proName:"",
        proSex: "2",
        pageNum: 1,
        pageSize: 10,
      },
@@ -203,15 +209,24 @@
        if (newVal && newVal.length > 0) {
          const firstProject = newVal[0]; // 你也可以遍历所有项目,看你业务需求
          this.queryParams.proId = firstProject.proId; // 假设项目中叫 id
          this.queryParams.proName = firstProject.proName; // 假设叫 proName
          this.proName = firstProject.proName
          this.proName = firstProject.proName;
        }
      },
    },
    proSex: {
      handler(newVal) {
        this.queryParams.proSex = newVal;
        this.getList();
      },
      immediate: true
    }
  },
  mounted() {},
  created() {},
  created() {
    this.queryParams.proSex = this.proSex;
    this.getList();
  },
  methods: {
    async getList() {
      try {
@@ -264,13 +279,12 @@
    },
    handleSelectionChange(selection) {
      this.list = selection;
      // this.list = selection;
      this.list = [...selection];
      this.updateFormContent(selection);
    },
    updateFormContent(selection) {
      if (!selection.length) return;
      // 如果处于检查状态,使用传入的值
      if (this.checkStatus === "1") {
        this.updateData(this.proResult, this.conclusion);
@@ -282,6 +296,7 @@
      this.form.jcsj = "";
      // 使用map和join替代forEach和字符串拼接
      if (selection.length > 0) {
      this.form.desc = selection
        .map((item) => item.bingzhong || item.ruleStr)
        .filter(Boolean)
@@ -291,6 +306,7 @@
        .map((item) => item.yxbx)
        .filter(Boolean)
        .join(",");
      }
    },
    handleOk() {
src/views/doctor/inspectCheck/index.vue
@@ -122,8 +122,9 @@
            align="center"
            prop="examinationDate"
            width="150px"
            :formatter="formatDate"
          />
          <!-- :formatter="formatDate" -->
          <el-table-column
            label="门诊号"
@@ -435,7 +436,7 @@
      }
      console.log("Query Params:", this.queryParams);
    },
    formatDate(row) {
    /* formatDate(row) {
      if (!row.examinationDate) return "";
      // 使用 moment 解析指定格式的日期字符串
@@ -445,7 +446,7 @@
      // 格式化为所需格式
      return date.format("YYYY-MM-DD HH:mm");
    },
    }, */
    // isSelectable(row) {
    //   return !!row.mzh;
    // },
src/views/hosp/advicerules/index.vue
@@ -145,6 +145,7 @@
        width="200"
        prop="jynr"
      />
      <el-table-column label="性别" align="center" prop="xb"  :formatter="formatSex" />
      <el-table-column label="范围" align="center" prop="fwz" />
      <el-table-column label="范围最小值" align="center" prop="fwzxz" />
      <el-table-column label="范围最大值" align="center" prop="fwzdz" />
@@ -268,6 +269,7 @@
            placeholder="请输入异常标志"
          />
        </el-form-item>
        <el-form-item label="疾病" prop="sfjb">
          <el-checkbox v-model="form.sfjb" true-label="是" false-label="否">
          </el-checkbox>
@@ -292,6 +294,21 @@
            true-label="是"
            false-label=""
          ></el-checkbox>
        </el-form-item>
        <el-form-item label="性别" prop="xb">
          <el-select
            v-model="form.xb"
            placeholder="请选择体检人性别"
            style="width: 200px"
            clearable
          >
            <el-option
              v-for="dict in dict.type.sys_user_sex"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="建议名称" prop="jymc" style="display: block">
          <el-input
@@ -476,6 +493,7 @@
export default {
  name: "Advicerules",
  dicts: ["sys_user_sex"],
  data() {
    return {
      // 遮罩层
@@ -517,6 +535,7 @@
        sfcjb: null,
        sfmxb: null,
        sfzdjb: null,
        sfzdjb: null,
      },
      queryParam1: {
        page: 1,
@@ -529,7 +548,9 @@
        pageSize: 10,
      },
      // 表单参数
      form: {},
      form: {
        xb: "2",
      },
      // 表单校验
      rules: {},
      upload: {
@@ -599,8 +620,11 @@
        createBy: null,
        updateBy: null,
        deleted: null,
        xb: "2",
      };
      this.resetForm("form");
      if (this.$refs.form) {
        this.$refs.form.resetFields();
      }
    },
    /** 搜索按钮操作 */
    handleQuery() {
@@ -614,6 +638,13 @@
    clearForm() {
      this.queryParam.bt = ""; // 清空标题
      this.queryParam.nr = ""; // 清空建议内容
    },
    formatSex(row) {
      const dictItem = this.dict.type.sys_user_sex.find(
        (item) => item.value === row.xb
      );
      return dictItem ? dictItem.label : "";
    },
    handleSelectionChange1(selection) {
@@ -689,6 +720,7 @@
        this.open = true;
        this.title = "修改体检项目建议规则新表";
      });
      deptTreeSelect().then((response) => {
        this.departmentOptions = response.data[0].children;
      });