Commit d6a7d544 by 杨铁龙
parents 5336fa0f da7ea43b
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
> >
{{ getCurrentInputingPeople }}正在输入 {{ getCurrentInputingPeople }}正在输入
</div> </div>
<messages class="flex-fill" /> <messages
class="flex-fill"
@open-pay-message="openPayMessage"
/>
<slot name="chat-right-panel"></slot> <slot name="chat-right-panel"></slot>
</div> </div>
<div <div
...@@ -163,6 +166,10 @@ ...@@ -163,6 +166,10 @@
((this.refBottom as HTMLElement).style.height = ((this.refBottom as HTMLElement).style.height =
this.chatBox.clientHeight - this.refTop.clientHeight + "px"); this.chatBox.clientHeight - this.refTop.clientHeight + "px");
} }
private openPayMessage(id: number) {
this.$emit("open-pay-message", id);
}
} }
</script> </script>
......
<template> <template>
<div <div
class="pay-message d-flex flex-column" class="pay-message d-flex flex-column"
:class="messageClass" :class="[
messageClass,
{ 'user-side': !backend || !isChatMember, click: isChatMember },
]"
@click="view" @click="view"
> >
<div class="d-flex align-items-center flex-fill pay-msg-body"> <div class="d-flex align-items-center flex-fill pay-msg-body">
...@@ -28,9 +31,16 @@ ...@@ -28,9 +31,16 @@
import { PayMessageBody } from "@/customer-service/xim/models/chat"; import { PayMessageBody } from "@/customer-service/xim/models/chat";
import { Component } from "vue-property-decorator"; import { Component } from "vue-property-decorator";
import BaseMessage from "./index"; import BaseMessage from "./index";
import Chat from "@/customer-service/xim";
import { ChatStore, chatStore } from "@/customer-service/store/model";
@Component({ components: {} }) @Component({ components: {} })
export default class Index extends BaseMessage { export default class Index extends BaseMessage {
@chatStore.State(ChatStore.STATE_CHAT_CURRENT_IS_CHAT_MEMBER)
private readonly isChatMember!: ChatStore.STATE_CHAT_CURRENT_IS_CHAT_MEMBER;
protected backend = Chat.isBackend();
private get payData() { private get payData() {
return this.messageBody.msg as PayMessageBody; return this.messageBody.msg as PayMessageBody;
} }
...@@ -96,7 +106,8 @@ ...@@ -96,7 +106,8 @@
} }
private view() { private view() {
this.$emit("view-pay-message", this.payData.paymentId); this.isChatMember &&
this.$emit("open-pay-message", this.payData.paymentId);
} }
} }
</script> </script>
...@@ -108,6 +119,14 @@ ...@@ -108,6 +119,14 @@
height: 106px; height: 106px;
color: #fff; color: #fff;
&.click {
cursor: pointer;
}
&.user-side {
border-radius: 0 10px 10px 10px;
}
&.default, &.default,
&.balance-unpay { &.balance-unpay {
background: linear-gradient(180deg, #f95b3c 0%, #f94623 100%); background: linear-gradient(180deg, #f95b3c 0%, #f94623 100%);
...@@ -148,6 +167,7 @@ ...@@ -148,6 +167,7 @@
height: 40px; height: 40px;
display: inline-block; display: inline-block;
margin-right: 20px; margin-right: 20px;
background-repeat: no-repeat;
&.icon-1 { &.icon-1 {
background-image: url("./pay-status-1.svg"); background-image: url("./pay-status-1.svg");
......
<?xml version="1.0" encoding="UTF-8"?>
<svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>bg_head</title>
<defs>
<circle id="path-1" cx="20" cy="20" r="20"></circle>
<filter x="-17.5%" y="-12.5%" width="135.0%" height="135.0%" filterUnits="objectBoundingBox" id="filter-3">
<feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0.846 0 0 0 0 0.8712 0 0 0 0 0.9 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-4">
<stop stop-color="#FF884D" offset="0%"></stop>
<stop stop-color="#FF7A38" offset="100%"></stop>
</linearGradient>
</defs>
<g id="专项订单" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="专项订单-结束订单的咨询-通知" transform="translate(-12.000000, -302.000000)">
<g id="交易卡片类型" transform="translate(12.000000, 20.000000)">
<g id="扣费类型-copy" transform="translate(0.000000, 282.000982)">
<g id="deal_payment" transform="translate(0.000000, 0.000491)">
<g id="bg_head" transform="translate(4.000000, 2.000000)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="Oval-Copy-3">
<use fill="black" fill-opacity="1" filter="url(#filter-3)" xlink:href="#path-1"></use>
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-1"></use>
</g>
<g id="Group-2" mask="url(#mask-2)" stroke="url(#linearGradient-4)" stroke-linecap="square" stroke-width="1.5">
<g transform="translate(10.000000, 10.000000)" id="Path">
<path d="M18.7826906,13.1628256 C17.0173047,17.962065 11.6541847,20.4365721 6.80382687,18.6897918 C4.18958638,17.7483141 2.25786975,15.7727157 1.30878809,13.3998042 L1.31645476,13.4253106 C1.04844898,12.760693 0.856118915,12.0580905 0.75,11.3279273 L2.54646139,11.9748947 M1.21799099,6.83717444 C2.98337687,2.03793495 8.34649684,-0.436572119 13.1968547,1.3102082 C15.5497413,2.15756341 17.3788653,3.91239048 18.6842268,6.57468939 C18.9516598,7.23788655 19.1437402,7.93890651 19.25,8.66739159 L17.4571018,8.0217074 M6.91666667,8.76666667 L13.0833333,8.76666667 M6.91666667,11.2333333 L13.0833333,11.2333333 M10,13.7 L10,8.76666667 M10,8.76666667 L12.4666667,6.3 M10,8.76666667 L7.53333333,6.3"></path>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
:shape="shape" :shape="shape"
@open="open" @open="open"
@withdraw="refresh" @withdraw="refresh"
@open-pay-message="openPayMessage"
/> />
</div> </div>
</template> </template>
...@@ -395,6 +396,10 @@ ...@@ -395,6 +396,10 @@
private refresh() { private refresh() {
this.fetchNewMsg(); this.fetchNewMsg();
} }
private openPayMessage(id: number) {
this.$emit("open-pay-message", id);
}
} }
</script> </script>
......
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
v-if="messageComponent" v-if="messageComponent"
v-model="data" v-model="data"
@open="openFile" @open="openFile"
@open-pay-message="openPayMessage"
/> />
<avatar <avatar
v-if="!isQuestionAnswerMessage && !isWithdrawMessage" v-if="!isQuestionAnswerMessage && !isWithdrawMessage"
...@@ -506,6 +507,10 @@ ...@@ -506,6 +507,10 @@
private closeKeywordPopover() { private closeKeywordPopover() {
document.body.click(); document.body.click();
} }
private openPayMessage(id: number) {
this.$emit("open-pay-message", id);
}
} }
</script> </script>
......
export const enum GeneralOrderDirection {
"社保卡办理/补办1" = "PRODUCT1",
"参保人信息变更1" = "PRODUCT2",
"中小微企业工商代理1" = "PRODUCT3",
"中小微企业财税代理2" = "PRODUCT4",
"定点医院变更1" = "PRODUCT5",
"医疗费用报销1" = "PRODUCT6",
"生育费用报销2" = "PRODUCT7",
"公积金提取1" = "PRODUCT8",
"雇主责任险-创业团队必备" = "PRODUCT9",
"北京市工作居住证咨询" = "PRODUCT16",
"其他服务1" = "PRODUCT24",
"社保卡办理/补办2" = "PRODUCT28",
"参保人信息变更2" = "PRODUCT29",
"中小微企业工商代理" = "PRODUCT30",
"中小微企业财税代理" = "PRODUCT31",
"定点医院变更2" = "PRODUCT32",
"医疗费用报销" = "PRODUCT33",
"生育费用报销" = "PRODUCT34",
"公积金提取2" = "PRODUCT35",
"北京工作居住证咨询服务" = "PRODUCT39",
"社保业务" = "PRODUCT67",
"公积金业务" = "PRODUCT68",
"薪酬个税" = "PRODUCT69",
"社保跨省转移1" = "PRODUCT76",
"社保跨省转移2" = "PRODUCT77",
"公积金跨省转移1" = "PRODUCT79",
"公积金跨省转移2" = "PRODUCT80",
"专利服务1" = "PRODUCT82",
"专利服务2" = "PRODUCT83",
"商标注册1" = "PRODUCT84",
"商标注册2" = "PRODUCT85",
"版权服务1" = "PRODUCT86",
"版权服务2" = "PRODUCT87",
"高新技术企业认定1" = "PRODUCT96",
"高新技术企业认定2" = "PRODUCT97",
"专利布局" = "PRODUCT99",
"项目申报" = "PRODUCT101",
"资质认证" = "PRODUCT103",
"劳务派遣经营许可证1" = "PRODUCT104",
"劳务派遣经营许可证2" = "PRODUCT105",
"人力资源服务许可证1" = "PRODUCT106",
"人力资源服务许可证2" = "PRODUCT107",
"食品流通许可证1" = "PRODUCT108",
"食品流通许可证2" = "PRODUCT109",
"工资代发1" = "PRODUCT111",
"劳务外包管理1" = "PRODUCT114",
"业务外包管理" = "PRODUCT115",
"岗位外包管理服务" = "PRODUCT116",
"劳务费代发" = "PRODUCT117",
"劳务外包管理2" = "PRODUCT118",
"全风险岗位外包" = "PRODUCT120",
"社保托管增员" = "PRODUCT121",
"社保托管减员" = "PRODUCT122",
"社保托管补缴" = "PRODUCT123",
"社保托管调整员工基数" = "PRODUCT125",
"公积金托管增员" = "PRODUCT126",
"公积金托管减员" = "PRODUCT127",
"公积金托管补缴" = "PRODUCT128",
"公积金托管调整员工基数" = "PRODUCT129",
"社保托管其他" = "PRODUCT130",
"公积金托管其他" = "PRODUCT131",
"社保托管申请" = "PRODUCT132",
"公积金托管申请" = "PRODUCT133",
"上海居住证积分申请咨询服务1" = "PRODUCT136",
"上海居住证积分申请咨询服务2" = "PRODUCT137",
"天津落户咨询服务" = "PRODUCT141",
"社保开户" = "PRODUCT143",
"社保最后一个人减员" = "PRODUCT144",
"社保清算1" = "PRODUCT145",
"异地安置" = "PRODUCT146",
"定制参保缴费明细" = "PRODUCT147",
"领取医保存折" = "PRODUCT149",
"工伤申报" = "PRODUCT150",
"社保柜台增减员" = "PRODUCT151",
"数字证书办理/续费1" = "PRODUCT152",
"公积金账户合并" = "PRODUCT153",
"公积金开户" = "PRODUCT154",
"还欠款" = "PRODUCT155",
"公积金柜台增减员" = "PRODUCT156",
"数字证书办理/续费2" = "PRODUCT157",
"托管客户信息修改1" = "PRODUCT158",
"托管客户信息修改2" = "PRODUCT159",
"档案管理" = "PRODUCT163",
"其他服务2" = "PRODUCT164",
"北京积分落户咨询服务" = "PRODUCT170",
"劳动权益保护" = "PRODUCT172",
"劳动纠纷咨询" = "PRODUCT174",
"幼升小政策咨询" = "PRODUCT177",
"老年人重大疾病" = "PRODUCT179",
"重疾险" = "PRODUCT180",
"少儿百种疾病意外医疗保险" = "PRODUCT181",
"团队补充医疗" = "PRODUCT182",
"补充医疗" = "PRODUCT183",
"雇主责任险1" = "PRODUCT184",
"团体意外险1" = "PRODUCT185",
"工资代发2" = "PRODUCT192",
"劳务派遣服务" = "PRODUCT193",
"北京企业工作居住证费用" = "PRODUCT194",
"雇主责任险2" = "PRODUCT198",
"团体意外险2" = "PRODUCT199",
"高端体检1" = "PRODUCT201",
"高端体检2" = "PRODUCT202",
"上海留学生落户咨询1" = "PRODUCT205",
"上海留学生落户咨询2" = "PRODUCT206",
"外国人工作许可" = "PRODUCT208",
"社保清算2" = "PRODUCT211",
"存档" = "PRODUCT212",
"证明开具" = "PRODUCT213",
"北京市工作居住证费用" = "PRODUCT214",
"人才派驻" = "PRODUCT215",
"医疗器械经营许可" = "PRODUCT217",
"进出口备案许可" = "PRODUCT218",
"出版物批发零售许可" = "PRODUCT219",
"广播电视节目制作许可" = "PRODUCT220",
"上海应届毕业生落户咨询1" = "PRODUCT222",
"上海应届毕业生落户咨询2" = "PRODUCT223",
"上海居转户咨询1" = "PRODUCT224",
"上海居转户咨询2" = "PRODUCT225",
"工商财税" = "PRODUCT226",
"灵活就业工资发放" = "PRODUCT227",
"职业咨询" = "PRODUCT229",
"人事代理-年服务资格" = "PRODUCT232",
"简历优化" = "PRODUCT234",
"面试指导" = "PRODUCT235",
"职业测评" = "PRODUCT236",
"人力外包-年服务资格" = "PRODUCT237",
"自然人代开1" = "PRODUCT238",
"自然人代开2" = "PRODUCT241",
"入职体检套餐" = "PRODUCT242",
"员工体检套餐" = "PRODUCT243",
"体检卡套餐" = "PRODUCT244",
"审计报告" = "PRODUCT245",
"验资报告" = "PRODUCT246",
"专项审计" = "PRODUCT247",
"跨年补缴" = "PRODUCT248",
"上海居住证办理咨询" = "PRODUCT249",
"人事外包管理服务" = "PRODUCT250",
"代理记账" = "PRODUCT251",
}
export enum GeneralOrderTitle {
PRODUCT1 = "社保卡办理/补办",
PRODUCT2 = "参保人信息变更",
PRODUCT3 = "中小微企业工商代理",
PRODUCT4 = "中小微企业财税代理",
PRODUCT5 = "定点医院变更",
PRODUCT6 = "医疗费用报销",
PRODUCT7 = "生育费用报销",
PRODUCT8 = "公积金提取",
PRODUCT9 = "雇主责任险-创业团队必备",
PRODUCT16 = "北京市工作居住证咨询",
PRODUCT24 = "其他服务",
PRODUCT28 = "社保卡办理/补办",
PRODUCT29 = "参保人信息变更",
PRODUCT30 = "中小微企业工商代理",
PRODUCT31 = "中小微企业财税代理",
PRODUCT32 = "定点医院变更",
PRODUCT33 = "医疗费用报销",
PRODUCT34 = "生育费用报销",
PRODUCT35 = "公积金提取",
PRODUCT39 = "北京工作居住证咨询服务",
PRODUCT67 = "社保业务",
PRODUCT68 = "公积金业务",
PRODUCT69 = "薪酬个税",
PRODUCT76 = "社保跨省转移",
PRODUCT77 = "社保跨省转移",
PRODUCT79 = "公积金跨省转移",
PRODUCT80 = "公积金跨省转移",
PRODUCT82 = "专利服务",
PRODUCT83 = "专利服务",
PRODUCT84 = "商标注册",
PRODUCT85 = "商标注册",
PRODUCT86 = "版权服务",
PRODUCT87 = "版权服务",
PRODUCT96 = "高新技术企业认定",
PRODUCT97 = "高新技术企业认定",
PRODUCT99 = "专利布局",
PRODUCT101 = "项目申报",
PRODUCT103 = "资质认证",
PRODUCT104 = "劳务派遣经营许可证",
PRODUCT105 = "劳务派遣经营许可证",
PRODUCT106 = "人力资源服务许可证",
PRODUCT107 = "人力资源服务许可证",
PRODUCT108 = "食品流通许可证",
PRODUCT109 = "食品流通许可证",
PRODUCT111 = "工资代发",
PRODUCT114 = "劳务外包管理",
PRODUCT115 = "业务外包管理",
PRODUCT116 = "岗位外包管理服务",
PRODUCT117 = "劳务费代发",
PRODUCT118 = "劳务外包管理",
PRODUCT120 = "全风险岗位外包",
PRODUCT121 = "社保托管增员",
PRODUCT122 = "社保托管减员",
PRODUCT123 = "社保托管补缴",
PRODUCT125 = "社保托管调整员工基数",
PRODUCT126 = "公积金托管增员",
PRODUCT127 = "公积金托管减员",
PRODUCT128 = "公积金托管补缴",
PRODUCT129 = "公积金托管调整员工基数",
PRODUCT130 = "社保托管其他",
PRODUCT131 = "公积金托管其他",
PRODUCT132 = "社保托管申请",
PRODUCT133 = "公积金托管申请",
PRODUCT136 = "上海居住证积分申请咨询服务",
PRODUCT137 = "上海居住证积分申请咨询服务",
PRODUCT141 = "天津落户咨询服务",
PRODUCT143 = "社保开户",
PRODUCT144 = "社保最后一个人减员",
PRODUCT145 = "社保清算",
PRODUCT146 = "异地安置",
PRODUCT147 = "定制参保缴费明细",
PRODUCT149 = "领取医保存折",
PRODUCT150 = "工伤申报",
PRODUCT151 = "社保柜台增减员",
PRODUCT152 = "数字证书办理/续费",
PRODUCT153 = "公积金账户合并",
PRODUCT154 = "公积金开户",
PRODUCT155 = "还欠款",
PRODUCT156 = "公积金柜台增减员",
PRODUCT157 = "数字证书办理/续费",
PRODUCT158 = "托管客户信息修改",
PRODUCT159 = "托管客户信息修改",
PRODUCT163 = "档案管理",
PRODUCT164 = "其他服务",
PRODUCT170 = "北京积分落户咨询服务",
PRODUCT172 = "劳动权益保护",
PRODUCT174 = "劳动纠纷咨询",
PRODUCT177 = "幼升小政策咨询",
PRODUCT179 = "老年人重大疾病",
PRODUCT180 = "重疾险",
PRODUCT181 = "少儿百种疾病意外医疗保险",
PRODUCT182 = "团队补充医疗",
PRODUCT183 = "补充医疗",
PRODUCT184 = "雇主责任险",
PRODUCT185 = "团体意外险",
PRODUCT192 = "工资代发",
PRODUCT193 = "劳务派遣服务",
PRODUCT194 = "北京企业工作居住证费用",
PRODUCT198 = "雇主责任险",
PRODUCT199 = "团体意外险",
PRODUCT201 = "高端体检",
PRODUCT202 = "高端体检",
PRODUCT205 = "上海留学生落户咨询",
PRODUCT206 = "上海留学生落户咨询",
PRODUCT208 = "外国人工作许可",
PRODUCT211 = "社保清算",
PRODUCT212 = "存档",
PRODUCT213 = "证明开具",
PRODUCT214 = "北京市工作居住证费用",
PRODUCT215 = "人才派驻",
PRODUCT217 = "医疗器械经营许可",
PRODUCT218 = "进出口备案许可",
PRODUCT219 = "出版物批发零售许可",
PRODUCT220 = "广播电视节目制作许可",
PRODUCT222 = "上海应届毕业生落户咨询",
PRODUCT223 = "上海应届毕业生落户咨询",
PRODUCT224 = "上海居转户咨询",
PRODUCT225 = "上海居转户咨询",
PRODUCT226 = "工商财税",
PRODUCT227 = "灵活就业工资发放",
PRODUCT229 = "职业咨询",
PRODUCT232 = "人事代理-年服务资格",
PRODUCT234 = "简历优化",
PRODUCT235 = "面试指导",
PRODUCT236 = "职业测评",
PRODUCT237 = "人力外包-年服务资格",
PRODUCT238 = "自然人代开",
PRODUCT241 = "自然人代开",
PRODUCT242 = "入职体检套餐",
PRODUCT243 = "员工体检套餐",
PRODUCT244 = "体检卡套餐",
PRODUCT245 = "审计报告",
PRODUCT246 = "验资报告",
PRODUCT247 = "专项审计",
PRODUCT248 = "跨年补缴",
PRODUCT249 = "上海居住证办理咨询",
PRODUCT250 = "人事外包管理服务",
PRODUCT251 = "代理记账",
}
...@@ -31,10 +31,14 @@ class OrderService { ...@@ -31,10 +31,14 @@ class OrderService {
productCode: string; productCode: string;
srcPlatform: SrcPlatform; srcPlatform: SrcPlatform;
createdType: OperationType; createdType: OperationType;
/**
* 是否强制开启新订单,默认如果有已存在处理中的订单时会直接返回
*/
forceNewOrder?: boolean;
}) { }) {
return this.getSdk() return this.getSdk()
.model(this.generalOrder) .model(this.generalOrder)
.action("addOrder") .action(params.forceNewOrder ? "addOrder" : 'getOrAddOrder')
.addInputs_parameter({ .addInputs_parameter({
ProductCode: params.productCode, ProductCode: params.productCode,
SrcPlatform: params.srcPlatform, SrcPlatform: params.srcPlatform,
......
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 sign in to comment