|
@@ -1,24 +1,24 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <view class="info-dot">基本信息</view>
|
|
|
+ <view class="info-dot">护理申请</view>
|
|
|
<view class="info-list">
|
|
|
- <view class="info-item" v-for="(item, index) in objKeyValue" :key="index">
|
|
|
+ <view class="info-item" v-for="(item, index) in itemHandle" :key="index">
|
|
|
<text class="info-item-label">{{item.name}}</text>
|
|
|
- <text class="info-item-content text-overflow">大厦大厦大叔大婶大厦大叔大婶大厦大叔大婶大叔大婶</text>
|
|
|
+ <text class="info-item-content text-overflow">{{item.value??'-'}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="info-dot">申请理由</view>
|
|
|
+ <view class="info-dot">护理需求</view>
|
|
|
<view class="info-list">
|
|
|
<view class="info-item flex-column" style="align-items: flex-start;">
|
|
|
- <view class="info-item-label">申请理由</view>
|
|
|
+ <view class="info-item-label">护理需求</view>
|
|
|
<view class="info-item-content info-item-content2">
|
|
|
- <up-textarea v-model="value1" disabled placeholder=" " count />
|
|
|
+ <up-textarea v-model="item.careNeeds" disabled placeholder="-" count />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info-item flex-column" style="align-items: flex-start;">
|
|
|
- <view class="info-item-label">详细说明</view>
|
|
|
+ <view class="info-item-label">备注</view>
|
|
|
<view class="info-item-content info-item-content2">
|
|
|
- <up-textarea v-model="value2" disabled placeholder=" " count />
|
|
|
+ <up-textarea v-model="item.remark" disabled placeholder="-" count />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -27,9 +27,14 @@
|
|
|
|
|
|
<script setup>
|
|
|
import {
|
|
|
+ computed,
|
|
|
reactive,
|
|
|
ref
|
|
|
} from 'vue';
|
|
|
+ import {
|
|
|
+ getDict
|
|
|
+ } from '@/common/status/index.js'
|
|
|
+
|
|
|
const props = defineProps({
|
|
|
item: {
|
|
|
type: Object,
|
|
@@ -40,27 +45,47 @@
|
|
|
})
|
|
|
const objKeyValue = reactive([{
|
|
|
name: '姓名',
|
|
|
- key: 'name'
|
|
|
+ key: 'personName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '首选性别',
|
|
|
+ key: 'nurseGender'
|
|
|
},
|
|
|
{
|
|
|
- name: '证件号码',
|
|
|
- key: 'idNumber'
|
|
|
+ name: '所在医院',
|
|
|
+ key: 'hospital'
|
|
|
},
|
|
|
{
|
|
|
- name: '住址',
|
|
|
+ name: '详细地址',
|
|
|
key: 'address'
|
|
|
},
|
|
|
{
|
|
|
- name: '联系电话',
|
|
|
- key: 'phoneNnumber'
|
|
|
+ name: '预计天数',
|
|
|
+ key: 'careDays'
|
|
|
},
|
|
|
{
|
|
|
- name: '登记日期',
|
|
|
- key: 'registeredDate'
|
|
|
+ name: '申请日期',
|
|
|
+ key: 'applyDate'
|
|
|
},
|
|
|
])
|
|
|
- const value1 = ref('这是一条申请理由!!!!')
|
|
|
- const value2 = ref('每一天都在这快乐的日子里快乐的生活着,想成为外面的世界里的一个过客,去厦门,去哈尔滨,去西藏,气云南….')
|
|
|
+ //中间层 - item和objKeyValue
|
|
|
+ const itemHandle = computed(()=>{
|
|
|
+ let itemArray = uni.$u.deepClone(objKeyValue);
|
|
|
+ itemArray.map(keyObj=>{
|
|
|
+ if(props.item.hasOwnProperty(keyObj.key)){
|
|
|
+ let value = props.item[keyObj.key];
|
|
|
+ if(keyObj.key === 'nurseGender'){
|
|
|
+ value = getDict('sys_user_sex', {dictValue: value}).dictLabel??'-';
|
|
|
+ }
|
|
|
+ keyObj.value = value;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return itemArray;
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|