Sfoglia il codice sorgente

采购报价单-解决分类被覆盖的bug

jingbb 4 mesi fa
parent
commit
4577eb2b58

+ 5 - 4
src/views/purchase/purchaseQuotationFrm/components/PurchaseQuotationFormForm.vue

@@ -279,6 +279,7 @@
         PuechaseQuotationFormProductTable.dataSource = [];
         activeKey.value = 'PuechaseQuotationFormShip'
         getSupplierOption()
+        notAllowEdit.value=false
       }
 
       async function edit(row) {
@@ -390,8 +391,7 @@
         
       }
       function addProduct(data){
-        var arrProduct = data.concat(PuechaseQuotationFormProductTable.dataSource)
-        arrProduct.map(item=>{
+        data.map(item=>{
           item.productClass = item.classId_dictText
           item.productCode = item.code
           item.unit = item.measurementUnit
@@ -399,6 +399,7 @@
           item.shipInspection =''
           item.productId = item.id
         })
+        var arrProduct = data.concat(PuechaseQuotationFormProductTable.dataSource)
         PuechaseQuotationFormProductTable.dataSource=arrProduct      
       }
       function addProject(data) {
@@ -419,8 +420,7 @@
         PuechaseQuotationFormProductTable.dataSource = arrProduct
       }
       function addProductFromCustomer(data){
-        var arrProduct = data.concat(PuechaseQuotationFormProductTable.dataSource)
-        arrProduct.map(item=>{
+        data.map(item=>{
           item.productClass = item.productionClass
           item.productCode = item.productCode
           item.unit = item.measurementUnit
@@ -428,6 +428,7 @@
           item.model = item.childModel
           item.deliveryTime = formData.deliveryTime
         })
+        var arrProduct = data.concat(PuechaseQuotationFormProductTable.dataSource)
         notAllowEdit.value=true
         PuechaseQuotationFormProductTable.dataSource=arrProduct     
         formData.quotationProject = data[0].inquiryProject