Bläddra i källkod

fix(报价管理): 复制报价时移除产品列表中的id字段

liujt 6 månader sedan
förälder
incheckning
bb69e0873c
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      src/views/saleManage/quotation/components/addDialog.vue

+ 4 - 0
src/views/saleManage/quotation/components/addDialog.vue

@@ -771,6 +771,10 @@ export default {
         } else {
           if (this.editType == 'copy') {
             delete commitData.id;
+            this.commitData.quoteProductList = commitData.quoteProductList.map((item) => {
+              delete item.id;
+              return item;
+            })
           }
           addInformation(commitData)
             .then((res) => {