customerApi.js
664 Bytes
const pageUrl = 'rop-dj-script/router'
export default {
/**
* 查询客户档案详情
*/
getCustomerFileDetail (data = {}) {
data.method = 'dj.api.script.customer.file.detail'
return window.$DJ_HTTP({
url: pageUrl,
data,
})
},
/**
*更新客户档案
*/
updateCustomerFile (data = {}) {
data.method = 'dj.api.script.customer.file.update'
return window.$DJ_HTTP({
url: pageUrl,
data,
})
},
getReportData(id){
const {reportRequestUrl} = window.$fetchConfig
return window.fetch(`${reportRequestUrl}/api/recording/${id}`,{}).then(res => res.json())
}
}