1
lkk
7 天以前 233668a22e6a283aa9ccffaa0afcc7d31a3414a2
src/views/reservation/reservations/index.vue
@@ -2033,6 +2033,7 @@
      webSocket: null,
      defaultKeys: [],
      deptList: [],
      groupingList: [],
      value1: "",
      pacName: "",
      hides: false,
@@ -2430,6 +2431,7 @@
      this.title = "添加体检单位信息维护";
    },
    idFn1(value) {
      console.log(value)
      if (value) {
        this.form.dictCompId = value;
        this.CompanyList.forEach((item) => {
@@ -2438,7 +2440,21 @@
            this.queryParams.company = item.cnName;
          }
        });
        Deptlist(value).then((response) => {
          this.deptList = response.data;
        });
      }
    },
      idFn2(value) {
      let data = {
        deptId: value,
        dwId: this.form.dictCompId,
      };
      getDwAndDwDept(data).then((response) => {
        // 部门名称
        this.groupingList = response.data;
      });
    },
    dateChangebirthday2(val) {
      this.startTime = val;
@@ -2489,32 +2505,8 @@
        });
      }
    },
    idFn1(value) {
      console.log(value)
      if (value) {
        this.form.dictCompId = value;
        this.CompanyList.forEach((item) => {
          if (item.drugManufacturerId == this.form.dictCompId) {
            this.form.compName = item.cnName;
            this.queryParams.company = item.cnName;
          }
        });
        Deptlist(value).then((response) => {
          this.deptList = response.data;
        });
      }
    },
    idFn2(value) {
      let data = {
        deptId: value,
        dwId: this.form.dictCompId,
      };
      getDwAndDwDept(data).then((response) => {
        // 部门名称
        this.groupingList = response.data;
      });
    },
    // 表单重置
    reset() {
      this.form = {