su
su1124
2023-12-06 ca8433c52ae795db9133006dbbc21815d9b89ca0
su
3个文件已修改
118 ■■■■ 已修改文件
src/api/system/tijian.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tijian/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tijianall/index.vue 106 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/tijian.js
@@ -131,3 +131,13 @@
   
  })
}
// 根据身份证号查看历史体检项目记录
export function getHistryTjOrderProByCusIdCard(cusIdCard) {
  return request({
    url:'/hosp/order/getHistryTjOrderProByCusIdCard',
    method:'get',
    params:{cusIdCard:cusIdCard}
  })
}
src/views/system/tijian/index.vue
@@ -672,7 +672,7 @@
      width="30%"
      :before-close="handleClose"
    >
      <span>需要复制最近一次的体检项目吗?</span>
      <span>是否复制最近一次的体检项目?</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisiblese = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisiblese = false"
src/views/system/tijianall/index.vue
@@ -461,7 +461,7 @@
                  >预约登记</el-button
                >
                <el-button
                 v-show="lishi"
                  v-show="lishi"
                  type="primary"
                  @click="cope"
                  size="mini"
@@ -678,12 +678,10 @@
      width="30%"
      :before-close="handleClose"
    >
      <span>需要复制最近一次的体检项目吗?</span>
      <span>是否复制最近一次的体检项目?</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisiblese = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisiblese = false"
          >确 定</el-button
        >
        <el-button type="primary" @click="copes">确 定</el-button>
      </span>
    </el-dialog>
  </div>
@@ -702,6 +700,7 @@
  getGuide,
  getaddTj,
  getHistryTjOrderByCusIdCard,
  getHistryTjOrderProByCusIdCard,
} from "@/api/system/tijian";
import { MessageBox } from "element-ui";
import VTreeTransfer from "../tijian/TreeTransfer.vue";
@@ -749,7 +748,8 @@
    //   }
    // };
    return {
      dialogVisiblese:false,
      tableDatas: [],
      dialogVisiblese: false,
      lishi: false,
      table: false,
      HistoryList: {},
@@ -982,23 +982,81 @@
        // return this.$message.error("请输入正确的身份证号!");;
      }
    },
    cope(){
    cope() {
      let cusIdCard = this.form.cusIdcard;
      getHistryTjOrderByCusIdCard(cusIdCard).then((res) => {
            if(res.data.length != 0){
              this.dialogVisiblese = true;
            }else{
              this.$message.warning('暂无历史体检记录!');
            }
        });
      getHistryTjOrderProByCusIdCard(cusIdCard).then((res) => {
        console.log(res);
        this.copeList = res.data;
        if (res.data.length != 0) {
          this.dialogVisiblese = true;
        } else {
          this.$message.warning("暂无历史体检记录!");
        }
      });
    },
     handleClose(done) {
        this.$confirm('确认关闭?')
          .then(_ => {
            done();
          })
          .catch(_ => {});
      },
    copes() {
      let cusIdCard = this.form.cusIdcard;
      getHistryTjOrderProByCusIdCard(cusIdCard).then((res) => {
        this.tableDatas = res.data;
        if (this.form.cusIdcard) {
          var cusId = this.form.cusIdcard;
        } else {
          this.$message.warning("请先填写信息,再选体检内容");
        }
        let _this = this;
        console.log(this.tableDatas.length);
        if (this.tableDatas.length != 0) {
           this.tableDatas.forEach((item) => {
          _this.pacId = this.tableDatas.pacId;
          _this.proId = this.tableDatas.proId;
          console.log(_this.pacId, 888);
        });
        } else {
          _this.pacId = "";
        }
        let data = {
          cusId,
          pacId: _this.pacId,
          proIds:  _this.proId,
        };
        getaddtTransition(data).then((response) => {
          if (response.msg === "操作成功") {
            let cusId = this.form.cusIdcard;
            getTransitionList(cusId).then((response) => {
              this.tableData1 = response.data;
              // this.checkSelectable();
              this.TotalPrice1 = 0;
              if (this.tableData1) {
                this.tableData1.forEach((item) => {
                  this.TotalPrice1 += item.nowPrice;
                  this.TotalPrice = this.TotalPrice1 + ".00";
                  if (item.pacName === null) {
                    item.pacName = "单项";
                  }
                  this.pacName = item.pacName;
                });
                this.list1 = false;
                this.list3 = true;
              } else {
                this.list1 = true;
                this.TotalPrice = "0.00";
              }
            });
          }
        });
        this.taocan = false;
      });
      this.dialogVisiblese = false;
    },
    handleClose(done) {
      this.$confirm("确认关闭?")
        .then((_) => {
          done();
        })
        .catch((_) => {});
    },
    getList1() {
      getInfo().then((response) => {
        this.getInfodis = response.user.discount;
@@ -1281,6 +1339,7 @@
    // 点击多选框获取选中数据
    handleSelectionChange(selection, row) {
      this.tableData = selection;
      console.log(this.tableData);
      if (selection.length > 1) {
        let del_row = selection.shift();
        this.$refs.tb.toggleRowSelection(del_row, false); //设置这一行取消选中
@@ -1393,11 +1452,15 @@
    // 最后提交按钮
    submitPrice() {
      let _this = this;
      console.log(_this.tableData1.length, 111);
      if (_this.tableData1.length > 0) {
        let userId = this.form.cusIdcard;
        console.log(userId, 222);
        let tjType = this.form.tjType == 2 ? "个人" : "团队";
        console.log(this.tableData[0], 444);
        if (this.tableData[0]) {
          var pacId = this.tableData[0].pacId;
          console.log(pacId, 333);
        }
        // let copeWith = this.TotalPrice1;
        // let paidIn = this.TotalPrice;
@@ -1411,6 +1474,7 @@
        // }
        let data;
        if (pacId) {
          console.log(pacId);
          data = {
            pacId,
            department: this.form.department,