|
@@ -380,21 +380,17 @@ export default {
|
|
|
this.uniqueId = uniqueId
|
|
this.uniqueId = uniqueId
|
|
|
}
|
|
}
|
|
|
this.oldDataList = []
|
|
this.oldDataList = []
|
|
|
- for await (let item of fileList) {
|
|
|
|
|
- if (item.remarks == uniqueId) {
|
|
|
|
|
- // await this.ossService.getFileSizeByUrl(item.url).then((data) => {
|
|
|
|
|
- // item.lsUrl = data.url
|
|
|
|
|
- // item.size = data.size
|
|
|
|
|
- this.invoiceNoSet.add(item.number);
|
|
|
|
|
- this.dataList.push(item)
|
|
|
|
|
- this.oldDataList.push(item)
|
|
|
|
|
- this.dataListNew.push(item)
|
|
|
|
|
- if (this.dataListNew.length === fileList.length) {
|
|
|
|
|
- this.fileLoading = true
|
|
|
|
|
- }
|
|
|
|
|
- // })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const filtered = fileList.filter(item => item.remarks === uniqueId)
|
|
|
|
|
+
|
|
|
|
|
+ filtered.forEach(item => {
|
|
|
|
|
+ this.invoiceNoSet.add(item.number)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ this.dataList = filtered
|
|
|
|
|
+ this.oldDataList = [...filtered]
|
|
|
|
|
+ this.dataListNew = [...filtered]
|
|
|
|
|
+ this.fileLoading = true
|
|
|
// this.dataList = JSON.parse(JSON.stringify(fileList))
|
|
// this.dataList = JSON.parse(JSON.stringify(fileList))
|
|
|
// this.dataListNew = JSON.parse(JSON.stringify(fileList))
|
|
// this.dataListNew = JSON.parse(JSON.stringify(fileList))
|
|
|
if (this.commonJS.isEmpty(showDivider)) {
|
|
if (this.commonJS.isEmpty(showDivider)) {
|