|
@@ -282,7 +282,7 @@ export default {
|
|
|
if (valid) {
|
|
|
goodsPurchaseRetAdd({
|
|
|
...this.formData,
|
|
|
- items: this.formData.items,
|
|
|
+ items: this.formData.items.map((item, index) => ({ ...item, index: index + 1 })),
|
|
|
fileUrl: this.formData.fileUrl.map(item => item.url).join(','),
|
|
|
codeInfoList: undefined
|
|
|
}).then(res => {
|