qinxianzhangyao
2023-12-05 2811859236dfcfe4d74469f6082e41580edb2bbc
src/views/doctor/check/index.vue
@@ -21,8 +21,8 @@
    </div>
    <template>
      <el-table :data="tableList" v-loading="loading" ref="table" height="536px" style="margin: 20px; width: 98%"
        border="">
      <el-table :data="tableList" v-loading="loading" ref="table" height="536px" style="margin: 20px; width: 98%" border
        :cell-class-name="myclass">
        <!-- <template slot="empty">数据正在加载中</template> -->
        <el-table-column label="体检号" align="center" prop="tjNumber" width="160px" />
        <el-table-column label="姓名" align="center" prop="cusName" width="90px" />
@@ -238,9 +238,15 @@
          </tr>
        </table>
      </div>
      <div style="margin: 10px 10px;" v-if="hasdeptList.length >= 1">
        <el-button type="primary" size="mini" @click="Changeapply()">会诊申请</el-button>
      <div>
        <div style="margin: 10px 10px;" v-if="hasdeptList.length >= 1">
          <el-button type="primary" size="mini" @click="Changeapply()">会诊申请</el-button>
        </div>
        <div style="margin: 10px 10px;" >
          <el-button type="primary" size="mini" @click="historicalreport()">历史报告</el-button>
        </div>
      </div>
      <template>
        <div style="margin-left: 10px">
@@ -413,6 +419,7 @@
  getParentList,
  getParentId,
  getDeptAdvice,
  reportHistory
} from "@/api/doctor/check";
import {
  addBigPositive
@@ -568,6 +575,12 @@
      //   }
      // })
    },
    myclass(row, column, rowIndex, columnIndex) {
      if (row.row.isPositive == 1) {
        return "setclass"
      }
    },
    // 小结获取备注
    sel(val) {
      if (this.proParentList.xiaoJie.length != 0) {
@@ -626,9 +639,11 @@
    },
    getList() {
      this.loading = true;
      this.queryParams.type = this.tjStatus;
      getProList(this.queryParams).then((response) => {
        if (response.data) {
          this.loading = false;
          if (response.data.date) {
            this.tableList = response.data.date;
          } else {
@@ -644,8 +659,10 @@
    // 单选按钮
    radioChange(val) {
      this.queryParams.type = val;
      this.loading = true;
      getProList(this.queryParams).then((response) => {
        if (response.data) {
          this.loading = false;
          this.tableList = response.data.date;
          this.total = response.data.total;
        } else {
@@ -720,9 +737,9 @@
      } else {
        this.formIn.flag = "0"
        addBigPositive(this.formIn).then(res => {
        this.$modal.msgSuccess("删除成功");
        this.getParentIdsss()
      })
          this.$modal.msgSuccess("删除成功");
          this.getParentIdsss()
        })
      }
    },
    submitcheckval() {
@@ -845,7 +862,14 @@
    Changeapply() {
      this.foropen = true
      this.Hzlog(this.tableAll.tjNumber)
    },
    historicalreport() {
      let data = {
        cusId:this.tableAll.cusId
      }
      reportHistory(data).then(res =>{
      })
    },
    submitFormreply() {
      let data = {
@@ -1263,7 +1287,7 @@
  },
};
</script>
<style scoped>
<style >
.el-table .cell {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
@@ -1275,6 +1299,12 @@
  padding-right: 10px;
}
.setclass {
  background-color: #f86b35;
  color: black;
}
.blue-button {
  width: 10px;
  background-color: #e2e3e4;