|
|
@@ -25,15 +25,15 @@ export default {
|
|
25
|
25
|
})
|
|
26
|
26
|
}
|
|
27
|
27
|
// 删除成功后刷新列表
|
|
28
|
|
- this.getList('2', '1', this.currentReceipt.id);
|
|
29
|
|
- this.getList('2', '2', this.currentReceipt.id);
|
|
30
|
|
- this.getList('2', '3', this.currentReceipt.id);
|
|
|
28
|
+ this.getList('2', '1', this.currentReceipt.id, this.orderDetail.itemBrand);
|
|
|
29
|
+ this.getList('2', '2', this.currentReceipt.id, this.orderDetail.itemBrand);
|
|
|
30
|
+ this.getList('2', '3', this.currentReceipt.id, this.orderDetail.itemBrand);
|
|
31
|
31
|
}
|
|
32
|
32
|
}
|
|
33
|
33
|
})
|
|
34
|
34
|
},
|
|
35
|
35
|
//获取文件列表
|
|
36
|
|
- async getList(type, orderFileType, receiptID) {
|
|
|
36
|
+ async getList(type, orderFileType, receiptID, itemBrand) {
|
|
37
|
37
|
console.log('获取文件列表', type, receiptID)
|
|
38
|
38
|
// console.log('当前的订单id', this.orderDetail.id)
|
|
39
|
39
|
// console.log('当前的收单id', this.currentReceipt.id)
|
|
|
@@ -49,11 +49,25 @@ export default {
|
|
49
|
49
|
}
|
|
50
|
50
|
const response = await uni.$u.api.selectClueFileByDto(params)
|
|
51
|
51
|
if (orderFileType == '1') {
|
|
52
|
|
- this.trueUploadList = response.rows.filter(item => item.sourceId == receiptID) || []
|
|
|
52
|
+ //如果itemBrand里面有逗号的话说明是多个品牌
|
|
|
53
|
+
|
|
|
54
|
+ if (itemBrand.indexOf(',') != -1) {
|
|
|
55
|
+ this.trueUploadList = response.rows.filter(item => item.sourceId == receiptID) || []
|
|
|
56
|
+ } else {
|
|
|
57
|
+ this.trueUploadList = response.rows
|
|
|
58
|
+ }
|
|
53
|
59
|
} else if (orderFileType == '2') {
|
|
54
|
|
- this.chatRecordsUploadList = response.rows.filter(item => item.sourceId == receiptID) || []
|
|
|
60
|
+ if (itemBrand.indexOf(',') != -1) {
|
|
|
61
|
+ this.chatRecordsUploadList = response.rows.filter(item => item.sourceId == receiptID) || []
|
|
|
62
|
+ } else {
|
|
|
63
|
+ this.chatRecordsUploadList = response.rows
|
|
|
64
|
+ }
|
|
55
|
65
|
} else if (orderFileType == '3') {
|
|
56
|
|
- this.detailImages = response.rows.filter(item => item.sourceId == receiptID) || []
|
|
|
66
|
+ if (itemBrand.indexOf(',') != -1) {
|
|
|
67
|
+ this.detailImages = response.rows.filter(item => item.sourceId == receiptID) || []
|
|
|
68
|
+ } else {
|
|
|
69
|
+ this.detailImages = response.rows
|
|
|
70
|
+ }
|
|
57
|
71
|
}
|
|
58
|
72
|
} catch (error) {
|
|
59
|
73
|
uni.$u.toast(`获取列表失败:${error}`)
|
|
|
@@ -89,9 +103,9 @@ export default {
|
|
89
|
103
|
|
|
90
|
104
|
this.bindOrder(p, receiptID);
|
|
91
|
105
|
|
|
92
|
|
- this.getList('2', '1', this.currentReceipt.id);
|
|
93
|
|
- this.getList('2', '2', this.currentReceipt.id);
|
|
94
|
|
- this.getList('2', '3', this.currentReceipt.id);
|
|
|
106
|
+ this.getList('2', '1', this.currentReceipt.id, this.orderDetail.itemBrand);
|
|
|
107
|
+ this.getList('2', '2', this.currentReceipt.id, this.orderDetail.itemBrand);
|
|
|
108
|
+ this.getList('2', '3', this.currentReceipt.id, this.orderDetail.itemBrand);
|
|
95
|
109
|
|
|
96
|
110
|
|
|
97
|
111
|
} catch (error) {
|