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 {
createCustomer: "/backstage/auth/createPatient", // 新建用户信息
customerDetail: "/backstage/auth/patientDetail", // 获取用户详细信息
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) {
return req.post(apis.createClaimPdf, data, { responseType: "blob" });
};
// 获取跳转eccsurl getJumpEccsUrl
const GETJUMPECCSURL = function (data) {
return req.post(apis.getJumpEccsUrl, data);
};
export default {
GETCUSTOMERLIST,
GETCUSTOMERDETAIL,
UPDATECUSTOMDATA,
CREATENEWCUSTOMER,
DELETECUSTOM,
CREATECUSTOMERCLAIMPGF
CREATECUSTOMERCLAIMPGF,
GETJUMPECCSURL
};
......@@ -141,10 +141,23 @@ export default {
if (record.isEdit) {
return true;
}
this.$router.push({
name: "welfareInfo",
query: { id, patientPolicyId },
});
if((record.cardNo || '').startsWith('80001428')){
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.$router.push({
name: "welfareInfo",
query: { id, patientPolicyId },
});
}
},
},
};
......
......@@ -165,8 +165,21 @@ export default {
return {
on: {
click: () => {
this.detailForm = { id, patientPolicyId };
this.getCustomerDetail();
if((record.cardNo || '').startsWith('80001428')){
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