Commit 9ea2ed9b by shangriqiang

feature/数字拜访

1 parent 4360081f
Showing with 59 additions and 55 deletions
......@@ -4,56 +4,56 @@
-->
<template>
<div>
<div class="task-log-pdf-title" style="font-size: 29px">
<div class='task-log-pdf-title' style='font-size: 29px'>
{{ executorName }} -- 任务记录
</div>
<div style="padding:0 29px 29px;background:#fff;">
<BiTitle index="1" name="任务基础信息"></BiTitle>
<div style="display: block;overflow: hidden">
<div style='padding:0 29px 29px;background:#fff;'>
<BiTitle index='1' name='任务基础信息'></BiTitle>
<div style='display: block;overflow: hidden'>
<div
class="panel-cell"
style="transform: translateY(1px);display: inline-block;width: 33%;height: 70px;line-height: 70px;color:#9aa2b2;border-bottom:1px solid #f4f4f4"
v-for="(item, k) in baseInfo"
:key="k"
class='panel-cell'
style='transform: translateY(1px);display: inline-block;width: 33%;height: 70px;line-height: 70px;color:#9aa2b2;border-bottom:1px solid #f4f4f4'
v-for='(item, k) in baseInfo'
:key='k'
>
<span class="panel-cell-label" style="">{{ item.label }}</span>
<span class='panel-cell-label' style=''>{{ item.label }}</span>
:
<span style="color: #2d2d2d">{{ item.value }}</span>
<span style='color: #2d2d2d'>{{ item.value }}</span>
</div>
</div>
</div>
<div style="padding:0 29px 29px;background:#fff;margin-top: 20px">
<BiTitle index="2" name="任务内容信息"></BiTitle>
<div style='padding:0 29px 29px;background:#fff;margin-top: 20px'>
<BiTitle index='2' name='任务内容信息'></BiTitle>
<div>
<div
style="display: inline-block;width: 33%;height: 50px;line-height: 50px;color:#9aa2b2"
v-for="(item, k) in ctxInfo"
:key="k"
style='display: inline-block;width: 33%;height: 50px;line-height: 50px;color:#9aa2b2'
v-for='(item, k) in ctxInfo'
:key='k'
>
<span class="panel-cell-label" style="">{{ item.label }}</span>
<span class='panel-cell-label' style=''>{{ item.label }}</span>
:
<span style="color: #2d2d2d">{{ item.value }}</span>
<span style='color: #2d2d2d'>{{ item.value }}</span>
</div>
<!-- 拜访信息 -->
<div>
<div
style="display: inline-block;width: 100%;height: 50px;line-height: 50px;color:#9aa2b2"
style='display: inline-block;width: 100%;height: 50px;line-height: 50px;color:#9aa2b2'
>
<span class="panel-cell-label">拜访信息 :</span>
<span style="color:#2d2d2d">{{ visitPlanInformation }}</span>
<span class='panel-cell-label'>拜访信息 :</span>
<span style='color:#2d2d2d'>{{ visitPlanInformation }}</span>
</div>
</div>
<!-- 传递信息 -->
<div>
<div
style="display: inline-block;width: 100%;height: 50px;color:#9aa2b2"
style='display: inline-block;width: 100%;height: 50px;color:#9aa2b2'
>
<p class="panel-cell-label" style="">传递信息 :</p>
<p class='panel-cell-label' style=''>传递信息 :</p>
<div
style="color: #2d2d2d;text-indent: 2em;list-style: circle"
v-for="(item, k) in cdInfo"
:key="k"
style='color: #2d2d2d;text-indent: 2em;list-style: circle'
v-for='(item, k) in cdInfo'
:key='k'
>
{{ item.informationName }}
</div>
......@@ -64,26 +64,26 @@
<!-- 图片-->
<div
style=" display: flex;background:#fff;padding-left: 29px;overflow: hidden"
style=' display: flex;background:#fff;padding-left: 29px;overflow: hidden'
>
<div
style="display: inline-block;width: 33%;line-height: 50px;color:#9aa2b2"
style='display: inline-block;width: 33%;line-height: 50px;color:#9aa2b2'
>
<p class="panel-cell-label" style="">信息反馈记录:</p>
<div style="color: #2d2d2d;padding:20px 20px 0 0">
<img style="width: 100%;" :src="feedBackUrl" alt="" />
<p class='panel-cell-label' style=''>信息反馈记录:</p>
<div style='color: #2d2d2d;padding:20px 20px 0 0'>
<img style='width: 100%;' :src='feedBackUrl' alt='' />
</div>
</div>
<div
style="display: inline-block;width: 33%;line-height: 50px;color:#9aa2b2"
style='display: inline-block;width: 33%;line-height: 50px;color:#9aa2b2'
>
<p class="panel-cell-label" style="">信息转发记录:</p>
<div style="color: #2d2d2d;padding:20px 20px 0 0">
<img style="width: 100%;" :src="forward" alt="" />
<p class='panel-cell-label' style=''>信息转发记录:</p>
<div style='color: #2d2d2d;padding:20px 20px 0 0'>
<img style='width: 100%;' :src='forward' alt='' />
</div>
</div>
</div>
<bi-cover-end title="信息披露"></bi-cover-end>
<bi-cover-end title='信息披露'></bi-cover-end>
</div>
</template>
<script>
......@@ -166,13 +166,18 @@ export default {
BiCoverEnd,
BiTitle
},
getBaseInfo: {
type: Function,
default: () => {}
},
getCtxInfo: {
type: Function,
default: () => {}
props: {
getBaseInfo: {
type: Function,
default: () => {
}
},
getCtxInfo: {
type: Function,
default: () => {
}
},
targetType: String, //目标类型
},
data() {
return {
......@@ -182,8 +187,7 @@ export default {
visitPlanInformation: '', // 拜访信息
cdInfo: [], // 传递信息
feedBackUrl: '', //反馈记录
forward: '', //转发记录
targetType: '' //目标类型
forward: '' //转发记录
};
},
computed: {
......@@ -193,19 +197,19 @@ export default {
},
created() {
typeof this.getBaseInfo === 'function' &&
this.getBaseInfo().then(({ data: [data] }) => {
this.baseInfo = createCells(2, data);
});
this.getBaseInfo().then(({ data: [data] }) => {
this.baseInfo = createCells(this.targetType, data);
});
typeof this.getCtxInfo === 'function' &&
this.getCtxInfo().then(({ data }) => {
this.cdInfo = data.cdInfo;
this.feedBackUrl = data.feedBackUrl;
this.forward = data.forward;
this.cdInfo = data.cdInfo;
this.visitPlanInformation = data.visitPlanInformation;
this.ctxInfo = createCells(2, data);
});
this.getCtxInfo().then(({ data }) => {
this.cdInfo = data.cdInfo;
this.feedBackUrl = data.feedBackUrl;
this.forward = data.forward;
this.cdInfo = data.cdInfo;
this.visitPlanInformation = data.visitPlanInformation;
this.ctxInfo = createCells(this.targetType, data);
});
}
};
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!