客户健康页面、表逻辑
This commit is contained in:
@ -0,0 +1,103 @@
|
|||||||
|
package com.stdiet.custom.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.stdiet.common.annotation.Log;
|
||||||
|
import com.stdiet.common.core.controller.BaseController;
|
||||||
|
import com.stdiet.common.core.domain.AjaxResult;
|
||||||
|
import com.stdiet.common.enums.BusinessType;
|
||||||
|
import com.stdiet.custom.domain.SysCustomerHealthy;
|
||||||
|
import com.stdiet.custom.service.ISysCustomerHealthyService;
|
||||||
|
import com.stdiet.common.utils.poi.ExcelUtil;
|
||||||
|
import com.stdiet.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户健康Controller
|
||||||
|
*
|
||||||
|
* @author xzj
|
||||||
|
* @date 2021-01-23
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/customer/healthy")
|
||||||
|
public class SysCustomerHealthyController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISysCustomerHealthyService sysCustomerHealthyService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户健康列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('customer:healthy:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SysCustomerHealthy sysCustomerHealthy)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SysCustomerHealthy> list = sysCustomerHealthyService.selectSysCustomerHealthyList(sysCustomerHealthy);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出客户健康列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('customer:healthy:export')")
|
||||||
|
@Log(title = "客户健康", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(SysCustomerHealthy sysCustomerHealthy)
|
||||||
|
{
|
||||||
|
List<SysCustomerHealthy> list = sysCustomerHealthyService.selectSysCustomerHealthyList(sysCustomerHealthy);
|
||||||
|
ExcelUtil<SysCustomerHealthy> util = new ExcelUtil<SysCustomerHealthy>(SysCustomerHealthy.class);
|
||||||
|
return util.exportExcel(list, "healthy");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取客户健康详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('customer:healthy:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return AjaxResult.success(sysCustomerHealthyService.selectSysCustomerHealthyById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增客户健康
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('customer:healthy:add')")
|
||||||
|
@Log(title = "客户健康", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SysCustomerHealthy sysCustomerHealthy)
|
||||||
|
{
|
||||||
|
return toAjax(sysCustomerHealthyService.insertSysCustomerHealthy(sysCustomerHealthy));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改客户健康
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('customer:healthy:edit')")
|
||||||
|
@Log(title = "客户健康", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SysCustomerHealthy sysCustomerHealthy)
|
||||||
|
{
|
||||||
|
return toAjax(sysCustomerHealthyService.updateSysCustomerHealthy(sysCustomerHealthy));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户健康
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('customer:healthy:remove')")
|
||||||
|
@Log(title = "客户健康", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(sysCustomerHealthyService.deleteSysCustomerHealthyByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,61 @@
|
|||||||
|
package com.stdiet.custom.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.stdiet.custom.domain.SysCustomerHealthy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户健康Mapper接口
|
||||||
|
*
|
||||||
|
* @author xzj
|
||||||
|
* @date 2021-01-23
|
||||||
|
*/
|
||||||
|
public interface SysCustomerHealthyMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询客户健康
|
||||||
|
*
|
||||||
|
* @param id 客户健康ID
|
||||||
|
* @return 客户健康
|
||||||
|
*/
|
||||||
|
public SysCustomerHealthy selectSysCustomerHealthyById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户健康列表
|
||||||
|
*
|
||||||
|
* @param sysCustomerHealthy 客户健康
|
||||||
|
* @return 客户健康集合
|
||||||
|
*/
|
||||||
|
public List<SysCustomerHealthy> selectSysCustomerHealthyList(SysCustomerHealthy sysCustomerHealthy);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增客户健康
|
||||||
|
*
|
||||||
|
* @param sysCustomerHealthy 客户健康
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改客户健康
|
||||||
|
*
|
||||||
|
* @param sysCustomerHealthy 客户健康
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户健康
|
||||||
|
*
|
||||||
|
* @param id 客户健康ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSysCustomerHealthyById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除客户健康
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSysCustomerHealthyByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.stdiet.custom.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.stdiet.custom.domain.SysCustomerHealthy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户健康Service接口
|
||||||
|
*
|
||||||
|
* @author xzj
|
||||||
|
* @date 2021-01-23
|
||||||
|
*/
|
||||||
|
public interface ISysCustomerHealthyService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询客户健康
|
||||||
|
*
|
||||||
|
* @param id 客户健康ID
|
||||||
|
* @return 客户健康
|
||||||
|
*/
|
||||||
|
public SysCustomerHealthy selectSysCustomerHealthyById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户健康列表
|
||||||
|
*
|
||||||
|
* @param sysCustomerHealthy 客户健康
|
||||||
|
* @return 客户健康集合
|
||||||
|
*/
|
||||||
|
public List<SysCustomerHealthy> selectSysCustomerHealthyList(SysCustomerHealthy sysCustomerHealthy);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增客户健康
|
||||||
|
*
|
||||||
|
* @param sysCustomerHealthy 客户健康
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改客户健康
|
||||||
|
*
|
||||||
|
* @param sysCustomerHealthy 客户健康
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除客户健康
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的客户健康ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSysCustomerHealthyByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户健康信息
|
||||||
|
*
|
||||||
|
* @param id 客户健康ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSysCustomerHealthyById(Long id);
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.stdiet.custom.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.stdiet.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.stdiet.custom.mapper.SysCustomerHealthyMapper;
|
||||||
|
import com.stdiet.custom.domain.SysCustomerHealthy;
|
||||||
|
import com.stdiet.custom.service.ISysCustomerHealthyService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户健康Service业务层处理
|
||||||
|
*
|
||||||
|
* @author xzj
|
||||||
|
* @date 2021-01-23
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SysCustomerHealthyServiceImpl implements ISysCustomerHealthyService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SysCustomerHealthyMapper sysCustomerHealthyMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户健康
|
||||||
|
*
|
||||||
|
* @param id 客户健康ID
|
||||||
|
* @return 客户健康
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SysCustomerHealthy selectSysCustomerHealthyById(Long id)
|
||||||
|
{
|
||||||
|
return sysCustomerHealthyMapper.selectSysCustomerHealthyById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户健康列表
|
||||||
|
*
|
||||||
|
* @param sysCustomerHealthy 客户健康
|
||||||
|
* @return 客户健康
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SysCustomerHealthy> selectSysCustomerHealthyList(SysCustomerHealthy sysCustomerHealthy)
|
||||||
|
{
|
||||||
|
return sysCustomerHealthyMapper.selectSysCustomerHealthyList(sysCustomerHealthy);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增客户健康
|
||||||
|
*
|
||||||
|
* @param sysCustomerHealthy 客户健康
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy)
|
||||||
|
{
|
||||||
|
sysCustomerHealthy.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return sysCustomerHealthyMapper.insertSysCustomerHealthy(sysCustomerHealthy);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改客户健康
|
||||||
|
*
|
||||||
|
* @param sysCustomerHealthy 客户健康
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy)
|
||||||
|
{
|
||||||
|
sysCustomerHealthy.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return sysCustomerHealthyMapper.updateSysCustomerHealthy(sysCustomerHealthy);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除客户健康
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的客户健康ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSysCustomerHealthyByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return sysCustomerHealthyMapper.deleteSysCustomerHealthyByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户健康信息
|
||||||
|
*
|
||||||
|
* @param id 客户健康ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSysCustomerHealthyById(Long id)
|
||||||
|
{
|
||||||
|
return sysCustomerHealthyMapper.deleteSysCustomerHealthyById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,415 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.stdiet.custom.mapper.SysCustomerHealthyMapper">
|
||||||
|
|
||||||
|
<resultMap type="SysCustomerHealthy" id="SysCustomerHealthyResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="customerId" column="customer_id" />
|
||||||
|
<result property="conditioningProjectId" column="conditioning_project_id" />
|
||||||
|
<result property="sex" column="sex" />
|
||||||
|
<result property="age" column="age" />
|
||||||
|
<result property="condiment" column="condiment" />
|
||||||
|
<result property="otherCondiment" column="other_condiment" />
|
||||||
|
<result property="cookingStyle" column="cooking_style" />
|
||||||
|
<result property="cookingStyleRate" column="cooking_style_rate" />
|
||||||
|
<result property="washVegetablesStyle" column="wash_vegetables_style" />
|
||||||
|
<result property="otherWashVegetablesStyle" column="other_wash_vegetables_style" />
|
||||||
|
<result property="breakfastType" column="breakfast_type" />
|
||||||
|
<result property="breakfastFood" column="breakfast_food" />
|
||||||
|
<result property="lunchType" column="lunch_type" />
|
||||||
|
<result property="dinner" column="dinner" />
|
||||||
|
<result property="vegetableRate" column="vegetable_rate" />
|
||||||
|
<result property="commonMeat" column="common_meat" />
|
||||||
|
<result property="dinnerTime" column="dinner_time" />
|
||||||
|
<result property="supperNum" column="supper_num" />
|
||||||
|
<result property="supperFood" column="supper_food" />
|
||||||
|
<result property="dietHotAndCold" column="diet_hot_and_cold" />
|
||||||
|
<result property="dietFlavor" column="diet_flavor" />
|
||||||
|
<result property="vegetablesNum" column="vegetables_num" />
|
||||||
|
<result property="vegetablesRateType" column="vegetables_rate_type" />
|
||||||
|
<result property="fruitsNum" column="fruits_num" />
|
||||||
|
<result property="fruitsTime" column="fruits_time" />
|
||||||
|
<result property="fruitsRate" column="fruits_rate" />
|
||||||
|
<result property="riceNum" column="rice_num" />
|
||||||
|
<result property="riceFull" column="rice_full" />
|
||||||
|
<result property="eatingSpeed" column="eating_speed" />
|
||||||
|
<result property="snacks" column="snacks" />
|
||||||
|
<result property="otherSnacks" column="other_snacks" />
|
||||||
|
<result property="healthProductsFlag" column="health_products_flag" />
|
||||||
|
<result property="healthProductsBrand" column="health_products_brand" />
|
||||||
|
<result property="healthProductsName" column="health_products_name" />
|
||||||
|
<result property="healthProductsWeekRate" column="health_products_week_rate" />
|
||||||
|
<result property="healthProductsDayRate" column="health_products_day_rate" />
|
||||||
|
<result property="waterNum" column="water_num" />
|
||||||
|
<result property="waterType" column="water_type" />
|
||||||
|
<result property="waterHabit" column="water_habit" />
|
||||||
|
<result property="drinksNum" column="drinks_num" />
|
||||||
|
<result property="drinkWineFlag" column="drink_wine_flag" />
|
||||||
|
<result property="drinkWineClassify" column="drink_wine_classify" />
|
||||||
|
<result property="otherWineClassify" column="other_wine_classify" />
|
||||||
|
<result property="drinkWineAmount" column="drink_wine_amount" />
|
||||||
|
<result property="smokeFlag" column="smoke_flag" />
|
||||||
|
<result property="smokeRate" column="smoke_rate" />
|
||||||
|
<result property="secondSmoke" column="second_smoke" />
|
||||||
|
<result property="workIndustry" column="work_industry" />
|
||||||
|
<result property="workType" column="work_type" />
|
||||||
|
<result property="defecationNum" column="defecation_num" />
|
||||||
|
<result property="otherDefecationNum" column="other_defecation_num" />
|
||||||
|
<result property="defecationTime" column="defecation_time" />
|
||||||
|
<result property="defecationShape" column="defecation_shape" />
|
||||||
|
<result property="defecationSmell" column="defecation_smell" />
|
||||||
|
<result property="defecationSpeed" column="defecation_speed" />
|
||||||
|
<result property="defecationColor" column="defecation_color" />
|
||||||
|
<result property="motionNum" column="motion_num" />
|
||||||
|
<result property="motionDuration" column="motion_duration" />
|
||||||
|
<result property="motionTime" column="motion_time" />
|
||||||
|
<result property="aerobicMotionClassify" column="aerobic_motion_classify" />
|
||||||
|
<result property="anaerobicMotionClassify" column="anaerobic_motion_classify" />
|
||||||
|
<result property="anaerobicAerobicMotionClassify" column="anaerobic_aerobic_motion_classify" />
|
||||||
|
<result property="otherMotionClassify" column="other_motion_classify" />
|
||||||
|
<result property="motionField" column="motion_field" />
|
||||||
|
<result property="otherMotionField" column="other_motion_field" />
|
||||||
|
<result property="sleepTime" column="sleep_time" />
|
||||||
|
<result property="sleepQuality" column="sleep_quality" />
|
||||||
|
<result property="sleepDrugFlag" column="sleep_drug_flag" />
|
||||||
|
<result property="sleepDrug" column="sleep_drug" />
|
||||||
|
<result property="stayupLateFlag" column="stayup_late_flag" />
|
||||||
|
<result property="stayupLateWeekNum" column="stayup_late_week_num" />
|
||||||
|
<result property="familyIllnessHistory" column="family_illness_history" />
|
||||||
|
<result property="otherFamilyIllnessHistory" column="other_family_illness_history" />
|
||||||
|
<result property="operationHistory" column="operation_history" />
|
||||||
|
<result property="otherOperationHistory" column="other_operation_history" />
|
||||||
|
<result property="nearOperationFlag" column="near_operation_flag" />
|
||||||
|
<result property="recoveryeSituation" column="recoverye_situation" />
|
||||||
|
<result property="longEatDrugFlag" column="long_eat_drug_flag" />
|
||||||
|
<result property="longEatDrugClassify" column="long_eat_drug_classify" />
|
||||||
|
<result property="otherLongEatDrugClassify" column="other_long_eat_drug_classify" />
|
||||||
|
<result property="allergyFlag" column="allergy_flag" />
|
||||||
|
<result property="allergySituation" column="allergy_situation" />
|
||||||
|
<result property="allergen" column="allergen" />
|
||||||
|
<result property="otherAllergen" column="other_allergen" />
|
||||||
|
<result property="medicalReport" column="medical_report" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSysCustomerHealthyVo">
|
||||||
|
select id, customer_id, conditioning_project_id, sex, age, condiment, other_condiment, cooking_style, cooking_style_rate, wash_vegetables_style, other_wash_vegetables_style, breakfast_type, breakfast_food, lunch_type, dinner, vegetable_rate, common_meat, dinner_time, supper_num, supper_food, diet_hot_and_cold, diet_flavor, vegetables_num, vegetables_rate_type, fruits_num, fruits_time, fruits_rate, rice_num, rice_full, eating_speed, snacks, other_snacks, health_products_flag, health_products_brand, health_products_name, health_products_week_rate, health_products_day_rate, water_num, water_type, water_habit, drinks_num, drink_wine_flag, drink_wine_classify, other_wine_classify, drink_wine_amount, smoke_flag, smoke_rate, second_smoke, work_industry, work_type, defecation_num, other_defecation_num, defecation_time, defecation_shape, defecation_smell, defecation_speed, defecation_color, motion_num, motion_duration, motion_time, aerobic_motion_classify, anaerobic_motion_classify, anaerobic_aerobic_motion_classify, other_motion_classify, motion_field, other_motion_field, sleep_time, sleep_quality, sleep_drug_flag, sleep_drug, stayup_late_flag, stayup_late_week_num, family_illness_history, other_family_illness_history, operation_history, other_operation_history, near_operation_flag, recoverye_situation, long_eat_drug_flag, long_eat_drug_classify, other_long_eat_drug_classify, allergy_flag, allergy_situation, allergen, other_allergen, medical_report, create_time, create_by, update_time, update_by, del_flag from sys_customer_healthy
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSysCustomerHealthyList" parameterType="SysCustomerHealthy" resultMap="SysCustomerHealthyResult">
|
||||||
|
<include refid="selectSysCustomerHealthyVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="conditioningProjectId != null "> and conditioning_project_id = #{conditioningProjectId}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSysCustomerHealthyById" parameterType="Long" resultMap="SysCustomerHealthyResult">
|
||||||
|
<include refid="selectSysCustomerHealthyVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSysCustomerHealthy" parameterType="SysCustomerHealthy">
|
||||||
|
insert into sys_customer_healthy
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="customerId != null">customer_id,</if>
|
||||||
|
<if test="conditioningProjectId != null">conditioning_project_id,</if>
|
||||||
|
<if test="sex != null">sex,</if>
|
||||||
|
<if test="age != null">age,</if>
|
||||||
|
<if test="condiment != null">condiment,</if>
|
||||||
|
<if test="otherCondiment != null">other_condiment,</if>
|
||||||
|
<if test="cookingStyle != null">cooking_style,</if>
|
||||||
|
<if test="cookingStyleRate != null">cooking_style_rate,</if>
|
||||||
|
<if test="washVegetablesStyle != null">wash_vegetables_style,</if>
|
||||||
|
<if test="otherWashVegetablesStyle != null">other_wash_vegetables_style,</if>
|
||||||
|
<if test="breakfastType != null">breakfast_type,</if>
|
||||||
|
<if test="breakfastFood != null">breakfast_food,</if>
|
||||||
|
<if test="lunchType != null">lunch_type,</if>
|
||||||
|
<if test="dinner != null">dinner,</if>
|
||||||
|
<if test="vegetableRate != null">vegetable_rate,</if>
|
||||||
|
<if test="commonMeat != null">common_meat,</if>
|
||||||
|
<if test="dinnerTime != null">dinner_time,</if>
|
||||||
|
<if test="supperNum != null">supper_num,</if>
|
||||||
|
<if test="supperFood != null">supper_food,</if>
|
||||||
|
<if test="dietHotAndCold != null">diet_hot_and_cold,</if>
|
||||||
|
<if test="dietFlavor != null">diet_flavor,</if>
|
||||||
|
<if test="vegetablesNum != null">vegetables_num,</if>
|
||||||
|
<if test="vegetablesRateType != null">vegetables_rate_type,</if>
|
||||||
|
<if test="fruitsNum != null">fruits_num,</if>
|
||||||
|
<if test="fruitsTime != null">fruits_time,</if>
|
||||||
|
<if test="fruitsRate != null">fruits_rate,</if>
|
||||||
|
<if test="riceNum != null">rice_num,</if>
|
||||||
|
<if test="riceFull != null">rice_full,</if>
|
||||||
|
<if test="eatingSpeed != null">eating_speed,</if>
|
||||||
|
<if test="snacks != null">snacks,</if>
|
||||||
|
<if test="otherSnacks != null">other_snacks,</if>
|
||||||
|
<if test="healthProductsFlag != null">health_products_flag,</if>
|
||||||
|
<if test="healthProductsBrand != null">health_products_brand,</if>
|
||||||
|
<if test="healthProductsName != null">health_products_name,</if>
|
||||||
|
<if test="healthProductsWeekRate != null">health_products_week_rate,</if>
|
||||||
|
<if test="healthProductsDayRate != null">health_products_day_rate,</if>
|
||||||
|
<if test="waterNum != null">water_num,</if>
|
||||||
|
<if test="waterType != null">water_type,</if>
|
||||||
|
<if test="waterHabit != null">water_habit,</if>
|
||||||
|
<if test="drinksNum != null">drinks_num,</if>
|
||||||
|
<if test="drinkWineFlag != null">drink_wine_flag,</if>
|
||||||
|
<if test="drinkWineClassify != null">drink_wine_classify,</if>
|
||||||
|
<if test="otherWineClassify != null">other_wine_classify,</if>
|
||||||
|
<if test="drinkWineAmount != null">drink_wine_amount,</if>
|
||||||
|
<if test="smokeFlag != null">smoke_flag,</if>
|
||||||
|
<if test="smokeRate != null">smoke_rate,</if>
|
||||||
|
<if test="secondSmoke != null">second_smoke,</if>
|
||||||
|
<if test="workIndustry != null">work_industry,</if>
|
||||||
|
<if test="workType != null">work_type,</if>
|
||||||
|
<if test="defecationNum != null">defecation_num,</if>
|
||||||
|
<if test="otherDefecationNum != null">other_defecation_num,</if>
|
||||||
|
<if test="defecationTime != null">defecation_time,</if>
|
||||||
|
<if test="defecationShape != null">defecation_shape,</if>
|
||||||
|
<if test="defecationSmell != null">defecation_smell,</if>
|
||||||
|
<if test="defecationSpeed != null">defecation_speed,</if>
|
||||||
|
<if test="defecationColor != null">defecation_color,</if>
|
||||||
|
<if test="motionNum != null">motion_num,</if>
|
||||||
|
<if test="motionDuration != null">motion_duration,</if>
|
||||||
|
<if test="motionTime != null">motion_time,</if>
|
||||||
|
<if test="aerobicMotionClassify != null">aerobic_motion_classify,</if>
|
||||||
|
<if test="anaerobicMotionClassify != null">anaerobic_motion_classify,</if>
|
||||||
|
<if test="anaerobicAerobicMotionClassify != null">anaerobic_aerobic_motion_classify,</if>
|
||||||
|
<if test="otherMotionClassify != null">other_motion_classify,</if>
|
||||||
|
<if test="motionField != null">motion_field,</if>
|
||||||
|
<if test="otherMotionField != null">other_motion_field,</if>
|
||||||
|
<if test="sleepTime != null">sleep_time,</if>
|
||||||
|
<if test="sleepQuality != null">sleep_quality,</if>
|
||||||
|
<if test="sleepDrugFlag != null">sleep_drug_flag,</if>
|
||||||
|
<if test="sleepDrug != null">sleep_drug,</if>
|
||||||
|
<if test="stayupLateFlag != null">stayup_late_flag,</if>
|
||||||
|
<if test="stayupLateWeekNum != null">stayup_late_week_num,</if>
|
||||||
|
<if test="familyIllnessHistory != null">family_illness_history,</if>
|
||||||
|
<if test="otherFamilyIllnessHistory != null">other_family_illness_history,</if>
|
||||||
|
<if test="operationHistory != null">operation_history,</if>
|
||||||
|
<if test="otherOperationHistory != null">other_operation_history,</if>
|
||||||
|
<if test="nearOperationFlag != null">near_operation_flag,</if>
|
||||||
|
<if test="recoveryeSituation != null">recoverye_situation,</if>
|
||||||
|
<if test="longEatDrugFlag != null">long_eat_drug_flag,</if>
|
||||||
|
<if test="longEatDrugClassify != null">long_eat_drug_classify,</if>
|
||||||
|
<if test="otherLongEatDrugClassify != null">other_long_eat_drug_classify,</if>
|
||||||
|
<if test="allergyFlag != null">allergy_flag,</if>
|
||||||
|
<if test="allergySituation != null">allergy_situation,</if>
|
||||||
|
<if test="allergen != null">allergen,</if>
|
||||||
|
<if test="otherAllergen != null">other_allergen,</if>
|
||||||
|
<if test="medicalReport != null">medical_report,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="customerId != null">#{customerId},</if>
|
||||||
|
<if test="conditioningProjectId != null">#{conditioningProjectId},</if>
|
||||||
|
<if test="sex != null">#{sex},</if>
|
||||||
|
<if test="age != null">#{age},</if>
|
||||||
|
<if test="condiment != null">#{condiment},</if>
|
||||||
|
<if test="otherCondiment != null">#{otherCondiment},</if>
|
||||||
|
<if test="cookingStyle != null">#{cookingStyle},</if>
|
||||||
|
<if test="cookingStyleRate != null">#{cookingStyleRate},</if>
|
||||||
|
<if test="washVegetablesStyle != null">#{washVegetablesStyle},</if>
|
||||||
|
<if test="otherWashVegetablesStyle != null">#{otherWashVegetablesStyle},</if>
|
||||||
|
<if test="breakfastType != null">#{breakfastType},</if>
|
||||||
|
<if test="breakfastFood != null">#{breakfastFood},</if>
|
||||||
|
<if test="lunchType != null">#{lunchType},</if>
|
||||||
|
<if test="dinner != null">#{dinner},</if>
|
||||||
|
<if test="vegetableRate != null">#{vegetableRate},</if>
|
||||||
|
<if test="commonMeat != null">#{commonMeat},</if>
|
||||||
|
<if test="dinnerTime != null">#{dinnerTime},</if>
|
||||||
|
<if test="supperNum != null">#{supperNum},</if>
|
||||||
|
<if test="supperFood != null">#{supperFood},</if>
|
||||||
|
<if test="dietHotAndCold != null">#{dietHotAndCold},</if>
|
||||||
|
<if test="dietFlavor != null">#{dietFlavor},</if>
|
||||||
|
<if test="vegetablesNum != null">#{vegetablesNum},</if>
|
||||||
|
<if test="vegetablesRateType != null">#{vegetablesRateType},</if>
|
||||||
|
<if test="fruitsNum != null">#{fruitsNum},</if>
|
||||||
|
<if test="fruitsTime != null">#{fruitsTime},</if>
|
||||||
|
<if test="fruitsRate != null">#{fruitsRate},</if>
|
||||||
|
<if test="riceNum != null">#{riceNum},</if>
|
||||||
|
<if test="riceFull != null">#{riceFull},</if>
|
||||||
|
<if test="eatingSpeed != null">#{eatingSpeed},</if>
|
||||||
|
<if test="snacks != null">#{snacks},</if>
|
||||||
|
<if test="otherSnacks != null">#{otherSnacks},</if>
|
||||||
|
<if test="healthProductsFlag != null">#{healthProductsFlag},</if>
|
||||||
|
<if test="healthProductsBrand != null">#{healthProductsBrand},</if>
|
||||||
|
<if test="healthProductsName != null">#{healthProductsName},</if>
|
||||||
|
<if test="healthProductsWeekRate != null">#{healthProductsWeekRate},</if>
|
||||||
|
<if test="healthProductsDayRate != null">#{healthProductsDayRate},</if>
|
||||||
|
<if test="waterNum != null">#{waterNum},</if>
|
||||||
|
<if test="waterType != null">#{waterType},</if>
|
||||||
|
<if test="waterHabit != null">#{waterHabit},</if>
|
||||||
|
<if test="drinksNum != null">#{drinksNum},</if>
|
||||||
|
<if test="drinkWineFlag != null">#{drinkWineFlag},</if>
|
||||||
|
<if test="drinkWineClassify != null">#{drinkWineClassify},</if>
|
||||||
|
<if test="otherWineClassify != null">#{otherWineClassify},</if>
|
||||||
|
<if test="drinkWineAmount != null">#{drinkWineAmount},</if>
|
||||||
|
<if test="smokeFlag != null">#{smokeFlag},</if>
|
||||||
|
<if test="smokeRate != null">#{smokeRate},</if>
|
||||||
|
<if test="secondSmoke != null">#{secondSmoke},</if>
|
||||||
|
<if test="workIndustry != null">#{workIndustry},</if>
|
||||||
|
<if test="workType != null">#{workType},</if>
|
||||||
|
<if test="defecationNum != null">#{defecationNum},</if>
|
||||||
|
<if test="otherDefecationNum != null">#{otherDefecationNum},</if>
|
||||||
|
<if test="defecationTime != null">#{defecationTime},</if>
|
||||||
|
<if test="defecationShape != null">#{defecationShape},</if>
|
||||||
|
<if test="defecationSmell != null">#{defecationSmell},</if>
|
||||||
|
<if test="defecationSpeed != null">#{defecationSpeed},</if>
|
||||||
|
<if test="defecationColor != null">#{defecationColor},</if>
|
||||||
|
<if test="motionNum != null">#{motionNum},</if>
|
||||||
|
<if test="motionDuration != null">#{motionDuration},</if>
|
||||||
|
<if test="motionTime != null">#{motionTime},</if>
|
||||||
|
<if test="aerobicMotionClassify != null">#{aerobicMotionClassify},</if>
|
||||||
|
<if test="anaerobicMotionClassify != null">#{anaerobicMotionClassify},</if>
|
||||||
|
<if test="anaerobicAerobicMotionClassify != null">#{anaerobicAerobicMotionClassify},</if>
|
||||||
|
<if test="otherMotionClassify != null">#{otherMotionClassify},</if>
|
||||||
|
<if test="motionField != null">#{motionField},</if>
|
||||||
|
<if test="otherMotionField != null">#{otherMotionField},</if>
|
||||||
|
<if test="sleepTime != null">#{sleepTime},</if>
|
||||||
|
<if test="sleepQuality != null">#{sleepQuality},</if>
|
||||||
|
<if test="sleepDrugFlag != null">#{sleepDrugFlag},</if>
|
||||||
|
<if test="sleepDrug != null">#{sleepDrug},</if>
|
||||||
|
<if test="stayupLateFlag != null">#{stayupLateFlag},</if>
|
||||||
|
<if test="stayupLateWeekNum != null">#{stayupLateWeekNum},</if>
|
||||||
|
<if test="familyIllnessHistory != null">#{familyIllnessHistory},</if>
|
||||||
|
<if test="otherFamilyIllnessHistory != null">#{otherFamilyIllnessHistory},</if>
|
||||||
|
<if test="operationHistory != null">#{operationHistory},</if>
|
||||||
|
<if test="otherOperationHistory != null">#{otherOperationHistory},</if>
|
||||||
|
<if test="nearOperationFlag != null">#{nearOperationFlag},</if>
|
||||||
|
<if test="recoveryeSituation != null">#{recoveryeSituation},</if>
|
||||||
|
<if test="longEatDrugFlag != null">#{longEatDrugFlag},</if>
|
||||||
|
<if test="longEatDrugClassify != null">#{longEatDrugClassify},</if>
|
||||||
|
<if test="otherLongEatDrugClassify != null">#{otherLongEatDrugClassify},</if>
|
||||||
|
<if test="allergyFlag != null">#{allergyFlag},</if>
|
||||||
|
<if test="allergySituation != null">#{allergySituation},</if>
|
||||||
|
<if test="allergen != null">#{allergen},</if>
|
||||||
|
<if test="otherAllergen != null">#{otherAllergen},</if>
|
||||||
|
<if test="medicalReport != null">#{medicalReport},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSysCustomerHealthy" parameterType="SysCustomerHealthy">
|
||||||
|
update sys_customer_healthy
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="customerId != null">customer_id = #{customerId},</if>
|
||||||
|
<if test="conditioningProjectId != null">conditioning_project_id = #{conditioningProjectId},</if>
|
||||||
|
<if test="sex != null">sex = #{sex},</if>
|
||||||
|
<if test="age != null">age = #{age},</if>
|
||||||
|
<if test="condiment != null">condiment = #{condiment},</if>
|
||||||
|
<if test="otherCondiment != null">other_condiment = #{otherCondiment},</if>
|
||||||
|
<if test="cookingStyle != null">cooking_style = #{cookingStyle},</if>
|
||||||
|
<if test="cookingStyleRate != null">cooking_style_rate = #{cookingStyleRate},</if>
|
||||||
|
<if test="washVegetablesStyle != null">wash_vegetables_style = #{washVegetablesStyle},</if>
|
||||||
|
<if test="otherWashVegetablesStyle != null">other_wash_vegetables_style = #{otherWashVegetablesStyle},</if>
|
||||||
|
<if test="breakfastType != null">breakfast_type = #{breakfastType},</if>
|
||||||
|
<if test="breakfastFood != null">breakfast_food = #{breakfastFood},</if>
|
||||||
|
<if test="lunchType != null">lunch_type = #{lunchType},</if>
|
||||||
|
<if test="dinner != null">dinner = #{dinner},</if>
|
||||||
|
<if test="vegetableRate != null">vegetable_rate = #{vegetableRate},</if>
|
||||||
|
<if test="commonMeat != null">common_meat = #{commonMeat},</if>
|
||||||
|
<if test="dinnerTime != null">dinner_time = #{dinnerTime},</if>
|
||||||
|
<if test="supperNum != null">supper_num = #{supperNum},</if>
|
||||||
|
<if test="supperFood != null">supper_food = #{supperFood},</if>
|
||||||
|
<if test="dietHotAndCold != null">diet_hot_and_cold = #{dietHotAndCold},</if>
|
||||||
|
<if test="dietFlavor != null">diet_flavor = #{dietFlavor},</if>
|
||||||
|
<if test="vegetablesNum != null">vegetables_num = #{vegetablesNum},</if>
|
||||||
|
<if test="vegetablesRateType != null">vegetables_rate_type = #{vegetablesRateType},</if>
|
||||||
|
<if test="fruitsNum != null">fruits_num = #{fruitsNum},</if>
|
||||||
|
<if test="fruitsTime != null">fruits_time = #{fruitsTime},</if>
|
||||||
|
<if test="fruitsRate != null">fruits_rate = #{fruitsRate},</if>
|
||||||
|
<if test="riceNum != null">rice_num = #{riceNum},</if>
|
||||||
|
<if test="riceFull != null">rice_full = #{riceFull},</if>
|
||||||
|
<if test="eatingSpeed != null">eating_speed = #{eatingSpeed},</if>
|
||||||
|
<if test="snacks != null">snacks = #{snacks},</if>
|
||||||
|
<if test="otherSnacks != null">other_snacks = #{otherSnacks},</if>
|
||||||
|
<if test="healthProductsFlag != null">health_products_flag = #{healthProductsFlag},</if>
|
||||||
|
<if test="healthProductsBrand != null">health_products_brand = #{healthProductsBrand},</if>
|
||||||
|
<if test="healthProductsName != null">health_products_name = #{healthProductsName},</if>
|
||||||
|
<if test="healthProductsWeekRate != null">health_products_week_rate = #{healthProductsWeekRate},</if>
|
||||||
|
<if test="healthProductsDayRate != null">health_products_day_rate = #{healthProductsDayRate},</if>
|
||||||
|
<if test="waterNum != null">water_num = #{waterNum},</if>
|
||||||
|
<if test="waterType != null">water_type = #{waterType},</if>
|
||||||
|
<if test="waterHabit != null">water_habit = #{waterHabit},</if>
|
||||||
|
<if test="drinksNum != null">drinks_num = #{drinksNum},</if>
|
||||||
|
<if test="drinkWineFlag != null">drink_wine_flag = #{drinkWineFlag},</if>
|
||||||
|
<if test="drinkWineClassify != null">drink_wine_classify = #{drinkWineClassify},</if>
|
||||||
|
<if test="otherWineClassify != null">other_wine_classify = #{otherWineClassify},</if>
|
||||||
|
<if test="drinkWineAmount != null">drink_wine_amount = #{drinkWineAmount},</if>
|
||||||
|
<if test="smokeFlag != null">smoke_flag = #{smokeFlag},</if>
|
||||||
|
<if test="smokeRate != null">smoke_rate = #{smokeRate},</if>
|
||||||
|
<if test="secondSmoke != null">second_smoke = #{secondSmoke},</if>
|
||||||
|
<if test="workIndustry != null">work_industry = #{workIndustry},</if>
|
||||||
|
<if test="workType != null">work_type = #{workType},</if>
|
||||||
|
<if test="defecationNum != null">defecation_num = #{defecationNum},</if>
|
||||||
|
<if test="otherDefecationNum != null">other_defecation_num = #{otherDefecationNum},</if>
|
||||||
|
<if test="defecationTime != null">defecation_time = #{defecationTime},</if>
|
||||||
|
<if test="defecationShape != null">defecation_shape = #{defecationShape},</if>
|
||||||
|
<if test="defecationSmell != null">defecation_smell = #{defecationSmell},</if>
|
||||||
|
<if test="defecationSpeed != null">defecation_speed = #{defecationSpeed},</if>
|
||||||
|
<if test="defecationColor != null">defecation_color = #{defecationColor},</if>
|
||||||
|
<if test="motionNum != null">motion_num = #{motionNum},</if>
|
||||||
|
<if test="motionDuration != null">motion_duration = #{motionDuration},</if>
|
||||||
|
<if test="motionTime != null">motion_time = #{motionTime},</if>
|
||||||
|
<if test="aerobicMotionClassify != null">aerobic_motion_classify = #{aerobicMotionClassify},</if>
|
||||||
|
<if test="anaerobicMotionClassify != null">anaerobic_motion_classify = #{anaerobicMotionClassify},</if>
|
||||||
|
<if test="anaerobicAerobicMotionClassify != null">anaerobic_aerobic_motion_classify = #{anaerobicAerobicMotionClassify},</if>
|
||||||
|
<if test="otherMotionClassify != null">other_motion_classify = #{otherMotionClassify},</if>
|
||||||
|
<if test="motionField != null">motion_field = #{motionField},</if>
|
||||||
|
<if test="otherMotionField != null">other_motion_field = #{otherMotionField},</if>
|
||||||
|
<if test="sleepTime != null">sleep_time = #{sleepTime},</if>
|
||||||
|
<if test="sleepQuality != null">sleep_quality = #{sleepQuality},</if>
|
||||||
|
<if test="sleepDrugFlag != null">sleep_drug_flag = #{sleepDrugFlag},</if>
|
||||||
|
<if test="sleepDrug != null">sleep_drug = #{sleepDrug},</if>
|
||||||
|
<if test="stayupLateFlag != null">stayup_late_flag = #{stayupLateFlag},</if>
|
||||||
|
<if test="stayupLateWeekNum != null">stayup_late_week_num = #{stayupLateWeekNum},</if>
|
||||||
|
<if test="familyIllnessHistory != null">family_illness_history = #{familyIllnessHistory},</if>
|
||||||
|
<if test="otherFamilyIllnessHistory != null">other_family_illness_history = #{otherFamilyIllnessHistory},</if>
|
||||||
|
<if test="operationHistory != null">operation_history = #{operationHistory},</if>
|
||||||
|
<if test="otherOperationHistory != null">other_operation_history = #{otherOperationHistory},</if>
|
||||||
|
<if test="nearOperationFlag != null">near_operation_flag = #{nearOperationFlag},</if>
|
||||||
|
<if test="recoveryeSituation != null">recoverye_situation = #{recoveryeSituation},</if>
|
||||||
|
<if test="longEatDrugFlag != null">long_eat_drug_flag = #{longEatDrugFlag},</if>
|
||||||
|
<if test="longEatDrugClassify != null">long_eat_drug_classify = #{longEatDrugClassify},</if>
|
||||||
|
<if test="otherLongEatDrugClassify != null">other_long_eat_drug_classify = #{otherLongEatDrugClassify},</if>
|
||||||
|
<if test="allergyFlag != null">allergy_flag = #{allergyFlag},</if>
|
||||||
|
<if test="allergySituation != null">allergy_situation = #{allergySituation},</if>
|
||||||
|
<if test="allergen != null">allergen = #{allergen},</if>
|
||||||
|
<if test="otherAllergen != null">other_allergen = #{otherAllergen},</if>
|
||||||
|
<if test="medicalReport != null">medical_report = #{medicalReport},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSysCustomerHealthyById" parameterType="Long">
|
||||||
|
delete from sys_customer_healthy where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSysCustomerHealthyByIds" parameterType="String">
|
||||||
|
delete from sys_customer_healthy where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -3,109 +3,86 @@
|
|||||||
<div style="padding: 16px; text-align: center">
|
<div style="padding: 16px; text-align: center">
|
||||||
<img :src="logo" style="width: 258px; height: 80px" alt="logo" />
|
<img :src="logo" style="width: 258px; height: 80px" alt="logo" />
|
||||||
</div>
|
</div>
|
||||||
|
<div style="margin: 20px 15px 20px 15px;" >
|
||||||
|
<el-steps :active="stepActive" finish-status="success">
|
||||||
|
<el-step v-for="(item,index) in stepArray" title=""></el-step>
|
||||||
|
</el-steps>
|
||||||
|
</div>
|
||||||
<el-form ref="form" label-position="top" :model="form" :rules="rules" label-width="100px" style="padding: 16px">
|
<el-form ref="form" label-position="top" :model="form" :rules="rules" label-width="100px" style="padding: 16px">
|
||||||
<p class="p_title_1" style="margin-top: 5px;">基础信息</p>
|
<div v-show="stepArray[0]">
|
||||||
<el-form-item label="真实姓名" prop="name" style="padding-top: 10px;">
|
<p class="p_title_1" style="margin-top: 5px;">一、基础信息</p>
|
||||||
<el-input v-model="form.name" placeholder="请输入真实姓名" />
|
<el-form-item label="真实姓名" prop="name" style="padding-top: 10px;">
|
||||||
</el-form-item>
|
<el-input v-model="form.name" placeholder="请输入真实姓名" maxlength="20"/>
|
||||||
<el-form-item label="性别" prop="sex">
|
</el-form-item>
|
||||||
<el-radio-group v-model="form.sex" size="small" >
|
<el-form-item label="性别" prop="sex">
|
||||||
<el-radio :label="parseInt('0')" border>男</el-radio>
|
<el-radio-group v-model="form.sex" size="small" >
|
||||||
<el-radio :label="parseInt('1')" border>女</el-radio>
|
<el-radio :label="parseInt('0')" border>男</el-radio>
|
||||||
</el-radio-group>
|
<el-radio :label="parseInt('1')" border>女</el-radio>
|
||||||
</el-form-item>
|
</el-radio-group>
|
||||||
<el-form-item label="年龄" prop="age">
|
</el-form-item>
|
||||||
<el-input type="number" v-model.number="form.age" placeholder="请输入年龄" autocomplete="off"></el-input>
|
<el-form-item label="年龄" prop="age">
|
||||||
</el-form-item>
|
<el-input type="number" v-model="form.age" placeholder="请输入年龄" autocomplete="off" maxlength="3"></el-input>
|
||||||
<el-form-item label="手机号" prop="phone" >
|
</el-form-item>
|
||||||
<el-input v-model="form.phone" placeholder="请输入手机号" />
|
<el-form-item label="手机号" prop="phone" maxlength="20">
|
||||||
</el-form-item>
|
<el-input type="number" v-model="form.phone" placeholder="请输入手机号" />
|
||||||
<p class="p_title_1">一、食品安全评估</p>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-show="stepArray[1]">
|
||||||
|
<p class="p_title_1">二、食品安全评估</p>
|
||||||
<p class="p_title_2">1、家庭调味品</p>
|
<p class="p_title_2">1、家庭调味品</p>
|
||||||
<el-form-item :label="'(1) 调味品种类'" prop="condiment" class="margin-left">
|
<el-form-item :label="'(1) 调味品种类'" prop="condiment" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.condiment">
|
<el-checkbox-group v-model="form.condiment">
|
||||||
<el-checkbox label="鸡精" key="1">鸡精</el-checkbox>
|
<el-checkbox v-for="(item, index) in condimentArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="耗油" key="2">耗油</el-checkbox>
|
|
||||||
<el-checkbox label="生抽" key="3">生抽</el-checkbox>
|
|
||||||
<el-checkbox label="老抽" key="4">老抽</el-checkbox>
|
|
||||||
<el-checkbox label="香油" key="5">香油</el-checkbox>
|
|
||||||
<el-checkbox label="浓汤宝" key="6">浓汤宝</el-checkbox>
|
|
||||||
<el-checkbox label="鸡粉" key="7">鸡粉</el-checkbox>
|
|
||||||
<el-checkbox label="花椒" key="8">花椒</el-checkbox>
|
|
||||||
<el-checkbox label="辣椒油" key="9">辣椒油</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<div><span>其他调味品 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherCondiment" placeholder="请输入其他调味品名称" /></div>
|
<div><span>其他调味品 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherCondiment" placeholder="请输入其他调味品名称" /></div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">2、喜好的烹调方式和周频次</p>
|
<p class="p_title_2">2、喜好的烹调方式和周频次</p>
|
||||||
<el-form-item :label="'(1) 喜好的烹调方式'" prop="cookingStyle" class="margin-left">
|
<el-form-item :label="'(1) 喜好的烹调方式'" prop="cookingStyle" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.cookingStyle">
|
<el-checkbox-group v-model="form.cookingStyle">
|
||||||
<el-checkbox label="煎">煎</el-checkbox>
|
<el-checkbox v-for="(item,index) in cookingStyleArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="烤">烤</el-checkbox>
|
|
||||||
<el-checkbox label="炸" >炸</el-checkbox>
|
|
||||||
<el-checkbox label="卤">卤</el-checkbox>
|
|
||||||
<el-checkbox label="腌">腌</el-checkbox>
|
|
||||||
<el-checkbox label="腊">腊</el-checkbox>
|
|
||||||
<el-checkbox label="煲">煲</el-checkbox>
|
|
||||||
<el-checkbox label="炒">炒</el-checkbox>
|
|
||||||
<el-checkbox label="蒸">蒸</el-checkbox>
|
|
||||||
<el-checkbox label="刺身">刺身</el-checkbox>
|
|
||||||
<el-checkbox label="水煮">水煮</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="'(2) 烹调方式的频次(每周)'" prop="cookingStyleRate" class="margin-left">
|
<el-form-item :label="'(2) 烹调方式的频次(每周)'" prop="cookingStyleRate" class="margin-left">
|
||||||
<div>
|
<div>
|
||||||
<span>煎 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[0]" :step="1" :min="0"></el-input-number><span> 次</span>
|
<span>煎 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[0]" :step="1" :min="0"></el-input-number><span> 次</span>
|
||||||
<span style="margin-left: 20px;">炸 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[1]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
<span style="margin-left: 20px;">炸 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[1]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 5px;">
|
<div style="margin-top: 5px;">
|
||||||
<span>卤 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[2]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
<span>卤 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[2]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
||||||
<span style="margin-left: 20px;">腌 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[3]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
<span style="margin-left: 20px;">腌 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[3]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 5px;">
|
<div style="margin-top: 5px;">
|
||||||
<span>腊 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[4]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
<span>腊 </span><el-input-number style="width:35%" v-model="form.cookingStyleRate[4]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
||||||
<span style="margin-left: 20px;">煲 </span><el-input-number style="width:35%;" v-model="form.cookingStyleRate[5]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
<span style="margin-left: 20px;">煲 </span><el-input-number style="width:35%;" v-model="form.cookingStyleRate[5]" :step="1" :min="0" ></el-input-number><span> 次</span>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">3、洗菜方式</p>
|
<p class="p_title_2">3、洗菜方式</p>
|
||||||
<el-form-item :label="'(1) 洗菜方式'" prop="washVegetablesStyle" class="margin-left">
|
<el-form-item :label="'(1) 洗菜方式'" prop="washVegetablesStyle" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.washVegetablesStyle">
|
<el-checkbox-group v-model="form.washVegetablesStyle">
|
||||||
<el-checkbox label="先切后洗" key="1">先切后洗</el-checkbox>
|
<el-checkbox v-for="(item,index) in washVegetablesStyleArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="先洗后切" key="2">先洗后切</el-checkbox>
|
|
||||||
<el-checkbox label="切后浸泡" key="3">切后浸泡</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<div><span>其他洗菜方式 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherWashVegetablesStyle" placeholder="请输入其他洗菜方式" /></div>
|
<div><span>其他洗菜方式 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherWashVegetablesStyle" placeholder="请输入其他洗菜方式" /></div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-show="stepArray[2]">
|
||||||
<p class="p_title_1">二、饮食结构评估</p>
|
<p class="p_title_1">三、饮食结构评估</p>
|
||||||
<p class="p_title_2">1、您三餐的习惯</p>
|
<p class="p_title_2">1、您三餐的习惯</p>
|
||||||
<el-form-item :label="'(1) 早餐习惯'" prop="breakfast" class="margin-left">
|
<el-form-item :label="'(1) 早餐习惯'" prop="breakfast" class="margin-left">
|
||||||
<!--<el-checkbox-group v-model="form.breakfastType">
|
|
||||||
<el-checkbox label="不吃" key="1">不吃</el-checkbox>
|
|
||||||
<el-checkbox label="偶尔吃" key="2">偶尔吃</el-checkbox>
|
|
||||||
<el-checkbox label="每天吃" key="3">每天吃</el-checkbox>
|
|
||||||
</el-checkbox-group>-->
|
|
||||||
<el-radio-group v-model="form.breakfastType">
|
<el-radio-group v-model="form.breakfastType">
|
||||||
<el-radio label="不吃">不吃</el-radio>
|
<el-radio v-for="(item,index) in breakfastTypeArray" :label="item.value" :key="index">{{item.name}}</el-radio>
|
||||||
<el-radio label="偶尔吃">偶尔吃</el-radio>
|
|
||||||
<el-radio label="每天吃">每天吃</el-radio>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<div style="margin-top:8px;"><span>早餐通常吃 </span><el-input v-model="form.breakfastFood" style="width:70%" placeholder="请输入早餐名称" /></div>
|
<div style="margin-top:8px;"><span>早餐通常吃 </span><el-input v-model="form.breakfastFood" style="width:70%" placeholder="请输入早餐名称" /></div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="'(2) 午餐习惯'" prop="lunchType" class="margin-left">
|
<el-form-item :label="'(2) 午餐习惯'" prop="lunchType" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.lunchType">
|
<el-checkbox-group v-model="form.lunchType">
|
||||||
<el-checkbox label="外卖" key="1">外卖</el-checkbox>
|
<el-checkbox v-for="(item,index) in lunchTypeArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="自带餐" key="2">自带餐</el-checkbox>
|
|
||||||
<el-checkbox label="快餐" key="3">快餐</el-checkbox>
|
|
||||||
<el-checkbox label="餐厅" key="4">餐厅</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="'(3) 晚餐习惯'" prop="dinner" class="margin-left">
|
<el-form-item :label="'(3) 晚餐习惯'" prop="dinner" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.dinner">
|
<el-checkbox-group v-model="form.dinner">
|
||||||
<el-checkbox label="餐馆吃" key="1">餐馆吃</el-checkbox>
|
<el-checkbox v-for="(item,index) in dinnerArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="在家吃" key="2">在家吃</el-checkbox>
|
|
||||||
<el-checkbox label="丰盛" key="3">丰盛</el-checkbox>
|
|
||||||
<el-checkbox label="清淡" key="4">清淡</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="'(4) 正餐荤素中素菜占比几成'" prop="eatSituation" class="margin-left">
|
<el-form-item :label="'(4) 正餐荤素中素菜占比几成'" prop="eatSituation" class="margin-left">
|
||||||
@ -116,7 +93,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">2、您晚餐时间点和夜宵习惯</p>
|
<p class="p_title_2">2、您晚餐时间点和夜宵习惯</p>
|
||||||
<el-form-item :label="'(1) 晚餐时间点'" prop="dinnerTime" class="margin-left">
|
<el-form-item :label="'(1) 晚餐时间点'" prop="dinnerTime" class="margin-left">
|
||||||
<el-time-select v-model="form.dinnerTime" :picker-options="{ start: '00:00', step: '01:00', end: '12:00' }" placeholder="请选择时间" :editable="false"/>
|
<el-time-select v-model="form.dinnerTime" :picker-options="{ start: '17:00', step: '00:30', end: '24:00' }" placeholder="请选择时间" :editable="false"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="'(2) 您每周吃几次夜宵'" prop="supperNum" class="margin-left">
|
<el-form-item :label="'(2) 您每周吃几次夜宵'" prop="supperNum" class="margin-left">
|
||||||
<el-input-number v-model="form.supperNum" :step="1" :min="0"></el-input-number>
|
<el-input-number v-model="form.supperNum" :step="1" :min="0"></el-input-number>
|
||||||
@ -127,19 +104,12 @@
|
|||||||
<p class="p_title_2">3、您的饮食偏好</p>
|
<p class="p_title_2">3、您的饮食偏好</p>
|
||||||
<el-form-item :label="'(1) 冷热偏好'" prop="dietHotAndCold" class="margin-left">
|
<el-form-item :label="'(1) 冷热偏好'" prop="dietHotAndCold" class="margin-left">
|
||||||
<el-radio-group v-model="form.dietHotAndCold">
|
<el-radio-group v-model="form.dietHotAndCold">
|
||||||
<el-radio label="偏冷食">偏冷食</el-radio>
|
<el-radio v-for="(item,index) in dietHotAndColdArray" :label="item.value" :key="index">{{item.name}}</el-radio>
|
||||||
<el-radio label="偏烫食">偏烫食</el-radio>
|
|
||||||
<el-radio label="正常">正常</el-radio>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="'(2) 口味偏好'" prop="dietFlavor" class="margin-left">
|
<el-form-item :label="'(2) 口味偏好'" prop="dietFlavor" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.dietFlavor">
|
<el-checkbox-group v-model="form.dietFlavor">
|
||||||
<el-checkbox label="偏油" key="1">偏油</el-checkbox>
|
<el-checkbox v-for="(item,index) in dietFlavorArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="偏咸" key="2">偏咸</el-checkbox>
|
|
||||||
<el-checkbox label="偏辣" key="3">偏辣</el-checkbox>
|
|
||||||
<el-checkbox label="偏甜" key="4">偏甜</el-checkbox>
|
|
||||||
<el-checkbox label="偏酸" key="5">偏酸</el-checkbox>
|
|
||||||
<el-checkbox label="清淡" key="6">清淡</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">4、生食果蔬状况</p>
|
<p class="p_title_2">4、生食果蔬状况</p>
|
||||||
@ -148,28 +118,28 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="'(2) 每周吃生/拌菜的频次'" prop="vegetablesRateType" class="margin-left">
|
<el-form-item :label="'(2) 每周吃生/拌菜的频次'" prop="vegetablesRateType" class="margin-left">
|
||||||
<el-radio-group v-model="form.vegetablesRateType">
|
<el-radio-group v-model="form.vegetablesRateType">
|
||||||
<div><el-radio label="每天吃" key="1">每天吃</el-radio>
|
<el-radio v-for="(item,index) in vegetablesRateTypeArray" :label="item.value" :key="index">{{item.name}}</el-radio>
|
||||||
<el-radio label="经常吃" key="2">经常吃</el-radio>
|
<!-- <div><el-radio label="每天吃" key="1">每天吃</el-radio>
|
||||||
<el-radio label="偶尔吃" key="3">偶尔吃</el-radio></div>
|
<el-radio label="经常吃" key="2">经常吃</el-radio>
|
||||||
<div style="margin-top: 10px;"><el-radio label="从不吃" key="4">从不吃</el-radio></div>
|
<el-radio label="偶尔吃" key="3">偶尔吃</el-radio></div>
|
||||||
|
<div style="margin-top: 10px;"><el-radio label="从不吃" key="4">从不吃</el-radio></div>-->
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="'(3) 平均每天吃水果几次以及时间'" prop="fruitsNum" class="margin-left">
|
<el-form-item :label="'(3) 平均每天吃水果几次以及时间'" prop="fruitsNum" class="margin-left">
|
||||||
<el-input-number v-model="form.fruitsNum" :step="1" :min="0"></el-input-number>
|
<el-input-number v-model="form.fruitsNum" :step="1" :min="0"></el-input-number>
|
||||||
<el-radio-group v-model="form.fruitsTime" style="margin-top: 15px;">
|
<el-radio-group v-model="form.fruitsTime" style="margin-top: 15px;">
|
||||||
<el-radio label="餐前" key="1">餐前</el-radio>
|
<el-radio v-for="(item,index) in fruitsTimeArray" :label="item.value" :key="index">{{item.name}}</el-radio>
|
||||||
<el-radio label="餐后" key="2">餐后</el-radio>
|
|
||||||
<el-radio label="餐间" key="3">餐间</el-radio>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="(4) 平时吃水果的频次" prop="fruitsRate" class="margin-left">
|
<el-form-item label="(4) 平时吃水果的频次" prop="fruitsRate" class="margin-left">
|
||||||
<el-radio-group v-model="form.fruitsRate">
|
<el-radio-group v-model="form.fruitsRate">
|
||||||
<div>
|
<el-radio v-for="(item,index) in fruitsRateArray" :label="item.value" :key="index">{{item.name}}</el-radio>
|
||||||
<el-radio label="每天吃" key="1">每天吃</el-radio>
|
<!--<div>
|
||||||
<el-radio label="经常吃" key="2">经常吃</el-radio>
|
<el-radio label="每天吃" key="1">每天吃</el-radio>
|
||||||
<el-radio label="偶尔吃" key="3">偶尔吃</el-radio>
|
<el-radio label="经常吃" key="2">经常吃</el-radio>
|
||||||
</div>
|
<el-radio label="偶尔吃" key="3">偶尔吃</el-radio>
|
||||||
<div style="margin-top: 10px;"><el-radio label="从不吃" key="4">从不吃</el-radio></div>
|
</div>
|
||||||
|
<div style="margin-top: 10px;"><el-radio label="从不吃" key="4">从不吃</el-radio></div>-->
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">5、饮食习惯</p>
|
<p class="p_title_2">5、饮食习惯</p>
|
||||||
@ -181,32 +151,13 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="(2) 吃饭速度" prop="eatingSpeed" class="margin-left">
|
<el-form-item label="(2) 吃饭速度" prop="eatingSpeed" class="margin-left">
|
||||||
<el-radio-group v-model="form.eatingSpeed">
|
<el-radio-group v-model="form.eatingSpeed">
|
||||||
<div>
|
<el-radio v-for="(item,index) in eatingSpeedArray" :label="item.value" :key="index">{{item.name}}</el-radio>
|
||||||
<el-radio label="很快" key="1">很快</el-radio>
|
|
||||||
<el-radio label="偏快" key="2">偏快</el-radio>
|
|
||||||
<el-radio label="正常" key="3">正常</el-radio>
|
|
||||||
</div>
|
|
||||||
<div style="margin-top: 10px;">
|
|
||||||
<el-radio label="偏慢" key="4">偏慢</el-radio>
|
|
||||||
<el-radio label="很慢" key="5">很慢</el-radio>
|
|
||||||
</div>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">6、您常吃的零食</p>
|
<p class="p_title_2">6、您常吃的零食</p>
|
||||||
<el-form-item label="(1) 常吃的零食" prop="snacks" class="margin-left">
|
<el-form-item label="(1) 常吃的零食" prop="snacks" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.snacks">
|
<el-checkbox-group v-model="form.snacks">
|
||||||
<el-checkbox label="面包" key="1">面包</el-checkbox>
|
<el-checkbox v-for="(item,index) in snacksArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="蛋糕" key="2">蛋糕</el-checkbox>
|
|
||||||
<el-checkbox label="饼干" key="3">饼干</el-checkbox>
|
|
||||||
<el-checkbox label="冰淇淋" key="4">冰淇淋</el-checkbox>
|
|
||||||
<el-checkbox label="糖果" key="5">糖果</el-checkbox>
|
|
||||||
<el-checkbox label="巧克力" key="6">巧克力</el-checkbox>
|
|
||||||
<el-checkbox label="方便面" key="7">方便面</el-checkbox>
|
|
||||||
<el-checkbox label="薯条" key="8">薯条</el-checkbox>
|
|
||||||
<el-checkbox label="肉干" key="10">肉干</el-checkbox>
|
|
||||||
<el-checkbox label="坚果" key="11">饮料</el-checkbox>
|
|
||||||
<el-checkbox label="果脯" key="12">果脯</el-checkbox>
|
|
||||||
<el-checkbox label="牛奶" key="13">牛奶</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<div><span>其他零食 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherSnacks" placeholder="请输入其他零食名称" /></div>
|
<div><span>其他零食 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherSnacks" placeholder="请输入其他零食名称" /></div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -225,26 +176,21 @@
|
|||||||
<el-input-number style="width:35%;margin-left: 20px;" v-model="form.healthProductsDayRate" :step="1" ::min="0" ></el-input-number><span> 次/天</span>
|
<el-input-number style="width:35%;margin-left: 20px;" v-model="form.healthProductsDayRate" :step="1" ::min="0" ></el-input-number><span> 次/天</span>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
<p class="p_title_1">三、生活习惯评估</p>
|
<div v-show="stepArray[3]">
|
||||||
|
<p class="p_title_1">四、生活习惯评估</p>
|
||||||
<p class="p_title_2">1、您每天的饮水习惯</p>
|
<p class="p_title_2">1、您每天的饮水习惯</p>
|
||||||
<el-form-item label="(1) 每天饮水量(毫升)" prop="waterNum" class="margin-left">
|
<el-form-item label="(1) 每天饮水量(毫升)" prop="waterNum" class="margin-left">
|
||||||
<el-input-number v-model="form.waterNum" :step="50" :min="0"></el-input-number>
|
<el-input-number v-model="form.waterNum" :step="50" :min="0"></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="(2) 喜欢喝什么水" prop="waterType" class="margin-left">
|
<el-form-item label="(2) 喜欢喝什么水" prop="waterType" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.waterType">
|
<el-checkbox-group v-model="form.waterType">
|
||||||
<el-checkbox label="冰水" key="1">冰水</el-checkbox>
|
<el-checkbox v-for="(item,index) in waterTypeArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="温水" key="2">温水</el-checkbox>
|
|
||||||
<el-checkbox label="常温水" key="3">常温水</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="(3) 喝水习惯" prop="waterHabit" class="margin-left">
|
<el-form-item label="(3) 喝水习惯" prop="waterHabit" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.waterHabit">
|
<el-checkbox-group v-model="form.waterHabit">
|
||||||
<el-checkbox label="均匀地喝" key="1">均匀地喝</el-checkbox>
|
<el-checkbox v-for="(item,index) in waterHabitArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="餐前多喝" key="2">餐前多喝</el-checkbox>
|
|
||||||
<el-checkbox label="餐后多喝" key="3">餐后多喝</el-checkbox>
|
|
||||||
<el-checkbox label="餐间多喝" key="4">餐间多喝</el-checkbox>
|
|
||||||
<el-checkbox label="随时喝" key="5">随时喝</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">2、您常喝的饮品和每周频次</p>
|
<p class="p_title_2">2、您常喝的饮品和每周频次</p>
|
||||||
@ -277,16 +223,12 @@
|
|||||||
<p class="p_title_2">3、您的饮酒习惯</p>
|
<p class="p_title_2">3、您的饮酒习惯</p>
|
||||||
<el-form-item label="(1) 是否喝酒" prop="drinkWineFlag" class="margin-left">
|
<el-form-item label="(1) 是否喝酒" prop="drinkWineFlag" class="margin-left">
|
||||||
<el-radio-group v-model="form.drinkWineFlag">
|
<el-radio-group v-model="form.drinkWineFlag">
|
||||||
<el-radio label="经常饮酒" key="1">经常饮酒</el-radio>
|
<el-radio v-for="(item,index) in drinkWineFlagArray" :label="item.value" :key="index">{{item.name}}</el-radio>
|
||||||
<el-radio label="不饮酒" key="2">不饮酒</el-radio>
|
|
||||||
<el-radio label="偶尔" key="3">偶尔</el-radio>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="(2) 通常喝什么酒" prop="drinkWineClassify" class="margin-left">
|
<el-form-item label="(2) 通常喝什么酒" prop="drinkWineClassify" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.drinkWineClassify">
|
<el-checkbox-group v-model="form.drinkWineClassify">
|
||||||
<el-checkbox label="白酒" key="1">白酒</el-checkbox>
|
<el-checkbox v-for="(item,index) in drinkWineClassifyArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="红酒" key="2">红酒</el-checkbox>
|
|
||||||
<el-checkbox label="啤酒" key="3">啤酒</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<div><span>其他酒 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherWineClassify" placeholder="请输入其他酒名称" /></div>
|
<div><span>其他酒 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherWineClassify" placeholder="请输入其他酒名称" /></div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -334,13 +276,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="(2) 工作性质" prop="workType" style="padding-top: 10px;">
|
<el-form-item label="(2) 工作性质" prop="workType" style="padding-top: 10px;">
|
||||||
<el-checkbox-group v-model="form.workType">
|
<el-checkbox-group v-model="form.workType">
|
||||||
<el-checkbox label="工作时间长" key="1">工作时间长</el-checkbox>
|
<el-checkbox v-for="(item,index) in workTypeArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="久坐" key="2">久坐</el-checkbox>
|
|
||||||
<el-checkbox label="久站" key="3">久站</el-checkbox>
|
|
||||||
<el-checkbox label="走动多" key="4">走动多</el-checkbox>
|
|
||||||
<el-checkbox label="强度大" key="5">强度大</el-checkbox>
|
|
||||||
<el-checkbox label="用电脑多" key="6">用电脑多</el-checkbox>
|
|
||||||
<el-checkbox label="体力工作多" key="7">体力工作多</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">4、您的排便状况</p>
|
<p class="p_title_2">4、您的排便状况</p>
|
||||||
@ -355,12 +291,9 @@
|
|||||||
|
|
||||||
<el-form-item label="(2) 排便时间" prop="defecationTime" style="padding-top: 10px;">
|
<el-form-item label="(2) 排便时间" prop="defecationTime" style="padding-top: 10px;">
|
||||||
<el-checkbox-group v-model="form.defecationTime">
|
<el-checkbox-group v-model="form.defecationTime">
|
||||||
<el-checkbox label="上午" key="1">上午</el-checkbox>
|
<el-checkbox v-for="(item,index) in defecationTimeArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="中午" key="2">中午</el-checkbox>
|
|
||||||
<el-checkbox label="晚上" key="3">晚上</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="(2) 排便情况" prop="defecationSituation" style="padding-top: 10px;">
|
<el-form-item label="(2) 排便情况" prop="defecationSituation" style="padding-top: 10px;">
|
||||||
<div>
|
<div>
|
||||||
<span>形状</span><el-input class="width-70-left-8-right-5" v-model="form.defecationShape" placeholder="请输入形状" />
|
<span>形状</span><el-input class="width-70-left-8-right-5" v-model="form.defecationShape" placeholder="请输入形状" />
|
||||||
@ -375,8 +308,9 @@
|
|||||||
<span>颜色</span><el-input class="width-70-left-8-right-5" v-model="form.defecationColor" placeholder="请输入颜色" />
|
<span>颜色</span><el-input class="width-70-left-8-right-5" v-model="form.defecationColor" placeholder="请输入颜色" />
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
<p class="p_title_1">四、运动习惯评估</p>
|
<div v-show="stepArray[4]">
|
||||||
|
<p class="p_title_1">五、运动习惯评估</p>
|
||||||
<p class="p_title_2">1、运动频率</p>
|
<p class="p_title_2">1、运动频率</p>
|
||||||
<el-form-item label="(1) 每周运动情况" prop="motionSituation" class="margin-left">
|
<el-form-item label="(1) 每周运动情况" prop="motionSituation" class="margin-left">
|
||||||
<div>
|
<div>
|
||||||
@ -390,58 +324,47 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">2、运动方式、项目</p>
|
<p class="p_title_2">2、运动方式、项目</p>
|
||||||
<el-form-item label="(1) 运动方式" prop="motionMode" class="margin-left">
|
<!--<el-form-item label="(1) 运动方式" prop="motionMode" class="margin-left">
|
||||||
<el-radio-group v-model="form.motionMode">
|
<el-radio-group v-model="form.motionMode">
|
||||||
<el-radio label="有氧" key="1">有氧</el-radio>
|
<el-radio label="有氧" key="1">有氧</el-radio>
|
||||||
<el-radio label="无氧" key="2">无氧</el-radio>
|
<el-radio label="无氧" key="2">无氧</el-radio>
|
||||||
<el-radio label="有氧无氧相结合" key="3">有氧无氧相结合</el-radio>
|
<el-radio label="有氧无氧相结合" key="3">有氧无氧相结合</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>-->
|
||||||
<el-form-item label="(2) 运动项目" prop="motionProject" class="margin-left">
|
<el-form-item label="(1) 运动方式、项目" prop="motionProject" class="margin-left">
|
||||||
<div><span>有氧运动</span>
|
<div><span>有氧运动</span>
|
||||||
<el-checkbox-group v-model="form.aerobicMotionClassify">
|
<el-checkbox-group v-model="form.aerobicMotionClassify">
|
||||||
<el-checkbox label="跳绳" key="1">跳绳</el-checkbox>
|
<el-checkbox v-for="(item,index) in aerobicMotionClassifyArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="跑步" key="2">跑步</el-checkbox>
|
|
||||||
<el-checkbox label="游泳" key="3">游泳</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</div>
|
</div>
|
||||||
<div><span>有氧运动</span>
|
<div><span>有氧运动</span>
|
||||||
<el-checkbox-group v-model="form.anaerobicMotionClassify">
|
<el-checkbox-group v-model="form.anaerobicMotionClassify">
|
||||||
<el-checkbox label="撸铁" key="1">撸铁</el-checkbox>
|
<el-checkbox v-for="(item,index) in anaerobicMotionClassifyArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="俯卧撑" key="2">俯卧撑</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</div>
|
</div>
|
||||||
<div><span>有氧无氧结合运动</span>
|
<div><span>有氧无氧结合运动</span>
|
||||||
<el-checkbox-group v-model="form.anaerobicAerobicMotionClassify">
|
<el-checkbox-group v-model="form.anaerobicAerobicMotionClassify">
|
||||||
<el-checkbox label="拳击" key="1">拳击</el-checkbox>
|
<el-checkbox v-for="(item,index) in anaerobicAerobicMotionClassifyArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="瑜伽" key="2">瑜伽</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</div>
|
</div>
|
||||||
<div><span>其他项目 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherMotionClassify" placeholder="请输入其他运动项目名称" /></div>
|
<div><span>其他项目 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherMotionClassify" placeholder="请输入其他运动项目名称" /></div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="(2) 运动场地" prop="motionField" class="margin-left">
|
<el-form-item label="(2) 运动场地" prop="motionField" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.motionField">
|
<el-checkbox-group v-model="form.motionField">
|
||||||
<el-checkbox label="居家" key="1">居家</el-checkbox>
|
<el-checkbox v-for="(item,index) in motionFieldArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="健身房" key="2">健身房</el-checkbox>
|
|
||||||
<el-checkbox label="户外" key="3">居家</el-checkbox>
|
|
||||||
<el-checkbox label="瑜伽馆" key="4">健身房</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<div><span>其他场地 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherMotionField" placeholder="请输入其他运动场地名称" /></div>
|
<div><span>其他场地 </span><el-input style="margin-top: 10px;width:70%" v-model="form.otherMotionField" placeholder="请输入其他运动场地名称" /></div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
<p class="p_title_1">五、睡眠质量评估</p>
|
<div v-show="stepArray[5]">
|
||||||
|
<p class="p_title_1">六、睡眠质量评估</p>
|
||||||
<p class="p_title_2">1、您的睡眠状况</p>
|
<p class="p_title_2">1、您的睡眠状况</p>
|
||||||
<el-form-item label="(1) 一般晚上几点睡" prop="sleepTime" class="margin-left">
|
<el-form-item label="(1) 一般晚上几点睡" prop="sleepTime" class="margin-left">
|
||||||
<el-time-select v-model="form.sleepTime" :picker-options="{ start: '00:00', step: '01:00', end: '24:00' }" placeholder="请选择时间" :editable="false"/>
|
<el-time-select v-model="form.sleepTime" :picker-options="{ start: '00:00', step: '01:00', end: '24:00' }" placeholder="请选择时间" :editable="false"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="(2) 睡眠质量" prop="sleepQuality" class="margin-left">
|
<el-form-item label="(2) 睡眠质量" prop="sleepQuality" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.sleepQuality">
|
<el-checkbox-group v-model="form.sleepQuality">
|
||||||
<el-checkbox label="好" key="1">好</el-checkbox>
|
<el-checkbox v-for="(item,index) in sleepQualityArray" :label="item.value" :key="index">{{item.name}}</el-checkbox>
|
||||||
<el-checkbox label="一般" key="2">一般</el-checkbox>
|
|
||||||
<el-checkbox label="入睡难" key="3">入睡难</el-checkbox>
|
|
||||||
<el-checkbox label="失眠" key="4">失眠</el-checkbox>
|
|
||||||
<el-checkbox label="易醒" key="5">易醒</el-checkbox>
|
|
||||||
<el-checkbox label="多梦" key="6">多梦</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<p class="p_title_2">2、辅助入睡药物情况</p>
|
<p class="p_title_2">2、辅助入睡药物情况</p>
|
||||||
@ -462,12 +385,13 @@
|
|||||||
<span>熬夜频率 </span><el-input-number type="number" class="width-50-left-8-right-5" v-model="form.stayupLateWeekNum" :step="1" :min="0"></el-input-number><span>次/周</span>
|
<span>熬夜频率 </span><el-input-number type="number" class="width-50-left-8-right-5" v-model="form.stayupLateWeekNum" :step="1" :min="0"></el-input-number><span>次/周</span>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
<p class="p_title_1">六、既往病史/用药史评估</p>
|
<div v-show="stepArray[6]">
|
||||||
|
<p class="p_title_1">七、既往病史/用药史评估</p>
|
||||||
<p class="p_title_2">1、家族疾病史情况</p>
|
<p class="p_title_2">1、家族疾病史情况</p>
|
||||||
<el-form-item label="(1)家族疾病史(直系亲属例如爸爸妈妈、爷爷奶奶、外公外婆有相关疾病)(可多选)" prop="familyIllnessHistory" class="margin-left">
|
<el-form-item label="(1)家族疾病史(直系亲属例如爸爸妈妈、爷爷奶奶、外公外婆有相关疾病)(可多选)" prop="familyIllnessHistory" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.familyIllnessHistory">
|
<el-checkbox-group v-model="form.familyIllnessHistory">
|
||||||
<el-checkbox v-for="(item, index) in familyIllnessHistoryArray" :key="index" :label="item" key="1">{{item}}</el-checkbox>
|
<el-checkbox v-for="(item, index) in familyIllnessHistoryArray" :key="index" :label="item.value" >{{item.name}}</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<div><span>其他家族病史</span>
|
<div><span>其他家族病史</span>
|
||||||
<el-input
|
<el-input
|
||||||
@ -483,7 +407,7 @@
|
|||||||
<p class="p_title_2">2、手术情况</p>
|
<p class="p_title_2">2、手术情况</p>
|
||||||
<el-form-item label="(1) 手术史,因病进行过手术治疗,手术的部分(可多选)" prop="familyIllnessHistory" class="margin-left">
|
<el-form-item label="(1) 手术史,因病进行过手术治疗,手术的部分(可多选)" prop="familyIllnessHistory" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.operationHistory">
|
<el-checkbox-group v-model="form.operationHistory">
|
||||||
<el-checkbox v-for="(item, index) in operationHistoryArray" :key="index" :label="item" key="1">{{item}}</el-checkbox>
|
<el-checkbox v-for="(item, index) in operationHistoryArray" :key="index" :label="item.value" >{{item.name}}</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<div><span>其他手术史</span>
|
<div><span>其他手术史</span>
|
||||||
<el-input
|
<el-input
|
||||||
@ -520,7 +444,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="(2) 长期服用药物有(可多选)" prop="longEatDrugClassify" class="margin-left">
|
<el-form-item label="(2) 长期服用药物有(可多选)" prop="longEatDrugClassify" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.longEatDrugClassify">
|
<el-checkbox-group v-model="form.longEatDrugClassify">
|
||||||
<el-checkbox v-for="(item, index) in longEatDrugClassifyArray" :key="index" :label="item" key="1">{{item}}</el-checkbox>
|
<el-checkbox v-for="(item, index) in longEatDrugClassifyArray" :key="index" :label="item.value">{{item.name}}</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<div><span>其他长期服用的药物</span>
|
<div><span>其他长期服用的药物</span>
|
||||||
<el-input
|
<el-input
|
||||||
@ -553,7 +477,7 @@
|
|||||||
|
|
||||||
<el-form-item label="(2) 引起过敏源(可多选)" prop="allergen" class="margin-left">
|
<el-form-item label="(2) 引起过敏源(可多选)" prop="allergen" class="margin-left">
|
||||||
<el-checkbox-group v-model="form.allergen">
|
<el-checkbox-group v-model="form.allergen">
|
||||||
<el-checkbox v-for="(item, index) in allergenArray" :key="index" :label="item" key="1">{{item}}</el-checkbox>
|
<el-checkbox v-for="(item, index) in allergenArray" :key="index" :label="item.value">{{item.name}}</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<div><span>其他过敏源</span>
|
<div><span>其他过敏源</span>
|
||||||
<el-input
|
<el-input
|
||||||
@ -566,19 +490,50 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
|
||||||
<el-form-item style="text-align: center; margin: 30px auto">
|
<div v-show="stepArray[7]">
|
||||||
|
<p class="p_title_1">八、调理项目和提交报告</p>
|
||||||
|
<p class="p_title_2">1、调理项目</p>
|
||||||
|
<el-form-item label="(1) 请选择调理项目" prop="conditioningProjectId">
|
||||||
|
<el-select v-model="form.conditioningProjectId" placeholder="请选择">
|
||||||
|
<el-option
|
||||||
|
v-for="dict in conditioningProjectIdOption"
|
||||||
|
:key="dict.dictValue"
|
||||||
|
:label="dict.dictLabel"
|
||||||
|
:value="parseInt(dict.dictValue)"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
<el-form-item style="text-align: center; margin: 30px auto" >
|
||||||
|
<el-button
|
||||||
|
@click="nextStep(-1)"
|
||||||
|
style="margin-right: 10px;width: 40%"
|
||||||
|
v-show="stepActive != 0"
|
||||||
|
>上一步</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click="nextStep(1)"
|
||||||
|
style="width: 40%"
|
||||||
|
v-show="stepActive != stepArray.length-1"
|
||||||
|
>下一步</el-button
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="addCustomer()"
|
@click="addCustomer()"
|
||||||
style="margin-right: 50px"
|
style="width: 40%"
|
||||||
>已填写完成,提交数据</el-button
|
v-show="stepActive == stepArray.length-1"
|
||||||
|
>提交数据</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import { getDictData } from "@/api/custom/customerInvestigation";
|
||||||
const logo = require("@/assets/logo/st_logo.png");
|
const logo = require("@/assets/logo/st_logo.png");
|
||||||
export default {
|
export default {
|
||||||
name: "index",
|
name: "index",
|
||||||
@ -586,42 +541,163 @@ export default {
|
|||||||
return {
|
return {
|
||||||
logo,
|
logo,
|
||||||
submitFlag: false,
|
submitFlag: false,
|
||||||
familyIllnessHistoryArray:["高血压病","脑卒中","冠心病","外周血管病","心力衰竭","糖尿病","肥胖症","慢性肾脏疾病","骨质疏松", "痛风","精神疾病","恶性肿瘤","慢性阻塞性肺病","风湿性免疫性疾病"],
|
//调味品种类
|
||||||
operationHistoryArray:["头颅(含脑)","眼","耳鼻咽喉","颌面部及口腔","颈部或甲状腺","胸部(含肺部)","心脏(含心脏介入)","外周血管","胃肠","肝胆","肾脏","脊柱","四肢及关节","前列腺","妇科","乳腺","膀胱"],
|
condimentArray:[
|
||||||
longEatDrugClassifyArray:["降压药","降糖药","降尿酸药","抗心律失常药","缓解哮喘药物","抗压郁药物","雌激素类药物","利尿剂",
|
{"name":"鸡精", "value":"1"},
|
||||||
"中草药","避孕药","强的松类药物","镇静剂或安眠药","调值药(降脂药)","解热镇痛药(如布洛芬等)"],
|
{"name":"耗油", "value":"2"},
|
||||||
allergenArray:["青霉素","磺胺类","链霉素","头孢类","鸡蛋","牛奶","海鲜","花粉或尘螨","粉尘","洗洁剂","化妆品"],
|
{"name":"生抽", "value":"3"},
|
||||||
|
{"name":"老抽", "value":"4"},
|
||||||
|
{"name":"香油", "value":"5"},
|
||||||
|
{"name":"浓汤宝", "value":"6"},
|
||||||
|
{"name":"鸡粉", "value":"7"},
|
||||||
|
{"name":"花椒", "value":"8"},
|
||||||
|
{"name":"辣椒油", "value":"9"}
|
||||||
|
],
|
||||||
|
cookingStyleArray:[
|
||||||
|
{"name":"煎","value":"1"},{"name":"烤","value":"2"},{"name":"炸","value":"3"},{"name":"卤","value":"4"},
|
||||||
|
{"name":"腌","value":"5"},{"name":"腊","value":"6"},{"name":"煲","value":"7"},{"name":"炒","value":"8"},
|
||||||
|
{"name":"蒸","value":"9"},{"name":"刺身","value":"10"},{"name":"水煮","value":"11"}
|
||||||
|
],
|
||||||
|
cookingStyleRateArray:["煎","炸","卤","腌","腊","煲"],
|
||||||
|
washVegetablesStyleArray:[
|
||||||
|
{"name":"先切后洗","value": "1"},{"name":"先洗后切","value": "2"},{"name":"切后浸泡","value": "3"}
|
||||||
|
],
|
||||||
|
breakfastTypeArray:[
|
||||||
|
{"name":"不吃","value": "1"},{"name":"偶尔吃","value": "2"},{"name":"每天吃","value": "3"}
|
||||||
|
],
|
||||||
|
lunchTypeArray:[
|
||||||
|
{"name":"外卖","value":"1"},{"name":"自带餐","value":"2"},{"name":"快餐","value":"3"},{"name":"餐厅","value":"4"}
|
||||||
|
],
|
||||||
|
dinnerArray:[
|
||||||
|
{"name":"餐馆吃","value":"1"},{"name":"在家吃","value":"2"},{"name":"丰盛","value":"3"},{"name":"清淡","value":"4"}
|
||||||
|
],
|
||||||
|
dietHotAndColdArray:[
|
||||||
|
{"name":"偏冷食","value":"1"},{"name":"偏冷食","value":"2"},{"name":"正常","value":"3"}
|
||||||
|
],
|
||||||
|
dietFlavorArray:[
|
||||||
|
{"name":"偏油","value":"1"},{"name":"偏咸","value":"2"},{"name":"偏辣","value":"3"},
|
||||||
|
{"name":"偏甜","value":"4"},{"name":"偏酸","value":"5"},{"name":"清淡","value":"6"}
|
||||||
|
],
|
||||||
|
vegetablesRateTypeArray:[
|
||||||
|
{"name":"每天吃","value":"1"},{"name":"经常吃","value":"2"},{"name":"偶尔吃","value":"3"},{"name":"从不吃","value":"4"}
|
||||||
|
],
|
||||||
|
fruitsTimeArray:[
|
||||||
|
{"name":"餐前","value":"1"},{"name":"餐后","value":"2"},{"name":"餐间","value":"3"}
|
||||||
|
],
|
||||||
|
fruitsRateArray:[
|
||||||
|
{"name":"每天吃","value":"1"},{"name":"经常吃","value":"2"},{"name":"偶尔吃","value":"3"},{"name":"从不吃","value":"4"}
|
||||||
|
],
|
||||||
|
eatingSpeedArray:[
|
||||||
|
{"name":"很快","value":"1"},{"name":"偏快","value":"2"},{"name":"正常","value":"3"},{"name":"偏慢","value":"4"}
|
||||||
|
,{"name":"很慢","value":"5"}
|
||||||
|
],
|
||||||
|
snacksArray:[
|
||||||
|
{"name":"面包","value":"1"},{"name":"蛋糕","value":"2"},{"name":"饼干","value":"3"},{"name":"冰淇淋","value":"4"}
|
||||||
|
,{"name":"糖果","value":"5"},{"name":"巧克力","value":"6"},{"name":"方便面","value":"7"},{"name":"薯条","value":"8"},{"name":"肉干","value":"9"},
|
||||||
|
{"name":"坚果","value":"10"},{"name":"饮料","value":"11"},{"name":"果脯","value":"12"},{"name":"牛奶","value":"13"}
|
||||||
|
],
|
||||||
|
waterTypeArray:[
|
||||||
|
{"name":"冰水","value":"1"},{"name":"温水","value":"2"},{"name":"常温水","value":"3"}
|
||||||
|
],
|
||||||
|
waterHabitArray:[
|
||||||
|
{"name":"均匀地喝","value":"1"},{"name":"餐前多喝","value":"2"},{"name":"餐后多喝","value":"3"},{"name":"餐间多喝","value":"4"},
|
||||||
|
{"name":"随时喝","value":"5"}
|
||||||
|
],
|
||||||
|
drinksNumArray:["老火汤","咖啡","浓茶","奶茶","冷饮","碳酸饮料","甜饮料","鲜榨果汁"],
|
||||||
|
drinkWineFlagArray:[
|
||||||
|
{"name":"经常饮酒","value": "1"},{"name":"不饮酒","value": "2"},{"name":"偶尔","value": "3"}
|
||||||
|
],
|
||||||
|
drinkWineClassifyArray:[
|
||||||
|
{"name":"白酒","value": "1"},{"name":"红酒","value": "2"},{"name":"啤酒","value": "3"}
|
||||||
|
],
|
||||||
|
drinkWineAmountArray:["白酒","啤酒","红酒","其他"],
|
||||||
|
smokeRateArray:["每天抽烟","烟龄","已戒烟"],
|
||||||
|
workTypeArray:[
|
||||||
|
{"name":"工作时间长","value": "1"},{"name":"久坐","value": "2"},{"name":"久站","value": "3"},
|
||||||
|
{"name":"走动多","value": "4"},{"name":"强度大","value": "5"},{"name":"用电脑多","value": "6"},{"name":"体力工作多","value": "7"}
|
||||||
|
],
|
||||||
|
defecationTimeArray:[
|
||||||
|
{"name":"上午","value": "1"},{"name":"中午","value": "2"},{"name":"晚上","value": "3"}
|
||||||
|
],
|
||||||
|
aerobicMotionClassifyArray:[
|
||||||
|
{"name":"跳绳","value": "1"},{"name":"跑步","value": "2"},{"name":"游泳","value": "3"}
|
||||||
|
],
|
||||||
|
anaerobicMotionClassifyArray:[
|
||||||
|
{"name":"撸铁","value": "1"},{"name":"俯卧撑","value": "2"}
|
||||||
|
],
|
||||||
|
anaerobicAerobicMotionClassifyArray:[
|
||||||
|
{"name":"拳击","value": "1"},{"name":"瑜伽","value": "2"}
|
||||||
|
],
|
||||||
|
motionFieldArray:[
|
||||||
|
{"name":"居家","value": "1"},{"name":"健身房","value": "2"},{"name":"户外","value": "3"}, {"name":"健身房","value": "4"}
|
||||||
|
],
|
||||||
|
sleepQualityArray:[
|
||||||
|
{"name":"好","value": "1"},{"name":"一般","value": "2"},{"name":"入睡难","value": "3"},
|
||||||
|
{"name":"失眠","value": "4"},{"name":"易醒","value": "5"},{"name":"多梦","value": "6"}
|
||||||
|
],
|
||||||
|
familyIllnessHistoryArray:[
|
||||||
|
{"name":"高血压病","value": "1"},{"name":"脑卒中","value": "2"},{"name":"冠心病","value": "3"},
|
||||||
|
{"name":"外周血管病","value": "4"},{"name":"心力衰竭","value": "5"},{"name":"冠心病","value": "6"},
|
||||||
|
{"name":"肥胖症","value": "7"},{"name":"慢性肾脏疾病","value": "8"},{"name":"骨质疏松","value": "9"},
|
||||||
|
{"name":"痛风","value": "10"},{"name":"精神疾病","value": "11"},{"name":"恶性肿瘤","value": "12"},
|
||||||
|
{"name":"慢性阻塞性肺病","value": "13"},{"name":"风湿性免疫性疾病","value": "14"},
|
||||||
|
],
|
||||||
|
operationHistoryArray:[
|
||||||
|
{"name":"头颅(含脑)","value": "1"},{"name":"眼","value": "2"},{"name":"耳鼻咽喉","value": "3"},
|
||||||
|
{"name":"颌面部及口腔","value": "4"},{"name":"颈部或甲状腺","value": "5"},{"name":"胸部(含肺部)","value": "6"},
|
||||||
|
{"name":"心脏(含心脏介入)","value": "7"},{"name":"外周血管","value": "8"},{"name":"胃肠","value": "9"},
|
||||||
|
{"name":"肝胆","value": "10"},{"name":"肾脏","value": "11"},{"name":"脊柱","value": "12"},
|
||||||
|
{"name":"四肢及关节","value": "13"},{"name":"前列腺","value": "14"},{"name":"妇科","value": "15"},{"name":"乳腺","value": "16"}
|
||||||
|
,{"name":"膀胱","value": "17"}
|
||||||
|
],
|
||||||
|
longEatDrugClassifyArray:[
|
||||||
|
{"name":"降压药","value": "1"},{"name":"降糖药","value": "2"},{"name":"降尿酸药","value": "3"},
|
||||||
|
{"name":"抗心律失常药","value": "4"},{"name":"缓解哮喘药物","value": "5"},{"name":"抗压郁药物","value": "6"},
|
||||||
|
{"name":"雌激素类药物","value": "7"},{"name":"利尿剂","value": "8"},{"name":"中草药","value": "9"},
|
||||||
|
{"name":"避孕药","value": "10"},{"name":"强的松类药物","value": "11"},{"name":"镇静剂或安眠药","value": "12"},
|
||||||
|
{"name":"调值药(降脂药)","value": "13"},{"name":"解热镇痛药(如布洛芬等)","value": "14"}
|
||||||
|
],
|
||||||
|
allergenArray:[
|
||||||
|
{"name":"青霉素","value": "1"},{"name":"磺胺类","value": "2"},{"name":"链霉素","value": "3"},
|
||||||
|
{"name":"头孢类","value": "4"},{"name":"鸡蛋","value": "5"},{"name":"牛奶","value": "6"},
|
||||||
|
{"name":"海鲜","value": "7"},{"name":"花粉或尘螨","value": "8"},{"name":"粉尘","value": "9"},
|
||||||
|
{"name":"洗洁剂","value": "10"},{"name":"化妆品","value": "11"}
|
||||||
|
],
|
||||||
|
conditioningProjectIdOption:[],
|
||||||
|
stepArray: [true,false,false,false,false,false,false,false],
|
||||||
|
stepActive: 0,
|
||||||
form: {
|
form: {
|
||||||
name: null,
|
name: null,
|
||||||
phone: null,
|
phone: null,
|
||||||
|
conditioningProjectId: 0,
|
||||||
sex: 1,
|
sex: 1,
|
||||||
age: null,
|
age: null,
|
||||||
condiment:["耗油","香油","辣椒油","浓汤宝","鸡精","生抽"],
|
condiment:["1","5","9","6","1","3"],
|
||||||
otherCondiment:null,
|
otherCondiment:null,
|
||||||
cookingStyle: ["炒","蒸","卤","水煮"],
|
cookingStyle: ["8","9","4","11"],
|
||||||
cookingStyleRate:[1,1,1,1,1,1],
|
cookingStyleRate:[1,1,1,1,1,1],
|
||||||
washVegetablesStyle:["先洗后切"],
|
washVegetablesStyle:["2"],
|
||||||
otherWashVegetablesStyle: null,
|
otherWashVegetablesStyle: null,
|
||||||
breakfastType:"不吃",
|
breakfastType:"1",
|
||||||
breakfastFood: null,
|
breakfastFood: null,
|
||||||
lunchType:["快餐"],
|
lunchType:["3"],
|
||||||
dinner:["在家吃"],
|
dinner:["2"],
|
||||||
vegetableRate: 5,
|
vegetableRate: 5,
|
||||||
commonMeat: null,
|
commonMeat: null,
|
||||||
dinnerTime: "07:00",
|
dinnerTime: "07:00",
|
||||||
supperNum:1,
|
supperNum:1,
|
||||||
supperFood:null,
|
supperFood:null,
|
||||||
dietHotAndCold: "正常",
|
dietHotAndCold: "3",
|
||||||
dietFlavor: ["偏油","偏咸"],
|
dietFlavor: ["1","2"],
|
||||||
vegetablesNum: 1,
|
vegetablesNum: 1,
|
||||||
vegetablesRateType: "偶尔吃",
|
vegetablesRateType: "3",
|
||||||
fruitsNum: 1,
|
fruitsNum: 1,
|
||||||
fruitsTime: "餐后",
|
fruitsTime: "2",
|
||||||
fruitsRate: "经常吃",
|
fruitsRate: "2",
|
||||||
riceNum: 1,
|
riceNum: 1,
|
||||||
riceFull: 8,
|
riceFull: 8,
|
||||||
eatingSpeed: "正常",
|
eatingSpeed: "3",
|
||||||
snacks: ["坚果","饮料","牛奶","果脯","饼干","面包"],
|
snacks: ["10","11","13","12","3","1"],
|
||||||
otherSnacks:null,
|
otherSnacks:null,
|
||||||
healthProductsFlag: 0,
|
healthProductsFlag: 0,
|
||||||
healthProductsBrand:null,
|
healthProductsBrand:null,
|
||||||
@ -630,21 +706,21 @@ export default {
|
|||||||
healthProductsDayRate:0,
|
healthProductsDayRate:0,
|
||||||
|
|
||||||
waterNum: 1500,
|
waterNum: 1500,
|
||||||
waterType: ["温水"],
|
waterType: ["2"],
|
||||||
waterHabit: ["随时喝"],
|
waterHabit: ["5"],
|
||||||
drinksNum:[0,0,0,0,0,0,0,0],
|
drinksNum:[0,0,0,0,0,0,0,0],
|
||||||
drinkWineFlag: "偶尔",
|
drinkWineFlag: "3",
|
||||||
drinkWineClassify:["啤酒"],
|
drinkWineClassify:["3"],
|
||||||
otherWineClassify: null,
|
otherWineClassify: null,
|
||||||
drinkWineAmount:[0,0,0,0],
|
drinkWineAmount:[0,0,0,0],
|
||||||
smokeFlag: 0,
|
smokeFlag: 0,
|
||||||
smokeRate:[0,0,0],
|
smokeRate:[0,0,0],
|
||||||
secondSmoke: 0,
|
secondSmoke: 0,
|
||||||
workIndustry: null,
|
workIndustry: null,
|
||||||
workType:["久坐"],
|
workType:["2"],
|
||||||
defecationNum: 1,
|
defecationNum: 1,
|
||||||
otherDefecationNum:0,
|
otherDefecationNum:0,
|
||||||
defecationTime: ["上午"],
|
defecationTime: ["1"],
|
||||||
defecationShape: null,
|
defecationShape: null,
|
||||||
defecationSmell: null,
|
defecationSmell: null,
|
||||||
defecationSpeed: null,
|
defecationSpeed: null,
|
||||||
@ -653,16 +729,16 @@ export default {
|
|||||||
motionNum: 3,
|
motionNum: 3,
|
||||||
motionDuration: 40,
|
motionDuration: 40,
|
||||||
motionTime: "08:00",
|
motionTime: "08:00",
|
||||||
motionMode:"有氧",
|
//motionMode:"有氧",
|
||||||
aerobicMotionClassify:["跑步"],
|
aerobicMotionClassify:["2"],
|
||||||
anaerobicMotionClassify:[],
|
anaerobicMotionClassify:[],
|
||||||
anaerobicAerobicMotionClassify:[],
|
anaerobicAerobicMotionClassify:[],
|
||||||
otherMotionClassify: null,
|
otherMotionClassify: null,
|
||||||
motionField:["居家"],
|
motionField:["1"],
|
||||||
otherMotionField:null,
|
otherMotionField:null,
|
||||||
|
|
||||||
sleepTime: "23:00",
|
sleepTime: "23:00",
|
||||||
sleepQuality:["一般"],
|
sleepQuality:["2"],
|
||||||
sleepDrugFlag: 0,
|
sleepDrugFlag: 0,
|
||||||
sleepDrug: null,
|
sleepDrug: null,
|
||||||
stayupLateFlag: 0,
|
stayupLateFlag: 0,
|
||||||
@ -683,7 +759,33 @@ export default {
|
|||||||
otherAllergen:null
|
otherAllergen:null
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
name: [
|
||||||
|
{ required: true, trigger: "blur", message: "请填写姓名" },
|
||||||
|
{ min: 1, max: 20, trigger: "blur", message: "姓名过长" },
|
||||||
|
],
|
||||||
|
sex: [{ required: true, trigger: "blur", message: "请选择性别" }],
|
||||||
|
age: [
|
||||||
|
{ required: true, trigger: "blur", message: "请填写年龄" },
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
trigger: "blur",
|
||||||
|
pattern: /^[1-9]\d*$/,
|
||||||
|
message: "年龄格式不正确",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
phone: [
|
||||||
|
{ required: true, trigger: "blur", message: "请填写手机号" },
|
||||||
|
{ required: true, trigger: "blur", message: "请填写正确的手机号" },
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
trigger: "blur",
|
||||||
|
pattern: /^[0-9]{5,11}$/,
|
||||||
|
message: "手机号格式不正确",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
conditioningProjectId:[
|
||||||
|
{ required: true, trigger: "blur", message: "请选择调理项目" }
|
||||||
|
]
|
||||||
},
|
},
|
||||||
physicalSignsList: [],
|
physicalSignsList: [],
|
||||||
bloodDataList: [],
|
bloodDataList: [],
|
||||||
@ -693,13 +795,56 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addCustomer(){
|
addCustomer(){
|
||||||
console.log(this.form.sex);
|
this.$refs.form.validate((valid) => {
|
||||||
console.log(this.form.condiment);
|
if (valid) {
|
||||||
console.log(this.form.cookingStyle);
|
if(stepActive == stepArray.length-1){
|
||||||
|
/*addCustomer(cusMessage).then((response) => {
|
||||||
|
if (response.code === 200) {
|
||||||
|
console.log("成功");
|
||||||
|
this.$notify({
|
||||||
|
title: "提交成功",
|
||||||
|
message: "",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
this.submitFlag = true;
|
||||||
|
}
|
||||||
|
});*/
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
message: "数据未填写完整",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
nextStep(step){
|
||||||
|
this.$refs.form.validate((valid) => {
|
||||||
|
if(valid || step < 0){
|
||||||
|
this.stepArray[this.stepActive] = false;
|
||||||
|
this.stepActive = this.stepActive + step;
|
||||||
|
this.stepArray[this.stepActive] = true;
|
||||||
|
this.goTop();
|
||||||
|
}else{
|
||||||
|
this.$message({
|
||||||
|
message: "数据未填写完整",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
goTop (){
|
||||||
|
window.scroll(0, 0);
|
||||||
|
},
|
||||||
|
getDict(type){
|
||||||
|
getDictData(type).then(response => {
|
||||||
|
this.conditioningProjectIdOption = response.data;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.getDict("conditioning_project");
|
||||||
},
|
},
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
document.title = this.$route.meta.title;
|
document.title = this.$route.meta.title;
|
||||||
|
Reference in New Issue
Block a user