Explorar el Código

Merge branch '经销商_lin' of ssh://gogs.zfire.top:2222/zfire-front/zfire-newmall-admin into develop

aXin-0810 hace 1 año
padre
commit
80270dca9d
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 => {