qinxianzhangyao
2024-07-15 fb66c7aafd8d7ef6f4be05a0c12cfa3c4ca84863
src/views/reservation/reservations/index.vue
@@ -60,8 +60,7 @@
        </template>
      </el-table-column>
      <el-table-column label="联系电话" align="center" prop="phoe" width="110px" :show-overflow-tooltip="true" />
      <el-table-column label="邮箱" align="center" prop="email" :show-overflow-tooltip="true" width="160px" />
      <el-table-column label="地址" align="center" prop="address" :show-overflow-tooltip="true" width="160px" />
      <el-table-column label="预约时间" align="center" prop="reservationTime" width="100px" :show-overflow-tooltip="true"
        sortable>
        <template slot-scope="scope">
@@ -92,6 +91,8 @@
        </template>
      </el-table-column>
      <el-table-column label="单位名称" align="center" prop="company" :show-overflow-tooltip="true" />
      <el-table-column label="邮箱" align="center" prop="email" :show-overflow-tooltip="true" width="160px" />
      <el-table-column label="地址" align="center" prop="address" :show-overflow-tooltip="true" width="160px" />
      <el-table-column label="操作" align="center" width="90px" fixed="right">
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-s-order" @click="handleUpdate1(scope.row)"
@@ -1091,6 +1092,7 @@
    /** 修改按钮操作 */
    handleUpdate(row) {
      console.log(row)
      this.title = "修改体检预约";
      this.formIn = row;
      this.form.tjType = this.formIn.tjType
@@ -1108,7 +1110,10 @@
      }
      if (this.formIn.isExpire === 2) {
        this.drawer = true;
        this.discount = this.formIn.discount;
        if( this.formIn.discount!= null){
          this.discount = this.formIn.discount;
        }
        //全部套餐
        if (this.formIn.sex != null) {
          let cusSex = this.formIn.sex;
@@ -1158,6 +1163,7 @@
                    this.TotalPrice1 = 0;
                    this.tableData1.forEach((item) => {
                      this.TotalPrice1 += item.nowPrice;
                      console.log(this.discount)
                      this.TotalPrice = (
                        this.TotalPrice1 *
                        (this.discount / 10)
@@ -1215,7 +1221,10 @@
        this.tijiao1 = false;
      }
      this.drawer1 = true;
      this.discount = this.formIn.discount;
      if( this.formIn.discount != null){
        this.discount = this.formIn.discount;
      }
      //全部套餐
      if (this.formIn.sex != null) {
        let cusSex = this.formIn.sex;
@@ -1253,10 +1262,13 @@
          this.loading = false;
        });
      }
      let cusId = this.formIn.idCard;
      let id = this.formIn.id;
      this.list1 = true;
      (this.tableData1 = []),
        (this.newpacName = []),
        getReservation(id).then((response) => {
            if (response.data) {
              let cusId = response.data.idCard;
        getTransitionList(cusId).then((response) => {
          if (response.data) {
            this.tableData1 = response.data;
@@ -1283,6 +1295,8 @@
            this.list1 = true;
          }
        });
      }
    })
      /** 查询部门下拉树结构 */
      projectGetList().then((response) => {