su
su1124
2024-02-05 f684f2df6dd0ab7f0d15f59ab61dcff952b8ce2b
src/views/doctor/checkAll/index.vue
@@ -13,7 +13,7 @@
          style="width: 120px"
          placeholder="请输入姓名"
          clearable
          @keyup.enter.native="handleQuery"
          @keyup.enter.native="submitForm"
        ></el-input>
      </el-form-item>
      <el-form-item label="体检号" prop="tjNumber">
@@ -23,7 +23,8 @@
          style="width: 180px"
          placeholder="请输入体检号"
          clearable
          @keyup.enter.native="handleQuery"
          @keyup.enter.native="submitForm"
          @blur="hb"
        ></el-input>
      </el-form-item>
      <el-form-item label="体检时间" prop="tjTime">
@@ -283,6 +284,11 @@
        <div style="margin: 10px 10px" v-if="tableAll.tjCategory == '02'">
          <el-button type="primary" size="mini" @click="medicalhistory()"
            >职业病史</el-button
          >
        </div>
        <div style="margin: 10px 10px">
          <el-button type="primary" size="mini" @click="jianqian()"
            >检前问诊</el-button
          >
        </div>
      </div>
@@ -963,11 +969,26 @@
        ></iframe>
      </div>
    </el-dialog>
    <el-dialog
      title="提示"
      :visible.sync="jianqians"
      width="1000px"
      :before-close="handleClose1"
    >
      <jianqianwenzhen
        :jianqianwenzhendata="jianqianwenzhendata"
        v-if="flags"
      ></jianqianwenzhen>
      <span slot="footer" class="dialog-footer">
        <el-button @click="jianqians = false">取 消</el-button>
      </span>
    </el-dialog>
  </div>
</template>
  
<script>
import jianqianwenzhen from "@/components/jianqianwenzhen";
import {
  getcheckList,
  getTjdetailList,
@@ -991,6 +1012,7 @@
  components: {
    ViewPdf,
    Historicalreport,
    jianqianwenzhen,
  },
  dicts: [
    "dict_tjtype",
@@ -1000,10 +1022,15 @@
    "lj_positive",
    "tj_work",
    "tj_work_status",
    "tj_smoking_pinlv",
    "tj_work",
  ],
  name: "checkAll",
  data() {
    return {
      flags: false,
      jianqianwenzhendata: [],
      jianqians: false,
      sex: true,
      activeName: "1",
      wenzhen: false,
@@ -1157,6 +1184,12 @@
        ":" +
        this.add0(mm)
      );
    },
    jianqian() {
      this.flags = true;
      this.jianqians = true;
      let tjNumber = this.tableAll.tjNumber;
      this.jianqianwenzhendata.push(tjNumber);
    },
    getList() {
      this.loading = true;
@@ -1315,6 +1348,12 @@
      this.startTime = val;
    },
    hb() {
      if (this.queryParams.tjNumber != "") {
        this.submitForm();
      }
    },
    // 搜索
    submitForm() {
      this.loading = true;
@@ -1359,6 +1398,9 @@
      }
      if (this.tableAll.cusSex === 1) {
        this.tableAll.cusSex = "女";
      }
      if (this.tableAll.cusSex === 2) {
        this.tableAll.cusSex = "未知";
      }
      this.tjNumber = this.tableAll.tjNumber;
      getState(this.tjNumber).then((res) => {
@@ -1478,9 +1520,14 @@
    },
    // 撤销
    getRevoke(row) {
      this.loading = true;
      const tjNumber = row.tjNumber;
      revoke(tjNumber).then((response) => {
        this.$modal.msgSuccess("撤回成功");
        if (response.code == 200) {
          this.loading = false;
          this.getList();
        }
      });
    },
@@ -1512,7 +1559,9 @@
          getfiedState(data).then((res) => {});
        });
    },
    handleClose1() {
      this.jianqians = false;
    },
    // 生成报告
    // generate(row) {
    //   const tjNumber = row.tjNumber;