Commit c9f7db0a authored by yanglilong's avatar yanglilong

Merge branch 'yanglilong-0830' into 'master'

跳转到福利查询

See merge request !11
parents 2156c046 d3f1eb4d
...@@ -5,5 +5,6 @@ export default { ...@@ -5,5 +5,6 @@ export default {
createCustomer: "/backstage/auth/createPatient", // 新建用户信息 createCustomer: "/backstage/auth/createPatient", // 新建用户信息
customerDetail: "/backstage/auth/patientDetail", // 获取用户详细信息 customerDetail: "/backstage/auth/patientDetail", // 获取用户详细信息
createClaimPdf: "/backstage/auth/createClaimPdf", // 获取用户理赔申请书 createClaimPdf: "/backstage/auth/createClaimPdf", // 获取用户理赔申请书
deleteCustom: "/backstage/auth/patientDelete" // 删除客户 deleteCustom: "/backstage/auth/patientDelete", // 删除客户
getJumpEccsUrl: "/backstage/auth/getJumpEccsUrl" // 获取跳转eccsurl
}; };
...@@ -31,11 +31,17 @@ const CREATECUSTOMERCLAIMPGF = function (data) { ...@@ -31,11 +31,17 @@ const CREATECUSTOMERCLAIMPGF = function (data) {
return req.post(apis.createClaimPdf, data, { responseType: "blob" }); return req.post(apis.createClaimPdf, data, { responseType: "blob" });
}; };
// 获取跳转eccsurl getJumpEccsUrl
const GETJUMPECCSURL = function (data) {
return req.post(apis.getJumpEccsUrl, data);
};
export default { export default {
GETCUSTOMERLIST, GETCUSTOMERLIST,
GETCUSTOMERDETAIL, GETCUSTOMERDETAIL,
UPDATECUSTOMDATA, UPDATECUSTOMDATA,
CREATENEWCUSTOMER, CREATENEWCUSTOMER,
DELETECUSTOM, DELETECUSTOM,
CREATECUSTOMERCLAIMPGF CREATECUSTOMERCLAIMPGF,
GETJUMPECCSURL
}; };
...@@ -141,10 +141,23 @@ export default { ...@@ -141,10 +141,23 @@ export default {
if (record.isEdit) { if (record.isEdit) {
return true; return true;
} }
this.$router.push({ if((record.cardNo || '').startsWith('80001428')){
name: "welfareInfo", this.$apis.GETJUMPECCSURL({
query: { id, patientPolicyId }, cardNo: record.cardNo
}); })
.then(res => {
if (res.returnCode === "0000") {
window.open(res.content, '_blank');
}else{
this.$message.error(res.returnMsg || "操作失败");
}
})
}else{
this.$router.push({
name: "welfareInfo",
query: { id, patientPolicyId },
});
}
}, },
}, },
}; };
......
...@@ -165,8 +165,21 @@ export default { ...@@ -165,8 +165,21 @@ export default {
return { return {
on: { on: {
click: () => { click: () => {
this.detailForm = { id, patientPolicyId }; if((record.cardNo || '').startsWith('80001428')){
this.getCustomerDetail(); this.$apis.GETJUMPECCSURL({
cardNo: record.cardNo
})
.then(res => {
if (res.returnCode === "0000") {
window.open(res.content, '_blank');
}else{
this.$message.error(res.returnMsg || "操作失败");
}
})
}else{
this.detailForm = { id, patientPolicyId };
this.getCustomerDetail();
}
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment