ソースを参照

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

liujt 6 ヶ月 前
コミット
bb69e0873c
1 ファイル変更4 行追加0 行削除
  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) => {