qinxianzhangyao
2024-06-19 5f5425c1be29b82205f19b7779cda67cfcc3a6e5
src/views/system/tijian/index.vue
@@ -115,7 +115,7 @@
            </el-form-item>
            <el-form-item
              label="证件号"
              label="证件号码"
              prop="cusIdcard"
              :rules="[
                {
@@ -141,7 +141,7 @@
                style="display: inline-block; border-bottom: 2px solid blue"
                @click="handleQuery"
              >
                证件号
                证件号码
              </span>
              <el-input
                :disabled="isDisabled"
@@ -207,6 +207,7 @@
                type="date"
                value-format="yyyy-MM-dd"
                placeholder="请选择出生日期"
                style="width: 93%"
              >
              </el-date-picker>
            </el-form-item>
@@ -244,7 +245,7 @@
              <el-select
                :disabled="isDisabled"
                v-model="form.ageUnit"
                style="width: 21%"
                style="width: 20%"
              >
                <el-option
                  v-for="dict in dict.type.dict_ageunit"
@@ -258,47 +259,6 @@
            <!-- <el-form-item prop="ageUnit">
              
              </el-form-item> -->
          </el-form>
          <el-form
            ref="form"
            :model="form"
            :rules="rules"
            :label-position="labelPosition"
            label-width="106px"
            v-show="top"
          >
            <el-row :gutter="21">
              <el-col :span="19">
                <el-form-item label="户口地址" prop="addr">
                  <el-input
                    v-model="form.addr"
                    placeholder="请输入户口地址"
                    :disabled="isDisabled"
                  />
                </el-form-item>
              </el-col>
            </el-row>
          </el-form>
          <el-form
            ref="form"
            :model="form"
            :rules="rules"
            :label-position="labelPosition"
            label-width="106px"
            v-show="top"
          >
            <el-row :gutter="21">
              <el-col :span="19">
                <el-form-item label="现住址" prop="cusAddr">
                  <el-input
                    v-model="form.cusAddr"
                    placeholder="请输入现居住地址"
                    :disabled="isDisabled"
                  />
                </el-form-item>
              </el-col>
            </el-row>
          </el-form>
          <el-form
            :inline="true"
@@ -333,6 +293,48 @@
              />
            </el-form-item>
          </el-form>
          <el-form
            ref="form"
            :model="form"
            :rules="rules"
            :label-position="labelPosition"
            label-width="106px"
            v-show="top"
          >
            <el-row :gutter="21">
              <el-col :span="19">
                <el-form-item label="户口地址" prop="addr">
                  <el-input
                    v-model="form.addr"
                    placeholder="请输入户口地址"
                    :disabled="isDisabled"
                  />
                </el-form-item>
              </el-col>
            </el-row>
          </el-form>
          <el-form
            ref="form"
            :model="form"
            :rules="rules"
            :label-position="labelPosition"
            label-width="106px"
            v-show="top"
          >
            <el-row :gutter="21">
              <el-col :span="19">
                <el-form-item label="现住地址" prop="cusAddr">
                  <el-input
                    v-model="form.cusAddr"
                    placeholder="请输入现居住地址"
                    :disabled="isDisabled"
                  />
                </el-form-item>
              </el-col>
            </el-row>
          </el-form>
          <el-row v-show="top">
            <el-col :span="19">
@@ -802,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"
@@ -2265,6 +2274,40 @@
    //   }
    // },
    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";
            }
          });
        }
      });
    },
    Package() {
      this.taocan = true;
      let cusSex = this.form.cusSex;