955a8eeb4a139783dea7ce656026e7916b0b4801..76af820e2e11366b322705b51c351ace3d40608a
2 天以前 qx
Merge branch 'master' of http://101.42.27.146:5001/r/ltkj...
76af82 对比 | 目录
2 天以前 qx
qx
7c23f5 对比 | 目录
2 天以前 lkk
1
511b72 对比 | 目录
3 天以前 lkk
1
222c1c 对比 | 目录
5个文件已修改
399 ■■■■ 已修改文件
src/api/doctor/checkAll.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/proposal/index.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/check/index.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/checkAll/index.vue 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/biaoben/index.vue 253 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/doctor/checkAll.js
@@ -174,3 +174,23 @@
    data: data
  })
}
// 恢复异常列表
export function huiFuyichangxiangmu(tjNum) {
  return request({
    url: '/check/zongjianyishengHuiFuyichangxiangmu',
    method: 'get',
    params: {
      tjNum: tjNum
    }
  })
}
// 恢复异常按钮
export function hfbt(data) {
  return request({
    url: '/check/zongjianyishengHuiFuyichangxiangmuanniu',
    method: 'get',
    params: data
  })
}
src/components/proposal/index.vue
@@ -19,8 +19,8 @@
      <el-form inline @submit.native.prevent="search">
        <el-form-item>
          <el-radio-group v-model="tjproposal" @input="radiotjproposalChange">
            <el-radio-button label="0">快捷建议</el-radio-button>
            <el-radio-button label="1">常用建议</el-radio-button>
            <el-radio-button label="0">常用建议</el-radio-button>
            <el-radio-button label="1">快捷建议</el-radio-button>
          </el-radio-group>
        </el-form-item>
        <el-form-item v-show="tjproposal == 0">
@@ -89,7 +89,7 @@
          prop="createTime"
        /> -->
      </el-table>
      <div class="pag"   v-if="tjproposal == 1">
      <div class="pag" v-if="tjproposal == 1">
        <div class="pag1">
          <pagination
            v-show="total > 0"
@@ -105,7 +105,7 @@
          <pagination
            v-show="total > 0"
            :total="total"
           :page.sync="queryParams1.pageNum"
            :page.sync="queryParams1.pageNum"
            :limit.sync="queryParams1.pageSize"
            @pagination="radiotjproposalChange"
          />
@@ -124,9 +124,7 @@
  getKjTjAdviceKjbqBySex,
  getCyTjAdviceKjbqBySex,
} from "@/api/hosp/project";
import {
  listAdvicerules,
} from "@/api/hosp/advicerules";
import { listAdvicerules } from "@/api/hosp/advicerules";
import { getInfo } from "@/api/login";
export default {
  name: "Packagese",
@@ -149,7 +147,7 @@
      queryParams1: {
        pageNum: 1,
        pageSize: 10,
        zyzd: ''
        zyzd: "",
      },
      queryParams: {
        sex: "",
@@ -158,7 +156,7 @@
        page: 1,
        pageSize: 10,
        jynr: "",
        jybt:""
        jybt: "",
      },
      list: [],
      fList: {},
@@ -216,7 +214,7 @@
      // this.queryParams.page = 1;
      this.loading = true;
      listAdvicerules(this.queryParams1).then((res) => {
        this.dataList =  res.rows;
        this.dataList = res.rows;
        this.total = res.total;
        this.loading = false;
      });
@@ -266,7 +264,7 @@
.pag1 {
  width: 30%;
}
::v-deep .el-dialog__body{
::v-deep .el-dialog__body {
  padding: 7px 20px;
}
</style>
src/views/doctor/check/index.vue
@@ -198,6 +198,13 @@
    <!-- 点击右边弹出层 -->
    <el-drawer :visible.sync="drawer" :with-header="false" size="70%" :before-close="handleClose">
       <div
        v-loading="isLoading"
        element-loading-text="正在加载数据,请稍候..."
        element-loading-spinner="el-icon-loading"
        element-loading-background="rgba(255, 255, 255, 0.8)"
        style="height: 100%; padding: 20px; position: relative"
      >
      <div style="font-size: 14px">
        <table style="
            width: 96%;
@@ -577,6 +584,7 @@
          <Historicalreport v-show="lishi" :reportHistorydata="reportHistorydata"></Historicalreport>
        </el-col>
      </el-row>
      </div>
    </el-drawer>
    <Public ref="aaa" :row="row" @add="handleChanges" />
    <jianceResult ref="bbb" @add="handleChangesZt" />
@@ -909,6 +917,7 @@
      proParentList: [],
      tjNumber: "",
      DeptadviceAll: [],
          isLoading: false,
      project: {},
      summaryList: [],
      summaryAll: [],
@@ -1758,6 +1767,10 @@
      this.getDept(row.tjNumber);
      this.loading = true;
      this.drawer = true;
        this.isLoading = true;
       this.Parent = []
      this.tableAll= []
      this.proParentList = {}
      this.$nextTick(() => this.initInputDOM());
      this.tableAll = row;
      this.tjNumber = row.tjNumber;
@@ -1765,6 +1778,7 @@
      getParentList(this.tjNumber).then((response) => {
        if (response.data) {
          this.loading = false;
              this.isLoading = false;
          this.Parent = response.data;
          this.Parent.forEach((item) => {
            if (item.type === 1) item.proName += "    ✔";
@@ -1782,7 +1796,14 @@
          this.Parent = [];
          this.$modal.msgError("该科室下无项目!");
        }
      });
      })  .catch((error) => {
          console.error("请求失败:", error);
          this.$modal.msgError("数据加载失败");
        })
        .finally(() => {
          this.loading = false;
          this.isLoading = false; // 确保最终状态重置
        });
      this.getbzlist();
    },
src/views/doctor/checkAll/index.vue
@@ -198,6 +198,9 @@
          <div class="btn1">
            <el-button @click="fuchaxiangmu()" type="primary"><span class="vertical-text">复查项目</span></el-button>
          </div>
          <div class="btn1">
            <el-button @click="yichanghuifu()" type="primary"><span class="vertical-text">异常恢复</span></el-button>
          </div>
        </div>
        <div class="box">
          <div class="left-container">
@@ -693,6 +696,38 @@
                  </el-form>
                </div>
              </template>
              <template v-if="status1 == 4">
                <div>
                  <el-table
                    :data="ychfList"
                    style="width: 100%"
                    :header-cell-style="{ background: '#e6a23c' }"
                  >
                    <el-table-column
                      align="center"
                      prop="jcxm"
                      label="项目名"
                      width="260"
                    ></el-table-column>
                    <el-table-column
                      label="结果"
                      align="center"
                      prop="jcjg"
                      width="160"
                    />
                    <el-table-column label="操作" align="center" width="130px">
                      <template v-slot="scope">
                        <el-button
                          type="primary"
                          size="mini"
                          @click="hfyc(scope.row.id)"
                          >恢复</el-button
                        >
                      </template>
                    </el-table-column>
                  </el-table>
                </div>
              </template>
              <el-button type="primary" @click="addnew" :disabled="isdisabled" style="margin-top: 20px;">新增</el-button>
            </div>
          </div>
@@ -835,7 +870,9 @@
  addOrder,
  addOrder1,
  getFcList,
  UpdFcPro
  UpdFcPro,
  huiFuyichangxiangmu,
  hfbt,
} from "@/api/doctor/checkAll";
import { getInfoById } from "@/api/hosp/history";
import { getInfo } from "@/api/login";
@@ -1867,6 +1904,50 @@
        });
    },
    yichanghuifu() {
      this.loading = true;
      let tjNum = this.tjNumber;
      huiFuyichangxiangmu(tjNum).then((res) => {
        this.status1 = 4;
        this.ychfList = res.data;
        if(this.ychfList.length == 0){
          this.message.success("暂无异常恢复项目")
        }
      })
      .catch((error)=>{
        console.error("获取项目失败:",error);
        this.$message.error("获取项目失败")
      })
      .finally(()=>{
        this.loading = false;
      })
    },
    hfyc(id) {
      this.$confirm("确认要恢复该项吗?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          // 用户确认后执行接口
          hfbt({ id })
            .then((res) => {
              this.$message.success("恢复成功");
              this.yichanghuifu(); // 恢复后刷新列表
            })
            .catch((err) => {
              console.error(err);
              this.$message.error("恢复失败");
            });
        })
        .catch(() => {
          // 用户取消了操作
          this.$message.info("已取消恢复");
        });
    },
    resetQuery() {
      this.startTime = [];
      this.queryParams = {
src/views/hosp/biaoben/index.vue
@@ -2,41 +2,22 @@
  <div class="app-container">
    <el-row :gutter="24">
      <!-- 第一列:单选标本 -->
      <el-col :span="8" :xs="24">
        <el-form
          :model="queryParams"
          ref="queryForm"
          size="small"
          :inline="true"
          label-width="68px"
          style="height: 45px"
          @submit.native.prevent
        >
      <el-col :span="6" :xs="24">
        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"
          style="height: 45px" @submit.native.prevent>
          <el-form-item label="项目名称" prop="tjh">
            <el-input
              v-model="queryParams.tjh"
              placeholder="请输入项目名称"
              clearable
              @keyup.enter.native="handleManual"
            />
            <el-input style="width: 140px" v-model="queryParams.tjh" placeholder="请输入项目名称" clearable
              @keyup.enter.native="handleManual" />
          </el-form-item>
          <el-form-item>
            <el-button type="primary" size="mini" @click="handleManual">查询</el-button>
            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
            <el-button  type="primary" size="mini" @click="handleAdd">新增</el-button>
          </el-form-item>
        </el-form>
        <!-- 标本单选表格(带多选框样式) -->
        <el-table
          border
          v-loading="loading"
          :data="filteredSpecimenData"
          height="478"
          style="width: 100%"
          ref="specimenTable"
          :row-key="row => row.value"
          @select="handleSpecimenSelect"
        >
        <el-table border v-loading="loading" :data="filteredSpecimenData" height="478" style="width: 100%"
          ref="specimenTable" :row-key="row => row.value" @select="handleSpecimenSelect">
          <el-table-column type="selection" width="40px" align="center" />
          <el-table-column label="序号" align="center" type="index" width="50px" />
          <el-table-column label="标本名称" align="center" prop="label" show-overflow-tooltip />
@@ -44,15 +25,18 @@
      </el-col>
      <!-- 第二列:中间选中项目列表 -->
      <el-col :span="8" :xs="24">
        <el-form :model="form" size="small" :inline="true" label-width="68px" style="height: 45px" @submit.native.prevent />
        <el-table
          border
          v-loading="loading"
          :data="OnenewpacName"
          height="478"
          style="width: 100%"
        >
      <el-col :span="9" :xs="24">
        <el-form :model="queryParams2" ref="queryForm" size="small" :inline="true" v-show="showSearch"
          label-width="68px" style="height: 45px" @submit.native.prevent>
          <el-form-item label="项目名称" prop="proName">
            <el-input ref="inputName" v-model="queryParams2.proName" placeholder="请输入项目名称" clearable
              @keyup.enter.native="handleyixuan" style="width: 140px" />
          </el-form-item>
          <el-form-item>
            <el-button type="primary" icon="el-icon-search" size="mini" @click="handleyixuan">搜索</el-button>
          </el-form-item>
        </el-form>
        <el-table border v-loading="loading" :data="OnenewpacName" height="478" ref="tres" style="width: 100%">
          <el-table-column label="已选项目列表" align="center" prop="proName" />
          <el-table-column label="操作" align="center" width="85">
            <template slot-scope="scope">
@@ -67,60 +51,94 @@
      </el-col>
      <!-- 第三列:搜索 + 项目选择 -->
      <el-col :span="8" :xs="24">
        <el-form
          :model="queryParams1"
          ref="queryForm"
          size="small"
          :inline="true"
          v-show="showSearch"
          label-width="68px"
          style="height: 45px"
          @submit.native.prevent
        >
      <el-col :span="9" :xs="24">
        <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" v-show="showSearch"
          label-width="68px" style="height: 45px" @submit.native.prevent>
          <el-form-item label="项目名称" prop="proName">
            <el-input
              ref="inputName"
              v-model="queryParams1.proName"
              placeholder="请输入项目名称"
              clearable
              @keyup.enter.native="handleSearchFor"
              style="width: 140px"
            />
            <el-input ref="inputName" v-model="queryParams1.proName" placeholder="请输入项目名称" clearable
              @keyup.enter.native="handleSearchFor" style="width: 140px" />
          </el-form-item>
          <el-form-item>
            <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchFor">搜索</el-button>
          </el-form-item>
        </el-form>
        <el-table
          border
          v-loading="loading"
          ref="tre"
          :data="Treedata"
          @selection-change="handleChangesingle"
          height="478"
          style="width: 100%"
        >
        <el-table border v-loading="loading" ref="tre" :data="Treedata" @selection-change="handleChangesingle"
          height="478" style="width: 100%">
          <el-table-column type="selection" width="40px" align="center" />
          <el-table-column label="项目名称" align="center" prop="proName" show-overflow-tooltip />
        </el-table>
      </el-col>
      <!-- 添加或修改参数配置对话框 -->
      <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
        <el-form ref="form" :model="form" :rules="rules" label-width="80px">
          <el-form-item label="字典类型">
            <el-input v-model="form.dictType" :disabled="true" />
          </el-form-item>
          <el-form-item label="数据名称" prop="dictLabel">
            <el-input v-model="form.dictLabel" placeholder="请输入数据名称" />
          </el-form-item>
          <el-form-item label="数据键值" prop="dictValue">
            <el-input v-model="form.dictValue" placeholder="请输入数据键值" />
          </el-form-item>
          <el-form-item label="样式属性" prop="cssClass">
            <el-input v-model="form.cssClass" placeholder="请输入样式属性" />
          </el-form-item>
          <el-form-item label="显示排序" prop="dictSort">
            <el-input-number v-model="form.dictSort" controls-position="right" :min="0" />
          </el-form-item>
          <el-form-item label="回显样式" prop="listClass">
            <el-select v-model="form.listClass">
              <el-option v-for="item in listClassOptions" :key="item.value" :label="item.label + '(' + item.value + ')'"
                :value="item.value"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="状态" prop="status">
            <el-radio-group v-model="form.status">
              <el-radio v-for="dict in dict.type.sys_normal_disable" :key="dict.value" :label="dict.value">{{ dict.label
              }}</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="备注" prop="remark">
            <el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>
          </el-form-item>
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="submitForm">确 定</el-button>
          <el-button @click="cancel">取 消</el-button>
        </div>
      </el-dialog>
    </el-row>
  </div>
</template>
<script>
import { searchBiaoben, delBiaoben, editBiaoben } from "@/api/hosp/biaoben";
import { getDicts, addData, updateData } from "@/api/system/dict/data";
import { debounce } from 'lodash';
export default {
  name: "Part",
  data() {
    let checkPhoneNum = (rule, value, callback) => {
      console.log(value)
      let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
      if (value == "" && value == undefined && !value) {
        return callback('');
      } else if (value != undefined && value != "") {
        return callback();
      } else if (!patter.test(value)) {
        return callback('');
      }
    };
    return {
      loading: false,
      open: false,
      OnenewpacName: [],
      Treedata: [],
      originalTreedata: [],
      Treedatas: [],
      queryParams: {
        tjh: '',
        tjCategory: null,
@@ -128,15 +146,57 @@
      queryParams1: {
        proName: '',
      },
      form: {
        price: '',
      queryParams2: {
        proName: '',
      },
      // 表单参数
      form: {},
      title: "",
      // 数据标签回显样式
      listClassOptions: [
        {
          value: "default",
          label: "默认"
        },
        {
          value: "primary",
          label: "主要"
        },
        {
          value: "success",
          label: "成功"
        },
        {
          value: "info",
          label: "信息"
        },
        {
          value: "warning",
          label: "警告"
        },
        {
          value: "danger",
          label: "危险"
        }
      ],
      // 表单校验
      rules: {
        dictLabel: [
          { required: true, validator: checkPhoneNum, trigger: "blur" }
        ],
        dictValue: [
          { required: true, validator: checkPhoneNum, trigger: "blur" }
        ],
        dictSort: [
          { required: true, validator: checkPhoneNum, trigger: "blur" }
        ]
      },
      showSearch: true,
      filteredSpecimenData: [],
      originalSpecimenData: [],
    };
  },
  dicts: ["sys_dict_specimen"],
  dicts: ["sys_dict_specimen", "sys_normal_disable"],
  created() {
    this.fetchInitialBiaobenData();
    this.initializeSpecimenData();
@@ -168,6 +228,22 @@
        this.originalSpecimenData = [];
        this.filteredSpecimenData = [];
      }
    },
    handleyixuan() {
      const searchText = this.queryParams2.proName?.trim().toLowerCase() || '';
      if (searchText) {
        this.OnenewpacName = this.Treedatas.filter(item =>
          item.proName.toLowerCase().includes(searchText)
        );
        this.OnenewpacName.length
          ? this.$message.success('查询成功')
          : this.$message.warning('未找到匹配的项目');
      } else {
        this.OnenewpacName = [...this.Treedatas];
        this.$message.info('已显示所有项目');
      }
      this.$refs.tres.clearSelection();
    },
    handleSearchFor() {
      const searchText = this.queryParams1.proName?.trim().toLowerCase() || '';
@@ -233,6 +309,13 @@
        this.$refs.tre.clearSelection();
      }
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.open = true;
      this.title = "添加字典数据";
      this.form.dictType = "sys_dict_specimen";
    },
    cancell() {
      this.openOne = false;
    },
@@ -281,7 +364,8 @@
      this.loading = true;
      searchBiaoben({ bblx })
        .then(response => {
          this.OnenewpacName = response.data || [];
          this.Treedatas = response.data || [];
          this.OnenewpacName = [...this.Treedatas];
          this.loading = false;
        })
        .catch(error => {
@@ -305,6 +389,38 @@
          this.loading = false;
        });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    /** 提交按钮 */
    submitForm: function () {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.dictCode != undefined) {
            updateData(this.form).then(response => {
              this.$store.dispatch('dict/removeDict', this.queryParams.dictType);
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addData(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              let dictType = "sys_dict_specimen"
                getDicts(dictType).then(response => {
                  this.originalSpecimenData=  response.rows ||[]
                  this.filteredSpecimenData =[...this.originalSpecimenData];
                });
            });
          }
        }
      });
    },
  },
};
</script>
@@ -313,6 +429,7 @@
.app-container {
  padding: 20px;
}
.dialog-footer1 {
  margin-top: 60px;
  text-align: center;