Commit 8a9b3aaa authored by daywrite's avatar daywrite

修复客户信息

parent 309d950d
......@@ -4,7 +4,7 @@
<div>
<el-row :gutter="10" class="header-title">
<el-col :span="12">
<h2>客户名称:{{ result.list[0] && result.list[0].client.name }}</h2>
<h2>客户名称:{{ title }}</h2>
</el-col>
</el-row>
</div>
......@@ -98,6 +98,7 @@ export default {
data () {
return {
title: '',
lmTemplate: [
{
name: '客户名称',
......@@ -174,6 +175,14 @@ export default {
id,
page: this.pagenation.thispage
})
this.getClientById(id)
},
getClientById (id) {
requestAPI(api.getClientById, { id })
.then((res) => {
this.title = res.model.name
})
},
// 2.列表数据
......
......@@ -4,16 +4,12 @@
<div>
<el-row :gutter="10" class="header-title">
<el-col :span="12">
<h2>客户名称:{{ result.list[0] && result.list[0].client.name }}</h2>
<h2>客户名称:{{ title }}</h2>
</el-col>
</el-row>
</div>
<div class="page-body-content">
<div class="mb10">
<countArr
:list="result.countArr">
</countArr>
</div>
<client-nav :trigger="addSch" trigger-text="新建费用报销"></client-nav>
<ReimItem
v-for="item in result.list"
:item="item"
......@@ -64,6 +60,7 @@ export default {
data () {
return {
title: '',
lmTemplate: [
{
name: '报销类型',
......@@ -129,6 +126,14 @@ export default {
id,
page: this.pagenation.thispage
})
this.getClientById(id)
},
getClientById (id) {
requestAPI(api.getClientById, { id })
.then((res) => {
this.title = res.model.name
})
},
_reload () {
......
......@@ -4,11 +4,12 @@
<div>
<el-row :gutter="10" class="header-title">
<el-col :span="12">
<h2>客户名称:{{ (result.list[0] && result.list[0].client && result.list[0].client.name) || '未知' }}</h2>
<h2>客户名称:{{ title }}</h2>
</el-col>
</el-row>
</div>
<div class="page-body-content">
<client-nav :trigger="addSch" trigger-text="新建项目"></client-nav>
<GroupItem
v-for="item in result.list"
:item="item"
......@@ -64,6 +65,7 @@ export default {
data () {
return {
title: '',
lmTemplate: [
{
name: '项目内容',
......@@ -143,6 +145,14 @@ export default {
id,
page: this.pagenation.thispage
})
this.getClientById(id)
},
getClientById (id) {
requestAPI(api.getClientById, { id })
.then((res) => {
this.title = res.model.name
})
},
_reload () {
......
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 to comment