Commit 8a9b3aaa authored by daywrite's avatar daywrite

修复客户信息

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