Commit 2291bd5d authored by youjie's avatar youjie

付款对象关键词搜索

parent 36498834
...@@ -79,7 +79,13 @@ ...@@ -79,7 +79,13 @@
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.fkduixiang')"> <el-form-item :label="$t('fnc.fkduixiang')">
<el-select filterable v-model='msg.ClientID' > <el-select v-model='msg.ClientID'
filterable
remote
reserve-keyword
placeholder="请输入关键词"
:remote-method="remoteMethod"
:loading="AccountLoading">
<el-option v-for='item in ClientAccountList' <el-option v-for='item in ClientAccountList'
:label='item.AccountAlias' :label='item.AccountAlias'
:value='item.ID' :value='item.ID'
...@@ -394,6 +400,16 @@ import moment from "moment" ...@@ -394,6 +400,16 @@ import moment from "moment"
export default { export default {
data(){ data(){
return{ return{
AccountLoading: false,
ClientAccountMsg:{
ID:0,
Type:0,
ObjID:0,
CardNum:'',
KeyWord:'',
IsAll: true,
Status: 1
},
msg:{ msg:{
pageIndex:1, pageIndex:1,
pageSize:5, pageSize:5,
...@@ -839,15 +855,19 @@ export default { ...@@ -839,15 +855,19 @@ export default {
} }
) )
}, },
remoteMethod(query) {
if (query !== '') {
this.ClientAccountMsg.KeyWord = query
this.AccountLoading = true;
this.financeinfo_post_GetClientAccountList()
} else {
this.ClientAccountList = [];
}
},
financeinfo_post_GetClientAccountList(){ //获取付款对象 financeinfo_post_GetClientAccountList(){ //获取付款对象
let msg = { this.apipost('financeinfo_post_GetClientAccountList',this.ClientAccountMsg, res => {
ID:0,
Type:0,
ObjID:0,
CardNum:''
};
this.apipost('financeinfo_post_GetClientAccountList',msg, res => {
this.ClientAccountList = res.data.data; this.ClientAccountList = res.data.data;
this.AccountLoading = false
}, err => {}) }, err => {})
}, },
timeAdd(){ // 日期格式 timeAdd(){ // 日期格式
...@@ -1007,7 +1027,7 @@ export default { ...@@ -1007,7 +1027,7 @@ export default {
this.getAccountTypeList(); this.getAccountTypeList();
this.AccountType_post_GetList(); this.AccountType_post_GetList();
this.BankAccount_post_GetAccountType(); this.BankAccount_post_GetAccountType();
this.financeinfo_post_GetClientAccountList(); // this.financeinfo_post_GetClientAccountList();
this.financeinfo_post_GetCostTypeList(); this.financeinfo_post_GetCostTypeList();
this.getCompanyList(); this.getCompanyList();
} }
......
...@@ -113,7 +113,14 @@ ...@@ -113,7 +113,14 @@
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.fkduixiang')"> <el-form-item :label="$t('fnc.fkduixiang')">
<el-select filterable v-model='msg.ClientID' @change='getClientId(msg.ClientID)'> <el-select v-model='msg.ClientID'
@change='getClientId(msg.ClientID)'
filterable
remote
reserve-keyword
placeholder="请输入关键词"
:remote-method="remoteMethod"
:loading="AccountLoading">
<el-option v-for='item in ClientAccountList' <el-option v-for='item in ClientAccountList'
:label='`${item.AccountAlias}(${item.AccountHolder}/${item.CardNum})`' :label='`${item.AccountAlias}(${item.AccountHolder}/${item.CardNum})`'
:value='item.ID' :value='item.ID'
...@@ -457,6 +464,16 @@ import moment from "moment" ...@@ -457,6 +464,16 @@ import moment from "moment"
export default { export default {
data(){ data(){
return{ return{
AccountLoading: false,
ClientAccountMsg:{
ID:0,
Type:0,
ObjID:0,
CardNum:'',
KeyWord:'',
IsAll: true,
Status: 1
},
msg:{ msg:{
pageIndex:1, pageIndex:1,
pageSize:5, pageSize:5,
...@@ -620,16 +637,20 @@ export default { ...@@ -620,16 +637,20 @@ export default {
this.isShowCheckAll=false; this.isShowCheckAll=false;
} }
}, },
remoteMethod(query) {
if (query !== '') {
this.ClientAccountMsg.KeyWord = query
this.AccountLoading = true;
this.financeinfo_post_GetClientAccountList()
} else {
this.ClientAccountList = [];
}
},
financeinfo_post_GetClientAccountList(){ //获取付款对象 financeinfo_post_GetClientAccountList(){ //获取付款对象
let msg = { this.apipost('financeinfo_post_GetClientAccountList',this.ClientAccountMsg, res => {
ID:0,
Type:0,
ObjID:0,
CardNum:''
};
this.apipost('financeinfo_post_GetClientAccountList',msg, res => {
let data = res.data.data; let data = res.data.data;
this.ClientAccountList = data; this.ClientAccountList = data;
this.AccountLoading = false
}, err => {}) }, err => {})
}, },
timeAdd(){ // 日期格式 timeAdd(){ // 日期格式
...@@ -1163,7 +1184,7 @@ export default { ...@@ -1163,7 +1184,7 @@ export default {
this.getAccountTypeList(); this.getAccountTypeList();
this.AccountType_post_GetList(); this.AccountType_post_GetList();
this.BankAccount_post_GetAccountType(); this.BankAccount_post_GetAccountType();
this.financeinfo_post_GetClientAccountList(); // this.financeinfo_post_GetClientAccountList(); //付款对象
this.financeinfo_post_GetCostTypeList(); this.financeinfo_post_GetCostTypeList();
this.getCompanyList(); this.getCompanyList();
} }
......
...@@ -477,6 +477,16 @@ import moment from 'moment' ...@@ -477,6 +477,16 @@ import moment from 'moment'
export default { export default {
data(){ data(){
return{ return{
AccountLoading: false,
ClientAccountMsg:{
ID:0,
Type:0,
ObjID:0,
CardNum:'',
KeyWord:'',
IsAll: true,
Status: 1
},
msg:{ msg:{
pageIndex:1, pageIndex:1,
pageSize:5, pageSize:5,
...@@ -630,16 +640,20 @@ export default { ...@@ -630,16 +640,20 @@ export default {
} }
) )
}, },
financeinfo_post_GetClientAccountList(){ //获取付款对象 remoteMethod(query) {
let msg = { if (query !== '') {
ID:0, this.ClientAccountMsg.KeyWord = query
Type:0, this.AccountLoading = true;
ObjID:0, this.financeinfo_post_GetClientAccountList()
CardNum:'' } else {
this.ClientAccountList = [];
} }
this.apipost('financeinfo_post_GetClientAccountList',msg, res => { },
financeinfo_post_GetClientAccountList(){ //获取付款对象
this.apipost('financeinfo_post_GetClientAccountList',this.ClientAccountMsg, res => {
let data = res.data.data; let data = res.data.data;
this.ClientAccountList = data; this.ClientAccountList = data;
this.AccountLoading = false
}, err => {}) }, err => {})
}, },
timeAdd(){ // 日期格式 timeAdd(){ // 日期格式
...@@ -1153,7 +1167,7 @@ export default { ...@@ -1153,7 +1167,7 @@ export default {
this.getAccountTypeList(); this.getAccountTypeList();
this.AccountType_post_GetList(); this.AccountType_post_GetList();
this.BankAccount_post_GetAccountType(); this.BankAccount_post_GetAccountType();
this.financeinfo_post_GetClientAccountList(); // this.financeinfo_post_GetClientAccountList();
this.financeinfo_post_GetCostTypeList(); this.financeinfo_post_GetCostTypeList();
this.getCompanyList(); this.getCompanyList();
} }
......
...@@ -62,7 +62,14 @@ ...@@ -62,7 +62,14 @@
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.fkduixiang')"> <el-form-item :label="$t('fnc.fkduixiang')">
<el-select filterable v-model='msg.ClientID' @change='getClientId(msg.ClientID)'> <el-select v-model='msg.ClientID'
@change='getClientId(msg.ClientID)'
filterable
remote
reserve-keyword
placeholder="请输入关键词"
:remote-method="remoteMethod"
:loading="AccountLoading">
<el-option v-for='item in ClientAccountList' <el-option v-for='item in ClientAccountList'
:label='item.AccountAlias' :label='item.AccountAlias'
:value='item.ID' :value='item.ID'
...@@ -391,6 +398,16 @@ import moment from "moment" ...@@ -391,6 +398,16 @@ import moment from "moment"
export default { export default {
data(){ data(){
return{ return{
AccountLoading: false,
ClientAccountMsg:{
ID:0,
Type:0,
ObjID:0,
CardNum:'',
KeyWord:'',
IsAll: true,
Status: 1
},
msg:{ msg:{
pageIndex:1, pageIndex:1,
pageSize:5, pageSize:5,
...@@ -543,16 +560,20 @@ export default { ...@@ -543,16 +560,20 @@ export default {
} }
) )
}, },
financeinfo_post_GetClientAccountList(){ //获取付款对象 remoteMethod(query) {
let msg = { if (query !== '') {
ID:0, this.ClientAccountMsg.KeyWord = query
Type:0, this.AccountLoading = true;
ObjID:0, this.financeinfo_post_GetClientAccountList()
CardNum:'' } else {
this.ClientAccountList = [];
} }
this.apipost('financeinfo_post_GetClientAccountList',msg, res => { },
financeinfo_post_GetClientAccountList(){ //获取付款对象
this.apipost('financeinfo_post_GetClientAccountList',this.ClientAccountMsg, res => {
let data = res.data.data; let data = res.data.data;
this.ClientAccountList = data; this.ClientAccountList = data;
this.AccountLoading = false
}, err => {}) }, err => {})
}, },
timeAdd(){ // 日期格式 timeAdd(){ // 日期格式
...@@ -1023,7 +1044,7 @@ export default { ...@@ -1023,7 +1044,7 @@ export default {
this.getAccountTypeList(); this.getAccountTypeList();
this.AccountType_post_GetList(); this.AccountType_post_GetList();
this.BankAccount_post_GetAccountType(); this.BankAccount_post_GetAccountType();
this.financeinfo_post_GetClientAccountList(); // this.financeinfo_post_GetClientAccountList();
this.financeinfo_post_GetCostTypeList(); this.financeinfo_post_GetCostTypeList();
this.getCompanyList(); this.getCompanyList();
} }
......
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