su
su1124
2024-01-04 03e16818445bc1926019a053dd47e1376b9388f3
src/views/picture/music/index.vue
@@ -10,10 +10,12 @@
    >
      <el-form-item label="体检号" prop="tjNum">
        <el-input
          ref="inputName"
          v-model="queryParams.tjNum"
          placeholder="请输入体检号"
          clearable
          @keyup.enter.native="handleQuery"
          @blur="handleQuery"
          style="width: 160px"
        />
      </el-form-item>
@@ -73,9 +75,14 @@
          />
          <!-- <el-table-column label="身份证" align="center" prop="customer.cusIdcard" width="170px" /> -->
          <el-table-column label="性别" align="center" prop="customer.cusSex">
            <template slot-scope="scope">
            <!-- <template slot-scope="scope">
              {{ scope.row.customer.cusSex === 0 ? "男" : "女" }}
              <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
            </template> -->
            <template slot-scope="scope">
              <dict-tag
                :options="dict.type.sys_user_sex"
                :value="scope.row.customer.cusSex"
              />
            </template>
          </el-table-column>
          <!-- <el-table-column label="生日" align="center" prop="customer.cusBrithday" width="110px" /> -->
@@ -140,7 +147,7 @@
          <el-table-column label="项目结果" align="center" prop="fixedValue" /> -->
      <!-- <el-table-column label="结论" align="center" prop="measuredValue" /> -->
      <!-- </el-table>
        <div style="height: 390px; margin-top: 10px">
          <el-image
            v-loading="loading"
@@ -232,91 +239,104 @@
      <div class="tanchuangbox">
        <div class="tanchuangbox_left">
          <el-form
            :model="queryParams"
            :model="row"
            ref="queryForm"
            size="small"
            :inline="true"
            v-show="showSearch"
            label-width="68px"
          >
            <el-form-item label="单位名称" prop="tjNum">
              <el-input
                v-model="queryParams.tjNum"
                placeholder="请输入单位名称"
                clearable
                style="width: 150px"
                disabled
              />
            </el-form-item>
            <el-form-item label="单位工种" prop="name">
              <el-input
                v-model="queryParams.name"
                placeholder="请输入单位工种"
                clearable
                disabled
                style="width: 150px"
              />
            </el-form-item>
            <el-form-item label="姓名" prop="name">
            <el-form-item label="姓名" prop="cusName">
              <el-input
                v-model="queryParams.name"
                v-model="row.cusName"
                placeholder="请输入姓名"
                clearable
                disabled
                style="width: 150px"
              />
            </el-form-item>
            <el-form-item label="性别" prop="name">
              <el-input
                v-model="queryParams.name"
                placeholder="请输入性别"
                clearable
            <el-form-item label="性别" prop="cusSex">
              <el-select
                disabled
                v-model="row.cusSex"
                placeholder="请选择性别"
                style="width: 150px"
              />
              >
                <el-option
                  v-for="dict in dict.type.sys_user_sex"
                  :key="dict.value"
                  :label="dict.label"
                  :value="parseInt(dict.value)"
                ></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="年龄" prop="name">
            <el-form-item label="年龄" prop="age">
              <el-input
                v-model="queryParams.name"
                v-model="row.age"
                placeholder="请输入年龄"
                clearable
                disabled
                style="width: 150px"
              />
            </el-form-item>
            <el-form-item label="身份证号" prop="name">
            <el-form-item label="身份证号" prop="cusIdcard">
              <el-input
                v-model="queryParams.name"
                v-model="row.cusIdcard"
                placeholder="请输入身份证号"
                clearable
                disabled
                style="width: 150px"
              />
            </el-form-item>
            <el-form-item label="体检日期" prop="name">
            <el-form-item label="体检日期" prop="tjTime">
              <el-input
                v-model="queryParams.name"
                v-model="row.tjTime"
                placeholder="请输入体检日期"
                clearable
                disabled
                style="width: 150px"
              />
            </el-form-item>
            <el-form-item label="体检类型" prop="name">
              <el-input
                v-model="queryParams.name"
                placeholder="请输入体检类型"
                clearable
            <el-form-item label="体检类型" prop="tjType">
              <el-select
                disabled
                v-model="row.tjType"
                placeholder="请选择体检类型"
                style="width: 150px"
              />
              >
                <el-option
                  v-for="dict in dict.type.dict_tjtype"
                  :key="dict.value"
                  :label="dict.label"
                  :value="parseInt(dict.value)"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="工龄" prop="name">
            <!-- <el-form-item label="工龄" prop="name">
              <el-input
                v-model="queryParams.name"
                placeholder="请输入工龄"
                clearable
                disabled
                style="width: 150px"
              />
            </el-form-item>
            </el-form-item> -->
          </el-form>
          <div class="data-view">
            <div id="main" style="width: 40%; height: 300px"></div>
            <div id="main1" style="width: 40%; height: 300px"></div>
            <div id="main2" style="width: 40%; height: 300px"></div>
            <div id="main3" style="width: 40%; height: 300px"></div>
            <!-- <div id="main2" style="width: 40%; height: 300px"></div>
            <div id="main3" style="width: 40%; height: 300px"></div> -->
          </div>
          <div class="tanchuangbox_left1">
            <div>
@@ -393,7 +413,11 @@
          </div>
        </div>
        <div class="tanchuangbox_right">
          <div style="display: flex;margin-top:20px">
          <div>
            <span>职业史</span>
            <div style="width: 100%; min-height: 300px"></div>
          </div>
          <div style="display: flex; margin-top: 20px">
            <div
              style="
                width: 50px;
@@ -464,11 +488,14 @@
          </div>
          <div style="margin-top: 20px">
            <span>检查医生:</span>
            <el-input v-model="input" style="width: 160px;margin-right:10px"></el-input>
            <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>
          </div>
          <div style="margin-top:20px">
          <div style="margin-top: 20px">
            <el-button type="primary">生成小结</el-button>
            <el-button type="primary">保存</el-button>
          </div>
@@ -479,7 +506,7 @@
    <Public ref="aaa" @add="handleChanges" />
  </div>
</template>
<script>
import {
  getList,
@@ -510,12 +537,42 @@
    "sys_dict_specimen",
    "dict_user_marry",
    "dict_user_national",
    "dict_tjtype",
  ],
  name: "Picture",
  components: { Public },
  data() {
    return {
      value1:"",
      teamYYNums:[],
      LineCharts:[],
      row: {},
      value1: "",
      zhexianList: [
        {
          numb: 500,
          bgcoun: 3,
        },
        {
          numb: 1000,
          bgcoun: 32,
        },
        {
          numb: 2000,
          bgcoun: 31,
        },
        {
          numb: 3000,
          bgcoun: 43,
        },
        {
          numb: 4000,
          bgcoun: 13,
        },
        {
          numb: 6000,
          bgcoun: 32,
        },
      ],
      tableData: [
        {
          date: "1",
@@ -608,11 +665,16 @@
  },
  created() {
    this.getList();
  },
  mounted() {
    this.$nextTick(() => {
      this.$refs.inputName.focus();
    });
  },
  methods: {
    handleRowClick(selection){
      console.log(selection);
    handleRowClick(selection) {
      this.row = selection.customer;
      this.row.tjType = Number(selection.customer.tjType);
      this.drawer = true;
      this.getech();
    },
@@ -638,7 +700,6 @@
        this.TobeToday = response;
        this.loading = false;
      });
      // 折线图
      getChart().then((response) => {
        response.data.forEach((item) => {
          this.LineChart.push(item.date);
@@ -650,7 +711,7 @@
        myChart.setOption({
          title: {
            text: "右耳原始听力",
            text: "左耳原始听力",
          },
          tooltip: {
            trigger: "axis",
@@ -669,44 +730,42 @@
              saveAsImage: {},
            },
          },
          xAxis: {
            type: "category",
            boundaryGap: false,
            axisLine: {
              show: true,
              lineStyle: {
                color: "blue",
                size: 12,
                width: 0,
                tyle: "solid",
              },
            },
            data: this.LineChart,
          },
          xAxis: [
            {type: "category",
            data: ["250", "750", "1.5k", "3k", "6k", "12k"]},
           { data: ["125", "500", "1k", "2k", "4k", "8k"]},
            // type: "category",
            // boundaryGap: false,
            // axisLine: {
            //   show: true,
            //   lineStyle: {
            //     color: "blue",
            //     size: 12,
            //     width: 0,
            //     tyle: "solid",
            //   },
            // },
            // data: this.LineChart,
          ],
          yAxis: {
            type: "value",
            min: 0,
            max: 50,
            interval: 5,
             type: 'value'
          },
          series: [
            {
              name: "每日体检登记数",
              data: [3, 32, 31, 43, 13, 32],
              type: "line",
              stack: "Total",
              data: this.personYYNum,
            },
            {
              name: "每日团体登记数",
              type: "line",
              stack: "Total",
              data: this.reportNum,
            },
            {
              name: "每日发布报告数",
              type: "line",
              stack: "Total",
              data: this.teamYYNum,
              symbol: "circle", //拐点的形状
              symbolSize: 13, //拐点大小
              lineStyle: {
                color: "#5470C6",
                width: 2,
              },
              itemStyle: {
                borderWidth: 1,
                borderColor: "black",
                color: "#fff",
              },
            },
          ],
        });
@@ -717,13 +776,12 @@
        this.loading = false;
      });
      getChart().then((response) => {
        response.data.forEach((item) => {
          this.LineChart.push(item.date);
          this.personYYNum.push(item.tdcoun);
          this.reportNum.push(item.grcoun);
          this.teamYYNum.push(item.bgcoun);
        console.log(this.zhexianList);
        this.zhexianList.forEach((item) => {
          console.log(item);
          this.LineCharts.push(item.numb);
          this.teamYYNums.push(item.bgcoun);
        });
        let myChart = this.$echarts.init(document.getElementById("main1"));
@@ -749,18 +807,18 @@
            },
          },
          xAxis: {
            type: "category",
            boundaryGap: false,
            axisLine: {
              show: true,
              lineStyle: {
                color: "blue",
                size: 12,
                width: 0,
                tyle: "solid",
              },
            },
            data: this.LineChart,
            // type: "category",
            // boundaryGap: false,
            // axisLine: {
            //   show: true,
            //   lineStyle: {
            //     color: "blue",
            //     size: 12,
            //     width: 0,
            //     tyle: "solid",
            //   },
            // },
            data: this.LineCharts,
          },
          yAxis: {
            type: "value",
@@ -770,22 +828,10 @@
          },
          series: [
            {
              name: "每日体检登记数",
              name: "左耳原始听力",
              type: "line",
              stack: "Total",
              data: this.personYYNum,
            },
            {
              name: "每日团体登记数",
              type: "line",
              stack: "Total",
              data: this.reportNum,
            },
            {
              name: "每日发布报告数",
              type: "line",
              stack: "Total",
              data: this.teamYYNum,
              data: this.teamYYNums,
            },
          ],
        });
@@ -1130,7 +1176,7 @@
  },
};
</script>
<style>
#table .el-table__header-wrapper .el-checkbox {
  display: none;
@@ -1235,4 +1281,4 @@
.ss_txt {
  width: 60px;
}
</style>
</style>