|
|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div style="overflow-y: scroll; height: 100%; padding-bottom: 100px">
|
|
|
|
|
<drawInfoItem title="被护理人" :info="rowFormat[0]"></drawInfoItem>
|
|
|
|
|
<drawInfoItem title="护理人" :info="rowFormat[1]"></drawInfoItem>
|
|
|
|
|
<drawInfoItem v-if="type === 2" title="护理人" :info="rowFormat[1]"></drawInfoItem>
|
|
|
|
|
<div class="draw-title">
|
|
|
|
|
{{ type === 1 ? "服务列表" : "本次服务信息" }}
|
|
|
|
|
</div>
|
|
|
|
|
@ -180,22 +180,35 @@ export default {
|
|
|
|
|
computed: {
|
|
|
|
|
rowFormat() {
|
|
|
|
|
if (this.selectedRow()) {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
姓名: this.selectedRow().customer?.name,
|
|
|
|
|
性别: this.selectedRow().customer?.sex,
|
|
|
|
|
年龄: getAgeByIdcard(this.selectedRow().customer?.idcard),
|
|
|
|
|
地址: this.selectedRow().customer_address?.address,
|
|
|
|
|
联系人: this.selectedRow().customer?.contact_name,
|
|
|
|
|
联系人电话: this.selectedRow().customer?.contact_phone,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
姓名: this.selectedRow().nurse?.name,
|
|
|
|
|
性别: this.selectedRow().nurse?.sex,
|
|
|
|
|
年龄: getAgeByIdcard(this.selectedRow().nurse?.idcard),
|
|
|
|
|
手机号: this.selectedRow().nurse?.mobile,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
if(this.type === 1){
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
姓名: this.selectedRow().customer?.name,
|
|
|
|
|
性别: this.selectedRow().customer?.sex,
|
|
|
|
|
年龄: getAgeByIdcard(this.selectedRow().customer?.idcard),
|
|
|
|
|
联系人: this.selectedRow().customer?.contact_name,
|
|
|
|
|
联系人电话: this.selectedRow().customer?.contact_phone,
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if(this.type === 2){
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
姓名: this.selectedRow().customer?.name,
|
|
|
|
|
性别: this.selectedRow().customer?.sex,
|
|
|
|
|
年龄: getAgeByIdcard(this.selectedRow().customer?.idcard),
|
|
|
|
|
地址: this.selectedRow().customer_address?.address,
|
|
|
|
|
联系人: this.selectedRow().customer?.contact_name,
|
|
|
|
|
联系人电话: this.selectedRow().customer?.contact_phone,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
姓名: this.selectedRow().nurse?.name,
|
|
|
|
|
性别: this.selectedRow().nurse?.sex,
|
|
|
|
|
年龄: getAgeByIdcard(this.selectedRow().nurse?.idcard),
|
|
|
|
|
手机号: this.selectedRow().nurse?.mobile,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
typeFormat() {
|
|
|
|
|
|