qinxianzhangyao
2024-04-25 74a7a2bbef241a023110ff24c8e7c84025e267f5
src/views/picture/music/index.vue
@@ -15,7 +15,7 @@
          placeholder="请输入体检号"
          clearable
          @keyup.enter.native="handleQuery"
          @blur="handleQuery"
          @blur="hb"
          style="width: 160px"
        />
      </el-form-item>
@@ -221,14 +221,16 @@
      <!-- </div> -->
    </div>
    <div style="margin-right: 70%">
      <pagination
        v-show="total > 0"
        :total="total"
        :page.sync="queryParams.pageNum"
        :limit.sync="queryParams.pageSize"
        @pagination="getList"
      />
    <div class="pag">
      <div class="pag1">
        <pagination
          v-show="total > 0"
          :total="total"
          :page.sync="queryParams.pageNum"
          :limit.sync="queryParams.pageSize"
          @pagination="getList"
        />
      </div>
    </div>
    <el-drawer
      title="我是标题"
@@ -511,9 +513,52 @@
          </div>
        </div>
        <div class="tanchuangbox_right">
          <div>
          <div v-if="row.tjType == '02'">
            <span>职业史</span>
            <div style="width: 100%; min-height: 300px"></div>
            <div style="width: 100%; min-height: 200px; margin-top: 10px">
              <el-table
                border
                :data="row.workLogs"
                style="width: 100%"
                max-height="200"
              >
                <el-table-column
                  prop="beginTime"
                  label="开始时间"
                  align="center"
                  :show-overflow-tooltip="true"
                >
                </el-table-column>
                <el-table-column
                  prop="endTime"
                  label="结束时间"
                  align="center"
                  :show-overflow-tooltip="true"
                >
                </el-table-column>
                <el-table-column
                  prop="workCompany"
                  label="工作单位"
                  align="center"
                  :show-overflow-tooltip="true"
                >
                </el-table-column>
                <el-table-column
                  prop="workDept"
                  label="部门"
                  align="center"
                  :show-overflow-tooltip="true"
                >
                </el-table-column>
                <el-table-column
                  prop="workType"
                  label="工种"
                  align="center"
                  :show-overflow-tooltip="true"
                >
                </el-table-column>
              </el-table>
            </div>
          </div>
          <div style="display: flex; margin-top: 20px">
            <div
@@ -622,12 +667,23 @@
          </div>
          <div style="margin-top: 20px">
            <span>检查医生:</span>
            <el-input
              v-model="input"
              style="width: 160px; margin-right: 10px"
            ></el-input>
            <el-date-picker v-model="value1" type="date" placeholder="选择日期">
            </el-date-picker>
            <el-select
              v-model="doctorName"
              placeholder="请选择"
              style="width: 30%"
              filterable
              @change="selName"
            >
              <el-option
                v-for="item in userList"
                :key="item.userId"
                :label="item.nickName"
                :value="item.userId"
              >
              </el-option>
            </el-select>
            <!-- <el-date-picker v-model="value1" type="date" placeholder="选择日期">
            </el-date-picker> -->
          </div>
          <div style="margin-top: 20px">
            <!-- <el-button type="primary">生成小结</el-button> -->
@@ -661,7 +717,8 @@
require("echarts/lib/component/tooltip");
require("echarts/lib/component/legend");
require("echarts/lib/chart/pie");
import { listUser } from "@/api/system/user";
import { getInfo } from "@/api/login";
import Public from "@/components/public";
export default {
  dicts: [
@@ -676,7 +733,10 @@
  components: { Public },
  data() {
    return {
      remark:"",
      tjNum:"",
      doctorName:"",
      userList: [],
      remark: "",
      pureTestId: "",
      youerList: {
        qdwb: null,
@@ -822,6 +882,7 @@
  },
  created() {
    this.getList();
    this.getListUser();
  },
  mounted() {
    this.$nextTick(() => {
@@ -829,6 +890,26 @@
    });
  },
  methods: {
      /** 查询用户列表 */
    getListUser() {
      listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
        (response) => {
          this.userList = response.rows;
          // this.userList.forEach((element) => {
          //   const userName = this.$store.state.user.name;
          //   if (userName == element.userName) {
          //     this.doctorName = element.nickName;
          //   }
          // });
        }
      );
      getInfo().then((response) => {
        this.info = response.user;
        this.deptId = response.user.deptId;
        this.userId = response.user.userId;
        this.nickName = response.user.nickName;
      });
    },
    ysels(val) {
      this.youeryuanshi1[0] = val;
      this.getech();
@@ -926,6 +1007,15 @@
      this.zuoerjiaozheng1[5] = val;
      this.getech3();
    },
    selName(val) {
      this.doctorName = val;
      console.log(this.doctorName);
      // this.userList.forEach(item =>{
      //   if(val === item.userId){
      //     this.doctorName = item.nickName
      //   }
      // })
    },
    handleRowClick(selection) {
      this.row = selection.customer;
      selection.list.forEach((item) => {
@@ -933,10 +1023,15 @@
      });
      this.row.tjType = Number(selection.customer.tjType);
      this.drawer = true;
      let pureTestId = this.pureTestId;
      getTjPureToneTestDetilList(pureTestId).then((res) => {
        if (res.data != []) {
          res.data.forEach((item) => {
      let data = {
        pureTestId:this.pureTestId,
        tjNum:this.row.tjNumber,
      }
      getTjPureToneTestDetilList(data).then((res) => {
        if (res.data != {}) {
          this.doctorName = res.data.doctorName;
          this.remark = res.data.remark;
          res.data.detilList.forEach((item) => {
            if (item.rd == "右耳") {
              this.youerList = item;
              this.youeryuanshi1[0] = this.youerList.qdwb;
@@ -1276,6 +1371,11 @@
      };
      this.resetForm("form");
    },
    hb(){
       if (this.queryParams.tjNum != null) {
        this.handleQuery();
      }
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
@@ -1373,8 +1473,11 @@
      this.zuoerList.rd = "左耳";
      this.shuangerList.pureTestId = this.pureTestId;
      this.shuangerList.rd = "双耳";
      let data = [this.youerList, this.zuoerList, this.shuangerList];
      saveTjPureToneTestDetil(data).then((res) => {
      let pureToneTestDetils = [this.youerList, this.zuoerList, this.shuangerList];
      let remark = this.remark;
      let tjNum = this.row.tjNumber;
      let doctorName = this.doctorName;
      saveTjPureToneTestDetil(pureToneTestDetils,remark,tjNum,doctorName).then((res) => {
        console.log(res);
        if (res.code == 200) {
          this.$modal.msgSuccess("提交成功");
@@ -1496,4 +1599,13 @@
.ss_txt {
  width: 60px;
}
.pag {
  width: 100%;
  display: flex;
  justify-content: center;
}
.pag1 {
  width: 30%;
}
</style>