qx
qx
2025-06-06 38a8b888a9ec2812ad3553c8a71eaff018750927
src/views/doctor/examination/index.vue
@@ -47,19 +47,14 @@
              <span v-if="scope.row.cusSex == '2'">未知</span>
              <span v-if="scope.row.cusSex == '9'">未说明性别</span>
            </template>
            <!-- <template slot-scope="scope"> -->
            <!-- {{scope.row.customer.cusSex}} -->
            <!-- {{ scope.row.cusSex === 0 ? "男" : "女" }} -->
            <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
            <!-- </template> -->
          </el-table-column>
           <el-table-column
            label="年龄"
            align="center"
            prop="age"
            min-width="100"
          />
          <el-table-column label="年龄" align="center" prop="age" min-width="100" />
          <el-table-column label="手机号" align="center" prop="cusPhone" min-width="100" />
          <el-table-column label="登记时间" align="center" prop="tjTime" min-width="120" />
          <el-table-column v-if="checkStatus == '1'" label="审核状态" align="center" prop="confirmStatus" min-width="80">
@@ -174,9 +169,9 @@
            </el-table-column>
            <el-table-column label="参考范围" prop="ckfw"> </el-table-column>
            <el-table-column label="异常标志" prop="ycbz">
               <template slot-scope="scope">
              <template slot-scope="scope">
                {{ scope.row.ycbz == 0 ? "正常" : "异常" }}
               </template>
              </template>
            </el-table-column>
          </el-table>
        </div>
@@ -213,13 +208,17 @@
    </div>
    <el-dialog :visible.sync="open" width="980px" append-to-body>
      <el-form ref="form" :model="form" label-width="98px" @submit.native.prevent>
        <el-form-item label="弃检原因" prop="isZybUnit">
        <el-form-item label="弃检" prop="isZybUnit">
          <el-radio-group v-model="form.isZybUnit">
            <el-radio :label="0">自动放弃</el-radio>
            <el-radio :label="1">妊娠</el-radio>
            <el-radio :label="1">怀孕</el-radio>
            <el-radio :label="0">自动弃检</el-radio>
            <el-radio :label="1">其他</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="弃检原因" prop="yy" style="margin-left: 20px" v-if="form.isZybUnit == 1">
          <el-select filterable v-model="form.yy" placeholder="请选择弃检原因" clearable style="width: 150px">
            <el-option v-for="dict in dict.type.qj_type" :key="dict.value" :label="dict.label" :value="dict.label" />
          </el-select>
        </el-form-item>
        <br />
@@ -244,14 +243,14 @@
  yijian,
  resultList,
  typeOne,
  huifu,
  huifu, csymxmxzqtyybcjk
} from "@/api/doctor/examination";
import { getCompany, queryCompany } from "@/api/team/tuanti";
import { getNewDateList } from "@/api/hosp/order";
import moment from "moment";
export default {
  dicts: ["dict_tj_status"],
  dicts: ["dict_tj_status", "qj_type"],
  data() {
    return {
      jieguoList: [],
@@ -269,6 +268,7 @@
      yijiantype: null,
      CompanyList: [],
      CheckBox: {},
      rowProId: '',
      // 查询参数
      queryParams: {
        page: 1,
@@ -632,23 +632,47 @@
    },
    submitFormqijian() {
      this.open = false
      qijian(tjNUm, proId).then((res) => {
        if (res.code == 200) {
          cSWebGetPro(tjNUm).then((res) => {
            if (res.code === 200) {
              // 更新右边表格的数据
              this.xiangmuList = res.data;
              this.isLoading = false
            }
          });
      if (this.form.isZybUnit == 0) {
        const tjNUm = this.selectedTjNumber;
        const proId = this.rowProId;
        qijian(tjNUm, proId).then((res) => {
          if (res.code == 200) {
            cSWebGetPro(tjNUm).then((res) => {
              if (res.code === 200) {
                // 更新右边表格的数据
                this.xiangmuList = res.data;
                this.isLoading = false
              }
            });
          }
        });
      } else {
        let data = {
          tjNum: this.selectedTjNumber,
          proId: this.rowProId,
          yy: this.form.yy,
        }
      });
        csymxmxzqtyybcjk(data).then((res) => {
          if (res.code == 200) {
            cSWebGetPro(this.selectedTjNumber).then((res) => {
              if (res.code === 200) {
                // 更新右边表格的数据
                this.xiangmuList = res.data;
                this.isLoading = false
              }
            });
          }
        });
      }
    },
    // 弃检按钮
    qijian(row) {
      const tjNUm = this.selectedTjNumber;
      const proId = row.proId;
      this.rowProId = row.proId;
      row.isLoading = true;
      if (row.type == "2") {
        huifu(tjNUm, proId).then((res) => {
@@ -663,18 +687,19 @@
          }
        });
      } else {
        // this.open = true
        qijian(tjNUm, proId).then((res) => {
          if (res.code == 200) {
            cSWebGetPro(tjNUm).then((res) => {
              if (res.code === 200) {
                // 更新右边表格的数据
                this.xiangmuList = res.data;
                this.isLoading = false
              }
            });
          }
        });
        this.open = true
        this.form ={}
        // qijian(tjNUm, proId).then((res) => {
        //   if (res.code == 200) {
        //     cSWebGetPro(tjNUm).then((res) => {
        //       if (res.code === 200) {
        //         // 更新右边表格的数据
        //         this.xiangmuList = res.data;
        //         this.isLoading = false
        //       }
        //     });
        //   }
        // });
      }
    },
    yijian(row) {