1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
| <template>
| <div class="cur-container-box">
| <div v-if="applyType == 1">
| <div class="content-box">
| 审核当前项
| </div>
| <div class="footer-btn-box">
| <el-button type="primary" size="small" @click="auditPass(2)">通 过</el-button>
| <el-button size="small" @click="auditPass(3)">驳 回</el-button>
| </div>
| </div>
|
| <avue-form v-else :option="option" v-model="form"></avue-form>
| </div>
| </template>
| <script>
| import {
| getDetail,
| update
| } from "@/api/task/labelReporting"
| import website from '@/config/website'
| export default {
| data() {
| return {
| form: {},
| applyType: '',
| option: {
| submitBtn: false,
| emptyBtn: false,
| column: [{
| label: '房屋名称',
| prop: 'houseName',
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '手机号',
| prop: 'phoneNumber',
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '对象电话',
| prop: 'transactionObjectTel',
| disabled: true,
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '交易金额',
| prop: 'transactionMoney',
| disabled: true,
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '物品数量',
| prop: 'goodsNums',
| disabled: true,
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '发生时间',
| prop: 'happenTime',
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '审核时间',
| prop: 'confirmTime',
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '位置',
| prop: 'localtion',
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '审核意见',
| prop: 'confirmNotion',
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '审核状态',
| prop: 'confirmFlag',
| type: 'select',
| dicData: [{
| label: '待审核',
| value: '1'
| }, {
| label: '审核通过',
| value: '2'
| }, {
| label: '审核不通过',
| value: '3'
| }],
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '交易对象',
| prop: 'transactionObject',
| disabled: true,
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '交易过程',
| prop: 'transactionProcess',
| disabled: true,
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| label: '物品照片',
| prop: 'goodsImageUrls',
| fileType: 'img',
| type: "upload",
| listType: "picture-card",
| dataType: "string",
| disabled: true,
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, {
| width: 110,
| label: '身份证图片',
| prop: 'imageUrls',
| fileType: 'img',
| type: "upload",
| listType: "picture-card",
| dataType: "string",
| disabled: true,
| span: 8,
| labelWidth: 120,
| }, ]
| }
| }
| },
| methods: {
| auditPass(type) {
| update({
| status: type,
| taskId: this.form.taskId,
| id: this.form.id
| }).then(() => {
| this.$message({
| type: "success",
| message: "操作成功!",
| })
| this.$emit('colseDetail')
| })
| },
| init(data, applyType) {
| this.applyType = applyType
| this.getTaskDetail(data.id)
| },
|
| getTaskDetail(taskId) {
| getDetail({
| taskId: taskId
| }).then((res) => {
| this.form = res.data.data
| if (this.form.imageUrls) {
| this.form.imageUrls = website.minioUrl + this.form.imageUrls
| }
| if (this.form.goodsImageUrls) {
| this.form.goodsImageUrls = website.minioUrl + this.form.goodsImageUrls
| }
|
| })
| }
|
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .cur-container-box {
| padding: 50px;
|
| .content-box {
| margin: 0 4px;
| padding: 0 16px;
| height: 0;
| flex: 1;
| overflow: hidden;
| overflow-y: auto;
| }
|
| .footer-btn-box {
| margin-top: 10px;
| display: flex;
| justify-content: center;
| }
| }
| </style>
|
|