|
@@ -263,10 +263,10 @@ export default { |
|
@@ -263,10 +263,10 @@ export default { |
|
263
|
this.planList = Array.isArray(data.planLines) ? data.planLines.map(x => ({ ...x })) : []
|
263
|
this.planList = Array.isArray(data.planLines) ? data.planLines.map(x => ({ ...x })) : []
|
|
264
|
this.weighList = Array.isArray(data.weighLines) ? data.weighLines.map(x => ({ ...x })) : []
|
264
|
this.weighList = Array.isArray(data.weighLines) ? data.weighLines.map(x => ({ ...x })) : []
|
|
265
|
this.applyList = Array.isArray(data.applyLines) ? data.applyLines.map(x => ({ ...x })) : []
|
265
|
this.applyList = Array.isArray(data.applyLines) ? data.applyLines.map(x => ({ ...x })) : []
|
|
266
|
- // 已传附件回显(多文件逗号分隔)
|
|
|
|
267
|
- const key = this.mode === 'delay' ? 'delayFile' : 'signFile'
|
|
|
|
268
|
- const ids = String(data[key + 'Id'] || '').split(',').filter(Boolean)
|
|
|
|
269
|
- const names = String(data[key + 'Name'] || '').split(',').filter(Boolean)
|
266
|
+ // 已传附件回显(多文件逗号分隔,与详情接口字段一致)
|
|
|
|
267
|
+ const key = this.mode === 'delay' ? 'delayAttachmentFile' : 'signAttachmentFile'
|
|
|
|
268
|
+ const ids = String(data[key + 'Ids'] || '').split(',').map(x => x.trim()).filter(Boolean)
|
|
|
|
269
|
+ const names = String(data[key + 'Names'] || '').split(',').map(x => x.trim())
|
|
270
|
this.fileList = ids.map((id, i) => ({ id, name: names[i] || '' }))
|
270
|
this.fileList = ids.map((id, i) => ({ id, name: names[i] || '' }))
|
|
271
|
})
|
271
|
})
|
|
272
|
.catch(() => {
|
272
|
.catch(() => {
|