WXL
14 小时以前 ba57b519a005cd816f1a178f2c062426cff13f7c
src/views/patient/patient/profile/index.vue
@@ -16,11 +16,11 @@
              {{ userform.sex == 1 ? "男" : "女" }}
            </div>
            <div style="margin-left: 10px" class="text-title">
               <span v-if="userform.age"
                    >{{ userform.age }}{{ userform.ageUnit }}</span
                  ><span v-if="userform.age2"
                    >{{ userform.age2 }}{{ userform.ageUnit2 }}</span
                  >
              <span v-if="userform.age"
                >{{ userform.age }}{{ userform.ageUnit }}</span
              ><span v-if="userform.age2"
                >{{ userform.age2 }}{{ userform.ageUnit2 }}</span
              >
            </div>
            <div style="margin-left: 10px" class="text-title">
              {{ userform.birthdate }}
@@ -127,11 +127,21 @@
                    disabled
                  ></el-input> </el-form-item
              ></el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="12"
                ><el-form-item label="联系方式" prop="telcode">
                  <el-input
                    v-model="userform.telcode"
                    placeholder="请输入联系方式"
                    maxlength="30"
                  /> </el-form-item
              ></el-col>
              <el-col :span="12"
                ><el-form-item label="预留电话" prop="reservedPhone">
                  <el-input
                    v-model="userform.reservedPhone"
                    placeholder="请输入预留电话"
                    maxlength="30"
                  /> </el-form-item
              ></el-col>
@@ -313,9 +323,8 @@
                    <el-radio label="MCT奶">MCT奶</el-radio>
                    <el-radio label="其它特殊奶粉">其它特殊奶粉</el-radio>
                  </el-radio-group>
                </el-form-item> </el-col
              >
                </el-form-item>
              </el-col>
            </el-row>
          </el-form>
        </div>
@@ -1326,7 +1335,7 @@
      if (tab.index == "1") {
        this.getList(1);
      } else if (tab.index == "2") {
        this.newbornList();
        this.newcharts();
      } else if (tab.index == "3") {
        this.handleClickfw();
      }
@@ -1384,7 +1393,7 @@
      this.$refs["borninfoform"].validate((valid) => {
        if (valid) {
          this.borninfoform.patId = this.id;
          this.borninfoform.sex = this.userform.sex;
          newborninfoadd(this.borninfoform).then((res) => {
            if (res.code == 200) {
              this.$modal.msgSuccess("新增成功");
@@ -1787,18 +1796,17 @@
    // 获取新生儿数据
    newbornList() {
      return newborninfolist({ patId: this.id })
      newborninfolist({ patId: this.id })
        .then((response) => {
          this.borninfooptions = response.rows || [];
          this.newcharts();
          // this.newcharts();
          console.log("加载的新生儿数据:", this.borninfooptions);
          return Promise.resolve();
          // return Promise.resolve();
        })
        .catch((error) => {
          console.error("请求数据失败:", error);
          this.borninfooptions = [];
          return Promise.reject(error);
          // return Promise.reject(error);
        });
    },
    // 心率