su
su1124
2023-12-29 d10c7c728234b5a9098b7bd5bb7a914a14e33c20
src/views/doctor/check/index.vue
@@ -215,7 +215,11 @@
                <el-radio-button label="1">科室会诊</el-radio-button>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="选择科室" v-if="form.hzType == '1'" style="margin-top:22px">
            <el-form-item
              label="选择科室"
              v-if="form.hzType == '1'"
              style="margin-top: 22px"
            >
              <el-select
                v-model="form.hzDeptId"
                multiple
@@ -230,7 +234,11 @@
                ></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="申请人" prop="hzDoctorId" style="margin-top:22px">
            <el-form-item
              label="申请人"
              prop="hzDoctorId"
              style="margin-top: 22px"
            >
              <el-select
                v-model="form.hzDoctorId"
                placeholder="请选择"
@@ -471,6 +479,11 @@
            >历史报告</el-button
          >
        </div>
        <div style="margin: 10px 10px">
          <el-button type="primary" size="mini" @click="jianqian()"
            >检前问诊</el-button
          >
        </div>
      </div>
      <el-row>
@@ -688,7 +701,7 @@
          </div>
        </el-col>
        <el-col :span="6">
          <Historicalreport
          <Historicalreport v-show="lishi"
            :reportHistorydata="reportHistorydata"
          ></Historicalreport>
        </el-col>
@@ -736,11 +749,27 @@
      </div> -->
    </el-drawer>
    <Public ref="aaa" :row="row" @add="handleChanges" />
    <el-dialog
      title="提示"
      :visible.sync="jianqians"
      width="1000px"
      :before-close="handleClose1"
    >
       <jianqianwenzhen
          :jianqianwenzhendatas="jianqianwenzhendatas"
        ></jianqianwenzhen>
      <span slot="footer" class="dialog-footer">
        <el-button @click="jianqians = false">取 消</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
import { getInfoById } from "@/api/hosp/history";
import jianqianwenzhen from "@/components/jianqianwenzhen";
import Public from "@/components/public";
import { getPdf } from "@/api/hosp/order";
import { getInfo } from "@/api/login";
@@ -763,9 +792,13 @@
export default {
  dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"],
  name: "check",
  components: { Public, Historicalreport },
  components: { Public, Historicalreport,jianqianwenzhen },
  data() {
    return {
      lishi:false,
      rowes:{},
      jianqianwenzhendatas:[],
      jianqians:false,
      selected: false,
      checkval: false,
      // 遮罩层
@@ -853,7 +886,9 @@
        name: null,
      },
      rules: {
        hzType: [{ required: true, message: "会诊科室为必填项", trigger: "change" }],
        hzType: [
          { required: true, message: "会诊科室为必填项", trigger: "change" },
        ],
      },
    };
  },
@@ -899,6 +934,9 @@
    },
    handleClose() {
      this.$tab.refreshPage();
    },
    handleClose1(){
      this.jianqians = false
    },
    // 获取医生
    selName(val) {
@@ -1179,7 +1217,7 @@
      //   this.deptList.forEach(items=>{
      //      console.log(item,333);
      //      if(item == items.deptId){
      //       this.form.hzDeptNameList =
      //       this.form.hzDeptNameList =
      //      }
      //   })
      // })
@@ -1256,20 +1294,19 @@
                hzDoctorName: this.form.hzDoctorName,
                id: this.form.id,
              };
              if(this.form.hzDeptId.length != 0){
              if (this.form.hzDeptId.length != 0) {
                addHzlog(data).then((res) => {
                if (res.code == 200) {
                  this.$modal.msgSuccess("申请成功");
                  this.form = {};
                  this.Hzlog();
                  this.radioChange(1);
                }
              });
              this.open = false;
              }else{
                  if (res.code == 200) {
                    this.$modal.msgSuccess("申请成功");
                    this.form = {};
                    this.Hzlog();
                    this.radioChange(1);
                  }
                });
                this.open = false;
              } else {
                this.$modal.msgError("请选择会诊科室");
              }
            }
          }
        });
@@ -1292,11 +1329,46 @@
        cusId: this.tableAll.cusId,
      };
      reportHistory(data).then((res) => {
        console.log(res);
        this.loading = false;
        if (res.data[0] != null) {
          this.reportHistorydata = res.data;
        }
        if(this.reportHistorydata.length >= 1){
          this.lishi = true;
        }else{
          this.lishi = true;
          this.$modal.msgError("暂无历史报告");
        }
      });
    },
    jianqian() {
      let tjNumber = this.rowes.tjNumber;
       getInfoById(tjNumber).then((response) => {
        this.jianqianwenzhendatas = response.data;
        if (this.form.xiyan == null) {
          this.form.xiyan = "1";
        }
        if (this.form.xiyanpinlv == null) {
          this.form.xiyanpinlv = "0";
        }
        if (this.form.xiyanyear == null) {
          this.form.xiyanyear = "0";
        }
        if (this.form.yinjiu == null) {
          this.form.yinjiu = "1";
        }
        if (this.form.yinjiupinlv == null) {
          this.form.yinjiupinlv = "0";
        }
        if (this.form.yinjiuyear == null) {
          this.form.yinjiuyear = "0";
        }
        this.form.tjAskHistorysList = response.data.tjAskHistorysList;
        // this.isdisabled= true
      });
      this.jianqians = true;
    },
    handlecan(row) {
@@ -1380,6 +1452,8 @@
    // 点击详情
    handleClick(row) {
      this.rowes = row;
      console.log(this.rowes);
      this.getDept(row.tjNumber);
      this.loading = true;
      this.drawer = true;