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
dd9d2183
Commit
dd9d2183
authored
Sep 02, 2024
by
yujinyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户设置默认付款和控货无收货人
parent
cf2ba127
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
91 additions
and
31 deletions
+91
-31
customer.js
src/api/ecw/customer.js
+16
-0
edit.vue
src/views/ecw/customer/edit.vue
+4
-1
index.vue
src/views/ecw/customer/index.vue
+44
-2
query.vue
src/views/ecw/customer/query.vue
+27
-28
No files found.
src/api/ecw/customer.js
View file @
dd9d2183
...
@@ -503,3 +503,19 @@ export function updatecustomerToOld(params){
...
@@ -503,3 +503,19 @@ export function updatecustomerToOld(params){
params
params
})
})
}
}
export
function
changeCustomerDefaultPay
(
data
){
return
request
({
url
:
'
ecw/customer/change-customer-default-pay
'
,
method
:
'
put
'
,
data
})
}
export
function
changeCustomerNoConsignee
(
data
){
return
request
({
url
:
'
ecw/customer/change-customer-no-consignee
'
,
method
:
'
put
'
,
data
})
}
src/views/ecw/customer/edit.vue
View file @
dd9d2183
...
@@ -968,7 +968,7 @@
...
@@ -968,7 +968,7 @@
v-model.trim=
"row.phoneNew"
v-model.trim=
"row.phoneNew"
:placeholder=
"$t('请输入联系方式')"
:placeholder=
"$t('请输入联系方式')"
size=
"mini"
size=
"mini"
onkeyup=
"this.value=this.value
.replace(/\s+/g, '')"
@
input=
"row.phoneNew=row.phoneNew
.replace(/\s+/g, '')"
/>
/>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -1531,6 +1531,9 @@ export default {
...
@@ -1531,6 +1531,9 @@ export default {
pickupPoints
:
(
this
.
form
.
pickupPoints
||
[])?.
join
(
"
,
"
),
pickupPoints
:
(
this
.
form
.
pickupPoints
||
[])?.
join
(
"
,
"
),
productIds
:
(
this
.
form
.
productIds
||
[])?.
join
(
"
,
"
),
productIds
:
(
this
.
form
.
productIds
||
[])?.
join
(
"
,
"
),
busiCountryIds
:
(
this
.
form
.
busiCountryIds
||
[])?.
join
(
"
,
"
),
busiCountryIds
:
(
this
.
form
.
busiCountryIds
||
[])?.
join
(
"
,
"
),
noConsignee
:
undefined
,
defaultPay
:
undefined
,
defaultBilling
:
undefined
,
};
};
form
.
customerContacts
=
JSON
.
parse
(
form
.
customerContacts
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
customerContacts
)
JSON
.
stringify
(
this
.
form
.
customerContacts
)
...
...
src/views/ecw/customer/index.vue
View file @
dd9d2183
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<el-input
<el-input
:placeholder=
"$t('请输入联系方式')"
:placeholder=
"$t('请输入联系方式')"
v-model.trim=
"queryParams.defaultContactPhone"
v-model.trim=
"queryParams.defaultContactPhone"
onkeyup=
"this.value=this.valu
e.replace(/\s+/g, '')"
@
input=
"queryParams.defaultContactPhone=queryParams.defaultContactPhon
e.replace(/\s+/g, '')"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('客户类别')"
prop=
"level"
>
<el-form-item
:label=
"$t('客户类别')"
prop=
"level"
>
...
@@ -307,6 +307,30 @@
...
@@ -307,6 +307,30 @@
>
{{
$t
(
"
合并客户
"
)
}}
</el-button
>
{{
$t
(
"
合并客户
"
)
}}
</el-button
>
>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-plus"
size=
"mini"
:disabled=
"!selectCustomerList.length"
@
click=
"setDefaultPay"
v-hasPermi=
"['ecw:customer:change-customer-default-pay']"
>
{{
$t
(
"
设置默认付款
"
)
}}
</el-button
>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-plus"
size=
"mini"
:disabled=
"!selectCustomerList.length"
@
click=
"setNoConsignee"
v-hasPermi=
"['ecw:customer:change-customer-no-consignee']"
>
{{
$t
(
"
设置默认控货无收货人
"
)
}}
</el-button
>
</el-col>
<right-toolbar
<right-toolbar
:showSearch.sync=
"showSearch"
:showSearch.sync=
"showSearch"
...
@@ -1068,7 +1092,7 @@ import customerComplaints from "@/components/customerComplaints";
...
@@ -1068,7 +1092,7 @@ import customerComplaints from "@/components/customerComplaints";
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
import
{
getCountryListAll
}
from
"
@/api/ecw/country
"
;
import
{
getCountryListAll
}
from
"
@/api/ecw/country
"
;
import
{
getCreditPage
}
from
"
@/api/customer/credit
"
;
import
{
getCreditPage
}
from
"
@/api/customer/credit
"
;
import
{
customerExportExcel
}
from
"
@/api/ecw/customer
"
;
import
{
customerExportExcel
,
changeCustomerDefaultPay
,
changeCustomerNoConsignee
}
from
"
@/api/ecw/customer
"
;
import
transferCustomer
from
"
@/views/ecw/customer/transferCustomer
"
;
import
transferCustomer
from
"
@/views/ecw/customer/transferCustomer
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
AddPotentialCustom
from
"
@/views/ecw/customer/addPotentialCustom.vue
"
;
import
AddPotentialCustom
from
"
@/views/ecw/customer/addPotentialCustom.vue
"
;
...
@@ -1588,6 +1612,24 @@ export default {
...
@@ -1588,6 +1612,24 @@ export default {
})
})
.
catch
(()
=>
{});
.
catch
(()
=>
{});
},
},
setDefaultPay
()
{
changeCustomerDefaultPay
({
customerIdList
:
this
.
selectCustomerList
,
defaultPay
:
true
}).
then
(
_
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
操作成功
"
))
this
.
getList
()
})
},
setNoConsignee
()
{
changeCustomerNoConsignee
({
customerIdList
:
this
.
selectCustomerList
,
noConsigee
:
true
}).
then
(
_
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
操作成功
"
))
this
.
getList
()
})
}
},
},
};
};
</
script
>
</
script
>
src/views/ecw/customer/query.vue
View file @
dd9d2183
...
@@ -626,9 +626,35 @@
...
@@ -626,9 +626,35 @@
<
/el-tab-pane
>
<
/el-tab-pane
>
<
/el-tabs
>
<
/el-tabs
>
<
el
-
card
style
=
"
margin-top: 15px;
"
>
<
h3
>
{{
$t
(
'
银行账户
'
)
}}
<
/h3
>
<
el
-
table
:
data
=
"
customer.customerBankBackVOList
"
border
>
<
el
-
table
-
column
:
label
=
"
$t('编号')
"
type
=
"
index
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('账户名称')
"
prop
=
"
accountName
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('币别')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
$l
(
currecyList
.
find
(
i
=>
row
.
currency
==
i
.
id
),
'
title
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('银行名称')
"
prop
=
"
bankName
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('银行账户')
"
prop
=
"
bankAccount
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('银行代码')
"
prop
=
"
bankCode
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('账户类型')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
Number
(
row
.
accountType
)
===
1
?
$t
(
'
公账
'
)
:
$t
(
'
私账
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('状态')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
row
.
status
?
$t
(
'
正常
'
)
:
$t
(
'
停用
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('银行地址')
"
prop
=
"
bankAddress
"
><
/el-table-column
>
<
/el-table
>
<
/el-card
>
<
el
-
card
style
=
"
margin-top: 15px
"
>
<
el
-
card
style
=
"
margin-top: 15px
"
>
<
h3
>
{{
$t
(
'
联系人
'
)
}}
<
/h3
>
<
h3
>
{{
$t
(
'
联系人
'
)
}}
<
/h3
>
<
el
-
table
<
el
-
table
:
data
=
"
customerContacts
"
:
data
=
"
customerContacts
"
style
=
"
width: 100%
"
style
=
"
width: 100%
"
...
@@ -687,33 +713,6 @@
...
@@ -687,33 +713,6 @@
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
<
/el-card
>
<
/el-card
>
<
el
-
card
style
=
"
margin-top: 15px;
"
>
<
h3
>
{{
$t
(
'
银行账户
'
)
}}
<
/h3
>
<
el
-
table
:
data
=
"
customer.customerBankBackVOList
"
border
>
<
el
-
table
-
column
:
label
=
"
$t('编号')
"
type
=
"
index
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('账户名称')
"
prop
=
"
accountName
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('币别')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
$l
(
currecyList
.
find
(
i
=>
row
.
currency
==
i
.
id
),
'
title
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('银行名称')
"
prop
=
"
bankName
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('银行账户')
"
prop
=
"
bankAccount
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('银行代码')
"
prop
=
"
bankCode
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('账户类型')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
Number
(
row
.
accountType
)
===
1
?
$t
(
'
公账
'
)
:
$t
(
'
私账
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('状态')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
row
.
status
?
$t
(
'
正常
'
)
:
$t
(
'
停用
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('银行地址')
"
prop
=
"
bankAddress
"
><
/el-table-column
>
<
/el-table
>
<
/el-card
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
...
...
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