2
lkk
2025-01-09 e13b130ad7fe8a203c1b67aeb8d4baabf6e0d395
2
3个文件已修改
85 ■■■■■ 已修改文件
src/api/doctor/examination.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/examination/index.vue 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/project/index.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/doctor/examination.js
@@ -46,6 +46,15 @@
    })
}
// 点击恢复
export function huifu(tjNUm,proId) {
    return request({
        url: '/hosp/inspection/csqijianhuifujiekou',
        method: 'get',
        params: {tjNUm:tjNUm,proId:proId}
    })
}
// 点击结果查询
export function resultList(tjNum,proId) {
    return request({
src/views/doctor/examination/index.vue
@@ -304,12 +304,18 @@
                type="text"
                :disabled="scope.row.type === 1"
                @click="qijian(scope.row)"
                >弃检</el-button
                >{{ scope.row.type === 0 ? "弃检" : "恢复" }}</el-button
              >
              <!-- <el-button
                size="mini"
                type="text"
                @click="qijian(scope.row)"
                >恢复</el-button
              > -->
              <el-button
                size="mini"
                type="text"
                :disabled="scope.row.type === 0"
                :disabled="scope.row.type === 0 || scope.row.type === 2"
                @click="queryResultone(scope.row)"
                >结果查询</el-button
              >
@@ -396,6 +402,7 @@
  qijian,
  resultList,
  typeOne,
  huifu,
} from "@/api/doctor/examination";
import { getCompany, queryCompany } from "@/api/team/tuanti";
import { getNewDateList } from "@/api/hosp/order";
@@ -503,14 +510,14 @@
        // console.log(this.xianshi, 999);
      });
      getNewDateList().then((res) => {
        console.log(res,222);
        // console.log(res,222);
        // this.createTimeList = [
        //   moment(res.data).format("YYYY-MM-DD 00:00:00"),
        //   moment(res.data).format("YYYY-MM-DD 23:59:00"),
        // ];
        // console.log(this.createTimeList,8855);
        this.getList();
      });
    },
@@ -552,7 +559,7 @@
    // 选框数据
    searchSelect(val) {
      this.CheckBox = val;
      console.log(this.CheckBox, 9999);
      // console.log(this.CheckBox, 9999);
    },
    getList() {
      this.loading = true;
@@ -569,7 +576,7 @@
      // 获取单位信息集合
      getCompany(this.queryParam).then((response) => {
        this.CompanyList = response.data;
        console.log(this.CompanyList, 555);
        // console.log(this.CompanyList, 555);
        this.loading = false;
      });
@@ -732,17 +739,13 @@
      this.currentRow = val;
      let tjNumber = val.tjNumber;
      this.selectedTjNumber = val.tjNumber;
      console.log(this.currentRow, 4455);
      typeOne(tjNumber).then((res) => {
        this.type = res.data;
        console.log(res, 3322);
      });
      cSWebGetPro(tjNumber).then((res) => {
        this.xiangmuList = res.data;
        console.log(this.xiangmuList, 999);
        this.xiangmuList.forEach((item) => {
          // console.log(item);
          // if (item.type == 0) {
@@ -780,23 +783,35 @@
    qijian(row) {
      const tjNUm = this.selectedTjNumber;
      const proId = row.proId;
      qijian(tjNUm, proId).then((res) => {
        if (res.code == 200) {
          cSWebGetPro(tjNUm).then((res) => {
            if (res.code === 200) {
              // 更新右边表格的数据
              this.xiangmuList = res.data;
            }
          });
        }
      });
      if (row.type == "2") {
        huifu(tjNUm, proId).then((res) => {
          if (res.code == 200) {
            cSWebGetPro(tjNUm).then((res) => {
              if (res.code === 200) {
                // 更新右边表格的数据
                this.xiangmuList = res.data;
              }
            });
          }
        });
      } else {
        qijian(tjNUm, proId).then((res) => {
          if (res.code == 200) {
            cSWebGetPro(tjNUm).then((res) => {
              if (res.code === 200) {
                // 更新右边表格的数据
                this.xiangmuList = res.data;
              }
            });
          }
        });
      }
    },
    chaxun() {},
    handleRowClick(row, column, event) {
      console.log(row, 2323);
      // console.log(row, 2323);
      this.name = row.proName;
      console.log(this.name, 99999);
      // console.log(this.name, 99999);
    },
    queryResultone(row) {
      // 打开抽屉
src/views/hosp/project/index.vue
@@ -343,7 +343,11 @@
          </el-input>
        </el-form-item>
        <el-form-item label="项目价格" prop="proPrice">
          <el-input v-model="form.proPrice" placeholder="请输入项目价格" />
          <el-input
            v-model="form.proPrice"
            :disabled="isPriceDisabled"
            placeholder="请输入项目价格"
          />
        </el-form-item>
        <el-form-item label="检查类别" prop="proCheckType">
          <el-input
@@ -980,6 +984,7 @@
      // 部门树选项
      deptOptions: undefined,
      dialogTableVisible: false,
      isPriceDisabled: false,
      sfxmList: [],
      deptOptionstree: [],
      defaultPropstree: {
@@ -1075,7 +1080,7 @@
        lisXmmc: "",
        proMetering: "",
        proScope: "",
        proSex:'2',
        proSex: "2",
        resultType: "", // 初始值
      },
      // 表单校验
@@ -1657,6 +1662,8 @@
      this.form = this.xiugaiList;
      this.form.proStatus = this.form.proStatus.toString();
      this.proParent = true;
      // 设置项目价格禁用
      this.isPriceDisabled = true;
      // if(){
      //   this.proParent = true
      // }