|
@@ -491,7 +491,7 @@
|
|
|
formData.paymentTerms =data[0].paymentTerms
|
|
|
formData.intermediator =data[0].intermediator
|
|
|
formData.intermediatorName =data[0].intermediatorName
|
|
|
- getShipList(data[0].headId)
|
|
|
+ getShipList(data[0].headId,'quotation')
|
|
|
}
|
|
|
}
|
|
|
function addContract(data){
|
|
@@ -516,13 +516,14 @@
|
|
|
formData.paymentTerms =data[0].paymentTerms
|
|
|
formData.intermediator =data[0].intermediator
|
|
|
formData.intermediatorName =data[0].intermediatorName
|
|
|
- getShipList(data[0].headId)
|
|
|
+ getShipList(data[0].headId,'contract')
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- function getShipList(id){
|
|
|
+ function getShipList(id,status){
|
|
|
let params = {id:id}
|
|
|
- defHttp.get({url:'/saleCode/saleQuotation/querySaleQuotationShipByMainId',params}, { isTransformResponse: false }).then(res=>{
|
|
|
+ let url = status=='quotation'?'/saleCode/saleQuotation/querySaleQuotationShipByMainId':'/saleCode/saleContract/querySaleContractShipByMainId'
|
|
|
+ defHttp.get({url:url,params}, { isTransformResponse: false }).then(res=>{
|
|
|
if(res){
|
|
|
SaleOrderFormShipFormShipTable.dataSource = res.result
|
|
|
}
|