crm 报价 商机 合同 三块整改
parent
4f8d9648a9
commit
98e410e169
|
|
@ -45,6 +45,11 @@ export const QuotationApi = {
|
|||
return await request.get({ url: `/crm/quotation/simple-all-list` })
|
||||
},
|
||||
|
||||
// 获得 CRM 方案列表(精简)
|
||||
getSelfSimpleQuotationList : async () => {
|
||||
return await request.get({ url: `/crm/quotation/self-simple-list` })
|
||||
},
|
||||
|
||||
// 新增CRM 方案报价
|
||||
createQuotation: async (data: QuotationVO) => {
|
||||
return await request.post({ url: `/crm/quotation/create`, data })
|
||||
|
|
@ -76,4 +81,4 @@ export const QuotationApi = {
|
|||
getQuotationProductListByQuotationId: async (quotationId) => {
|
||||
return await request.get({ url: `/crm/quotation/quotation-product/list-by-quotation-id?quotationId=` + quotationId })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -799,6 +799,16 @@ const onPartnerChange = async (id: string) => {
|
|||
}
|
||||
}
|
||||
|
||||
const onPrintContract = async (id: string) => {
|
||||
if (!id) return
|
||||
try {
|
||||
formLoading.value = true;
|
||||
const res = await ContractApi.printContract(id);
|
||||
} catch (err) {
|
||||
} finally {
|
||||
formLoading.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
/** 动态获取客户联系人 */
|
||||
const getContactOptions = computed(() =>
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ const handleCommand = (command: string, row: UserApi.UserVO) => {
|
|||
|
||||
/** 提交审核 **/
|
||||
const handleSubmit = async (row: QuotationVO) => {
|
||||
await message.confirm(`您确定提交【${row.name}】审核吗?`)
|
||||
await message.confirm(`您确定提交审核吗?`)
|
||||
await QuotationApi.submitContract(row.id)
|
||||
message.success('提交审核成功!')
|
||||
await getList()
|
||||
|
|
@ -390,4 +390,4 @@ onMounted(async () => {
|
|||
onActivated(()=>{
|
||||
getList()
|
||||
})
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue