crm 报价 商机 合同 三块整改
parent
aed2bc38ec
commit
f89517298a
|
|
@ -171,3 +171,8 @@ export const getContractAAuthorizedPersonListByContractId = async (contractId) =
|
|||
export const getContractBAuthorizedPersonListByContractId = async (contractId) => {
|
||||
return await request.get({ url: `/crm/contract/contract-B-authorized-person/list-by-contract-id?contractId=` + contractId })
|
||||
}
|
||||
|
||||
// 获得合同乙方授权人信息列表
|
||||
export const quotationTimes = async (contractId) => {
|
||||
return await request.get({ url: `/crm/contract/quotationTimes?id=` + contractId })
|
||||
}
|
||||
|
|
@ -202,9 +202,9 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="融资信息" prop="financingInfo">
|
||||
<!-- <el-form-item label="融资信息" prop="financingInfo">
|
||||
<el-input v-model="formData.financingInfo" placeholder="融资信息" disabled />
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="实缴资金" prop="actualCapital">
|
||||
|
|
@ -217,9 +217,9 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="上市情况" prop="listingStatus">
|
||||
<!-- <el-form-item label="上市情况" prop="listingStatus">
|
||||
<el-input v-model="formData.listingStatus" placeholder="上市情况" disabled />
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="注册地址" prop="registeredAddress">
|
||||
|
|
@ -718,6 +718,9 @@ const handleQuotationChange = async (quotationId: number) => {
|
|||
formData.value.invoiceTemplateId = quotation.invoiceTemplateId;
|
||||
|
||||
formData.value.ownerUserId = quotation.ownerUserId;
|
||||
formData.value.ownerUserMobile = quotation.ownerUserMobile;
|
||||
formData.value.ownerUserWechat = quotation.ownerUserWechat;
|
||||
formData.value.ownerUserEmail = quotation.ownerUserEmail;
|
||||
formData.value.expanderUserId = quotation.expanderUserId;
|
||||
formData.value.signUserId = quotation.signUserId;
|
||||
formData.value.signPhoneNumber = quotation.signPhoneNumber;
|
||||
|
|
@ -735,7 +738,8 @@ const handleQuotationChange = async (quotationId: number) => {
|
|||
formData.value.onlinePrice = quotation.onlinePrice;
|
||||
formData.value.totalPrice = quotation.totalPrice;
|
||||
|
||||
// 🔁 自动加载客户详情
|
||||
const customerRes = await ContractApi.quotationTimes(quotation.id);
|
||||
formData.value.quotationTimes = customerRes.quotationTimes;
|
||||
await onCustomerChange(quotation.customerId);
|
||||
await onPartnerChange(quotation.partnerCompanyId);
|
||||
} catch (err) {
|
||||
|
|
@ -763,11 +767,12 @@ const onCustomerChange = async (customerId: string) => {
|
|||
|
||||
formData.value.partAddress = customerRes.partAddress;
|
||||
formData.value.listingStatus = customerRes.listingStatus;
|
||||
formData.value.legalRepresentative = customerRes.legalRepresentative;
|
||||
formData.value.legalPersonName = customerRes.legalPersonName;
|
||||
formData.value.creditCode = customerRes.creditCode;
|
||||
formData.value.regType = customerRes.regType;
|
||||
formData.value.financingInfo = customerRes.financingInfo;
|
||||
formData.value.socialEmployeeNum = customerRes.socialEmployeeNum;
|
||||
formData.value.registeredAddress = customerRes.registeredAddress;
|
||||
} catch (err) {
|
||||
console.error('获取客户详情失败:', err);
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Reference in New Issue