Browse Source

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

liujt 6 tháng trước cách đây
mục cha
commit
bb69e0873c
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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) => {