Commit 13bf41f9 by shangriqiang

style: 调整字段

1 parent 1a1dcdc0
......@@ -15,6 +15,7 @@
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"test:local": "cross-env NODE_ENV=production webpack-dev-server --open --hot",
"lint": "eslint src/ --ext .js,.vue ",
"fix": "eslint --fix ./src --ext .js,.vue "
},
......
......@@ -29,7 +29,7 @@ const mapping = {
{ label: '客户名称', key: 'fullName', value: '' },
{ label: '医院名称', key: 'hospitalName', value: '' },
{ label: '科室名称', key: 'departmentName', value: '' },
{ label: '职', key: 'dutyName', value: '' }
{ label: '职', key: 'dutyName', value: '' }
],
2: [
{ label: '客户名称', key: 'fullName', value: '' },
......@@ -46,9 +46,9 @@ const mapping = {
{ label: '科室名称', key: 'departmentName', value: '' }
],
9: [
{ label: '客户名称', key: 'fullName', value: '' },
{ label: '客户名称', key: 'officeWorkerName', value: '' },
{ label: '职务', key: 'jobTitle', value: '' },
{ label: '商业公司名称', key: 'gradeName', value: '' },
{ label: '商业公司名称', key: 'fullName', value: '' },
{ label: '公司所在省市区', key: 'ssq', value: '' }
],
10: [
......@@ -100,6 +100,19 @@ const mapping = {
{ label: '公司所在省市区', key: 'ssq', value: '' }
]
};
Object.keys(mapping).forEach(k => {
let common = [
{ label: '拜访时间', key: 'visitDt', visitDt: '' },
{ label: '数字拜访途径', key: 'visitType', value: '' },
{ label: '客户反馈时间', key: 'feedbackDt', value: '' },
{ label: '客户反馈', key: 'feedbackContent', value: '' }
];
common.forEach(i => {
mapping[k].push(i);
});
});
console.log('mapping');
console.log(mapping);
const validTargets = Object.keys(mapping);
/**
......
......@@ -30,7 +30,7 @@
<div class="panel-row">
<div class="panel-cell">
<span class="panel-cell-label">发行单位:</span>
<span class="panel-cell-label">项目方:</span>
<span class="panel-cell-ctx">
{{ baseInfo.industryEnterpriseName }}
</span>
......@@ -44,29 +44,35 @@
<span class="panel-cell-ctx">{{ baseInfo.createDt }}</span>
</div>
</div>
<div class="panel-row">
<div class="panel-cell">
<span class="panel-cell-label">任务编码:</span>
<span class="panel-cell-ctx">
{{ baseInfo.taskCode }}
</span>
</div>
</div>
</div>
</div>
<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"
>
<div class="panel-row">
<!-- 根据后端返回数据 -->
<div class="panel-cell" v-for="(item, k) in ctxInfo" :key="k">
<span class="panel-cell-label" style>{{ item.label }}:</span>
<span class="panel-cell-ctx">{{ item.value }}</span>
</div>
<!-- 拜访信息 -->
<div>
<div
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>
</div>
</div>
<!-- &lt;!&ndash; 拜访信息 &ndash;&gt;-->
<!-- <div>-->
<!-- <div-->
<!-- 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>-->
<!-- </div>-->
<!-- </div>-->
<!-- 传递信息 -->
<div>
<div
......@@ -74,7 +80,7 @@
>
<p class="panel-cell-label" style>传递信息 :</p>
<div
style="text-indent: 2em;list-style: circle"
style="text-indent: 2em;line-height: 25px"
v-for="(item, k) in cdInfo"
:key="k"
>
......@@ -83,7 +89,9 @@
</div>
</div>
<!-- 图片-->
<div style=" display: flex;background:#fff;overflow: hidden">
<div
style=" display: flex;background:#fff;overflow: hidden;margin-top: 10px"
>
<div
style="display: inline-block;width: 33%;line-height: 50px;color:#9aa2b2"
>
......@@ -161,7 +169,8 @@ export default {
{ label: '电话', key: 'phone', value: '' },
{ label: '发行单位', key: 'industryEnterpriseName', value: '' },
{ label: '服务商', key: 'enterpriseName', value: '' },
{ label: '任务提交时间', key: 'createDt', value: '' }
{ label: '任务提交时间', key: 'createDt', value: '' },
{ label: '任务编码', key: 'taskCode', value: '' }
];
this.$nextTick(() => {
this.getBaseInfo().then(({ data: { data } }) => {
......@@ -186,7 +195,7 @@ export default {
</script>
<style scoped>
.panel-row {
margin-top: 30px;
margin-top: 25px;
}
.panel-row:not(:last-child) {
......@@ -195,8 +204,8 @@ export default {
.panel-cell {
display: inline-flex;
min-height: 70px;
line-height: 30px;
min-height: 50px;
line-height: 25px;
transform: translateY(1px);
width: 33%;
color: #9aa2b2;
......@@ -205,7 +214,7 @@ export default {
.panel-cell-label {
color: #a9b0bd;
margin-right: 0.5em;
min-width: 5rem;
min-width: 6rem;
}
.panel-cell-ctx {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!