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
783679aa
Commit
783679aa
authored
Aug 23, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建收款单客户默认付款人有显示
parent
2437f1b3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
2 deletions
+75
-2
index.vue
src/components/CustomerSelectorpay/index.vue
+72
-0
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+3
-2
No files found.
src/components/CustomerSelectorpay/index.vue
0 → 100644
View file @
783679aa
<
template
>
<el-select
v-model=
"index"
filterable
clearable
remote
reserve-keyword
:placeholder=
"$t('请输入关键词')"
:remote-method=
"remoteMethod"
:loading=
"loading"
>
<el-option
v-for=
"(item, index) in list"
:key=
"item.id"
:label=
"`$
{item.payerName?item.payerName:item.name}(${item.number})`"
:value="index">
</el-option>
</el-select>
</
template
>
<
script
>
import
{
getCustomerSelect
,
getCustomer
}
from
'
@/api/ecw/customer
'
export
default
{
props
:{
productType
:
[
String
,
Number
],
value
:
[
String
,
Number
]
},
data
(){
return
{
index
:
null
,
list
:[],
loading
:
false
}
},
watch
:{
index
(
val
){
this
.
$emit
(
'
input
'
,
(
val
!==
''
&&
val
!==
null
)
?
this
.
list
[
val
].
id
:
null
)
this
.
$emit
(
'
change
'
,
(
val
!==
''
&&
val
!==
null
)
?
this
.
list
[
val
]:
null
)
},
value
(
val
){
this
.
init
()
}
},
created
(){
this
.
init
()
},
methods
:{
init
(){
if
(
!
this
.
value
)
return
let
index
=
this
.
list
.
findIndex
(
item
=>
item
.
id
==
this
.
value
)
if
(
index
<
0
){
getCustomer
(
this
.
value
).
then
(
res
=>
{
this
.
list
.
unshift
(
res
.
data
)
this
.
index
=
0
})
}
else
{
this
.
index
=
index
}
},
remoteMethod
(
keyword
){
let
params
=
{}
params
.
searchKey
=
keyword
this
.
loading
=
true
getCustomerSelect
(
params
)
.
then
(
res
=>
this
.
list
=
res
.
data
.
list
)
.
finally
(()
=>
this
.
loading
=
false
)
},
reset
(){
this
.
index
=
null
}
}
}
</
script
>
src/views/ecw/financial/creatCollection.vue
View file @
783679aa
...
...
@@ -18,7 +18,7 @@
:span=
"4"
>
<span
style=
"margin-right:20px"
><span
style=
"color: #ff4949;"
>
*
</span>
{{
$t
(
'
客户
'
)
}}
</span>
<customer-selector
<customer-selector
pay
ref=
"customer"
v-model=
"form.customerId"
@
change=
"customerChange"
...
...
@@ -692,6 +692,7 @@ import { listSimpleUsers } from "@/api/system/user";
import
{
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
getToken
}
from
"
@/utils/auth
"
;
import
CustomerSelector
from
"
@/components/CustomerSelector
"
;
import
CustomerSelectorpay
from
"
@/components/CustomerSelectorpay
"
;
import
{
getBankAccountPage
}
from
"
@/api/ecw/bankAccount
"
;
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
getChannelList
}
from
"
@/api/ecw/channel
"
;
...
...
@@ -711,7 +712,7 @@ import WorkFlow from '@/components/WorkFlow/'
export
default
{
name
:
"
EcwFinancialCreatcollection
"
,
components
:
{
CustomerSelector
,
WorkFlow
CustomerSelector
,
WorkFlow
,
CustomerSelectorpay
}
,
data
()
{
return
{
...
...
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