qinxianzhangyao
2024-02-18 1e60adac102dc1665eaab39ae0f81bff7ccb351d
src/views/system/tijian/index.vue
@@ -901,7 +901,7 @@
        cusPhone: [
          { required: true, message: "", trigger: "change" },
        ],
         cusBrithday: [
        cusBrithday: [
          { required: true, message: "", trigger: "change" },
        ],
        // cusNational: [
@@ -1548,7 +1548,7 @@
              websocket.onclose = function () {
                alert("读卡器连接关闭");
              };
            } else  if (res.msg == "Y"){
            } else if (res.msg == "Y") {
              this.$refs.aaa.open = true;
              this.$refs.aaa.getAllList();
              this.$refs.aaa.title = "证件字典";
@@ -1560,15 +1560,15 @@
    },
    handleChanges(param1) {
      if(this.form.pacCode == "不详"){
      if (this.form.pacCode == "不详") {
        this.form.cusIdcard = param1[0].xh;
      }else{
      } else {
        this.form.cusIdcard = param1[0].pacCode;
      }
      // this.form.cusName = param1[0].pacName;
      // this.form.cusPhone = param1[0].pacRemark;
    },
    // selected(row, index) {
@@ -2073,6 +2073,21 @@
      }
    },
    listgetOrder(data) {
      getOrder(data).then((res) => {
        this.$modal.msgSuccess("提交成功");
        // this.dialogVisibles = true;
        // this.url = window.webkitURL.createObjectURL(res); //将后端返回的blob文件读取出url
        //调接口显示导检单
        const tjNumber = res.msg;
        const viewNum = "792931586196398080";
        const params = { viewNum, tjNumber };
        this.$tab.openPage("导诊单", "/report/breDailyReport", params);
        _this.confirm = true;
      });
      this.$tab.refreshPage();
    },
    // 最后提交按钮
    submitPrice() {
      let _this = this;
@@ -2119,7 +2134,7 @@
      this.tjFlowingWater = { copeWith, paidIn, discount };
      let data;
      if (pacId) {
      if (pacId || this.tjOrderList.length > 0) {
        data = {
          photo: this.srcUrl,
          pacId,
@@ -2127,30 +2142,26 @@
          tjFlowingWater: this.tjFlowingWater,
          userId,
          tjType,
          tjCategory:this.tjCategory
          tjCategory: this.tjCategory
        };
      } else {
        this.listgetOrder(data)
      } else if (pacId || this.tjOrderList.length > 0) {
        data = {
          photo: this.srcUrl,
          tjOrderList: this.tjOrderList,
          tjFlowingWater: this.tjFlowingWater,
          userId,
          tjType,
          tjCategory:this.tjCategory
          tjCategory: this.tjCategory
        };
        this.listgetOrder(data)
      } else {
        this.$message({
          type: "warning ",
          message: "请选择套餐!",
        });
      }
      getOrder(data).then((res) => {
        this.$modal.msgSuccess("提交成功");
        // this.dialogVisibles = true;
        // this.url = window.webkitURL.createObjectURL(res); //将后端返回的blob文件读取出url
        //调接口显示导检单
        const tjNumber = res.msg;
        const viewNum = "792931586196398080";
        const params = { viewNum, tjNumber };
        this.$tab.openPage("导诊单", "/report/breDailyReport", params);
        _this.confirm = true;
      });
      this.$tab.refreshPage();
    },
  },
};
@@ -2159,8 +2170,9 @@
<style >
.el-form-item__error {
       display: none;
   }
  display: none;
}
.el-table__header-wrapper .el-checkbox {
  display: none;
}