From d0e15f6365fc3ac48ca04d773e16f779965ba86b Mon Sep 17 00:00:00 2001 From: zhangyouji Date: Wed, 24 May 2023 15:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/refineryAccount/accountDetails.js | 5 +++ .../refineryAccount/accountDetails/index.vue | 39 +++++++++++++------ 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/api/refineryAccount/accountDetails.js b/src/api/refineryAccount/accountDetails.js index a974827..ed6128e 100644 --- a/src/api/refineryAccount/accountDetails.js +++ b/src/api/refineryAccount/accountDetails.js @@ -12,6 +12,10 @@ const getLikeRefineryAccount = (params = {}) => { return request.postJson('/oil-refinery/xoilRefineryAccountRecord/getLikeRefineryAccount', params) } // 详情 +const searchInfo = query => { + return request.get(`/oil-user/sysCustomerInfo/searchInfo/${query}`) +} +// 详情 const getById = query => { return request.get(`oil-refinery/xoilRefineryAccountRecord/getById/${query}`) } @@ -20,5 +24,6 @@ export default { getByPage, getLikeByName, getLikeRefineryAccount, + searchInfo, getById } diff --git a/src/views/refineryAccount/accountDetails/index.vue b/src/views/refineryAccount/accountDetails/index.vue index 919d83e..64029f8 100644 --- a/src/views/refineryAccount/accountDetails/index.vue +++ b/src/views/refineryAccount/accountDetails/index.vue @@ -3,10 +3,20 @@
- - + + + {{ item.phone }} ( {{ item.userName }} - {{ item.userCode }}) + - + @@ -39,11 +49,7 @@ @@ -141,7 +147,7 @@ export default { labelKey: 'accountName', valueKey: 'id', placeholder: '炼厂账户名称', - querykey: 'accountId' + querykey: 'refineryAccountId' }, refineryList: [], tableHeight: 0, @@ -184,7 +190,8 @@ export default { ] } ], - datetime: [] + datetime: [], + sysCustomerList: [] } }, @@ -227,6 +234,7 @@ export default { pageSize: 10, params: {} }) + this.datetime = [] }, // table height heightHandle() { @@ -241,12 +249,19 @@ export default { }, changeDateTime(val) { if (val) { - this.parameter.params.createTimeStart = val[0] - this.parameter.params.createTimeEnd = val[1] + this.parameter.params.startCreateTime = val[0] + this.parameter.params.endCreateTime = val[1] } }, indexMethod(index) { return index + 1 + }, + searchUserInfo(info) { + if (info && info !== '') { + serve.searchInfo(info).then(res => { + this.sysCustomerList = res.data + }) + } } } }