aXin-0810 hace 1 año
padre
commit
b63d44d4e8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/salesPurchasing/merchandisePurchaseReturn/index.vue

+ 1 - 1
src/views/salesPurchasing/merchandisePurchaseReturn/index.vue

@@ -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 => {