qinxianzhangyao
2023-11-17 5af76d2fad371b7a643457d27113ebe50f01fee3
src/views/doctor/check/index.vue
@@ -13,11 +13,22 @@
        <el-button size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>
    <div style="display: flex;">
      <el-radio-group v-model="tjStatus" @input="radioChange" style="margin-left: 30px">
        <el-radio-button label="0">未检</el-radio-button>
        <el-radio-button label="1">已检</el-radio-button>
      </el-radio-group>
      <el-row :gutter="10" class="mb8" style="margin:8px 10px;">
      <el-col :span="1.5">
        <el-button type="primary"
          size="mini"
          @click="radioChange"
          v-hasPermi="['system:notice:add']"
        >会诊申请</el-button>
      </el-col>
    </el-row>
    </div>
    <el-radio-group v-model="tjStatus" @input="radioChange" style="margin-left: 30px">
      <el-radio-button label="0">未检</el-radio-button>
      <el-radio-button label="1">已检</el-radio-button>
    </el-radio-group>
    <template>
      <el-table :data="tableList" v-loading="loading" ref="table" height="536px" style="margin: 20px; width: 98%"
@@ -95,7 +106,7 @@
                <span v-if="scope.row.cusSex == '9'">未说明性别</span>
              </template>
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse;" align="right">
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse" align="right">
              性别:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
@@ -129,7 +140,8 @@
          </el-radio-group>
        </div>
      </template>
      <el-table v-loading="loading" :data="proParentList.sons" border height="460px" style="width: 96%; margin: 10px 10px">
      <el-table v-loading="loading" :data="proParentList.sons" border height="460px"
        style="width: 96%; margin: 10px 10px">
        <el-table-column prop="project.proName" label="检测项目" width="150">
          <!-- <template slot-scope="scope">
            {{ scope.row.project.proName }}
@@ -188,8 +200,8 @@
              病种选择:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              <el-select v-model="value" multiple placeholder="请选择" style="width: 100%;height:45px" v-if="deptAdviceList"
                @change="sel" filterable>
              <el-select v-model="value" multiple placeholder="请选择" style="width: 100%; height: 45px"
                v-if="deptAdviceList" @change="sel" filterable>
                <el-option v-for="item in deptAdviceList" :key="item.id" :label="item.title" :value="item.id">
                </el-option>
              </el-select>
@@ -382,7 +394,7 @@
    },
    // 获取医生
    selName(val) {
      this.doctorName = val
      this.doctorName = val;
      // this.userList.forEach(item =>{
      //   if(val === item.userId){
      //     this.doctorName = item.nickName
@@ -409,7 +421,7 @@
          });
        });
      } else {
        this.proParentList.remark = ""
        this.proParentList.remark = "";
        this.deptAdviceList.forEach((item) => {
          this.ids = item.id;
          val.forEach((item1) => {
@@ -433,20 +445,21 @@
      // this.$refs.aaa.open = true;
      // this.$refs.aaa.getList();
    },
   // 规则
   handleguize(row) {
      this.row = row
    // 规则
    handleguize(row) {
      this.row = row;
      this.$refs.aaa.open = true;
      this.$refs.aaa.title = "诊断结果结论";
      this.$refs.aaa.getList(this.row);
    },
    handleChanges(param1, param2) {
      this.row.conclusion = param1
      this.row.rulesList = param2
      this.row.conclusion = param1;
      this.row.rulesList = param2;
    },
    getList() {
      this.queryParams.type = this.tjStatus;
      getProList(this.queryParams).then((response) => {
        if (response.data) {
          if (response.data.date) {
@@ -511,8 +524,8 @@
      this.submitForm();
    },
   // 点击详情
   handleClick(row) {
    // 点击详情
    handleClick(row) {
      this.loading = true;
      this.drawer = true;
      this.tableAll = row;
@@ -544,11 +557,15 @@
              this.proParentList = response.data;
              this.loading = false;
              this.value = [];
              if (this.proParentList.xiaoJie.length != 0) {
                this.proParentList.xiaoJie.forEach((item2) => {
                  this.value.push(item2.id);
                });
              if (this.proParentList.xiaoJieIds != null) {
                if (this.proParentList.xiaoJieIds.length != 0) {
                  this.proParentList.xiaoJieIds.forEach((item2) => {
                    let item = Number(item2)
                    this.value.push(item);
                  });
                }
              }
              this.proParentList.sons.forEach((item) => {
                this.doctorName = item.doctorName;
@@ -618,6 +635,11 @@
        .then(() => {
          // 体检号
          let tjNumber = this.tableAll.tjNumber;
          this.userList.forEach((item) => {
            if (this.doctorName == item.nickName) {
              this.doctorName = item.userId;
            }
          });
          this.proParentList.sons.forEach((item) => {
            if (this.rows) {
              this.rows.forEach((item1) => {
@@ -642,7 +664,7 @@
              isReturn: item.isReturn === true ? 1 : 0,
              exceptionDesc: item.exceptionDesc === true ? 1 : 0,
              conclusion: item.conclusion,
              rulesList: item.rulesList
              rulesList: item.rulesList,
            });
          });
@@ -670,10 +692,13 @@
          getParentId(data).then((response) => {
            this.proParentList = response.data;
            this.value = [];
            if (this.proParentList.xiaoJie.length != 0) {
              this.proParentList.xiaoJie.forEach((item2) => {
                this.value.push(item2.id);
              });
            if (this.proParentList.xiaoJieIds != null) {
              if (this.proParentList.xiaoJieIds.length != 0) {
                this.proParentList.xiaoJieIds.forEach((item2) => {
                  let item = Number(item2)
                  this.value.push(item);
                });
              }
            }
            this.proParentList.sons.forEach((item) => {
              this.doctorName = item.doctorName;
@@ -690,7 +715,6 @@
              if (item.exceptionDesc == "0") {
                item.exceptionDesc = false;
              }
            });
            if (this.proParentList.xiaoJie.length != 0) {
              this.Parent.forEach((item3) => {
@@ -722,10 +746,13 @@
          getParentId(data).then((response) => {
            this.proParentList = response.data;
            this.value = [];
            if (this.proParentList.xiaoJie.length != 0) {
              this.proParentList.xiaoJie.forEach((item2) => {
                this.value.push(item2.id);
              });
            if (this.proParentList.xiaoJieIds != null) {
              if (this.proParentList.xiaoJieIds.length != 0) {
                this.proParentList.xiaoJieIds.forEach((item2) => {
                  let item = Number(item2)
                  this.value.push(item);
                });
              }
            }
            this.proParentList.sons.forEach((item) => {
              this.doctorName = item.doctorName;
@@ -742,7 +769,6 @@
              if (item.exceptionDesc == "0") {
                item.exceptionDesc = false;
              }
            });
            if (this.proParentList.xiaoJie.length != 0) {
              this.Parent.forEach((item3) => {
@@ -761,7 +787,6 @@
        });
    },
    handleInputConfirm(row) {
      this.rows.push(row);
    },
@@ -769,6 +794,11 @@
    determine() {
      // 体检号
      let tjNumber = this.tableAll.tjNumber;
      this.userList.forEach((item) => {
        if (this.doctorName == item.nickName) {
          this.doctorName = item.userId;
        }
      });
      this.proParentList.sons.forEach((item) => {
        if (this.rows) {
          this.rows.forEach((item1) => {
@@ -793,7 +823,7 @@
          isReturn: item.isReturn === true ? 1 : 0,
          exceptionDesc: item.exceptionDesc === true ? 1 : 0,
          conclusion: item.conclusion,
          rulesList: item.rulesList
          rulesList: item.rulesList,
        });
      });