|
@@ -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
|