#
whycq
2023-11-15 2667b6698161d233c150c588bcee6e0daafe6f44
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<template>
    <view>
        <view class="status_bar">
            <!-- 这里是状态栏 -->
        </view>
        <uni-nav-bar left-icon="left" title="详情" @clickLeft="back" @clickRight="scan" :fixed="true" :border="false"
            rightWidth="160rpx" leftWidth="160rpx">
        </uni-nav-bar>
 
        <view class="main-box">
            <view class="box" v-for="item in list">
                <view class="box-single-row flex-row" v-for="rule in listRule">
                    <view style="flex: 1;">{{rule.label}}</view>
                    <view style="flex: 4;">{{item[rule.attribute]}}</view>
                </view>
            </view>
        </view>
        
        
        
        <view class="main-box">
            <view class="box" v-for="item in list">
                <view class="box-title">报销明细</view>
                <view style="width: 100%; overflow-x: scroll;border: 1px solid #bebebe;">
                    <table cellpadding="0" cellspacing="0">
                        <thead>
                            <tr style="background-color: #949494;color: #FFF;">
                                <td class="scroll-item">
                                    <view class="item-content">事由</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">费用类型</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">税率</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">未税本币金额</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">未税金额</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">税额</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">发票金额</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">发票本币金额</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">报销比例</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">报销金额</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">报销本币金额</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">出纳确认金额</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">列支人员</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">列支部门</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">更新日期</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content-last">更新人员名字</view>
                                </td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(item,index) in onlineDetl">
                                <td class="scroll-item">
                                    <view class="item-content">{{item.occupation}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.expenseType$}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.taxRate}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.untaxedAmountInLocalCurrency}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.untaxedAmount}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.taxAmount}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.invoiceValue}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.invoiceAmountInLocalCurrency}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.reimbursementRatio}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.reimbursementAmount}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.reimbursementAmountInLocalCurrency}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.cashierConfirmationAmount}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.userId$}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.deptId$}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content">{{item.updateTime}}</view>
                                </td>
                                <td class="scroll-item">
                                    <view class="item-content-last">{{item.updateUserName}}</view>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </view>
            </view>
        </view>
 
        <view class="main-box">
            <view class="box">
                <view class="box-title">流程动态</view>
                <u-steps :current="1" direction="column">
                    <u-steps-item title="开始 2023-11-09 13:30:54" desc="张芬创建了审批">
                    </u-steps-item>
                    <u-steps-item title="部门经理审核 2023-11-09 13:31:42" desc="部门经理张芬审批通过">
                    </u-steps-item>
                    <u-steps-item title="俞晓审核" desc="">
                    </u-steps-item>
                    <u-steps-item title="周春松审核" desc="">
                    </u-steps-item>
                    <u-steps-item title="罗萍审核" desc="">
                    </u-steps-item>
                    <u-steps-item title="俞晓审核" desc="">
                    </u-steps-item>
                </u-steps>
            </view>
        </view>
        
        <view style="height: 70rpx;">
            
        </view>w
 
        <view class="floor">
            <view class="wran">删除</view>
            <view class="default" @click="modiReimburse()">编辑</view>
            <view class="primary" @click="submit()">审批</view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                list: [{
                    templateName: '项目未完成',
                    checkData: '否',
                    orderNum: 'CRMREIMBURSE1699507854268',
                    itemId: '10',
                    name$: '浙江天成自控股份有限公司',
                    status$: '未完成',
                    settle$: '等待节点3审核',
                    detl: '报销明细',
                    updateUserId$: '张芬',
                    updateTime$: '2023-11-09 13:31:42'
                }, ],
                listRule: [{
                        label: "报销类型",
                        attribute: "templateName",
                    },
                    {
                        label: "是否冲账",
                        attribute: "checkData",
                    },
                    {
                        label: "报销单号",
                        attribute: "orderNum",
                    },
                    {
                        label: "项目号",
                        attribute: "itemId",
                    },
                    {
                        label: "客户信息",
                        attribute: "name$",
                    },
                    {
                        label: "状态",
                        attribute: "status$",
                    },
 
                    {
                        label: "进度",
                        attribute: "settle$",
                    },
                    {
                        label: "报销明细",
                        attribute: "detl",
                    },
                    {
                        label: "更新人员",
                        attribute: "updateUserId$",
                    },
                    {
                        label: "更新时间",
                        attribute: "updateTime$",
                    },
                ],
                onlineDetl: [
                    {
                        occupation: 'CRMREIMBURSE1699507854268',
                        expenseType$: '1',
                        taxRate: '0.0',
                        untaxedAmountInLocalCurrency: '1.1',
                        untaxedAmount: '1.3',
                        taxAmount: 'aaa',
                        invoiceValue: '213',
                        invoiceAmountInLocalCurrency: '123213',
                        reimbursementRatio: '0.0',
                        reimbursementAmount: 11,
                        reimbursementAmountInLocalCurrency:12,
                        cashierConfirmationAmount: 123,
                        userId$: '123',
                        deptId$: '财务部',
                        updateTime: '2023-11-11',
                        updateUserName: 'name'
                    }
                ]
            }
        },
        methods: {
            modiReimburse() {
                uni.navigateTo({
                    url: '/pages/business/goBusiness/modiReimburseOnlineDetl'
                })
            },
            back() {
                uni.navigateBack({})
            },
            scan() {
                uni.navigateTo({
                    url: '/pages/authority/authority'
                })
            },
        }
    }
</script>
 
<style>
    .main-box {
        border-radius: 20rpx;
        padding: 8rpx;
    }
 
    .box {
        margin: 16rpx 8rpx;
        /* height: 200px; */
        box-shadow: 0 0 5px #dddddd;
        background-color: #FFF;
        padding: 16rpx 32rpx;
        position: relative;
        border-radius: 20rpx;
        font-size: 24rpx;
        /* color: #bdbdbd; */
    }
 
    .box-single-row {
        display: flex;
    }
    
    .box-title {
        font-size: 28rpx;
        font-weight: bold;
        color: #000;
    }
 
    .floor {
        height: 100rpx;
        line-height: 100rpx;
        width: 100%;
        background-color: #fff;
        position: fixed;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        text-align: center;
        letter-spacing: 10rpx;
    }
 
    .default {
        flex: 2;
    }
 
    .default:active {
        background-color: #eff0f1;
    }
 
    .wran {
        flex: 1;
        background-color: #ff5722;
        color: #fff;
    }
 
    .primary {
        flex: 2;
        background-color: #2d8cf0;
        color: #fff;
    }
 
    .primary:active {
        background-color: #007dea;
    }
    .box-scroll {
        width: 100%;
        white-space: nowrap;
        border: 1px solid #c5c5c5;
        margin-top: 10rpx;
        margin-bottom: 10rpx;
    }
    .scroll-head {
        background-color: #949494;
        color: #fff;
        width: auto;
    }
    .scroll-item {
        width: 150rpx;
        padding: 10rpx;
        text-align: center;
    }
    
    .item-content {
        min-width: 150rpx;
        height: 30rpx;
        line-height: 30rpx;
        padding-right: 10rpx;
        border-right: 1px solid #d3d3d3;
    }
    .item-content-last {
        height: 30rpx;
        min-width: 150rpx;
        line-height: 30rpx;
    }
    
</style>