1
lkk
7 小时以前 18f35fe78de41a1b240758c91e05380decb48978
src/views/reservation/reservations/index.vue
@@ -605,10 +605,10 @@
                  style="width: 160px"
                />
              </el-form-item>
              <el-form-item label="单位名称" prop="company">
              <el-form-item label="单位名称" prop="companyId">
                <el-select
                  :remote-method="getRemoteData"
                  v-model="formIn.company"
                  v-model="formIn.companyId"
                  remote
                  default-first-option
                  allow-create
@@ -1389,10 +1389,10 @@
                  style="width: 160px"
                />
              </el-form-item>
              <el-form-item label="单位名称" prop="company">
              <el-form-item label="单位名称" prop="companyId">
                <el-select
                  :remote-method="getRemoteData"
                  v-model="formIn.company"
                  v-model="formIn.companyId"
                  remote
                  default-first-option
                  allow-create
@@ -2121,7 +2121,7 @@
        cusSex: null,
        cusBrithday: null,
        cusAddr: null,
        cusPhone: null,
        phone: null,
        yykssj: "", // 预约开始时间
        yyjssj: "", // 预约结束时间
        cusPostcode: null,
@@ -2235,7 +2235,7 @@
        // cusAddr: [
        //   { required: true, message: "现居住地址不能为空", trigger: "blur" },
        // ],
        cusPhone: [
        phone: [
          { required: true, validator: checkPhoneNum, trigger: "blur" },
        ],
        reservationTime: [
@@ -2345,11 +2345,7 @@
  created() {
    this.getList();
  },
  watch: {
    "formIn.company"(val) {
      console.log("formIn.company changed:", val, typeof val);
    },
  },
  methods: {
    isAll(value) {
      return value === "" || value === null;
@@ -2458,6 +2454,7 @@
    idFn1(value) {
      if (value) {
        this.form.dictCompId = value;
        console.log(value)
        // this.CompanyList.forEach((item) => {
        //   if (item.drugManufacturerId == this.form.dictCompId) {
        //     this.form.compName = item.cnName;
@@ -2578,7 +2575,7 @@
        cusSex: null,
        cusBrithday: null,
        cusAddr: null,
        cusPhone: null,
        phone: null,
        yykssj: "", // 预约开始时间
        yyjssj: "", // 预约结束时间
        cusPostcode: null,
@@ -3155,6 +3152,7 @@
          this.formIn.company = item.cnName;
        }
      });
      let data;
      if (pacId) {
        data = {
@@ -3171,7 +3169,7 @@
          name: this.formIn.name,
          nation: this.formIn.nation,
          pacId,
          phoe: this.formIn.cusPhone,
          phoe: this.formIn.phoe,
          reservationTime: this.formIn.reservationTime,
          sex: this.formIn.sex,
          timeRegion: this.formIn.timeRegion,
@@ -3211,10 +3209,11 @@
          career: this.formIn.career,
        };
      }
      console.log('提交参数', data);
      tjReappoint(data).then((res) => {
        console.log("接口响应", res);
        if (res.code === 200) {
          this.$modal.msgSuccess("预约成功");
          Object.assign(this.formIn, data);
          this.getList();
          this.$tab.refreshPage();
          _this.drawer = false;