|
@@ -63,13 +63,37 @@ function uploadFiles(formData) {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
function loadInsuranceAgent(formData) {
|
|
|
//读取每月投保单
|
|
|
return request.post(constant.serverUrl + "/insurancePolicy/loadInsuranceAgent", formData);
|
|
|
}
|
|
|
|
|
|
+function downloadPolicyPDF(applicationId, policyId) {
|
|
|
+ //pdf文档生成与下载
|
|
|
+ // let formData = {
|
|
|
+ // params: {
|
|
|
+ // applicationId: applicationId,
|
|
|
+ // policyId: policyId
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // return request.get(constant.serverUrl + "/pub/attachment/downloadPolicyPDF", formData);
|
|
|
+ window.open(constant.serverUrl + "/pub/attachment/downloadPolicyPDF?applicationId=" + applicationId + "&policyId=" + policyId);
|
|
|
+}
|
|
|
+
|
|
|
+function downloadIdCardZip(policyId) {
|
|
|
+ //身份证附件打包下载
|
|
|
+ // let formData = {
|
|
|
+ // params: {
|
|
|
+ // policyId: policyId
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // return request.get(constant.serverUrl + "/pub/attachment/downloadIdCardZip", formData);
|
|
|
+ window.open(constant.serverUrl + "/pub/attachment/downloadIdCardZip?policyId=" + policyId);
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
|
|
|
export default {
|
|
|
- pageList, acceptDetail, firstApproval, secondApproval, transfer, policyRecordPageList, attachmentList, issued, otherPageList, otherDetail, uploadFiles, loadInsuranceAgent
|
|
|
+ pageList, acceptDetail, firstApproval, secondApproval, transfer, policyRecordPageList, attachmentList, issued, otherPageList, otherDetail, uploadFiles, loadInsuranceAgent, downloadPolicyPDF, downloadIdCardZip
|
|
|
}
|