|
@@ -87,6 +87,11 @@
|
|
|
<img src="@/assets/cygx/leaving_message.png" class="img_ico" />
|
|
|
<div>留言</div>
|
|
|
</div>
|
|
|
+ <div class="handle-item" v-if="reportInfo?.IsApplyAppointmentExpert"
|
|
|
+ @click="appointment(reportInfo?.ArticleId)">
|
|
|
+ <img src="@/assets/cygx/appointment-expert.png" class="img_ico" />
|
|
|
+ <div>约访专家</div>
|
|
|
+ </div>
|
|
|
<div class="handle-item" @click="collectHandle">
|
|
|
<img src="@/assets/cygx/collect_act.png" class="img_ico" v-if="reportInfo.IsCollect" />
|
|
|
<img src="@/assets/cygx/collect_ico.png" class="img_ico" v-else />
|
|
@@ -326,6 +331,31 @@ const quizBtn = () => {
|
|
|
url: "/activityPages/generationAsk/generationAsk?id=" + state.reportInfo.ArticleId + "&type=文章",
|
|
|
});
|
|
|
};
|
|
|
+// 约访专家
|
|
|
+const appointment=(articleId)=>{
|
|
|
+ console.log(articleId);
|
|
|
+ if(!articleId){
|
|
|
+ Toast("ArticleId 值错误");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ Dialog.confirm({
|
|
|
+ message: "约访专家的请求会提醒您的对口销售,确定要发起吗?",
|
|
|
+ messageAlign:'left',
|
|
|
+ showCancelButton:true,
|
|
|
+ confirmButtonColor:'blue'
|
|
|
+ }).then(() => {
|
|
|
+ RaiApi.appointmentExpert({ArticleId:articleId}).then(res=>{
|
|
|
+ if (res.Ret === 200 || res.Ret === 403) {
|
|
|
+ Dialog.confirm({
|
|
|
+ message: "约访申请已提醒您的对口销售,请等待销售与您联系",
|
|
|
+ messageAlign:'left',
|
|
|
+ showConfirmButton:false,
|
|
|
+ cancelButtonText:'知道了'
|
|
|
+ }).then(() => {}).catch(()=>{})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(()=>{})
|
|
|
+}
|
|
|
/* 获取报告详情 */
|
|
|
const getReport = (id, token, type) => {
|
|
|
if (type == "mpwechat") {
|