| | |
| | | <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 |
| | |
| | | type: Array, |
| | | default: () => [], |
| | | }, |
| | | proSex: { |
| | | type: String, |
| | | default: "2" |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | // 弹出层标题 |
| | | title: "", |
| | | yxbx: "", |
| | | proName:'', |
| | | proName: "", |
| | | // lastDesc: "", |
| | | total: 0, |
| | | dataList: [], |
| | |
| | | bingzhong: "", |
| | | bzPinyin: "", |
| | | proId:"", |
| | | proName:"", |
| | | proSex: "2", |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | |
| | | 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 { |
| | |
| | | }, |
| | | |
| | | 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); |
| | |
| | | this.form.jcsj = ""; |
| | | |
| | | // 使用map和join替代forEach和字符串拼接 |
| | | if (selection.length > 0) { |
| | | this.form.desc = selection |
| | | .map((item) => item.bingzhong || item.ruleStr) |
| | | .filter(Boolean) |
| | |
| | | .map((item) => item.yxbx) |
| | | .filter(Boolean) |
| | | .join(","); |
| | | } |
| | | }, |
| | | |
| | | handleOk() { |
| | |
| | | align="center" |
| | | prop="examinationDate" |
| | | width="150px" |
| | | :formatter="formatDate" |
| | | |
| | | /> |
| | | <!-- :formatter="formatDate" --> |
| | | |
| | | <el-table-column |
| | | label="门诊号" |
| | |
| | | } |
| | | console.log("Query Params:", this.queryParams); |
| | | }, |
| | | formatDate(row) { |
| | | /* formatDate(row) { |
| | | if (!row.examinationDate) return ""; |
| | | |
| | | // 使用 moment 解析指定格式的日期字符串 |
| | |
| | | |
| | | // 格式化为所需格式 |
| | | return date.format("YYYY-MM-DD HH:mm"); |
| | | }, |
| | | }, */ |
| | | // isSelectable(row) { |
| | | // return !!row.mzh; |
| | | // }, |
| | |
| | | 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" /> |
| | |
| | | placeholder="请输入异常标志" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="疾病" prop="sfjb"> |
| | | <el-checkbox v-model="form.sfjb" true-label="是" false-label="否"> |
| | | </el-checkbox> |
| | |
| | | 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 |
| | |
| | | |
| | | export default { |
| | | name: "Advicerules", |
| | | dicts: ["sys_user_sex"], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | |
| | | sfcjb: null, |
| | | sfmxb: null, |
| | | sfzdjb: null, |
| | | sfzdjb: null, |
| | | }, |
| | | queryParam1: { |
| | | page: 1, |
| | |
| | | pageSize: 10, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | form: { |
| | | xb: "2", |
| | | }, |
| | | // 表单校验 |
| | | rules: {}, |
| | | upload: { |
| | |
| | | createBy: null, |
| | | updateBy: null, |
| | | deleted: null, |
| | | xb: "2", |
| | | }; |
| | | this.resetForm("form"); |
| | | if (this.$refs.form) { |
| | | this.$refs.form.resetFields(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | |
| | | 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) { |
| | |
| | | this.open = true; |
| | | this.title = "修改体检项目建议规则新表"; |
| | | }); |
| | | |
| | | deptTreeSelect().then((response) => { |
| | | this.departmentOptions = response.data[0].children; |
| | | }); |