Commit 13bf41f9 by shangriqiang

style: 调整字段

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