修复老的体征数据备注修改
This commit is contained in:
parent
efd7820da5
commit
21fac2ae86
@ -3,7 +3,10 @@ package com.stdiet.custom.controller;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.stdiet.common.utils.StringUtils;
|
import com.stdiet.common.utils.StringUtils;
|
||||||
|
import com.stdiet.custom.domain.SysCustomerPhysicalSigns;
|
||||||
|
import com.stdiet.custom.domain.SysPhysicalSigns;
|
||||||
import com.stdiet.custom.dto.request.HealthyDetailRequest;
|
import com.stdiet.custom.dto.request.HealthyDetailRequest;
|
||||||
|
import com.stdiet.custom.service.ISysCustomerPhysicalSignsService;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@ -29,6 +32,9 @@ public class SysCustomerHealthyController extends BaseController
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ISysCustomerHealthyService sysCustomerHealthyService;
|
private ISysCustomerHealthyService sysCustomerHealthyService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISysCustomerPhysicalSignsService sysCustomerPhysicalSignsService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询客户健康列表
|
* 查询客户健康列表
|
||||||
*/
|
*/
|
||||||
@ -120,4 +126,14 @@ public class SysCustomerHealthyController extends BaseController
|
|||||||
{
|
{
|
||||||
return sysCustomerHealthyService.generateHealthyReport(healthyDetailRequest);
|
return sysCustomerHealthyService.generateHealthyReport(healthyDetailRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改老的体征数据
|
||||||
|
* @param sysPhysicalSigns
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PutMapping("/edit/physical")
|
||||||
|
public AjaxResult editPhysical(@RequestBody SysCustomerPhysicalSigns sysPhysicalSigns) {
|
||||||
|
return toAjax(sysCustomerPhysicalSignsService.updateSysCustomerPhysicalSigns(sysPhysicalSigns));
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,74 +1,80 @@
|
|||||||
import request from '@/utils/request'
|
import request from "@/utils/request";
|
||||||
|
|
||||||
// 查询客户健康列表
|
// 查询客户健康列表
|
||||||
export function listHealthy(query) {
|
export function listHealthy(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/custom/healthy/list',
|
url: "/custom/healthy/list",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: query
|
params: query
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询客户健康详细
|
// 查询客户健康详细
|
||||||
export function getHealthy(id) {
|
export function getHealthy(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/custom/healthy/' + id,
|
url: "/custom/healthy/" + id,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 新增客户健康
|
// 新增客户健康
|
||||||
export function addHealthy(data) {
|
export function addHealthy(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/custom/healthy',
|
url: "/custom/healthy",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改客户健康
|
// 修改客户健康
|
||||||
export function updateHealthy(data) {
|
export function updateHealthy(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/custom/healthy',
|
url: "/custom/healthy",
|
||||||
method: 'put',
|
method: "put",
|
||||||
data: data
|
data: data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除客户健康
|
// 删除客户健康
|
||||||
export function delHealthy(id) {
|
export function delHealthy(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/custom/healthy/' + id,
|
url: "/custom/healthy/" + id,
|
||||||
method: 'delete'
|
method: "delete"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出客户健康
|
// 导出客户健康
|
||||||
export function exportHealthy(query) {
|
export function exportHealthy(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/custom/healthy/export',
|
url: "/custom/healthy/export",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: query
|
params: query
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 下载文件
|
// 下载文件
|
||||||
export function download(fileName) {
|
export function download(fileName) {
|
||||||
return request({
|
return request({
|
||||||
url: '/common/download',
|
url: "/common/download",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: {"fileName": fileName}
|
params: { fileName: fileName }
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 生成健康体征报告
|
// 生成健康体征报告
|
||||||
export function generateHealthyReport(healthyDetail) {
|
export function generateHealthyReport(healthyDetail) {
|
||||||
return request({
|
return request({
|
||||||
url: '/custom/healthy/generateHealthyReport',
|
url: "/custom/healthy/generateHealthyReport",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: healthyDetail
|
data: healthyDetail
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 修改老的体征
|
||||||
|
export function editPhysicalSigns(data) {
|
||||||
|
return request({
|
||||||
|
url: "/custom/healthy/edit/physical",
|
||||||
|
method: "put",
|
||||||
|
data
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
<div class="body_sign_view_wrapper">
|
<div class="body_sign_view_wrapper">
|
||||||
<div>
|
<div>
|
||||||
<h2>{{ this.data.name }}</h2>
|
<h2>{{ this.data.name }}</h2>
|
||||||
<!-- <el-button
|
<el-button
|
||||||
v-if="dev"
|
v-if="dev"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
class="remark_btn"
|
class="remark_btn"
|
||||||
@click="handleOnRemark"
|
@click="handleOnRemark"
|
||||||
>修改备注</el-button
|
>修改备注</el-button
|
||||||
> -->
|
>
|
||||||
<div class="msg-info" v-for="(info, idx) in basicInfo" :key="idx">
|
<div class="msg-info" v-for="(info, idx) in basicInfo" :key="idx">
|
||||||
<text-info
|
<text-info
|
||||||
v-for="con in info"
|
v-for="con in info"
|
||||||
@ -25,7 +25,7 @@
|
|||||||
<el-dialog title="修改备注" :visible.sync="open" width="480px">
|
<el-dialog title="修改备注" :visible.sync="open" width="480px">
|
||||||
<el-input
|
<el-input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
v-model="data.remark"
|
v-model="data.remarks"
|
||||||
rows="6"
|
rows="6"
|
||||||
placeholder="请输入备注信息"
|
placeholder="请输入备注信息"
|
||||||
maxlength="300"
|
maxlength="300"
|
||||||
@ -40,7 +40,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import TextInfo from "@/components/TextInfo";
|
import TextInfo from "@/components/TextInfo";
|
||||||
import { updateHealthy } from "@/api/custom/healthy";
|
import { editPhysicalSigns } from "@/api/custom/healthy";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "BodySignView",
|
name: "BodySignView",
|
||||||
@ -111,7 +111,7 @@ export default {
|
|||||||
{ title: "不运动总热量", value: "notSportHeat" },
|
{ title: "不运动总热量", value: "notSportHeat" },
|
||||||
]);
|
]);
|
||||||
basicInfo.splice(basicInfo.length, 0, [
|
basicInfo.splice(basicInfo.length, 0, [
|
||||||
{ title: "备注", value: "remark" },
|
{ title: "备注", value: "remarks" },
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@ -127,8 +127,8 @@ export default {
|
|||||||
this.open = false;
|
this.open = false;
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
const { id, remark } = this.data;
|
const { id, remarks } = this.data;
|
||||||
updateHealthy({ id, remark }).then((res) => {
|
editPhysicalSigns({ id, remarks }).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.$message.success("修改成功");
|
this.$message.success("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user