| | |
| | | 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> |
| | |
| | | <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> |
| | |
| | | if (tab.index == "1") { |
| | | this.getList(1); |
| | | } else if (tab.index == "2") { |
| | | this.newbornList(); |
| | | this.newcharts(); |
| | | } else if (tab.index == "3") { |
| | | this.handleClickfw(); |
| | | } |
| | |
| | | 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("新增成功"); |
| | |
| | | |
| | | // 获取新生儿数据 |
| | | 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); |
| | | }); |
| | | }, |
| | | // 心率 |