Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
a2f4cdf7
Commit
a2f4cdf7
authored
Mar 27, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
银行卡账户修改
parent
2f570fc0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
55 deletions
+64
-55
edit.vue
src/views/ecw/customer/edit.vue
+42
-42
query.vue
src/views/ecw/customer/query.vue
+13
-5
commission-requestFunds.vue
src/views/ecw/financial/commission-requestFunds.vue
+9
-8
No files found.
src/views/ecw/customer/edit.vue
View file @
a2f4cdf7
...
...
@@ -419,88 +419,88 @@
<el-button
style=
"float: right;"
size=
"small"
type=
"primary"
@
click=
"addBankData"
>
+
</el-button>
</div>
<el-form
ref=
"bankForm"
:model=
"form"
>
<el-table
border
:data=
"form.customerBank
Account
s"
>
<el-table-column
label=
"序号
"
type=
"index"
></el-table-column>
<el-table
border
:data=
"form.customerBanks"
>
<el-table-column
:label=
"$t('序号')
"
type=
"index"
></el-table-column>
<el-table-column>
<div
slot=
"header"
>
账户名称
<span
style=
"color: red;"
>
*
</span>
{{$t('账户名称')}}
<span
style=
"color: red;"
>
*
</span>
</div>
<
template
v-slot=
"{row,$index}"
>
<el-form-item
:rules=
"
{required:true,message:
'请输入账户名称'}" :prop="'customerBankAccounts.'+ $index +'.baA
ccountName'">
<el-input
size=
"mini"
v-model=
"row.
baA
ccountName"
></el-input>
<el-form-item
:rules=
"
{required:true,message:
$t('请输入账户名称')}" :prop="'customerBanks.'+ $index +'.a
ccountName'">
<el-input
size=
"mini"
v-model=
"row.
a
ccountName"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"币别
"
>
<el-table-column
:label=
"$t('币别')
"
>
<div
slot=
"header"
>
币别
<span
style=
"color: red;"
>
*
</span>
{{$t('币别')}}
<span
style=
"color: red;"
>
*
</span>
</div>
<
template
v-slot=
"{row,$index}"
>
<el-form-item
:prop=
"'customerBank
Accounts.'+ $index +'.currency'"
:rules=
"
{required:true,message:'请输入币别'
}" >
<el-form-item
:prop=
"'customerBank
s.'+ $index +'.currency'"
:rules=
"
{required:true,message:$t('请输入币别')
}" >
<el-select
v-model=
"row.currency"
>
<el-option
v-for=
"(item) in currecyList"
:label=
"$l(item,'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-option
v-for=
"(item) in currecyList"
:label=
"$l(item,'title')"
:value=
"item.id
.toString()
"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"银行名称
"
>
<el-table-column
:label=
"$t('银行名称')
"
>
<div
slot=
"header"
>
银行名称
<span
style=
"color: red;"
>
*
</span>
{{$t('银行名称')}}
<span
style=
"color: red;"
>
*
</span>
</div>
<
template
v-slot=
"{row,$index}"
>
<el-form-item
:prop=
"'customerBank
Accounts.'+ $index +'.baBankName'"
:rules=
"
{required:true,message:'银行名称'
}">
<el-input
v-model=
"row.ba
Ba
nkName"
size=
"mini"
></el-input>
<el-form-item
:prop=
"'customerBank
s.'+ $index +'.bankName'"
:rules=
"
{required:true,message:$t('银行名称')
}">
<el-input
v-model=
"row.bankName"
size=
"mini"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"银行账户
"
>
<el-table-column
:label=
"$t('银行账户')
"
>
<div
slot=
"header"
>
银行账户
<span
style=
"color: red;"
>
*
</span>
{{$t('银行账户')}}
<span
style=
"color: red;"
>
*
</span>
</div>
<
template
v-slot=
"{row,$index}"
>
<el-form-item
:prop=
"`customerBank
Accounts.$
{$index}.baAccountNum`" :rules="{required:true,message:'请输入银行账户'
}">
<el-input
v-model=
"row.ba
AccountNum
"
size=
"mini"
></el-input>
<el-form-item
:prop=
"`customerBank
s.$
{$index}.bankAccount`" :rules="{required:true,message:$t('请输入银行账户')
}">
<el-input
v-model=
"row.ba
nkAccount
"
size=
"mini"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"银行代码
"
>
<el-table-column
:label=
"$t('银行代码')
"
>
<
template
v-slot=
"{row}"
>
<el-form-item
prop=
"ba
Swift
Code"
>
<el-input
v-model=
"row.ba
Swift
Code"
size=
"mini"
></el-input>
<el-form-item
prop=
"ba
nk
Code"
>
<el-input
v-model=
"row.ba
nk
Code"
size=
"mini"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"账户类型
"
>
<el-table-column
:label=
"$t('账户类型')
"
>
<
template
v-slot=
"{row}"
>
<el-form-item>
<el-select
v-model=
"row.
ba
Type"
>
<el-option
value=
"1"
label=
"公账
"
></el-option>
<el-option
value=
"2"
label=
"私账
"
></el-option>
<el-select
v-model=
"row.
account
Type"
>
<el-option
value=
"1"
:label=
"$t('公账')
"
></el-option>
<el-option
value=
"2"
:label=
"$t('私账')
"
></el-option>
</el-select>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"状态
"
>
<el-table-column
:label=
"$t('状态')
"
>
<
template
v-slot=
"{row}"
>
<el-form-item>
<el-select
v-model=
"row.status"
>
<el-option
value=
"0"
label=
"停用
"
></el-option>
<el-option
value=
"1"
label=
"正常
"
></el-option>
<el-option
:value=
"0"
:label=
"$t('停用')
"
></el-option>
<el-option
:value=
"1"
:label=
"$t('正常')
"
></el-option>
</el-select>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"银行地址
"
>
<el-table-column
:label=
"$t('银行地址')
"
>
<
template
v-slot=
"{row}"
>
<el-form-item
prop=
"baBankAdd"
>
<el-input
v-model=
"row.ba
BankAdd
"
size=
"mini"
></el-input>
<el-input
v-model=
"row.ba
nkAddress
"
size=
"mini"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"操作
"
>
<el-table-column
:label=
"$t('操作')
"
>
<
template
v-slot=
"{$index}"
>
<el-button
@
click=
"deleteBankData($index)"
>
删除
</el-button>
<el-button
@
click=
"deleteBankData($index)"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -693,26 +693,26 @@ export default {
methods
:
{
deleteBankData
(
index
){
if
(
this
.
form
.
customerBank
Account
s
.
length
===
1
){
if
(
this
.
form
.
customerBanks
.
length
===
1
){
this
.
$message
.
warning
(
'
至少添加一条银行卡号信息
'
);
}
else
{
this
.
form
.
customerBank
Account
s
.
splice
(
index
,
1
);
this
.
form
.
customerBanks
.
splice
(
index
,
1
);
}
},
//添加银行卡
addBankData
(){
let
p
=
{
baAccountName
:
""
,
baAccountNum
:
""
,
baBankAdd
:
""
,
baBankName
:
""
,
baSwiftCode
:
""
,
baType
:
null
,
bankName
:
""
,
bankAccount
:
""
,
bankAddress
:
""
,
bankCode
:
""
,
accountType
:
null
,
status
:
null
,
currency
:
''
,
accountName
:
''
};
this
.
form
.
customerBank
Accounts
=
[...
this
.
form
.
customerBankAccount
s
,
p
]
this
.
form
.
customerBank
s
=
[...
this
.
form
.
customerBank
s
,
p
]
},
/* getUserMemberUserFn(val){
userMemberUserList({pageNo:1,pageSize:100,searchKey:val}).then(r => {
...
...
@@ -899,7 +899,7 @@ export default {
isShowTidanPrice
:
true
,
carName
:
undefined
,
carNo
:
undefined
,
customerBank
Account
s
:[]
customerBanks
:[]
};
this
.
form
.
createTime
=
(
new
Date
()).
getTime
()
this
.
resetForm
(
"
form
"
);
...
...
@@ -908,7 +908,7 @@ export default {
getCustomer
(
id
)
{
return
getCustomer
(
id
).
then
(
response
=>
{
console
.
log
(
response
,
'
response
'
)
this
.
form
=
{
...
this
.
form
,
...
response
.
data
,
id
:
this
.
customerId
,
transportType
:
response
.
data
.
transportType
.
split
(
'
,
'
)
};
this
.
form
=
{
...
this
.
form
,
...
response
.
data
,
id
:
this
.
customerId
,
transportType
:
response
.
data
.
transportType
.
split
(
'
,
'
)
,
customerBanks
:
response
.
data
.
customerBankBackVOList
};
this
.
open
=
true
;
this
.
title
=
this
.
$t
(
'
修改客户
'
);
this
.
getZhongPao
()
...
...
src/views/ecw/customer/query.vue
View file @
a2f4cdf7
...
...
@@ -112,18 +112,20 @@
<
el
-
card
style
=
"
margin-top: 15px;
"
>
<
h3
>
{{
$t
(
'
银行账户
'
)
}}
<
/h3
>
<
el
-
table
:
data
=
"
customer.customerBankBackVOList
"
border
>
<
el
-
table
-
column
label
=
"
编号
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
编号
"
type
=
"
index
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
账户名称
"
prop
=
"
accountName
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
币别
"
>
<
template
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
$l
(
currecyList
.
find
(
i
=>
row
.
currency
==
i
.
id
),
'
title
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
银行名称
"
prop
=
"
bankName
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
银行账户
"
prop
=
"
bankAccount
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
银行代码
"
prop
=
"
bankCode
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
账户类型
"
>
<
template
><
/template
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
row
.
accountType
===
1
?
$t
(
'
公账
'
)
:
$t
(
'
私账
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
状态
"
>
<
template
v
-
slot
=
"
{row
}
"
>
...
...
@@ -482,6 +484,7 @@ import {getOrderPage} from "@/api/ecw/order";
import
Template
from
"
@/views/cms/template
"
;
import
{
getCreditRulePage
}
from
"
@/api/customer/creditRule
"
;
import
{
getCountry
}
from
"
@/api/ecw/country
"
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
export
default
{
name
:
'
query
'
,
...
...
@@ -491,6 +494,10 @@ export default {
CustomerComplaint
}
,
created
()
{
// 获取币种
getCurrencyList
().
then
(
response
=>
{
this
.
currecyList
=
response
.
data
;
}
)
//获取信用类型
getCreditRulePage
({
page
:
1
,
rows
:
999
,
type
:
2
}
).
then
(
r
=>
{
this
.
creditTypeList
=
r
.
data
.
list
...
...
@@ -500,6 +507,7 @@ export default {
}
)
getCustomer
(
this
.
id
).
then
(
response
=>
{
this
.
customer
=
{
...
this
.
customer
,
...
response
.
data
}
console
.
log
(
this
.
customer
,
'
this.customer
'
)
getCustomerContactsListByCustomer
({
customerId
:
this
.
id
}
).
then
(
r
=>
{
this
.
customerContacts
=
r
.
data
...
...
@@ -537,7 +545,6 @@ export default {
}
,
watch
:{
activeName
(
val
){
console
.
log
(
val
,
'
val
'
)
switch
(
val
)
{
case
'
order
'
:
this
.
getorderList
()
//订单
...
...
@@ -567,6 +574,7 @@ export default {
data
()
{
return
{
activeName
:
'
order
'
,
currecyList
:[],
STATUS
:{
0
:
this
.
$t
(
'
取消报价
'
),
1
:
this
.
$t
(
'
特价审批中
'
),
...
...
src/views/ecw/financial/commission-requestFunds.vue
View file @
a2f4cdf7
...
...
@@ -673,7 +673,7 @@ export default {
if
(
val
){
getCustomer
(
val
).
then
(
r
=>
{
this
.
form
.
customerName
=
r
.
data
.
name
this
.
bankAccountList
=
r
.
data
.
customerBank
Account
BackVOList
this
.
bankAccountList
=
r
.
data
.
customerBankBackVOList
// this.$set(this.form, 'customerBank',r.data.bank )
// this.$set(this.form, 'customerBankAccount',r.data.bankNumber )
// this.$set(this.form, 'customerBankAccountName',r.data.name )
...
...
@@ -697,19 +697,20 @@ export default {
// t && (this.bankData = t.bankList)
},
getBankInfo
(
val
){
let
{
baAccountName
,
baAccountNum
,
baBankAdd
,
baBankName
,
baSwiftCode
,
baType
,
status
}
=
val
console
.
log
(
val
,
'
valbank
'
)
let
{
accountName
,
bankAccount
,
bankAddress
,
bankName
,
bankCode
,
accountType
}
=
val
// this.form.customerAccountType = baType; //账户类型
this
.
$set
(
this
.
form
,
'
customerAccountType
'
,
ba
Type
)
this
.
$set
(
this
.
form
,
'
customerAccountType
'
,
account
Type
)
// this.form.customerBank = baBankName; //客户银行
this
.
$set
(
this
.
form
,
'
customerBank
'
,
ba
Ba
nkName
)
this
.
$set
(
this
.
form
,
'
customerBank
'
,
bankName
)
// this.form.customerBankAccount = baAccountNum; // 客户银行账号
this
.
$set
(
this
.
form
,
'
customerBankAccount
'
,
ba
AccountNum
)
this
.
$set
(
this
.
form
,
'
customerBankAccount
'
,
ba
nkAccount
)
// this.form.customerBankAccountName = customerBankAccountName; //客户银行账户名
this
.
$set
(
this
.
form
,
'
customerBankAccountName
'
,
baAccountName
)
this
.
$set
(
this
.
form
,
'
customerBankAccountName
'
,
accountName
)
// this.form.customerBankAddress = customerBankAddress; // 银行地址
this
.
$set
(
this
.
form
,
'
customerBankAddress
'
,
ba
BankAdd
)
this
.
$set
(
this
.
form
,
'
customerBankAddress
'
,
ba
nkAddress
)
// this.form.customerBankAddress = customerBankCode; // 银行代码
this
.
$set
(
this
.
form
,
'
customerBankCode
'
,
ba
Swift
Code
)
this
.
$set
(
this
.
form
,
'
customerBankCode
'
,
ba
nk
Code
)
},
handleQuery
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment