Commit 2291bd5d authored by youjie's avatar youjie

付款对象关键词搜索

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