|
@@ -0,0 +1,128 @@
|
|
1
|
+<template>
|
|
2
|
+ <x-loading x-id="room.role">
|
|
3
|
+ <x-field label="首次录入人">
|
|
4
|
+ {{firstInputUser}}
|
|
5
|
+ </x-field>
|
|
6
|
+ <x-field label="首次录入时间">
|
|
7
|
+ {{roomRole.createTime}}
|
|
8
|
+ </x-field>
|
|
9
|
+
|
|
10
|
+ <x-field label="录入人">
|
|
11
|
+ {{inputUser}}
|
|
12
|
+ </x-field>
|
|
13
|
+ <x-field label="录入时间">
|
|
14
|
+ {{roomRole.recordTime}}
|
|
15
|
+ </x-field>
|
|
16
|
+
|
|
17
|
+ <x-field label="维护人">
|
|
18
|
+ {{getNameFormated(roomRole.belongName, roomRole.belongId)}}
|
|
19
|
+ </x-field>
|
|
20
|
+ <x-field label=" " v-shiro="'room:info:belongTel'">
|
|
21
|
+ <van-button size="small" type="warning">查看电话</van-button>
|
|
22
|
+ </x-field>
|
|
23
|
+
|
|
24
|
+ <x-field label="实勘人">
|
|
25
|
+ {{getNameFormated(roomRole.rescName, roomRole.rescId)}}
|
|
26
|
+ </x-field>
|
|
27
|
+ <x-field label="达成时间">
|
|
28
|
+ {{roomRole.rescTime}}
|
|
29
|
+ </x-field>
|
|
30
|
+
|
|
31
|
+ <x-field label="钥匙人">
|
|
32
|
+ {{getNameFormated(roomRole.keyName, roomRole.keyId)}}
|
|
33
|
+ </x-field>
|
|
34
|
+
|
|
35
|
+ <x-field label="委托人">
|
|
36
|
+ {{getNameFormated(roomRole.authName, roomRole.authId)}}
|
|
37
|
+ </x-field>
|
|
38
|
+ <x-field label="委托时间">
|
|
39
|
+ {{roomRole.authTime}}
|
|
40
|
+ </x-field>
|
|
41
|
+
|
|
42
|
+ <x-field label="最后修改人">
|
|
43
|
+ {{getNameFormated(roomRole.updateName, roomRole.updateId)}}
|
|
44
|
+ </x-field>
|
|
45
|
+ <x-field label="最后修改时间">
|
|
46
|
+ {{roomRole.updateTime}}
|
|
47
|
+ </x-field>
|
|
48
|
+
|
|
49
|
+ <template v-if="roomInfo.roomStatus === '8'">
|
|
50
|
+ <x-field label="成交人">
|
|
51
|
+ {{getNameFormated(roomRole.doneName, roomRole.doneId)}}
|
|
52
|
+ </x-field>
|
|
53
|
+ <x-field label="成交时间">
|
|
54
|
+ {{roomRole.doneTime}}
|
|
55
|
+ </x-field>
|
|
56
|
+ </template>
|
|
57
|
+
|
|
58
|
+ <template v-if="roomInfo.roomStatus !== '0' && roomInfo.roomStatus !== '8'">
|
|
59
|
+ <x-field label="申请关闭人">
|
|
60
|
+ {{getNameFormated(roomRole.applyCloseName, roomRole.applyCloseId)}}
|
|
61
|
+ </x-field>
|
|
62
|
+ <x-field label="申请关闭时间">
|
|
63
|
+ {{roomRole.applyCloseTime}}
|
|
64
|
+ </x-field>
|
|
65
|
+ <x-field label="关闭操作人">
|
|
66
|
+ {{getNameFormated(roomRole.closeName, roomRole.closeId)}}
|
|
67
|
+ </x-field>
|
|
68
|
+ <x-field label="关闭操作时间">
|
|
69
|
+ {{roomRole.closeTime}}
|
|
70
|
+ </x-field>
|
|
71
|
+ </template>
|
|
72
|
+
|
|
73
|
+ </x-loading>
|
|
74
|
+</template>
|
|
75
|
+
|
|
76
|
+<script>
|
|
77
|
+import { useModel } from '@zjxpcyc/vue-tiny-store'
|
|
78
|
+import { computed, onMounted } from 'vue'
|
|
79
|
+import { Button } from 'vant'
|
|
80
|
+
|
|
81
|
+export default {
|
|
82
|
+ components: {
|
|
83
|
+ [Button.name]: Button,
|
|
84
|
+ },
|
|
85
|
+ props: {
|
|
86
|
+ roomInfo: {
|
|
87
|
+ type: Object,
|
|
88
|
+ default: () => ({})
|
|
89
|
+ },
|
|
90
|
+ },
|
|
91
|
+ setup(props) {
|
|
92
|
+ const { roomRole, getRole } = useModel("room")
|
|
93
|
+
|
|
94
|
+ const getNameFormated = (name, id) => {
|
|
95
|
+ return name + (name ? `(ID:${id})` : '')
|
|
96
|
+ }
|
|
97
|
+
|
|
98
|
+ const firstInputUser = computed(() => {
|
|
99
|
+ const createMethod = props.roomInfo?.createMethod
|
|
100
|
+ if (createMethod === '1') {
|
|
101
|
+ return '外部录入'
|
|
102
|
+ } else {
|
|
103
|
+ return getNameFormated(roomRole.createName, roomRole.createId)
|
|
104
|
+ }
|
|
105
|
+ })
|
|
106
|
+
|
|
107
|
+ const inputUser = computed(() => {
|
|
108
|
+ const createMethod = props.roomInfo?.createMethod
|
|
109
|
+ if (createMethod === '1') {
|
|
110
|
+ return '外部录入'
|
|
111
|
+ } else {
|
|
112
|
+ return getNameFormated(roomRole.recordName, roomRole.recordId)
|
|
113
|
+ }
|
|
114
|
+ })
|
|
115
|
+
|
|
116
|
+ onMounted(() => {
|
|
117
|
+ getRole(props.roomInfo.id)
|
|
118
|
+ })
|
|
119
|
+
|
|
120
|
+ return {
|
|
121
|
+ roomRole,
|
|
122
|
+ firstInputUser,
|
|
123
|
+ inputUser,
|
|
124
|
+ getNameFormated,
|
|
125
|
+ }
|
|
126
|
+ }
|
|
127
|
+}
|
|
128
|
+</script>
|