WXL
4 天以前 ef60bc92aac7a8750e3dba45321a60c0791c95b7
src/views/index.vue
@@ -14,14 +14,14 @@
                  text-shadow: 2px 4px 7px rgb(85 132 255 / 50%);
                  color: black;
                "
                >12322 (人)</span
                >{{0}} (人)</span
              >
              <span>{{ endatd }} ~ {{ statd }}</span>
            </div>
            <el-row :gutter="20">
              <el-col :span="8">
                <div class="home-user-task-stats">
                  <p>{{ 11231 }}</p>
                  <p>{{ 0 }}</p>
                  <div class="text-color2">
                    <p>门诊总数(人)</p>
                  </div>
@@ -29,7 +29,7 @@
              </el-col>
              <el-col :span="7">
                <div class="home-user-task-stats">
                  <p>{{ 9207 }}</p>
                  <p>{{ 0 }}</p>
                  <div class="text-color2">
                    <p>住院总数(人)</p>
                  </div>
@@ -37,7 +37,7 @@
              </el-col>
              <el-col :span="7">
                <div class="home-user-task-stats">
                  <p>{{ 1209 }}</p>
                  <p>{{ 0 }}</p>
                  <div class="text-color2">
                    <p>体检总数(人)</p>
                  </div>
@@ -64,7 +64,7 @@
            <el-row :gutter="20">
              <el-col :span="12">
                <div class="home-user-task-stats">
                  <p style="color: red">{{ 3453 }}</p>
                  <p style="color: red">{{ 0 }}</p>
                </div>
                <div class="text-color2">
                  <p>住院服务人数</p>
@@ -72,7 +72,7 @@
              </el-col>
              <el-col :span="12">
                <div class="home-user-task-stats">
                  <p style="color: red">{{ 4213 }}</p>
                  <p style="color: red">{{ 0 }}</p>
                  <div class="text-color2">
                    <p>体检服务人数</p>
                  </div>
@@ -167,7 +167,7 @@
            <div class="empenty">
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples" >出院:</div></el-col
                  ><div class="grid-contents bg-purples">出院:</div></el-col
                >
                <el-col :span="7">
                  <div style="display: flex">
@@ -187,13 +187,13 @@
                    <div class="subtitle">复诊通知</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col> </el-row
              >
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples" ></div></el-col
                >
                <el-col :span="7" >
                  ><div class="grid-contents bg-purples"></div
                ></el-col>
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">出院评估</div>
                    <div class="grid-contents bg-purple-light">0次</div>
@@ -212,12 +212,11 @@
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col>
                 </el-row
              >
              </el-row>
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples" >门诊:</div></el-col
                  ><div class="grid-contents bg-purples">门诊:</div></el-col
                >
                <el-col :span="7">
                  <div style="display: flex">
@@ -237,56 +236,49 @@
                    <div class="subtitle">复诊通知</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col> </el-row
              >
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples" ></div></el-col
                >
                  ><div class="grid-contents bg-purples"></div
                ></el-col>
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">出院随访</div>
                    <div class="subtitle">满意度调查</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col>
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">出院宣教</div>
                    <div class="subtitle">其他通知</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples">在院:</div></el-col
                >
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">在院宣教</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col>
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">在院评估</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col>
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">复诊通知</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col> </el-row
              >
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples" >在院:</div></el-col
                >
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">出院随访</div>
                    <div class="subtitle">其他通知</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col>
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">出院宣教</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col>
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">复诊通知</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col> </el-row
              >
              </el-row>
            </div>
          </div>
        </el-col>
@@ -296,13 +288,14 @@
</template>
<script>
// import {
//   getUserWork,
//   getregionCollect,
//   getregionOrderCount,
// } from "@/api/home";
import {
  getoutpatientamount,
  getInhospital,
  getBarchart,
  getQtemplateobj,
} from "@/api/AiCentre/index";
import dayjs from "dayjs";
import { data } from "jquery";
export default {
  name: "home",
@@ -347,13 +340,11 @@
    },
  },
  created() {
    // this.getoutpatientamount();
    // this.getInhospital();
    // this.getBarchart();
    this.$nextTick(function () {
      this.getregionAmountCollect();
      this.getUserWorks();
      this.getregionCollect();
      this.getregionOrderCount();
      this.getNodeCount();
      this.getPrtnerCount();
      this.getnodeCollect();
      this.getSkuTop();
    });
@@ -378,25 +369,13 @@
        this.dyat = 360;
      }
      this.getregionAmountCollect();
      this.getUserWorks();
      this.getregionCollect();
      this.getregionOrderCount();
      this.getNodeCount();
      this.getPrtnerCount();
      // this.getoutpatientamount();
      // this.getInhospital();
      // this.getBarchart();
      this.getnodeCollect();
      this.getSkuTop();
    },
    // 获取点位总数
    async getNodeCount() {
      // const res = await getNodeCount();
      // this.NodeCount = res.data;
    },
    // 获取合作商总数
    async getPrtnerCount() {
      // const res = await getPrtnerCount();
      // this.PrtnerCount = res.data;
    },
    // 合作商点位汇总统计饼状图
    async getnodeCollect() {
      // const res = await getnodeCollect();
@@ -412,47 +391,38 @@
      // const res = await getSkuTop(10, this.endatd, this.statd);
      // this.SkuTop = res.data;
      this.SkuTop = [
        { amount: 0, count: 123, skuId: "0", skuName: "心肺科" },
        { amount: 0, count: 122, skuId: "0", skuName: "肾脏科" },
        { amount: 0, count: 112, skuId: "0", skuName: "泌尿科" },
        { amount: 0, count: 111, skuId: "0", skuName: "男科" },
        { amount: 0, count: 102, skuId: "0", skuName: "妇产科" },
        { amount: 0, count: 98, skuId: "0", skuName: "外科" },
        { amount: 0, count: 89, skuId: "0", skuName: "急诊" },
        { amount: 0, count: 88, skuId: "0", skuName: "器械科" },
        { amount: 0, count: 87, skuId: "0", skuName: "骨科" },
        { amount: 0, count: 67, skuId: "0", skuName: "放射科" },
        { amount: 0, count: 89, skuId: "0", skuName: "急诊" },
        { amount: 0, count: 88, skuId: "0", skuName: "器械科" },
        { amount: 0, count: 87, skuId: "0", skuName: "骨科" },
        { amount: 0, count: 67, skuId: "0", skuName: "放射科" },
        // { amount: 0, count: 123, skuId: "0", skuName: "心肺科" },
        // { amount: 0, count: 122, skuId: "0", skuName: "肾脏科" },
        // { amount: 0, count: 112, skuId: "0", skuName: "泌尿科" },
        // { amount: 0, count: 111, skuId: "0", skuName: "男科" },
        // { amount: 0, count: 102, skuId: "0", skuName: "妇产科" },
        // { amount: 0, count: 98, skuId: "0", skuName: "外科" },
        // { amount: 0, count: 89, skuId: "0", skuName: "急诊" },
        // { amount: 0, count: 88, skuId: "0", skuName: "器械科" },
        // { amount: 0, count: 87, skuId: "0", skuName: "骨科" },
        // { amount: 0, count: 67, skuId: "0", skuName: "放射科" },
        // { amount: 0, count: 89, skuId: "0", skuName: "急诊" },
        // { amount: 0, count: 88, skuId: "0", skuName: "器械科" },
        // { amount: 0, count: 87, skuId: "0", skuName: "骨科" },
        // { amount: 0, count: 67, skuId: "0", skuName: "放射科" },
      ];
    },
    // 获取工单数量
    async getUserWorks() {
      // const res = await getUserWork(this.atd, this.td);
      // this.ticketStatistics = res.data[0];
    // 获取门诊基础数据
    getoutpatientamount() {
      getoutpatientamount().then((res) => {});
    },
    // 获取就诊数量
    async getregionOrderCount() {
      // const res = await getregionOrderCount({
      //   start: this.atd,
      //   end: this.td,
      // });
      // this.order = res.data;
    getBarchart() {
      getBarchart().then((res) => {});
    },
    // 获取总量数量
    async getregionCollect() {
      // const res = await getregionCollect({
      //   start: this.atd,
      //   end: this.td,
      // });
      // this.Count = (res.data / 1000000).toFixed(2);
    getInhospital() {
      getInhospital().then((res) => {});
    },
    // 获取线状图时间
    async getregionAmountCollect() {
      // const res = await getregionAmountCollect(1, this.endatd, this.statd);
      //getregionAmountCollect(1, this.endatd, this.statd);
      // this.xAxis = res.data.xAxis;
      // this.series = res.data.series;
      this.xAxis = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月"];
@@ -544,7 +514,8 @@
                return value + " 人";
              },
            },
            data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
            // data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
            data:[],
          },
          {
            name: "门诊随访量",
@@ -554,7 +525,8 @@
                return value + " 人";
              },
            },
            data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
            // data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
            data:[],
          },
          {
            name: "在院随访量",
@@ -564,7 +536,9 @@
                return value + " 人";
              },
            },
            data: [145, 92, 178, 134, 167, 85, 199, 112, 156, 88, 120, 145],
            // data: [145, 92, 178, 134, 167, 85, 199, 112, 156, 88, 120, 145],
            data:[],
          },
          {
@@ -577,7 +551,9 @@
                return value + " 次";
              },
            },
            data: [45, 123, 78, 156, 89, 34, 199, 112, 67, 145, 88, 175],
            // data: [45, 123, 78, 156, 89, 34, 199, 112, 67, 145, 88, 175],
            data:[],
          },
          {
            name: "门诊复诊通知",
@@ -589,7 +565,9 @@
                return value + " 次";
              },
            },
            data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
            // data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
            data:[],
          },
          {
            name: "在院评估量",
@@ -601,7 +579,9 @@
                return value + " 次";
              },
            },
            data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
            // data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
            data:[],
          },
        ],
      };
@@ -640,10 +620,13 @@
        },
        dataset: {
          source: [
            ["product", "2012", "2013", "2014", "2015", "2016", "2017"],
            ["出院宣教", 56, 82, 88, 70, 53, 85],
            ["在院宣教", 51, 51, 55, 53, 73, 68],
            ["门诊宣教", 40, 62, 69, 36, 45, 32],
            ["product", "2020", "2021", "2022", "2023", "2024", "2025"],
            // ["出院宣教", 56, 82, 88, 70, 53, 85],
            // ["在院宣教", 51, 51, 55, 53, 73, 68],
            // ["门诊宣教", 40, 62, 69, 36, 45, 32],
            ["出院宣教", ],
            ["在院宣教", ],
            ["门诊宣教", ],
          ],
        },
        xAxis: { type: "category" },
@@ -1003,7 +986,7 @@
  line-height: 36px;
  width: 6vw;
}
.subtitle{
.subtitle {
  text-align: center;
  align-items: center;
}