qinxianzhangyao
2024-06-19 a192b392d861dc2b2db0d2200da3dc51c3865a4b
src/views/system/tijian/index.vue
@@ -804,13 +804,20 @@
                <!-- <el-input v-model="form.category" placeholder="请输入体检类别" /> -->
              </el-form-item>
              <el-form-item style="margin-left: 269px">
              <el-form-item style="margin-left: 149px">
                <el-button
                  type="primary"
                  @click="Package"
                  size="mini"
                  style="margin-right: 20px"
                  >选择套餐</el-button
                >
                <el-button
                  type="primary"
                  @click="resetpackage"
                  size="mini"
                  style="margin-right: 20px"
                  >重置套餐</el-button
                >
                <el-button
                  type="primary"
@@ -2267,6 +2274,42 @@
    //   }
    // },
    resetpackage(){
      if (this.form.cusIdcard) {
        var cusId = this.form.cusIdcard;
      } else {
        this.$message.warning("请先填写信息,再选体检内容");
      }
      let _this = this;
        _this.pacId = "";
      this.proIds = [];
      let data = {
        cusId,
        pacId: _this.pacId,
        proIds: this.proIds,
      };
      getaddtTransition(data).then((response) => {
        if (response.code === 200) {
          let cusId = this.form.cusIdcard;
          this.proIds = [];
          getTransitionList(cusId).then((response) => {
            this.tableData1 = response.data;
            this.TotalPrice1 = 0;
            if (this.tableData1.length>=1) {
              this.list1 = false;
              this.list3 = true;
            } else {
              this.list1 = true;
              this.TotalPrice = "0.00";
            }
          });
        }
      });
      this.taocan = false;
      this.defaultKeys = [];
    },
    Package() {
      this.taocan = true;
      let cusSex = this.form.cusSex;