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
| <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>
| <scroll-view style="width: 3000rpx;" scroll-x="true" scroll-left="120">
| <view>事由</view>
| <view>费用类型</view>
| <view>税率</view>
| <view>未税本币金额</view>
| <view>未税金额</view>
| <view>税额</view>
| <view>发票金额</view>
| <view>发票本币金额</view>
| <view>报销比例</view>
| <view>报销金额</view>
| <view>报销本币金额</view>
| <view>出纳确认金额</view>
| <view>列支人员</view>
| <view>列支部门</view>
| <view>更新日期</view>
| <view>更新人员名字</view>
| <view>发票本币金额</view>
| </scroll-view>
| </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 class="floor">
| <view class="wran">删除</view>
| <view class="default">编辑</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$",
| },
| ],
| }
| },
| methods: {
| 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;
| }
| </style>
|
|