modify.vue
24.1 KB
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
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
<template>
<view class="page">
<scroll-view class="scroll" scroll-y>
<!-- 基础信息(只读) -->
<uni-list>
<uni-list-item title="码单编号">
<template v-slot:footer>
<uni-easyinput :value="form.weighingTicketCode" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item title="日期">
<template v-slot:footer>
<uni-easyinput :value="form.ticketDate" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item title="材料来源">
<template v-slot:footer>
<uni-easyinput :value="form.materialSource" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item title="计划单编号">
<template v-slot:footer>
<uni-easyinput :value="form.planCode" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item title="分厂">
<template v-slot:footer>
<uni-easyinput :value="form.workshopName" :inputBorder="false" disabled />
</template>
</uni-list-item>
</uni-list>
<!-- 明细数据(可编辑) -->
<view class="sub-table">
<view class="header">
<image class="opCollapse" src="/static/images/title.png" />
<text class="title">明细数据</text>
</view>
<view class="add-list">
<view v-if="!lineList.length" class="empty-tip">暂无明细</view>
<view v-for="(item, idx) in lineList" :key="'l-' + (item.rowId || idx)" class="block">
<uni-list>
<uni-list-item title="材料编号">
<template v-slot:footer>
<uni-easyinput :value="item.category" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item title="材料名称">
<template v-slot:footer>
<uni-easyinput :value="item.name" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item title="规格型号">
<template v-slot:footer>
<uni-easyinput :value="item.specModel" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item title="单位">
<template v-slot:footer>
<uni-easyinput :value="item.unit" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item>
<template v-slot:body>
<view class="item-title"><text class="required">*</text><text>数量(采购数kg)</text></view>
</template>
<template v-slot:footer>
<uni-easyinput v-model="item.purchaseQuantity" type="digit" :inputBorder="false" placeholder="请输入采购数" @input="recalcTaxAmount(item)" />
</template>
</uni-list-item>
<uni-list-item>
<template v-slot:body>
<view class="item-title"><text class="required">*</text><text>数量(实收数kg)</text></view>
</template>
<template v-slot:footer>
<uni-easyinput v-model="item.actualQuantity" type="digit" :inputBorder="false" placeholder="请输入实收数" />
</template>
</uni-list-item>
<uni-list-item>
<template v-slot:body>
<view class="item-title"><text class="required">*</text><text>含税单价</text></view>
</template>
<template v-slot:footer>
<uni-easyinput v-model="item.taxPrice" type="digit" :inputBorder="false" placeholder="请输入含税单价" @input="recalcTaxAmount(item)" />
</template>
</uni-list-item>
<uni-list-item title="含税金额">
<template v-slot:footer>
<uni-easyinput :value="item.taxAmount" :inputBorder="false" disabled placeholder="单价×采购数自动计算" />
</template>
</uni-list-item>
<uni-list-item title="不含税单价">
<template v-slot:footer>
<uni-easyinput :value="item.noTaxPrice" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item title="不含税金额">
<template v-slot:footer>
<uni-easyinput :value="item.noTaxAmount" :inputBorder="false" disabled />
</template>
</uni-list-item>
<uni-list-item title="备注">
<template v-slot:footer>
<uni-easyinput v-model="item.remark" :inputBorder="false" placeholder="请输入备注" />
</template>
</uni-list-item>
</uni-list>
</view>
</view>
</view>
<!-- 合计 -->
<view class="total-card">
<view class="total-title">合计</view>
<view class="total-body">
<view class="total-item">
<text class="total-label">采购数(kg)</text>
<text class="total-value">{{ purchaseQuantityCap }}</text>
</view>
<view class="total-item">
<text class="total-label">实收数(kg)</text>
<text class="total-value">{{ totalActualQuantity || '-' }}</text>
</view>
<view class="total-item">
<text class="total-label">含税金额</text>
<text class="total-value">{{ totalTaxAmount || '-' }}</text>
</view>
</view>
</view>
<!-- 其他信息 -->
<view class="remark-section">
<view class="header">
<image class="opCollapse" src="/static/images/title.png" />
<text class="title">其他信息</text>
</view>
<view class="section-content">
<view class="remark-group">
<view class="remark-label">备注</view>
<uni-easyinput v-model="form.remark" type="textarea" :inputBorder="false" placeholder="请输入备注" maxlength="2000" autoHeight />
</view>
<!-- 附件 -->
<view class="form-group">
<view class="item-title"><text>附件</text></view>
<view class="upload-btn" @click="selectFile">上传文件</view>
<view v-if="!fileList.length" class="empty-tip">暂无附件</view>
<view v-for="(file, idx) in fileList" :key="file.fileId || idx" class="file-item">
<text class="file-name">{{ file.fileName || '未命名文件' }}</text>
<text class="file-del" @click="removeFile(idx)">删除</text>
</view>
</view>
</view>
</view>
<view class="footer">
<button class="btn submit" type="primary" @click="onSubmit">保存</button>
</view>
</scroll-view>
</view>
</template>
<script>
import {
warehouseReceiveDetailApi,
warehouseReceiveUpdateApi
} from '@/api/procure-manage/warehouseMaterial.js'
import upload from '@/utils/upload'
import { uploadFileApi } from '@/api/base.js'
export default {
name: 'ModifyWarehouseMaterial',
data() {
return {
id: '',
form: {
id: '',
settleDetailId: '',
weighingTicketCode: '',
ticketDate: '',
materialSource: '',
planCode: '',
workshopName: '',
remark: ''
},
// 明细数据(详情回显,采购数/实收数/含税单价可编辑)
lineList: [],
// 附件列表(详情回显,可上传/删除)
fileList: []
}
},
computed: {
// 合计-采购数(保留两位)
totalPurchaseQuantity() {
const list = this.lineList || []
return Number(list.reduce((sum, row) => sum + Number(row.purchaseQuantity || 0), 0).toFixed(2))
},
// 合计-实收数(保留两位)
totalActualQuantity() {
const list = this.lineList || []
return Number(list.reduce((sum, row) => sum + Number(row.actualQuantity || 0), 0).toFixed(2))
},
// 合计-含税金额(保留两位)
totalTaxAmount() {
const list = this.lineList || []
return Number(list.reduce((sum, row) => sum + Number(row.taxAmount || 0), 0).toFixed(2))
},
// 合计-采购数大写(中文大写+公斤,编辑提交时传给后端)
purchaseQuantityCap() {
if (!(this.lineList || []).length) return '-'
return numberToChineseUpper(this.totalPurchaseQuantity) + '公斤'
}
},
onLoad(query) {
this.id = (query && query.id) || ''
},
created() {
this.loadDetail()
},
methods: {
loadDetail() {
if (!this.id) {
uni.showToast({ title: '缺少单据ID', icon: 'none' })
return
}
uni.showLoading({ title: '加载中...', mask: true })
warehouseReceiveDetailApi({ id: this.id })
.then(res => {
const data = res && res.data ? (res.data.data || res.data) : {}
this.form = {
id: data.id || this.id,
settleDetailId: data.settleDetailId || '',
weighingTicketCode: data.weighingTicketCode || '',
ticketDate: data.ticketDate || '',
materialSource: data.materialSource || '',
planCode: data.planCode || '',
workshopName: data.workshopName || '',
remark: data.remark || ''
}
// 明细回显(采购数/实收数/含税单价等以详情返回为准)
this.lineList = (Array.isArray(data.lines) ? data.lines : []).map(item => ({
rowId: genRowId(),
settleLineId: item.settleLineId || item.id || '',
procurementPlanId: item.procurementPlanId || '',
productId: item.productId || '',
category: item.category || '',
name: item.name || '',
specModel: item.specModel || '',
unit: item.unit || 'kg',
purchaseQuantity: item.purchaseQuantity == null ? '' : item.purchaseQuantity,
actualQuantity: item.actualQuantity == null ? '' : item.actualQuantity,
taxPrice: item.taxPrice == null ? '' : item.taxPrice,
taxAmount: item.taxAmount == null ? '' : item.taxAmount,
noTaxPrice: item.noTaxPrice == null ? '' : item.noTaxPrice,
noTaxAmount: item.noTaxAmount == null ? '' : item.noTaxAmount,
settleType: item.settleType || '',
remark: item.remark || ''
}))
// 附件回显:ids 与 names 按位置一一对应
const ids = splitCsv(data.attachmentFileIds)
const names = splitCsv(data.attachmentFileNames)
const len = Math.max(ids.length, names.length)
const list = []
for (let i = 0; i < len; i++) {
list.push({ fileId: ids[i] || '', fileName: names[i] || '' })
}
this.fileList = list
})
.catch(() => {
uni.showToast({ title: '加载详情失败', icon: 'none' })
})
.finally(() => {
uni.hideLoading()
})
},
// 含税金额 = 含税单价 * 采购数(单价或采购数为空则金额为空)
recalcTaxAmount(row) {
const price = row.taxPrice
const qty = row.purchaseQuantity
const hasPrice = price !== null && price !== undefined && price !== ''
const hasQty = qty !== null && qty !== undefined && qty !== ''
if (hasPrice && hasQty) {
row.taxAmount = Math.round(Number(price) * Number(qty) * 100) / 100
} else {
row.taxAmount = ''
}
},
// 选择并上传文件(多文件逐个追加)
selectFile() {
if (typeof uni !== 'undefined' && typeof uni.chooseMessageFile === 'function') {
uni.chooseMessageFile({
count: 9,
type: 'all',
success: async res => {
const files = (res && res.tempFiles) || []
if (!files.length) return
uni.showLoading({ title: '上传中...', mask: true })
try {
for (const f of files) {
const name = f.name || 'file'
const r = await upload({ url: '/sw/filebox/uploadFile', filePath: f.path, name: 'file' })
const d = r && r.data ? r.data : r
const id = (d && (d.id || d.fileId || (d.data && (d.data.id || d.data.fileId))))
? String(d.id || d.fileId || d.data.id || d.data.fileId)
: ''
if (id) this.fileList.push({ fileId: id, fileName: name })
}
} catch (e) {
uni.showToast({ title: '上传失败', icon: 'none' })
} finally {
uni.hideLoading()
}
},
fail: () => {
uni.showToast({ title: '未选择文件', icon: 'none' })
}
})
return
}
// H5 兜底:动态创建原生 input
try {
const self = this
const input = document.createElement('input')
input.type = 'file'
input.multiple = true
input.style.position = 'fixed'
input.style.left = '-9999px'
document.body.appendChild(input)
input.addEventListener('change', self.onFileChange)
input.click()
setTimeout(() => { document.body.removeChild(input) }, 1000)
} catch (e) {
uni.showToast({ title: '无法打开文件选择', icon: 'none' })
}
},
async onFileChange(e) {
const files = (e && e.target && e.target.files) || []
if (!files.length) return
uni.showLoading({ title: '上传中...', mask: true })
try {
for (const file of files) {
const name = file.name || ''
const fd = new FormData()
fd.append('file', file, name)
const d = await uploadFileApi(fd)
const data = d && d.data ? d.data : d
const id = (data && (data.id || data.fileId || (data.data && (data.data.id || data.data.fileId))))
? String(data.id || data.fileId || data.data.id || data.data.fileId)
: ''
if (id) this.fileList.push({ fileId: id, fileName: name })
}
} catch (e2) {
uni.showToast({ title: '上传失败', icon: 'none' })
} finally {
uni.hideLoading()
if (e && e.target) e.target.value = ''
}
},
// 删除附件
removeFile(idx) {
this.fileList.splice(idx, 1)
},
validate() {
const lines = this.lineList || []
if (!lines.length) return this.tip('明细数据不能为空')
for (let i = 0; i < lines.length; i++) {
const row = lines[i]
if (row.purchaseQuantity === '' || row.purchaseQuantity == null) return this.tip(`明细第${i + 1}行:请输入采购数`)
if (row.actualQuantity === '' || row.actualQuantity == null) return this.tip(`明细第${i + 1}行:请输入实收数`)
if (row.taxPrice === '' || row.taxPrice == null) return this.tip(`明细第${i + 1}行:请输入含税单价`)
}
return true
},
tip(msg) {
uni.showToast({ title: msg, icon: 'none' })
return false
},
buildSubmitData() {
return {
id: this.form.id,
settleDetailId: this.form.settleDetailId,
ticketDate: this.form.ticketDate,
materialSource: this.form.materialSource,
remark: this.form.remark || '',
attachmentFileIds: this.fileList.map(x => x.fileId).filter(Boolean).join(','),
attachmentFileNames: this.fileList.map(x => x.fileName).filter(Boolean).join(','),
// 合计-采购数大写由前端换算提交
totalPurchaseQuantityCap: (this.lineList || []).length ? numberToChineseUpper(this.totalPurchaseQuantity) + '公斤' : '',
totalActualQuantity: String(this.totalActualQuantity),
totalTaxAmount: String(this.totalTaxAmount),
// 收料单明细
lines: (this.lineList || []).map(item => ({
settleLineId: item.settleLineId || '',
procurementPlanId: item.procurementPlanId || '',
productId: item.productId || '',
category: item.category || '',
name: item.name || '',
specModel: item.specModel || '',
unit: item.unit || '',
purchaseQuantity: item.purchaseQuantity == null ? '' : String(item.purchaseQuantity),
actualQuantity: item.actualQuantity == null ? '' : String(item.actualQuantity),
taxPrice: item.taxPrice == null ? '' : String(item.taxPrice),
taxAmount: item.taxAmount == null ? '' : String(item.taxAmount),
noTaxPrice: item.noTaxPrice == null ? '' : String(item.noTaxPrice),
noTaxAmount: item.noTaxAmount == null ? '' : String(item.noTaxAmount),
settleType: item.settleType || '',
remark: item.remark || ''
}))
}
},
async onSubmit() {
if (!this.validate()) return
const confirmRes = await new Promise(resolve => {
uni.showModal({ title: '提示', content: '确定保存仓库收料单吗?', confirmText: '确定', cancelText: '取消', success: resolve })
})
if (!(confirmRes && confirmRes.confirm)) return
uni.showLoading({ title: '提交中...', mask: true })
warehouseReceiveUpdateApi(this.buildSubmitData())
.then(() => {
uni.hideLoading()
uni.showToast({ title: '保存成功', icon: 'none' })
try {
uni.setStorageSync('WAREHOUSE_MATERIAL_LIST_NEED_REFRESH', '1')
uni.setStorageSync('WAREHOUSE_MATERIAL_DETAIL_NEED_REFRESH', '1')
} catch (e) {}
setTimeout(() => { uni.navigateBack() }, 400)
})
.catch(e => {
uni.hideLoading()
uni.showToast({ title: (e && (e.msg || e.message)) || '保存失败', icon: 'none' })
})
}
}
}
// 生成前端临时行 id
function genRowId() {
return 'row_' + Date.now().toString(36) + '_' + Math.random().toString(36).slice(2, 8)
}
// 逗号分隔字符串转数组
function splitCsv(val) {
if (!val) return []
if (Array.isArray(val)) return val
return String(val).split(',').filter(Boolean)
}
// 数字转中文大写(对齐 PC 端 useReceiveForm.ts,保留位权读法,不含货币单位)
function numberToChineseUpper(num) {
if (num === null || num === undefined || num === '' || isNaN(Number(num))) return '零'
const n = Number(num)
if (!isFinite(n)) return '零'
const digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
const smallUnits = ['', '拾', '佰', '仟']
const bigUnits = ['', '万', '亿', '兆']
const negative = n < 0
const abs = Math.abs(n)
const parts = abs.toString().split('.')
const intStrRaw = parts[0]
const decStrRaw = parts[1] || ''
const s = intStrRaw
const len = s.length
let intPart = ''
let zeroFlag = false
for (let i = 0; i < len; i++) {
const d = parseInt(s[i], 10)
const pos = len - 1 - i
const unitIdx = pos % 4
const groupIdx = Math.floor(pos / 4)
if (d !== 0) {
if (zeroFlag) {
intPart += digit[0]
zeroFlag = false
}
intPart += digit[d] + smallUnits[unitIdx]
} else {
zeroFlag = true
}
if (unitIdx === 0) {
const start = Math.max(0, len - (groupIdx + 1) * 4)
const end = len - groupIdx * 4
const groupDigits = s.slice(start, end)
if (!/^0+$/.test(groupDigits)) {
intPart += bigUnits[groupIdx] || ''
}
}
}
if (intPart === '') intPart = digit[0]
let result = intPart
if (decStrRaw) {
const decChars = decStrRaw
.split('')
.map(c => digit[parseInt(c, 10)])
.join('')
result += '点' + decChars
}
return (negative ? '负' : '') + result
}
</script>
<style lang="scss" scoped>
.page {
display: flex;
flex-direction: column;
height: 100%;
}
.scroll {
flex: 1;
padding: 12rpx 0 200rpx !important;
}
.footer {
z-index: 2;
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 32rpx;
padding-bottom: calc(32rpx + env(safe-area-inset-bottom));
background: #fff;
box-shadow: 0 -8rpx 24rpx rgba(0, 0, 0, 0.06);
.btn {
height: 80rpx;
line-height: 80rpx;
border-radius: 12rpx;
font-size: 32rpx;
}
.submit {
background: $theme-primary;
color: #fff;
}
}
::v-deep .uni-list {
.uni-easyinput {
display: flex;
.uni-input-input {
color: rgba(0, 0, 0, 0.9);
}
}
.uni-input-placeholder {
z-index: 1;
}
.uni-input-input {
background-color: #ffffff;
}
background: transparent;
&-item {
&__extra-text {
font-size: 32rpx;
}
&__content-title {
font-size: 32rpx;
color: rgba(0, 0, 0, 0.9);
}
&__container {
padding: 32rpx;
.uni-easyinput {
&__placeholder-class {
font-size: 32rpx;
color: rgba(0, 0, 0, 0.4);
}
&__content {
border: none;
background-color: #ffffff !important;
&-input {
padding-left: 0 !important;
height: 48rpx;
line-height: 48rpx;
font-size: 32rpx;
}
.content-clear-icon {
font-size: 44rpx !important;
}
}
}
.item-title,
.uni-list-item__content {
flex: none;
min-height: 48rpx;
line-height: 48rpx;
font-size: 32rpx;
position: relative;
width: 240rpx;
margin-right: 32rpx;
color: rgba(0, 0, 0, 0.9);
.required {
color: red;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: -16rpx;
}
}
}
}
}
.sub-table,
.remark-section {
margin-top: 20rpx;
background: #fff;
}
.header {
display: flex;
align-items: center;
padding: 24rpx 32rpx;
border-bottom: 1rpx solid #f0f0f0;
.opCollapse {
width: 32rpx;
height: 28rpx;
margin-right: 16rpx;
margin-top: 8rpx;
}
.title {
font-size: 32rpx;
color: rgba(0, 0, 0, 0.9);
font-weight: 600;
flex: 1;
}
}
.add-list {
padding: 0 0 16rpx;
.empty-tip {
text-align: center;
padding: 60rpx 0;
color: rgba(0, 0, 0, 0.4);
font-size: 28rpx;
}
.block {
border-bottom: 1rpx solid #f0f0f0;
&:last-child {
border-bottom: none;
}
}
}
.total-card {
margin-top: 20rpx;
background: #fff;
padding: 24rpx 32rpx;
.total-title {
font-size: 32rpx;
font-weight: 600;
color: rgba(0, 0, 0, 0.9);
margin-bottom: 20rpx;
}
.total-body {
display: flex;
flex-wrap: wrap;
.total-item {
width: 50%;
display: flex;
align-items: center;
margin-bottom: 20rpx;
&:nth-last-child(-n + 2) {
margin-bottom: 0;
}
.total-label {
font-size: 28rpx;
color: rgba(0, 0, 0, 0.6);
margin-right: 16rpx;
}
.total-value {
font-size: 28rpx;
color: rgba(0, 0, 0, 0.9);
font-weight: 500;
}
}
}
}
.section-content {
padding: 32rpx;
}
.form-group {
margin-top: 24rpx;
.item-title {
display: flex;
align-items: center;
font-size: 32rpx;
color: rgba(0, 0, 0, 0.9);
margin-bottom: 20rpx;
position: relative;
padding-left: 16rpx;
.required {
color: red;
position: absolute;
left: 0;
}
}
.upload-btn {
display: inline-block;
height: 64rpx;
line-height: 64rpx;
padding: 0 32rpx;
font-size: 28rpx;
border-radius: 8rpx;
background: $theme-primary;
color: #fff;
}
.empty-tip {
text-align: center;
padding: 24rpx 0;
color: rgba(0, 0, 0, 0.4);
font-size: 28rpx;
}
.file-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 24rpx;
margin-top: 16rpx;
background: #fafafa;
border-radius: 8rpx;
.file-name {
flex: 1;
font-size: 28rpx;
color: rgba(0, 0, 0, 0.9);
word-break: break-all;
margin-right: 20rpx;
}
.file-del {
flex-shrink: 0;
font-size: 26rpx;
color: #d54941;
}
}
}
.remark-group {
margin-bottom: 32rpx;
.remark-label {
display: flex;
align-items: center;
font-size: 32rpx;
color: rgba(0, 0, 0, 0.9);
margin-bottom: 16rpx;
}
}
</style>