1
lkk
4 天以前 ce00a82248ed72b6b23d1ceddcf332779317cdbb
src/views/reservation/reservations/index.vue
@@ -118,10 +118,10 @@
              @keyup.enter.native="handleQuery"
            />
          </el-form-item>
          <el-form-item label="单位名称" prop="company">
          <el-form-item label="单位名称" prop="companyId">
            <el-select
              :remote-method="getRemoteData"
              v-model="queryParams.company"
              v-model="queryParams.companyId"
              remote
              default-first-option
              allow-create
@@ -627,10 +627,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
@@ -963,10 +963,11 @@
                    >
                    </el-table-column>
                    <el-table-column label="折扣" width="160px" align="center">
                      <!-- @input="validateDiscount(scope.row)" -->
                      <template slot-scope="scope">
                        <el-input-number
                          v-model.number="scope.row.discount"
                          @input="validateDiscount(scope.row)"
                          placeholder="输入折扣"
                          size="small"
                          type="number"
@@ -1418,10 +1419,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
@@ -1739,9 +1740,10 @@
                    </el-table-column>
                    <el-table-column label="折扣" width="160px" align="center">
                      <template slot-scope="scope">
                        <!-- @input="validateDiscount(scope.row)" -->
                        <el-input-number
                          v-model.number="scope.row.discount"
                          @input="validateDiscount(scope.row)"
                          placeholder="输入折扣"
                          size="small"
                          type="number"
@@ -2556,7 +2558,29 @@
    },
    /** 重置按钮操作 */
    resetQuery() {
     this.startTime = [];
      this.createTimeList = [];
      this.resetForm("queryForm");
      this.queryParams = {
        pageNum: 1,
        pageSize: 10,
        cusName: null,
        cusSex: null,
        cusBrithday: null,
        cusAddr: null,
        phone: null,
        yykssj: "", // 预约开始时间
        yyjssj: "", // 预约结束时间
        cusPostcode: null,
        cusEmail: null,
        indexCard: null,
        cusNational: null,
        cusMarryStatus: null,
        cusIdcard: null,
        cusIntroduce: null,
        cusNumber: null,
        cusIsvip: null,
      };
      this.handleQuery();
    },
    // 多选框选中数据
@@ -3107,6 +3131,11 @@
      if (this.formIn.timeRegion === "11:00-12:00") {
        this.formIn.timeRegion = 3;
      }
      this.CompanyList.forEach((item) => {
        if (item.drugManufacturerId === this.formIn.companyId) {
          this.formIn.company = item.cnName;
        }
      });
      let data;
      if (pacId) {
        data = {