qinxianzhangyao
2023-12-13 6cbbc9d82214c42996d622f22c8ccab3a8123d60
src/views/doctor/check/index.vue
@@ -37,8 +37,14 @@
        <el-table-column label="出生日期" align="center" prop="cusBrithday" width="100px" />
        <el-table-column label="电话" align="center" prop="cusPhone" width="100px" />
        <el-table-column label="体检类型" align="center" prop="tjType" width="80px" />
        <el-table-column label="登记时间" align="center" prop="createTime" width="160px" />
        <el-table-column label="体检时间" align="center" prop="tjTime" width="100px" />
        <el-table-column label="登记时间" align="center" prop="tjTime" width="160px">
        </el-table-column>
        <el-table-column label="体检时间" align="center" prop="tjTime" width="100px">
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.tjTime, '{y}-{m}-{d}') }}</span>
          </template>
        </el-table-column>
        <el-table-column label="未检项" prop="notCheckeds" :show-overflow-tooltip="true" />
        <el-table-column label="操作" align="center" width="130px">
          <template slot-scope="scope">
@@ -373,7 +379,7 @@
          </div>
        </el-col>
        <el-col :span="6">
          <Historicalreport  :reportHistorydata="reportHistorydata"></Historicalreport>
          <Historicalreport :reportHistorydata="reportHistorydata"></Historicalreport>
        </el-col>
      </el-row>
@@ -450,7 +456,7 @@
export default {
  dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"],
  name: "check",
  components: { Public ,Historicalreport},
  components: { Public, Historicalreport },
  data() {
    return {
      selected: false,
@@ -494,6 +500,7 @@
      info: {},
      allList: [],
      autorule: [],
      vals:{},
      form: {
        createTime: new Date()
      },
@@ -540,7 +547,7 @@
      },
      rules: {
        hzType: [
          { required: true, message: '请选择科室', trigger: 'change' }
          { required: true, message: '', trigger: 'change' }
        ]
      }
    };
@@ -666,7 +673,7 @@
          }
        })
      }else {
      } else {
        let data = {
          proId: this.focusrow.proId,
          cusId: this.tableAll.cusId,
@@ -710,17 +717,20 @@
      this.loading = true;
      this.queryParams.type = this.tjStatus;
      getProList(this.queryParams).then((response) => {
        if (response.data) {
        if (response.code == 200) {
          this.loading = false;
          if (response.data.date) {
            this.tableList = response.data.date;
          if (response.data) {
            if (response.data.date) {
              this.tableList = response.data.date;
            } else {
              this.tableList = response.data.customers;
            }
            this.total = response.data.total;
          } else {
            this.tableList = response.data.customers;
            this.tableList = [];
          }
          this.total = response.data.total;
        } else {
          this.tableList = [];
        }
      });
    },
@@ -729,13 +739,16 @@
      this.queryParams.type = val;
      this.loading = true;
      getProList(this.queryParams).then((response) => {
        if (response.data) {
        if (response.code == 200) {
          this.loading = false;
          this.tableList = response.data.date;
          this.total = response.data.total;
        } else {
          this.tableList = [];
          if (response.data) {
            this.tableList = response.data.date;
            this.total = response.data.total;
          } else {
            this.tableList = [];
          }
        }
      });
    },
@@ -787,6 +800,7 @@
    },
    checkboxchange(val) {
      this.vals = val
      this.project = val.project
      this.formIn.tjNumber = this.tableAll.tjNumber
      this.formIn.cusId = this.tableAll.cusId
@@ -802,6 +816,8 @@
      })
      if (val.isPositive == "1") {
        this.checkval = true;
        this.formIn.flag = "0"
       this.formIn.level=""
      } else {
        this.formIn.flag = "0"
        addBigPositive(this.formIn).then(res => {
@@ -819,6 +835,7 @@
    },
    cancell() {
      this.checkval = false;
      this.vals.isPositive = "0"
    },
    Hzlog(val) {
@@ -925,6 +942,7 @@
    cancel() {
      this.open = false;
      this.foropen = false;
    },
    Changeapply() {
@@ -959,7 +977,11 @@
          setTimeout(() => {
            loading.close();
          }, 3000);
          this.$message.msgSuccess("报告正在生成,请两分钟后预览!");
          // this.$message.msgSuccess("报告正在生成,请两分钟后预览!");
          this.$message({
            type: "warning ",
            message: "报告正在生成,请两分钟后预览!!",
          });
        } else {
          this.dialogVisible = true;