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