commit
f3d8ab4a96
@ -29,10 +29,21 @@
|
||||
>
|
||||
<div v-for="con in item.content" :key="con.value">
|
||||
<text-info
|
||||
v-if="item.title !== '体检报告'"
|
||||
:title="con.title"
|
||||
:value="data[con.value]"
|
||||
extraclass="text-info-extra"
|
||||
/>
|
||||
<div v-else>
|
||||
<span :style="{ color: '#8c8c8c' }">{{ con.title }}:</span>
|
||||
<el-button
|
||||
v-if="data[con.value]"
|
||||
type="text"
|
||||
size="mini"
|
||||
@click="handleOnPreviewClick(data[con.value])"
|
||||
>查看</el-button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
@ -52,6 +63,17 @@
|
||||
<el-button @click="onClosed">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 预览弹窗 -->
|
||||
<el-dialog
|
||||
:visible.sync="previewVisible"
|
||||
title="体检报告"
|
||||
class="preview_dialog_wrapper"
|
||||
>
|
||||
<div class="preview_content">
|
||||
<img :src="previewUrl" alt="" class="preview_img" />
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@ -103,6 +125,8 @@ export default {
|
||||
|
||||
return {
|
||||
open: false,
|
||||
previewVisible: false,
|
||||
previewUrl: "",
|
||||
basicInfo,
|
||||
healthyInvestigate: [
|
||||
{
|
||||
@ -244,6 +268,10 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
handleOnPreviewClick(url) {
|
||||
this.previewVisible = true;
|
||||
this.previewUrl = `${window.location.origin}${url}`;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-dialog
|
||||
:visible.sync="visible"
|
||||
:title="title"
|
||||
@ -73,7 +74,8 @@
|
||||
:cell-style="remarkColumnStyle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column width="140" prop="remarkTitle"> </el-table-column>
|
||||
<el-table-column width="140" prop="remarkTitle">
|
||||
</el-table-column>
|
||||
<el-table-column prop="remarkValue">
|
||||
<template slot-scope="scope">
|
||||
<auto-hide-message
|
||||
@ -128,19 +130,19 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="value_one">
|
||||
<template slot-scope="scope">
|
||||
<auto-hide-message
|
||||
<!-- <auto-hide-message
|
||||
:data="
|
||||
scope.row.value_one == null
|
||||
? ''
|
||||
: scope.row.value_one + ''
|
||||
"
|
||||
:maxLength="20"
|
||||
/>
|
||||
/> -->
|
||||
<el-button
|
||||
type="primary"
|
||||
type="text"
|
||||
v-show="scope.row.value_one"
|
||||
@click="downloadFile(medicalReportPathArray[0])"
|
||||
>下载</el-button
|
||||
>查看</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -150,19 +152,19 @@
|
||||
></el-table-column>
|
||||
<el-table-column prop="value_two">
|
||||
<template slot-scope="scope">
|
||||
<auto-hide-message
|
||||
<!-- <auto-hide-message
|
||||
:data="
|
||||
scope.row.value_two == null
|
||||
? ''
|
||||
: scope.row.value_two + ''
|
||||
"
|
||||
:maxLength="20"
|
||||
/>
|
||||
/> -->
|
||||
<el-button
|
||||
type="primary"
|
||||
type="text"
|
||||
v-show="scope.row.value_two"
|
||||
@click="downloadFile(medicalReportPathArray[1])"
|
||||
>下载</el-button
|
||||
>查看</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -172,19 +174,19 @@
|
||||
></el-table-column>
|
||||
<el-table-column prop="value_three">
|
||||
<template slot-scope="scope">
|
||||
<auto-hide-message
|
||||
<!-- <auto-hide-message
|
||||
:data="
|
||||
scope.row.value_three == null
|
||||
? ''
|
||||
: scope.row.value_three + ''
|
||||
"
|
||||
:maxLength="20"
|
||||
/>
|
||||
/> -->
|
||||
<el-button
|
||||
type="primary"
|
||||
type="text"
|
||||
v-show="scope.row.value_three"
|
||||
@click="downloadFile(medicalReportPathArray[2])"
|
||||
>下载</el-button
|
||||
>查看</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -219,7 +221,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 200px;" v-show="guidanceShow">
|
||||
<div style="width: 200px" v-show="guidanceShow">
|
||||
<!-- 编辑减脂指导 -->
|
||||
<physicalSigns-guidance
|
||||
ref="physicalSignsGuidanceDialog"
|
||||
@ -238,8 +240,19 @@
|
||||
ref="physicalSignsRemarkDialog"
|
||||
@refreshHealthyData="getCustomerHealthyByCusId()"
|
||||
></physicalSigns-remark>
|
||||
|
||||
</el-dialog>
|
||||
|
||||
<!-- 预览弹窗 -->
|
||||
<el-dialog
|
||||
:visible.sync="previewVisible"
|
||||
title="体检报告"
|
||||
class="preview_dialog_wrapper"
|
||||
>
|
||||
<div class="preview_content">
|
||||
<img :src="previewUrl" alt="" class="preview_img" />
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
@ -269,6 +282,8 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
logo,
|
||||
previewVisible: false,
|
||||
previewUrl: "",
|
||||
visible: false,
|
||||
showFlag: false,
|
||||
title: "",
|
||||
@ -411,8 +426,7 @@ export default {
|
||||
copyValue: "",
|
||||
detailHealthy: null,
|
||||
dialogWidth: "950px",
|
||||
guidanceShow : false
|
||||
|
||||
guidanceShow: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@ -781,7 +795,9 @@ export default {
|
||||
return signList.length > 0 ? signStr.substring(1) : signStr;
|
||||
},
|
||||
downloadFile(fileName) {
|
||||
this.downloadResource(fileName);
|
||||
// this.downloadResource(fileName);
|
||||
this.previewVisible = true;
|
||||
this.previewUrl = `${window.location.origin}${fileName}`;
|
||||
},
|
||||
generateReport() {
|
||||
let data = this.detailHealthy;
|
||||
@ -871,12 +887,12 @@ export default {
|
||||
editGuidanceShow(flag) {
|
||||
this.guidanceShow = flag;
|
||||
this.dialogWidth = flag ? "1200px" : "950px";
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.margin-top-20 {
|
||||
margin-top: 20px;
|
||||
}
|
||||
@ -885,4 +901,13 @@ export default {
|
||||
font-weight: bold;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.preview_dialog_wrapper {
|
||||
.preview_content {
|
||||
text-align: center;
|
||||
.preview_img {
|
||||
max-height: 600px;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -175,7 +175,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
showDrawer(data) {
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
this.data = data;
|
||||
if (!this.data) {
|
||||
return;
|
||||
@ -288,7 +288,7 @@ export default {
|
||||
this.reset();
|
||||
},
|
||||
handleOnDelete(data) {
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
|
||||
this.$confirm("此操作将删除对计划的食谱, 是否继续?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
|
@ -609,6 +609,12 @@ export function dealHealthy(customerHealthy) {
|
||||
? `,${customerHealthy.otherOperationHistory}`
|
||||
: "";
|
||||
}
|
||||
if (customerHealthy.hasOwnProperty("medicalReport")) {
|
||||
const urls = customerHealthy.medicalReport.split(",");
|
||||
customerHealthy.medicalReport_one = urls[0];
|
||||
customerHealthy.medicalReport_two = urls[1];
|
||||
customerHealthy.medicalReport_three = urls[2];
|
||||
}
|
||||
if (customerHealthy.hasOwnProperty("defecationNum")) {
|
||||
customerHealthy.defecationNum += "次/天";
|
||||
}
|
||||
|
@ -732,7 +732,7 @@ export default {
|
||||
});
|
||||
},
|
||||
handleOnUploadPreview(file) {
|
||||
console.log(file);
|
||||
// console.log(file);
|
||||
this.previewTitle = file.name;
|
||||
this.previewVisible = true;
|
||||
this.previewUrl = file.url;
|
||||
|
@ -113,9 +113,8 @@ export default {
|
||||
left: 100,
|
||||
itemWidth: 8,
|
||||
itemHeight: 8,
|
||||
pageIconSize: 10,
|
||||
textStyle: {
|
||||
fontSize: 10,
|
||||
fontSize: 12,
|
||||
},
|
||||
},
|
||||
dataset: {
|
||||
|
@ -144,7 +144,7 @@ export default {
|
||||
itemHeight: 8,
|
||||
pageIconSize: 10,
|
||||
textStyle: {
|
||||
fontSize: 10,
|
||||
fontSize: 12,
|
||||
},
|
||||
},
|
||||
tooltip: {
|
||||
@ -173,7 +173,7 @@ export default {
|
||||
name: this.type === "weight" ? "质量/克" : "热量/千卡",
|
||||
nameTextStyle: {
|
||||
color: "#262626",
|
||||
fontSize: 10,
|
||||
fontSize: 12,
|
||||
},
|
||||
},
|
||||
series: source[0].slice(1).map((name, idx) => ({
|
||||
|
@ -50,7 +50,7 @@ export default {
|
||||
this.activeName = tab.name;
|
||||
},
|
||||
handleOnDayClick(data) {
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
const { id, numDay } = data;
|
||||
if (this.selectedIgd !== id) {
|
||||
this.selectedIgd = id;
|
||||
|
@ -90,7 +90,7 @@ export default {
|
||||
typeName: this.menuTypeDict[type],
|
||||
values: mData[type],
|
||||
}));
|
||||
console.log(mMenus);
|
||||
// console.log(mMenus);
|
||||
return mMenus;
|
||||
},
|
||||
...mapState(["cusUnitDict", "cusWeightDict", "menuTypeDict"]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user